/* ============================================
   TRANSCUARTO LOGISTIC — Design System
   ============================================ */

:root {
  /* Color — restrained palette, no pure black/white */
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-soft: #F4F1EB;
  --ink: #0F1F3D;
  --ink-soft: #4A5775;
  --ink-mute: #8B96AB;
  --line: #E6E2D9;
  --line-strong: #D6D0C2;
  --accent: #1E5BF6;
  --accent-hover: #1746CC;
  --accent-soft: #E8EFFE;
  --accent-2: #FF6A1A;
  --accent-2-soft: #FFE8D8;
  --success: #128A5E;
  --success-soft: #DDF4E7;
  --danger: #B91C1C;
  --danger-soft: #FDECEC;

  /* Typography */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Layout */
  --max: 1200px;
  --max-narrow: 880px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadow — soft, never harsh */
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.04), 0 2px 6px rgba(15, 31, 61, 0.05);
  --shadow: 0 2px 6px rgba(15, 31, 61, 0.05), 0 12px 28px rgba(15, 31, 61, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 31, 61, 0.08), 0 24px 60px rgba(15, 31, 61, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 420ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
p { margin: 0; }

/* Container */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-6); }
.container--narrow { max-width: var(--max-narrow); }

/* Section rhythm */
.section { padding: var(--s-20) 0; }
.section--tight { padding: var(--s-16) 0; }
.section--dark { background: var(--ink); color: #F5F1E8; }
.section--soft { background: var(--surface-soft); }

@media (max-width: 768px) {
  :root {
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3rem;
  }
  .section { padding: var(--s-12) 0; }
  .section--tight { padding: var(--s-10) 0; }
}

/* ============================================
   Top bar (utility)
   ============================================ */
.topbar {
  background: var(--ink);
  color: #E5E7EB;
  font-size: var(--fs-xs);
  padding: var(--s-2) 0;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.topbar a { color: #E5E7EB; opacity: 0.85; transition: opacity var(--dur-fast); }
.topbar a:hover { opacity: 1; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-weight: 600; color: #E5E7EB; cursor: pointer;
  background-color: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 3px 26px 3px 9px;
  /* inline chevron — avoids a request just for a 7px mark. Shared with the
     ::picker-icon mask below so both arrows are the same shape. */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23E5E7EB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 10px 6px;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.lang-select:hover { background-color: rgba(255,255,255,0.18); }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Fallback: the OS draws the list and honours only these two properties. */
.lang-select option { color: var(--ink); background: #fff; font-weight: 500; }

/* Where the browser can style the dropdown itself, upgrade it. This stays a real
   <select>, so keyboard, type-ahead, screen readers and the mobile picker keep
   working for free — the rules above remain the floor everywhere else. */
@supports (appearance: base-select) {
  .lang-select, .lang-select::picker(select) { appearance: base-select; }

  .lang-select {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 8px 4px 6px;
    background-image: none;              /* ::picker-icon replaces the baked-in chevron */
  }
  /* Masked stroke chevron rather than a filled triangle, so it matches the
     weight of the fallback arrow and the rest of the UI. */
  .lang-select::picker-icon {
    content: ""; width: 10px; height: 6px; margin-left: 2px;
    background: currentColor;
    -webkit-mask: var(--chevron) center / 10px 6px no-repeat;
            mask: var(--chevron) center / 10px 6px no-repeat;
    transition: transform var(--dur-fast) ease;
  }
  .lang-select:open::picker-icon { transform: rotate(180deg); }

  .lang-select::picker(select) {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(15, 31, 61, 0.18);
    padding: 6px; margin-top: 6px; min-width: 190px;
    /* allow-discrete lets display/overlay animate, so the panel fades out too
       instead of vanishing the moment it closes */
    opacity: 0; transform: translateY(-6px);
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease,
                display var(--dur-fast) allow-discrete, overlay var(--dur-fast) allow-discrete;
  }
  .lang-select:open::picker(select) { opacity: 1; transform: translateY(0); }
  @starting-style {
    .lang-select:open::picker(select) { opacity: 0; transform: translateY(-6px); }
  }

  .lang-select option {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 9px; border-radius: 8px; min-height: 0;
    color: var(--ink); background: transparent;
    font-size: var(--fs-sm); font-weight: 500;
    transition: background-color var(--dur-fast) ease;
  }
  .lang-select option:hover,
  .lang-select option:focus { background-color: var(--accent-soft); outline: none; }
  .lang-select option:checked { color: var(--accent); font-weight: 700; }
  /* Tick sits at the far end rather than shifting the label when it appears. */
  .lang-select option::checkmark { order: 9; margin-left: auto; color: var(--accent); }

  .opt__code {
    flex: none; min-width: 25px; text-align: center;
    font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
    padding: 2px 5px; border-radius: 4px;
    background: var(--surface-soft); color: var(--ink-soft);
  }
  .lang-select option:checked .opt__code { background: var(--accent); color: #fff; }

  /* The closed control renders the selected option's markup, and it sits on the
     dark topbar — so the badge needs its own colours there. */
  .lang-select > button .opt__code,
  .lang-select::picker-icon ~ * .opt__code { background: rgba(255,255,255,0.16); color: #fff; }
}
.topbar__contact { display: flex; gap: var(--s-5); flex-wrap: wrap; }

@media (max-width: 720px) {
  .topbar__contact { display: none; }
}

/* ============================================
   Header / Nav
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) 0; gap: var(--s-6); }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); }
/* ponytail: single knob for logo size — the mark is a square badge, so height
   drives it and width follows. Change here, not in the 18 img tags. */
.logo img, .footer__logo img { height: 48px; width: auto; display: block; }
.footer__logo { display: inline-flex; align-items: center; gap: var(--s-3); }
.logo__mark { display: inline-flex; align-items: center; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.logo__text small { display: block; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.18em; color: var(--ink-soft); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: var(--s-2); }
.nav__link { padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); transition: color var(--dur-fast), background var(--dur-fast); }
.nav__link:hover { color: var(--ink); background: var(--surface-soft); }

.menu-btn { display: none; padding: var(--s-2); border-radius: var(--radius-sm); }
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: var(--s-4); gap: var(--s-1); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav__link { padding: var(--s-3) var(--s-4); font-size: var(--fs-base); }
  .menu-btn { display: inline-flex; }
}

/* ============================================
   Buttons
   ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); padding: var(--s-3) var(--s-6); border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); letter-spacing: -0.005em; transition: all var(--dur) var(--ease); white-space: nowrap; }
/* Negative spread keeps the shadow inside the pill's silhouette. Without it a
   wide, short, fully-rounded button casts a slab of blue that reads as a square
   sitting behind the curve. Pair a tight contact shadow with a soft lift. */
.btn--primary { background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(15, 31, 61, 0.10), 0 8px 20px -10px rgba(30, 91, 246, 0.55); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 31, 61, 0.12), 0 14px 28px -12px rgba(30, 91, 246, 0.6); }
.btn--accent { background: var(--accent-2); color: #fff; }
.btn--accent:hover { background: #E5570D; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--surface-soft); border-color: var(--ink); }
.btn.is-current { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover);
  box-shadow: 0 1px 2px rgba(15, 31, 61, 0.10), 0 8px 20px -10px rgba(30, 91, 246, 0.5); cursor: default; }
.btn.is-current:hover { transform: none; }
.btn--lg { padding: var(--s-4) var(--s-8); font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* ============================================
   Hero
   ============================================ */
.hero { position: relative; overflow: hidden; padding: var(--s-16) 0 var(--s-20); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-12); align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 14px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.hero__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: var(--fs-5xl); margin-top: var(--s-5); letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: var(--s-5); font-size: var(--fs-lg); color: var(--ink-soft); max-width: 560px; }
.hero__cta { margin-top: var(--s-8); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__stats { margin-top: var(--s-10); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--ink); letter-spacing: -0.02em; }
.hero__stat span { font-size: var(--fs-sm); color: var(--ink-soft); }

.hero__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,31,61,0.45)); pointer-events: none; }
.hero__badge { position: absolute; left: var(--s-5); bottom: var(--s-5); right: var(--s-5); display: flex; gap: var(--s-3); align-items: end; z-index: 2; color: #fff; }
.hero__badge-card { background: rgba(255,255,255,0.95); color: var(--ink); padding: var(--s-4); border-radius: var(--radius); backdrop-filter: blur(8px); }
.hero__badge-card strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); }
.hero__badge-card span { font-size: var(--fs-sm); color: var(--ink-soft); }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero h1 { font-size: var(--fs-4xl); }
  .hero__media { aspect-ratio: 16/11; }
}

/* ============================================
   Section heading
   ============================================ */
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); }
.section__head { max-width: 720px; margin: 0 auto var(--s-12); text-align: center; }
.section__head h2 { font-size: var(--fs-3xl); }
.section__head p { margin-top: var(--s-3); color: var(--ink-soft); font-size: var(--fs-lg); }
.section__head--left { margin-left: 0; text-align: left; }

