/* ====== Design System (Light Theme) ====== */
:root {
  --bg: #ffffff;
  --surface: #f7f9fc;
  --card: #ffffff;
  --muted: #5f6576;
  --text: #1b1f29;
  --brand: #143057;   /* navy din logo */
  --brand-2: #2b6cff; /* accent albastru */
  --glass: rgba(20,48,87,.06);
  --radius: 18px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

* { box-sizing: border-box }
html, body { height:100% }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  margin:0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;   /* Safari/Chrome */
  -moz-osx-font-smoothing: grayscale;    /* Firefox macOS */
  font-synthesis-weight: none;
  font-synthesis-style: none;
  padding-top: 84px;
}

/* ====== Layout ====== */
.container { width:min(1120px, 92vw); margin-inline:auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -.02em;
  margin: 0 0 8px;
  color: var(--brand);
}
.muted { color: var(--muted) }
.lead { font-size: clamp(16px, 2.2vw, 18px); color: var(--muted); }

/* ====== Header / Nav ====== */
.site-header{
  position: fixed;   
  top: 0;
  left: 0;
  right: 0;          
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 20px; padding: 16px 0;
}

/* brand (doar text în nav) */
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; min-width:0; }
.brand-text{ display:flex; flex-direction:column; }
.brand-text strong{
  font-weight:800; letter-spacing:-.02em; color: var(--brand);
  font-size: 1.2rem;
}
.brand-text em{ font-style: normal; font-weight:500; color: var(--muted); font-size: 13px; }

.site-nav ul{ display:flex; gap:10px; list-style:none; padding:0; margin:0 }
.nav-link{
  display:inline-block; padding:10px 14px; border-radius: 999px;
  color: var(--brand); text-decoration:none; font-weight:600;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.nav-link:hover{ transform: translateY(-1px); background: var(--glass); }
.nav-link.is-active{
  background: linear-gradient(90deg, var(--brand-2), #6da0ff); color:white;
  box-shadow: 0 6px 20px rgba(43,108,255,.35)
}

.nav-toggle{ display:none; width:42px; height:42px; border:0; border-radius:10px; background: var(--glass); color:var(--brand); cursor:pointer }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--brand); margin:6px auto; border-radius:2px; transition:.3s }

/* underline accent */
.header-underline{
  height:2px; background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  opacity:.25
}

/* ====== Hero ====== */
.wavy-line {
  width: 140px;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M0 10 Q 25 0, 50 10 T 100 10 T 150 10 T 200 10' fill='none' stroke='%232b6cff' stroke-width='3' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: contain;
  margin: 12px 0 22px;
}

