/* ==========================================================================
   GoMergi — foaie de stil comună (RO / EN / DE)
   Paletă și tipografie identice cu aplicația mobilă
   (vezi mobile/src/theme/colors.ts și docs/brand/brand-guide.md)
   ========================================================================== */

:root {
  --navy: #0A2540;
  --blue: #1E88E5;
  --green: #22C55E;
  --light-gray: #F2F5F8;
  --white: #FFFFFF;
  --dark-gray: #485563;
  --border: #E2E8F0;

  --gradient-brand: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.16);

  --container: 1160px;
}

html, body {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}
*, *::before, *::after { box-sizing: border-box; }


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--dark-gray); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
.section-alt { background: var(--light-gray); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(30, 136, 229, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #1ea34f; box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Logo (pin CSS, fără fișier imagine — încarcă rapid) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}
.brand .pin {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: var(--gradient-brand);
  transform: rotate(-45deg);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand .pin svg {
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
  padding: 9px 9px 12px 7px;
}
.brand .wordmark .go { color: var(--blue); }
.brand .wordmark .mergi { color: var(--green); }
.brand.on-dark .wordmark { color: var(--white); }
.brand.on-dark .wordmark .go { color: #8FCBFF; }
.brand.on-dark .wordmark .mergi { color: #7FE3A8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; max-width: 100%; }

.header-link {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 4px;
}
.header-link:hover { color: var(--blue); text-decoration: none; }


.lang-switch { position: relative; display: inline-block; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: var(--blue); }
.lang-switch .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  overflow: hidden;
  padding: 6px;
}
.lang-switch .menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}
.lang-switch .menu a:hover { background: var(--light-gray); text-decoration: none; }
.lang-switch .menu a[aria-current="true"] { color: var(--blue); font-weight: 700; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 100px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(34, 197, 94, 0.35), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(30, 136, 229, 0.35), transparent 60%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-copy .eyebrow {
  background: rgba(255,255,255,0.12);
  color: #A7E8C0;
}
.hero h1 { color: var(--white); }
.hero-copy p.lead {
  color: #C9D6E4;
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-cta .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.hero-cta .btn-outline:hover { border-color: var(--white); color: var(--white); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.trust-row .item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #DCE6F0;
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-row .item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green); }

/* ---------- Mockup vizual (fără screenshot-uri reale — schiță CSS a ecranelor) ---------- */
.phone-stack { position: relative; display: flex; justify-content: center; }
.phone {
  width: 250px;
  background: var(--white);
  border-radius: 32px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--navy);
}
.phone.secondary {
  position: absolute;
  width: 200px;
  right: -30px;
  bottom: -50px;
  transform: rotate(6deg);
  z-index: 1;
  opacity: 0.97;
}
.phone .screen {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 16px 14px;
  min-height: 340px;
}
.phone .screen .app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.phone .screen .app-bar .dot {
  width: 20px; height: 20px; border-radius: 50% 50% 50% 0;
  background: var(--gradient-brand); transform: rotate(-45deg);
}
.phone .field {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.72rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
}
.phone .field b { color: var(--navy); }
.phone .go-btn {
  background: var(--green);
  color: var(--white);
  text-align: center;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 6px 0 14px;
}
.phone .ride-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}
.phone .ride-card .route { font-size: 0.72rem; font-weight: 700; color: var(--navy); }
.phone .ride-card .meta { font-size: 0.65rem; color: var(--dark-gray); display:flex; justify-content: space-between; margin-top: 4px;}
.phone .ride-card .price { color: var(--green); font-weight: 700; }

/* ---------- Grid funcționalități ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.92rem; }
.feature-card.soon { position: relative; opacity: 0.8; }
.badge-soon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(30,136,229,0.1);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---------- Pași (cum funcționează) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin: 0; }

/* ---------- Siguranță ---------- */
.safety {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.safety-list li { display: flex; gap: 16px; align-items: flex-start; }
.safety-list .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.safety-list .icon svg { width: 22px; height: 22px; }
.safety-list h3 { margin-bottom: 4px; font-size: 1rem; }
.safety-list p { margin: 0; font-size: 0.9rem; }
.safety-visual {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.safety-visual svg { width: 55%; color: rgba(255,255,255,0.92); }

/* ---------- Despre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.stat-row { display: flex; gap: 40px; margin-top: 28px; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-size: 1.8rem; color: var(--navy); }
.stat-row .stat span { font-size: 0.85rem; color: var(--dark-gray); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 24px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.15s ease; flex-shrink: 0; color: var(--blue); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { padding-bottom: 20px; margin: 0; }

/* ---------- CTA final / descarcă ---------- */
.cta-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, rgba(34,197,94,0.25), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C9D6E4; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 10px 18px;
  color: var(--white);
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge .txt { text-align: left; line-height: 1.2; }
.store-badge .txt small { display: block; font-size: 0.68rem; color: #A9B8C8; }
.store-badge .txt strong { font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--light-gray); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid p { font-size: 0.9rem; }
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-gray);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--navy); font-size: 0.92rem; }
.footer-legal { font-size: 0.82rem; color: var(--dark-gray); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--dark-gray);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .phone-stack { margin-top: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .safety, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .cta-band { padding: 44px 24px; }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 90px; }
  .phone.secondary { display: none; }
  .site-header .inner {
    padding: 12px 14px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 100%;
  }
  .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
    min-width: 0;
  }
  .header-actions .btn-primary {
    display: inline-flex;
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
  .header-link {
    font-size: 0.85rem;
    padding: 8px 12px;
    white-space: normal;
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-sizing: border-box;
    min-width: 0;
  }
  .lang-switch { margin-left: auto; }
  .brand { font-size: 1.1rem; }
  .brand .pin { width: 30px; height: 30px; }
  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-cta .btn { width: 100%; justify-content: center; box-sizing: border-box; }
}

@media (max-width: 430px) {
  .site-header .inner { padding: 10px 12px; }
  .header-link { font-size: 0.8rem; padding: 8px 10px; }
  .container { padding-left: 14px; padding-right: 14px; }
}