/* ============================================
   Services grid
   ============================================ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-8); transition: all var(--dur) var(--ease); position: relative; overflow: hidden; }
.service:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.service__icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); border-radius: 12px; margin-bottom: var(--s-5); }
.service h3 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.service p { color: var(--ink-soft); font-size: var(--fs-base); }
.service__list { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.service__list li { display: flex; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink); }
.service__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ============================================
   Stats strip
   ============================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); padding: var(--s-8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat { display: flex; flex-direction: column; gap: var(--s-1); }
.stat strong { font-family: var(--font-display); font-size: var(--fs-3xl); color: var(--ink); letter-spacing: -0.025em; line-height: 1; }
.stat span { font-size: var(--fs-sm); color: var(--ink-soft); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   Rates / Pricing
   ============================================ */
.rates { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.rate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-8); display: flex; flex-direction: column; gap: var(--s-4); position: relative; overflow: hidden; transition: all var(--dur) var(--ease); }
.rate-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.rate-card--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.rate-card__badge { position: absolute; top: var(--s-4); right: var(--s-4); background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase; }
.rate-card__label { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.rate-card__price { display: flex; align-items: baseline; gap: var(--s-2); font-family: var(--font-display); }
.rate-card__price strong { font-size: var(--fs-4xl); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.rate-card__price span { font-size: var(--fs-md); color: var(--ink-soft); }
.rate-card__list { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.rate-card__list li { display: flex; gap: var(--s-3); font-size: var(--fs-sm); color: var(--ink); }
.rate-card__list li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 1px; }

@media (max-width: 720px) { .rates { grid-template-columns: 1fr; } }

/* ============================================
   Routes
   ============================================ */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.routes__map { aspect-ratio: 1; background: var(--surface-soft); border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.routes__list { display: flex; flex-direction: column; gap: var(--s-3); }
.route { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: all var(--dur) var(--ease); }
.route:hover { border-color: var(--accent); }
.route__icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); border-radius: 12px; flex-shrink: 0; }
.route__body { flex: 1; }
.route__title { font-weight: 600; color: var(--ink); font-size: var(--fs-base); }
.route__meta { font-size: var(--fs-sm); color: var(--ink-soft); }
.route__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.route__price small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-soft); }

