/* ---- Base Reset ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #2E3A44;
  background: #F5FAFF;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: #4A90E2; text-decoration: none; }
a:hover { color: #2C6FBF; }
.container { width: min(1100px, 92vw); margin: 0 auto; }

/* ---- Theme Vars ---- */
:root {
  --primary: #4A90E2;
  --primaryDark: #2C6FBF;
  --accent: #27C2B3;
  --bg: #F5FAFF;
  --text: #2E3A44;
  --muted: #6A7B88;
  --border: #E6EFF7;
  --white: #fff;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 36px; }
.brand .name { font-weight: 700; color: var(--text); font-size: 18px; }

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

/* Linkuri meniu */
.nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Butoane albastre (ex. Programări / Contact) */
.nav a.btn { background: var(--primary); color: #fff; }

/* Efect & activ */
.nav a:hover,
.nav a.active { background: var(--primary); color: #fff; }
.nav a.btn:hover,
.nav a.active:hover { background: var(--primaryDark); }

/* Buton deschidere meniu mobil */
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 8px 10px;
  border-radius: 10px;
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;               /* ascuns implicit */
  position: fixed;             /* rămâne sub header */
  top: 64px;                   /* înălțimea headerului */
  left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 999;
}
.mobile-nav a {
  display: block;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

/* Breakpoint mobil */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  body.menu-open .mobile-nav { display: block; }  /* arată meniul când e deschis */
  body.menu-open { overflow: hidden; }            /* blochează scroll-ul în fundal */
}

/* Pe ecrane mari ascundem forțat meniul mobil */
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

/* =========================================
   Buttons & Utilities
   ========================================= */
.btn { display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:12px; font-weight:700; border:0; outline:0; }
.btn-primary { background: var(--primary); color:#fff; }
.btn-primary:hover { background: var(--primaryDark); }
.btn-ghost { border: 1px solid var(--border); background: #fff; color: var(--text); }
.btn:focus { box-shadow: 0 0 0 3px rgba(74,144,226,.25); }

/* Smooth scroll offset pentru header sticky */
:target { scroll-margin-top: 80px; }

/* =========================================
   Hero
   ========================================= */
.hero {
  padding: clamp(60px, 8vw, 110px) 0;
  background: linear-gradient(180deg, #fff, var(--bg));
}
.hero .grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-family: 'Poppins', system-ui, -apple-system;
  font-weight: 800; line-height: 1.1;
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 14px;
}
.hero p.lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); }
.cta-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Badge (Cabinet modern • Iași) – vizibil */
.badge-inline{
  display: inline-block;
  background: #E7F0FF;
  color: var(--primaryDark);
  font-weight: 700;
  font-size: clamp(14px, 1.1rem, 18px);
  padding: 10px 14px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  line-height: 1;
  vertical-align: middle;
}
.hero .badge-inline { margin-bottom: 10px; }

/* =========================================
   Sections
   ========================================= */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section .title { font-family: 'Poppins', system-ui; font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.section .desc { color: var(--muted); margin-bottom: 28px; }

/* =========================================
   Services
   ========================================= */
.services .cards { 
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; 
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.service-card img { height: 160px; object-fit: cover; width: 100%; }
.service-card .body { padding: 16px; }
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
@media (max-width: 1100px) { .services .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services .cards { grid-template-columns: 1fr; } }

/* =========================================
   About
   ========================================= */
.about .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.about .badge { display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700; color:#0D5; background:#E7FFF6; margin-bottom:12px; }
@media (max-width: 900px) { .about .grid { grid-template-columns: 1fr; } }

/* =========================================
   Testimonials
   ========================================= */
.testimonials .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { background:#fff; border:1px solid var(--border); border-radius:14px; padding:18px; }
.testimonial .name { font-weight:700; }
@media (max-width: 900px) { .testimonials .wrap { grid-template-columns: 1fr; } }

/* =========================================
   Pricing
   ========================================= */
.pricing .rows { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.price-card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:20px; }
.price { font-size: 32px; font-weight: 800; color: var(--primary); }
@media (max-width: 900px) { .pricing .rows { grid-template-columns: 1fr; } }

/* =========================================
   Gallery
   ========================================= */
.gallery .grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { border-radius: 12px; border: 1px solid var(--border);}
@media (max-width: 900px) { .gallery .grid { grid-template-columns: 1fr; } }

/* =========================================
   Appointment (contact form)
   ========================================= */
.appointment form {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: grid; gap: 14px;
}
.input { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .row-2 { grid-template-columns: 1fr; } }
.appointment form button { justify-self: start; }

/* =========================================
   Footer
   ========================================= */
.footer { background: #0E1A24; color: #C8D3DC; padding: 38px 0; margin-top: 40px; }
.footer a { color: #C8D3DC; }
.footer .cols { display:grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr; } }
.small { font-size: 14px; color: var(--muted); }

/* Ascunde formularul vechi de pe Home */
#programari.section.appointment { display: none !important; }