.hero{ padding-top: 120px }
.hero-grid{
  display:grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items:center;
}
.hero-copy h1{
  margin: 12px 0 14px;
  font-size: clamp(34px, 6.2vw, 54px);
  line-height: 1.05; letter-spacing:-.02em;
}
.hero-copy .accent{
  background: linear-gradient(90deg, var(--brand-2), #6da0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow{ color: var(--brand); text-transform:uppercase; letter-spacing:.2em; font-weight:700; font-size:12px }
.cta-wrap{ display:flex; gap:12px; margin:20px 0 24px }

/* Logo mare în Hero */
.hero-logo {
  max-width: 240px;
  height: auto;
  margin-bottom: 24px;
  display: block;
  padding: 12px;
  background: #fff;
  border-radius: 22px;
  border: 3px solid transparent;
  background-image: linear-gradient(white, white),
    linear-gradient(135deg, var(--brand-2), #6da0ff, #2b6cff);
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 8px 22px rgba(43,108,255,.25);
}

.btn{
  --pad: 12px 18px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; display:inline-flex; align-items:center; gap:10px; cursor:pointer
}
.btn-primary{
  background: linear-gradient(180deg, var(--brand-2), #1e56cc);
  box-shadow: 0 10px 28px rgba(43,108,255,.25);
  color: white;
}
.btn-primary:hover{ transform: translateY(-1px) }
.btn-ghost{
  background: transparent; color: var(--brand); border-color: rgba(20,48,87,.25);
}
.btn-ghost:hover{ background: rgba(43,108,255,.06) }

.trustbar{ display:flex; gap:18px; list-style:none; padding:0; margin: 8px 0 0; color:var(--muted) }
.trustbar strong{ font-size:22px; color: var(--brand) }

/* Containerul pentru portret */
.hero-visual{
  position: relative;
  aspect-ratio: 3 / 4;          /* portret */
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(20,48,87,.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

/* Scroll cue */
.scroll-down{
  position:absolute; left:50%; translate:-50% 0; bottom: 18px; color:var(--muted); text-decoration:none; font-weight:600
}
.scroll-down .mouse{
  display:inline-block; width:20px; height:30px; border:2px solid var(--muted); border-radius:12px; margin-right:8px; position:relative
}
.scroll-down .mouse::after{
  content:""; width:3px; height:6px; background:var(--muted); position:absolute; left:50%; top:6px; translate:-50% 0; border-radius:2px; animation: wheel 1.6s ease-in-out infinite
}
@keyframes wheel{
  0%{ transform: translateY(0) } 60%{ transform: translateY(8px) } 100%{ transform: translateY(0) }
}

/* =====================================================
   PROBLEME & SOLUȚII — heading modern + soluția mea + cards
   ===================================================== */

/* Secțiune */
.problems { background: #f7f5f2; }

/* H2 "Probleme & Soluții" — font modern, gradient + underline */
.problems .section-head h2{
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(22px, 3vw, 32px);

  background: linear-gradient(90deg, var(--brand-2), #6da0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 2px 6px rgba(43,108,255,.16);
}
.problems .section-head h2::after{
  content:"";
  display:block;
  width: clamp(140px, 18vw, 220px);
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43,108,255,.18), rgba(43,108,255,.9), rgba(43,108,255,.18));
  filter: blur(.3px);
}
/* Subtitlu aerisit */
.problems .section-head .muted{
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}

/* ===== Probleme din piață (grid + carduri) ===== */
.problems-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.6vw, 22px);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.prob-card{
  background: var(--card);
  border: 1px solid rgba(20,48,87,.08);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 22px);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.prob-card:hover{
  transform: translateY(-4px);
  border-color: var(--brand-2);
  box-shadow: 0 16px 40px rgba(43,108,255,.18);
}
.prob-icon{ font-size: 28px; line-height: 1; margin-bottom: 8px }
.prob-card h3{
  margin: 0 0 10px;
  color: var(--brand);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

/* ===== Soluția mea – premium, airy & responsive ===== */
.solutions-grid{
  max-width: 1100px;
  margin-inline: auto;
  margin-top: clamp(18px, 3vw, 26px);
}

/* H3 "Soluția mea" — modern, dar discret față de H2 */
.sol-head h3{
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  margin: 0 0 10px;
  font-weight: 800;
  font-size: clamp(22px, 2.8vw, 28px);
  letter-spacing: -0.01em;
  color: var(--brand);
  position: relative;
}
.sol-head h3::after{
  content:"";
  display:block;
  width: clamp(110px, 14vw, 160px);
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43,108,255,.14), rgba(43,108,255,.55), rgba(43,108,255,.14));
}
.sol-head .muted{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
}

/* Grid responsiv pentru item-uri */
.sol-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* Card cu “gradient border” + shadow fin */
.sol-item{
  position: relative;
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(43,108,255,.35), rgba(157,184,255,.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sol-item:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(43,108,255,.18);
  border-color: transparent; /* păstrăm gradientul de border */
}

/* Icon pill */
.sol-icon{
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 10px;
  color: #fff;
}
.sol-icon svg{ width: 24px; height: 24px; }

/* Titlu + text din card */
.sol-item h4{
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  margin: 0 0 6px;
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--brand);
  letter-spacing: -.005em;
}
.sol-item p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Accente cromatice pe item */
.accent-blue   .sol-icon{ background: linear-gradient(135deg, #6aa7ff, #2b6cff); }
.accent-red    .sol-icon{ background: linear-gradient(135deg, #ff9aa8, #ff6b81); }
.accent-indigo .sol-icon{ background: linear-gradient(135deg, #9da8ff, #5b61f0); }
.accent-amber  .sol-icon{ background: linear-gradient(135deg, #ffd48a, #f3b24e); }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .problems-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .problems .section-head h2{ margin-bottom: 26px; }
  .sol-head h3{ margin-bottom: 10px; }
  .sol-head h3::after{ width: 140px; }
}

/* =========================================================
   ===  PROCESS (Timeline) — Modern, Big, Airy, Animated  ===
   ========================================================= */

/* Titlu & subtitlu speciale (header secțiune) */
.fancy-head h2{
  margin: 0 0 10px;
  font-size: clamp(36px, 5.2vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--brand);
}
.fancy-head h2 span{
  background: linear-gradient(90deg, var(--brand-2), #6da0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fancy-head h2::after{
  content:""; display:block; width: clamp(140px, 18vw, 220px); height: 8px; margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43,108,255,.18), rgba(43,108,255,.9), rgba(43,108,255,.18));
  filter: blur(.3px);
}
.fancy-head .subhead{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 14px);
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .92;
}

/* Timeline coloană + spațiere pași */
.process .timeline{
  list-style: none; padding: 0; margin: 0; position: relative;
}
.process .timeline::before{
  content:""; position:absolute; left: 18px; top:0; bottom:0; width:2px;
  background: linear-gradient(
    to bottom,
    rgba(43,108,255,.38) 0%,
    rgba(20,48,87,.14) 25%,
    rgba(20,48,87,.14) 75%,
    rgba(43,108,255,.38) 100%
  );
}
.process .tl-item{
  position: relative;
  padding-left: 56px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* Dots + conector (animă DOAR când item-ul e vizibil) */
.process .tl-dot{
  position:absolute; left: 13px; top:.45rem;
  width: 12px; height: 12px; border-radius:50%;
  background: rgba(43,108,255,.65);
  box-shadow: 0 0 0 3px rgba(43,108,255,.10);
  transform: scale(.9);
  opacity: .7;
}
.process .tl-item::after{
  content:""; position:absolute; left: 24px; top: 26px; height: 2px; width: 0;
  background: linear-gradient(90deg, #2b6cff, rgba(43,108,255,0));
  border-radius: 2px;
}
.process .tl-item.is-visible .tl-dot,
.process .tl-item:has(.tl-card.is-visible) .tl-dot{
  opacity: 1;
  animation: pulse .9s ease-out both, ring 1.1s .05s ease-out;
  transform: scale(1);
  box-shadow: 0 0 0 5px rgba(43,108,255,.16), 0 10px 26px rgba(43,108,255,.30);
}
.process .tl-item.is-visible::after,
.process .tl-item:has(.tl-card.is-visible)::after{
  animation: growline .55s ease-out forwards;
}

/* Carduri premium + accent bar */
.process .tl-card{
  position: relative;
  padding: clamp(22px, 3.2vw, 36px) clamp(22px, 3.6vw, 40px);
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  border: 1px solid rgba(20,48,87,.10);
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.process .tl-card::before{
  content:""; position:absolute; left:-8px; top:0; bottom:0; width:8px;
  background: var(--_accent, var(--brand-2));
  border-top-left-radius: 22px; border-bottom-left-radius: 22px;
  opacity:.95;
}
.process .tl-card::after{
  content:""; position:absolute; inset:-25% -35% auto auto; height: 170%;
  background: radial-gradient(160px 140px at 70% 12%, rgba(255,255,255,.85), transparent 60%);
  transform: rotate(-12deg);
  pointer-events:none; opacity:.45;
}
.process .tl-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 28px 72px rgba(43,108,255,.20);
  border-color: rgba(43,108,255,.24);
}

/* Header card: icon pill + titlu */
.process .tl-head{ display:flex; align-items:center; gap:14px; margin-bottom:10px; }
.process .tl-ico{
  width: clamp(42px, 3.8vw, 54px); height: clamp(42px, 3.8vw, 54px);
  display:grid; place-items:center; border-radius:14px; color:#fff;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,.10);
}
.process .tl-ico svg{ width: clamp(22px, 2.2vw, 26px); height: clamp(22px, 2.2vw, 26px) }
.process .tl-card h3{
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -.01em; color: var(--brand);
}
.process .tl-card p{
  margin: 6px 0 0;
  font-size: clamp(17px, 2.1vw, 19px);
  line-height: 1.85;
  color: var(--text);
  opacity: .98;
}

/* Accente cromatice per card */
.process .accent-blue   { --_accent: linear-gradient(135deg,#6aa7ff,#2b6cff); }
.process .accent-indigo { --_accent: linear-gradient(135deg,#9da8ff,#5b61f0); }
.process .accent-amber  { --_accent: linear-gradient(135deg,#ffd48a,#f3b24e); }
.process .accent-red    { --_accent: linear-gradient(135deg,#ff9aa8,#ff6b81); }
.process .accent-blue   .tl-ico{ background: linear-gradient(135deg,#6aa7ff,#2b6cff); }
.process .accent-indigo .tl-ico{ background: linear-gradient(135deg,#9da8ff,#5b61f0); }
.process .accent-amber  .tl-ico{ background: linear-gradient(135deg,#ffd48a,#f3b24e); }
.process .accent-red    .tl-ico{ background: linear-gradient(135deg,#ff9aa8,#ff6b81); }

/* Intrare la scroll (folosește .is-visible din script) */
.process .tl-card[data-reveal]{ opacity:0; transform: translateY(14px) scale(.995) }
.process .tl-card.is-visible{
  opacity:1; transform: none;
  transition: opacity .45s ease, transform .45s ease;
}

/* Nota de jos — mare, aerisită, modernă */
.pro-tip{
  --note-accent: linear-gradient(135deg, #6aa7ff, #2b6cff);

  margin: clamp(26px, 4vw, 44px) auto 0;
  padding: clamp(22px, 3.4vw, 38px) clamp(22px, 3.8vw, 44px);
  max-width: min(980px, 92vw);

  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(43,108,255,.25), rgba(157,184,255,.38)) border-box;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(43,108,255,.12);

  color: var(--text);
  position: relative;
}
.pro-tip::before{
  content: "i";
  position: absolute;
  left: clamp(16px, 2.6vw, 22px);
  top: clamp(14px, 2.6vw, 22px);
  width: clamp(36px, 4.4vw, 44px);
  height: clamp(36px, 4.4vw, 44px);
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--note-accent);
  color: #fff;
  font-weight: 800;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1;
  box-shadow: 0 8px 24px rgba(43,108,255,.28), inset 0 -10px 20px rgba(0,0,0,.08);
}
.pro-tip p{
  margin: clamp(8px, 1.2vw, 12px) 0 0 clamp(60px, 7vw, 74px);
  font-size: clamp(17.5px, 2.1vw, 20px);
  line-height: 1.95;
  letter-spacing: .005em;
  color: var(--text);
}
.pro-tip p + p{ margin-top: clamp(10px, 1.8vw, 16px); }

/* =====================================================
   BENEFICII — titlu modern + layout cu imagine & carduri
   ===================================================== */

/* TITLU SECȚIUNE — gradient + underline + spațiu mai mare dedesubt */
#beneficii .section-title,
#beneficii .section-head h2{
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(22px, 3vw, 32px);

  background: linear-gradient(90deg, var(--brand-2), #6da0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 2px 6px rgba(43,108,255,.16);
}

#beneficii .section-title::after,
#beneficii .section-head h2::after{
  content:"";
  display:block;
  width: clamp(140px, 18vw, 220px);
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43,108,255,.18), rgba(43,108,255,.9), rgba(43,108,255,.18));
  filter: blur(.3px);
}

/* subtitlu / text secundar */
#beneficii .section-subtitle,
#beneficii .section-head .muted{
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}

/* HEAD cu IMAGINE — gap mai mare până la carduri */
.benefits-head{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: clamp(16px, 4vw, 36px);
  align-items:center;
  margin-bottom: clamp(36px, 6vw, 60px);
}
.benefits-head__media{ margin:0; }
.benefits-hero{
  width:100%;
  height:auto;
  display:block;
  border-radius: 22px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* GRID CARDURI */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3.4vw, 28px);
  margin-top: clamp(12px, 2vw, 20px);
}
.cards-grid.cards-grid--three{ grid-template-columns: repeat(3, 1fr); }

/* CARD + RIBBON */
.card{
  background: var(--card);
  border:1px solid rgba(20,48,87,.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.8vw, 28px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.card:hover{
  transform: translateY(-4px);
  border-color: var(--brand-2);
  box-shadow: 0 16px 40px rgba(43,108,255,.18);
}
.card h3{
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  margin: 6px 0 10px;
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.35;
  color: var(--brand);
}
.card p{
  margin:0;
  color: var(--text);
  opacity:.94;
  line-height: 1.6;
}

/* RIBBON */
.ribbon .card__ribbon{
  position:absolute;
  top:0; left:0;
  transform: translateY(-46%);
  background: linear-gradient(135deg, var(--brand-2), #6da0ff);
  color:#fff;
  padding:10px 14px;
  border-radius:14px;
  box-shadow: 0 8px 18px rgba(43,108,255,.28);
  display:inline-flex; align-items:center; justify-content:center;
  z-index: 1;
}
.ribbon .card__ribbon svg{
  display:block; width:22px; height:22px;
}

/* FOOTNOTE */
#beneficii .section-footnote{
  margin-top: clamp(30px, 4vw, 48px);
  text-align: center;
  font-size: clamp(15px, 1.9vw, 17px);
  color: var(--muted);
  max-width: 900px;
  margin-inline: auto;
}

/* RESPONSIVE */
@media (max-width: 1024px){
  .benefits-head{ grid-template-columns: 1fr; }
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cards-grid--three{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .cards-grid,
  .cards-grid.cards-grid--three{ grid-template-columns: 1fr; }

  .ribbon .card__ribbon{
    left: 8px;
    transform: translateY(-52%);
  }

  .benefits-head{ margin-bottom: 52px; }
  #beneficii .section-footnote{ margin-top: 46px; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce){
  .card{ transition: none; }
}


/* =====================================================
   PROIECTE — grid responsive cu carduri foto & video
   ===================================================== */

.projects .section-head h2{
  font-family: "Plus Jakarta Sans","Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(18px, 2.6vw, 22px);
  color: var(--brand);
}
.projects .section-head h2::after{
  content:"";
  display:block;
  width: clamp(140px, 18vw, 220px);
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43,108,255,.18), rgba(43,108,255,.9), rgba(43,108,255,.18));
  filter: blur(.3px);
}
.projects .section-head .muted{
  font-size: clamp(15px, 2.1vw, 17px);
  color: var(--muted);
  margin: 0;
}

/* Grid general (folosim 12 coloane pentru flexibilitate) */
.projects .card-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 16px);
}

/* Card generic (foto / video) */
.projects .work-card{
  grid-column: span 6;                     /* 2 pe rând pe ecrane medii/mari */
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(20,48,87,.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 100%;
}
.projects .work-card:hover{
  transform: translateY(-6px);
  border-color: var(--brand-2);
  box-shadow: 0 18px 44px rgba(43,108,255,.2);
}

/* Container media cu aspect 16:9 */
.projects .work-card .thumb{
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2ff; /* fallback subtil pentru încărcare */
}

/* Imagini & video — fill + animație la hover */
.projects .work-card img,
.projects .work-card video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .6s ease;
  border: 0;
}
.projects .work-card:hover img,
.projects .work-card:hover video{
  transform: scale(1.06);
}

/* Eliminăm spațiul de body (nu avem descrieri) */
.projects .work-card .work-body{ display: none; }

/* Nota „…lista continuă” din subsolul secțiunii */
.projects .section-footnote{
  text-align: center;
  margin-top: clamp(24px, 4vw, 36px);
  font-size: clamp(14.5px, 1.8vw, 16px);
  color: var(--muted);
}

/* ======= Responsive ======= */

/* Large screens: 3 pe rând (span 4) pentru grile mai dense */
@media (min-width: 1041px) and (max-width: 1320px){
  .projects .work-card{ grid-column: span 4; }
}
/* >=1440px: container-ul general se lărgește în restul site-ului,
   dar păstrăm densitatea implicită (2–3 pe rând în funcție de ecran) */

/* <=980px: rămân 2 pe rând (span 6) — deja setat implicit */

/* <=740px: 1 pe rând (span 12) */
@media (max-width: 740px){
  .projects .work-card{ grid-column: span 12; }
}

/* <=560px: ajustări fine pentru mobil mic */
@media (max-width: 560px){
  .projects .card-grid{ gap: 12px; }
  .projects .work-card{ border-radius: 18px; }
}

/* Respectă preferința „reduced motion” a utilizatorului */
@media (prefers-reduced-motion: reduce){
  .projects .work-card,
  .projects .work-card img,
  .projects .work-card video{
    transition: none !important;
  }
}

/* =========================
   CONTACT — SCOPED pe #contact-section
   (fix overflow + responsive beton)
   ========================= */

#contact-section {
  isolation: isolate; /* păstrăm izolarea fără contain:paint/layout */
  --brand:#143057;
  --accent:#2b6cff;
  --surface:#fff;
  --text:#0f172a;
  --muted:#64748b;
}
#contact-section * { box-sizing: border-box }

/* Container + titluri */
#contact-section .container { max-width:1100px; margin:0 auto; padding:40px 16px; overflow: visible; }

/* TITLU — în același stil cu restul (gradient + underline) */
#contact-section .section-title{
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(22px, 3vw, 32px);

  background: linear-gradient(90deg, var(--brand-2), #6da0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 2px 6px rgba(43,108,255,.16);
}
#contact-section .section-title::after{
  content:"";
  display:block;
  width: clamp(140px, 18vw, 220px);
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(43,108,255,.18), rgba(43,108,255,.9), rgba(43,108,255,.18));
  filter: blur(.3px);
}

#contact-section .section-subtitle { color:var(--muted); margin:0 0 20px 0 }

/* Grid principal (minmax(0,…) = previne overflow orizontal) */
#contact-section .contact-grid{
  display:grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap:24px;
}
@media (max-width:980px){
  #contact-section .contact-grid{ grid-template-columns: minmax(0,1fr); }
}

/* Card comun */
#contact-section .contact-form,
#contact-section .contact-aside .card{
  background:var(--surface);
  border:1px solid rgba(20,48,87,.08);
  border-radius:16px;
  padding:22px;
  box-shadow:0 12px 28px rgba(2,8,20,.06);
}
#contact-section .contact-aside .card{ margin-bottom:18px }
#contact-section .shadow{ box-shadow:0 12px 28px rgba(2,8,20,.06) }
#contact-section .card-title{ margin:0 0 10px 0; font-size:1.05rem; color:var(--brand) }

/* -------- Formular -------- */
#contact-section .contact-form{ display:block }
#contact-section .field{ display:flex; flex-direction:column; gap:8px; margin-bottom:14px; min-width:0; }
#contact-section label{ font-weight:700; color:var(--brand) }

#contact-section input,
#contact-section select,
#contact-section textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(20,48,87,.14);
  background:#fff; color:var(--text);
  outline:none;
  transition:border-color .25s ease, box-shadow .25s ease, transform .05s ease;
  font-size:16px; /* evită zoom iOS */
  min-width:0;   /* previne lărgirea câmpurilor în grid/flex */
}
#contact-section input:focus,
#contact-section select:focus,
#contact-section textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(43,108,255,.18);
}
#contact-section textarea{ resize:vertical }

/* Buton + notă */
#contact-section .btn.primary{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 18px; border-radius:12px; font-weight:700; cursor:pointer; letter-spacing:.2px;
  border:1px solid transparent; background:linear-gradient(90deg, var(--accent), #6da0ff);
  color:#fff; transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
#contact-section .btn.primary:hover{ transform:translateY(-1px); box-shadow:0 14px 28px rgba(43,108,255,.25) }
#contact-section .btn.primary:active{ transform:none; opacity:.9 }
#contact-section .form-note{ margin-top:12px; color:var(--brand) }
#contact-section .link-underline{ text-decoration:underline; text-underline-offset:3px }

/* Formular responsive: 2 coloane ≥720px (fără overflow) */
@media (min-width:720px){
  #contact-section .contact-form{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px 16px;
  }

  /* full width default */
  #contact-section .contact-form .field,
  #contact-section .contact-form .btn.primary,
  #contact-section .contact-form .form-note{ grid-column:1 / -1; }

  /* câmpuri scurte în două coloane */
  #contact-section .contact-form .field:has(> #nume),
  #contact-section .contact-form .field:has(> #email),
  #contact-section .contact-form .field:has(> #telefon),
  #contact-section .contact-form .field:has(> #subiect){ grid-column:auto; }

  /* textarea + checkbox rămân full */
  #contact-section .contact-form .field:has(> #mesaj),
  #contact-section .contact-form .field:has(> #acord){ grid-column:1 / -1; }

  #contact-section .contact-form .btn.primary{ justify-self:start; min-width:180px; }
}

/* ≤480px: buton full */
@media (max-width:480px){
  #contact-section .contact-form .btn.primary{ width:100%; }
}

/* -------- Smart chips -------- */
#contact-section .smart-chip{
  display:flex; align-items:center; gap:14px; padding:12px; border-radius:14px;
  border:1px solid rgba(20,48,87,.10);
  background:linear-gradient(180deg,#ffffff,#f9fbff);
  transition:border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  margin-bottom:12px;
}
#contact-section .smart-chip:hover{ border-color:rgba(43,108,255,.5); box-shadow:0 10px 24px rgba(43,108,255,.12); transform:translateY(-1px) }

#contact-section .chip-icon{
  width:40px; height:40px; border-radius:12px; display:grid; place-items:center; flex:0 0 40px;
  background:#eef2ff; color:var(--accent);
}
#contact-section .chip-icon svg{ width:22px; height:22px }

/* Conținut + etichetă */
#contact-section .chip-content{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
#contact-section .chip-label{
  font-size:.78rem; letter-spacing:.02em; color:var(--muted);
  white-space:nowrap;
}

/* VALOARE — pe un singur rând, cursiv, aerisit */
#contact-section .chip-value{
  display:inline-block;
  font-weight:700;
  font-style: italic;        /* scris cursiv */
  color:var(--text);
  text-decoration:none;

  white-space:nowrap;        /* NU se rupe pe 2-3 rânduri */
  overflow:hidden;
  text-overflow:ellipsis;    /* dacă nu încape pe mobil, pune … frumos */
  max-width:100%;
}
#contact-section .chip-value:hover{ text-decoration:underline; text-underline-offset:3px }

/* Acțiuni */
#contact-section .chip-actions{
  margin-left:auto; display:flex; gap:8px; align-items:center;
  flex-wrap:wrap; /* wrap pe mobil ca să nu împingă layout-ul */
  min-width:0;
}
#contact-section .chip-btn{
  height:34px; padding:0 12px; border-radius:10px; font-weight:700; font-size:.9rem; cursor:pointer;
  border:1px solid rgba(43,108,255,.35); background:#fff; color:var(--accent);
  transition:background .2s ease, color .2s ease, transform .05s ease, box-shadow .2s ease;
  text-decoration:none; display:inline-grid; place-items:center; white-space:nowrap;
}
#contact-section .chip-btn:hover{ background:linear-gradient(90deg, var(--accent), #6da0ff); color:#fff; box-shadow:0 10px 22px rgba(43,108,255,.22) }
#contact-section .chip-btn:active{ transform:translateY(1px) }
#contact-section .chip-btn.ghost{ border-color:rgba(43,108,255,.25); opacity:.9 }

/* -------- Preferințe -------- */
#contact-section .pref-line{ margin:6px 0 0 0; color:var(--text) }
#contact-section .pref-badge{
  display:inline-flex; align-items:center; gap:8px; font-weight:800;
  padding:6px 10px; border-radius:999px; font-size:.85rem;
  background:#25D36620; color:#1a7f44; border:1px solid #1a7f4433;
}

/* -------- Socials -------- */
#contact-section .socials .social-row{ display:flex; gap:10px; flex-wrap:wrap; }
#contact-section .socials .social{
  width:40px; height:40px; display:grid; place-items:center; border-radius:12px; text-decoration:none; font-weight:800;
  background:#fff; color:var(--brand); border:1px solid rgba(20,48,87,.12);
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
#contact-section .socials .social:hover{ transform:translateY(-1px); box-shadow:0 12px 26px rgba(2,8,20,.10) }
#contact-section .socials .social.in:hover{ background:#0a66c2; color:#fff; border-color:transparent }
#contact-section .socials .social.fb:hover{ background:#1877f2; color:#fff; border-color:transparent }
#contact-section .socials .social.wa:hover{ background:#25D366; color:#fff; border-color:transparent }

/* -------- A11y -------- */
#contact-section .sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}




#contact-section .form-note a strong {
  color: var(--brand-2);
  font-weight: 700;
}
#contact-section .form-note a:hover strong {
  text-decoration: underline;
}

.pref-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .85rem;
  background: #25D36620;
  color: #1a7f44;
  border: 1px solid #1a7f4433;
  text-decoration: none; /* important pentru link */
  transition: background .2s ease, color .2s ease;
}
.pref-badge:hover {
  background: #25D366;
  color: #fff;
  border-color: transparent;
}



/* ===== Fallback fără :has() =====
   În HTML pune class="half" pe Nume/Email/Telefon/Subiect
   și decomentează:
*/
/*
@media (min-width:720px){
  #contact-section .contact-form{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; }
  #contact-section .contact-form .field,
  #contact-section .contact-form .btn.primary,
  #contact-section .contact-form .form-note{ grid-column:1/-1; }
  #contact-section .contact-form .field.half{ grid-column:auto; }
}
*/

/* ====== Footer ====== */
.site-footer{
  padding: 24px 0;
  border-top:1px solid rgba(20,48,87,.1);
  background: var(--surface);
  color: var(--muted);
  text-align: center; /* centrare implicită */
}
.foot-inner{
  display:flex;
  flex-direction: column; /* pe verticală by default */
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.foot-left p{
  margin: 4px 0;
}
.credits a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.credits a:hover{
  text-decoration: underline;
}
.to-top{
  color: var(--brand);
  text-decoration:none;
  border:1px solid rgba(20,48,87,.2);
  padding:6px 10px;
  border-radius:999px;
}
.to-top:hover{
  background: rgba(43,108,255,.06);
}

/* layout adaptiv */
@media (min-width: 741px){
  .foot-inner{
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.foot-links a:hover {
  color: var(--brand-2);
  text-decoration: underline;
}
@media (min-width: 741px) {
  .foot-links {
    justify-content: flex-start;
  }
}






/* ==== Responsive breakpoints ==== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr }
  .sol-grid{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 860px){
  .nav-toggle{ display:block }
  .site-nav{
    position: fixed; inset: 70px 16px auto; background: #fff;
    border:1px solid rgba(20,48,87,.08); border-radius:16px; padding:10px;
    transform: scale(.98) translateY(-10px); opacity:0; pointer-events:none; transition:.28s
  }
  .site-nav.open{ transform: none; opacity:1; pointer-events:auto }
  .site-nav ul{ display:grid; gap:8px }
  .nav-link{ padding:12px 14px; font-size:16px }
  .problems-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 740px){
  .trustbar{ flex-wrap: wrap }
  .brand-text{ max-width: 52vw; overflow:hidden; white-space:nowrap; text-overflow: ellipsis; }
  .brand-text em{ display:none; }
  .hero-logo{ max-width: 180px; margin-inline:auto; }
  .hero{ padding-top: 96px }
  .cta-wrap{ flex-wrap: wrap }
  .benefit-card, .work-card{ grid-column: span 12 }
}

@media (max-width: 560px){
  html{ scroll-padding-top: 74px; }
  .header-inner{ padding: 12px 0 }
  .section{ padding: 56px 0 }
  .hero-copy h1{ font-size: clamp(28px, 9vw, 38px) }
  .lead{ font-size: 15px }
  .btn{ --pad: 10px 14px; }
  .work-body h3{ font-size: 18px }
  .contact-aside .card{ padding:14px }
  .foot-inner{ flex-direction: column; gap: 8px }
   body { padding-top: 74px; }

  /* Pro-tip: pe mobil, și mai aerisit între paragrafe */
  .pro-tip{ padding: 22px 20px; border-radius: 20px; }
  .pro-tip::before{ left: 14px; top: 14px; width: 38px; height: 38px; font-size: 16px; }
  .pro-tip p{ margin-left: 58px; font-size: 18px; line-height: 2; }
  .pro-tip p + p{ margin-top: 26px; }
}

/* Large & very large screens */
@media (min-width: 1041px) and (max-width: 1320px){
  .card-grid{ grid-template-columns: repeat(12, 1fr); }
  .work-card{ grid-column: span 4 }
}
@media (min-width: 1440px){
  .container{ width: min(1280px, 86vw); }
}

/* Safe-area pentru iOS */
@supports (padding: max(0px)) {
  .site-header { padding-top: max(0px, env(safe-area-inset-top)); }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ====== Keyframes (timeline dots) ====== */
@keyframes pulse{
  0%{ transform: scale(.85); box-shadow: 0 0 0 0 rgba(43,108,255,.0) }
  50%{ transform: scale(1.18) }
  100%{ transform: scale(1) }
}
@keyframes ring{
  0%{ outline: 0 solid rgba(43,108,255,.0) }
  70%{ outline: 12px solid rgba(43,108,255,.16) }
  100%{ outline: 0 solid rgba(43,108,255,.0) }
}
@keyframes growline{
  from{ width: 0 }
  to{ width: 36px }
}


/* ====== Logo în navbar ====== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px; /* spațiu între logo și text */
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  height: clamp(28px, 4vw, 44px);
  width: auto;
  display: block;

  /* Colțuri rotunjite */
  border-radius: 12px; /* schimbă în 50% pentru cerc complet */
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Numele principal */
.brand-text strong {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 800; /* foarte bold */
  font-size: clamp(18px, 2.6vw, 22px);
  letter-spacing: -0.02em;

  /* Gradient albastru mai închis */
  background: linear-gradient(90deg, #143057, #2b6cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* umbră discretă */
  text-shadow: 0 2px 6px rgba(20,48,87,.2);
}

/* Subtitlul */
.brand-text em {
  font-size: clamp(12px, 1.6vw, 14px);
  font-style: normal;
  color: var(--muted, #64748b);
}

/* === Responsivitate pe ecrane foarte mici === */
@media (max-width: 420px) {
  .brand-text em {
    display: none;
  }
}


/* ===== Back to Top ===== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--brand-2, #2b6cff);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);

  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.92);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#backToTop:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

@media (max-width: 480px) {
  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 14px;
    right: 14px;
  }
}