@media (max-width: 880px) { .routes { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ============================================
   Fleet
   ============================================ */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.fleet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--dur) var(--ease); }
.fleet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fleet-card__media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.fleet-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.fleet-card:hover .fleet-card__media img { transform: scale(1.05); }
.fleet-card__body { padding: var(--s-5) var(--s-6); }
.fleet-card h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.fleet-card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.fleet-card__tags { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag { display: inline-flex; padding: 4px 10px; background: var(--surface-soft); color: var(--ink-soft); border-radius: 6px; font-size: var(--fs-xs); font-weight: 500; }
.tag--accent { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 900px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fleet { grid-template-columns: 1fr; } }

/* ============================================
   Offices / Branches
   ============================================ */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.office__head { display: flex; align-items: center; gap: var(--s-3); }
.office__flag { width: 36px; height: 26px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: var(--surface-soft); }
.office__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.office__country { font-size: var(--fs-xs); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.office__line { font-size: var(--fs-sm); color: var(--ink-soft); display: flex; gap: var(--s-2); align-items: center; }
.office__line svg { width: 14px; height: 14px; color: var(--accent); }
.office a { color: var(--ink); font-weight: 500; }

@media (max-width: 980px) { .offices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .offices { grid-template-columns: 1fr; } }

/* ============================================
   Careers / Why us
   ============================================ */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.why__list { display: flex; flex-direction: column; gap: var(--s-3); }
.why-item { display: flex; gap: var(--s-4); padding: var(--s-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-item__icon { width: 36px; height: 36px; background: var(--success-soft); color: var(--success); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-item__icon svg { width: 18px; height: 18px; }
.why-item strong { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 2px; }
.why-item span { font-size: var(--fs-sm); color: var(--ink-soft); }

.why__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) { .why { grid-template-columns: 1fr; gap: var(--s-8); } .why__media { aspect-ratio: 16/11; } }

/* ============================================
   FAQ
   ============================================ */
.faq { display: flex; flex-direction: column; gap: var(--s-3); max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--dur-fast); }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { padding: var(--s-5) var(--s-6); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); font-weight: 600; font-family: var(--font-display); color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding: 0 var(--s-6) var(--s-5); color: var(--ink-soft); font-size: var(--fs-base); }

/* ============================================
   Forms
   ============================================ */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-10); max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.form-card p.lead { color: var(--ink-soft); margin-bottom: var(--s-8); }

/* A label must sit far closer to its own input than to the field above it, or it
   reads as belonging to the wrong one. Gap is the inner (label→input) distance,
   margin the outer — keep the outer several times the inner. */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-6); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-mute); }
.field input, .field select, .field textarea { padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); font-size: var(--fs-base); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 120px; resize: vertical; font-family: inherit; }
/* The row zeroes its children's margin, so it has to carry the outer spacing
   itself — without this the next field's label lands 2px under this row. */
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-6); }
.field--row .field { margin-bottom: 0; }

.form-success { background: var(--success-soft); border: 1px solid var(--success); color: var(--success); padding: var(--s-4); border-radius: var(--radius); margin-top: var(--s-4); display: none; }
.form-success.is-visible { display: block; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 720px) {
  .form-card { padding: var(--s-6); }
  .field--row { grid-template-columns: 1fr; }
}

/* ============================================
   CTA banner
   ============================================ */
.cta-banner { background: linear-gradient(135deg, var(--ink) 0%, #1B2D52 100%); color: #F5F1E8; border-radius: var(--radius-xl); padding: var(--s-12); display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); align-items: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.4; pointer-events: none; }
.cta-banner h2 { color: #fff; font-size: var(--fs-3xl); }
.cta-banner p { color: rgba(245,241,232,0.78); margin-top: var(--s-3); font-size: var(--fs-lg); }
.cta-banner__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

@media (max-width: 720px) { .cta-banner { grid-template-columns: 1fr; padding: var(--s-8); } }

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--ink); color: #C4CBD9; padding: var(--s-16) 0 var(--s-8); margin-top: var(--s-16); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8); margin-bottom: var(--s-10); }
.footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--s-4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: var(--fs-xs); }
.footer__brand p { color: #8B96AB; font-size: var(--fs-sm); margin-top: var(--s-3); }
.footer ul li { margin-bottom: var(--s-2); font-size: var(--fs-sm); }
.footer a { color: #C4CBD9; transition: color var(--dur-fast); }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--s-6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-xs); color: #8B96AB; }
.footer__socials { display: flex; gap: var(--s-3); }
.footer__socials a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border-radius: 50%; transition: all var(--dur-fast); }
.footer__socials a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer__logo .logo__text { color: #fff; }
.footer__logo .logo__text small { color: #8B96AB; }

@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============================================
   Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 80ms; }
  .reveal-delay-2 { transition-delay: 160ms; }
  .reveal-delay-3 { transition-delay: 240ms; }
}

/* ============================================
   Misc
   ============================================ */
.divider { height: 1px; background: var(--line); margin: var(--s-10) 0; }
.muted { color: var(--ink-soft); }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); }
.gap-3 { gap: var(--s-3); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* Failure counterpart to .form-success — the form could previously only report success,
   so a submission that never arrived still told the visitor it had. */
.form-error { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); padding: var(--s-4); border-radius: var(--radius); margin-top: var(--s-4); display: none; }
.form-error.is-visible { display: block; }

/* ============================================
   Touch targets
   Measured on a 390px viewport: inputs sat at 33px, footer links at 17px and
   the language select at 31px — all under the 44px minimum, so they were
   genuinely fiddly to hit. Scoped to coarse pointers so the desktop layout,
   which is fine as drawn, is left alone.
   ============================================ */
@media (pointer: coarse) {
  .field input, .field select, .field textarea {
    min-height: 44px;
    /* 16px keeps iOS Safari from zooming the page on focus */
    font-size: max(16px, var(--fs-base));
  }
  .field textarea { min-height: 120px; }

  .lang-select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
  .menu-btn { min-width: 44px; min-height: 44px; }

  /* Dense list links get their hit area from a min-height box rather than a
     taller line, so the text rhythm is unchanged. inline-flex rather than
     padding because line-height varies with the translated string. */
  .footer ul li a, .footer__bottom a, .office__line {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer ul li { margin-bottom: 0; }
  .topbar__contact a { display: inline-block; padding: 6px 0; }
  .footer__socials a { width: 44px; height: 44px; }

  /* Buttons that sit side by side wrap instead of squeezing below tap size. */
  .hero__cta { flex-wrap: wrap; }
  .hero__cta .btn { flex: 1 1 auto; min-height: 44px; }
}
