/* ============================================================
   TRAVO — Global Stylesheet
   Design system: clean, modern, editorial — azul navegador
   Harmonizado com index.html, destinos.html, dashboard.html,
   login.html, cadastro.html, roteiro.html, etc.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* ─ Paleta principal ─ */
  --blue-900: #0A1628;
  --blue-800: #0F2044;
  --blue-600: #1E4D8C;
  --blue-500: #2563C8;
  --blue-400: #4A80D9;
  --blue-300: #7AAAE8;
  --blue-100: #DDEAF9;
  --blue-50:  #EEF5FC;
  --blue-25:  #F5F9FE;

  /* ─ Cores de apoio ─ */
  --teal-600: #0A7A70;
  --teal-500: #0D9488;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;

  --amber-600: #B45309;
  --amber-500: #D97706;
  --amber-100: #FEF3C7;
  --amber-50:  #FFFBEB;

  --green-600: #16A34A;
  --green-500: #22C55E;
  --green-100: #DCFCE7;
  --green-50:  #F0FDF4;

  --red-600:   #DC2626;
  --red-500:   #EF4444;
  --red-100:   #FEE2E2;
  --red-50:    #FFF5F5;

  /* ─ Tons neutros / texto ─ */
  --ink:     #0F1A2E;
  --ink-2:   #3D5170;
  --ink-3:   #8096B4;

  /* ─ Superfícies ─ */
  --bg:      #F7FAFD;
  --surface: #FFFFFF;
  --surface-2: #EEF5FC;   /* azul muito suave — hover, zebra */
  --border:  #D6E3F0;

  /* ─ Semânticas (aliases) ─ */
  --clr-primary:       var(--blue-500);
  --clr-primary-dark:  var(--blue-600);
  --clr-primary-light: var(--blue-50);

  /* ─ Tipografia ─ */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --text-xs:   0.72rem;    /* ~11.5px */
  --text-sm:   0.875rem;   /* 14px    */
  --text-base: 1rem;       /* 16px    */
  --text-md:   1.125rem;   /* 18px    */
  --text-lg:   1.375rem;   /* 22px    */
  --text-xl:   1.5rem;     /* 24px    */
  --text-2xl:  2rem;       /* 32px    */
  --text-3xl:  2.75rem;    /* 44px    */
  --text-4xl:  3.5rem;     /* 56px    */

  --leading-tight:  1.15;
  --leading-normal: 1.6;
  --leading-loose:  1.75;

  /* ─ Espaçamentos ─ */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* ─ Raios ─ */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* ─ Sombras ─ */
  --shadow-xs:  0 1px 3px  rgba(15,26,46,.06);
  --shadow-sm:  0 2px 8px  rgba(15,26,46,.08);
  --shadow-md:  0 8px 24px rgba(15,26,46,.11);
  --shadow-lg:  0 20px 48px rgba(15,26,46,.14);
  --shadow-card: 0 2px 12px rgba(15,26,46,.07), 0 0 0 1px rgba(15,26,46,.04);

  /* ─ Transições ─ */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* ─ Layout ─ */
  --container-max: 1180px;
  --container-pad: clamp(20px, 5vw, 48px);
  --nav-h:         68px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--ink);
  letter-spacing: -0.03em;
}

p { line-height: var(--leading-normal); }

/* ── Layout ───────────────────────────────────────────────── */
.wrap,
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-16);
}

.section--lg {
  padding-block: var(--space-20);
}

.section-alt {
  background: var(--bg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2     { gap: var(--space-2); }
.flex-gap-3     { gap: var(--space-3); }
.flex-gap-4     { gap: var(--space-4); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  margin-right: 8px;
  transition: opacity var(--dur-fast);
}

.nav-logo:hover { opacity: 0.8; }

.nav-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  margin-left: 2px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  padding: 6px 13px;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}

.nav-link:hover  { background: var(--blue-50);  color: var(--ink); }
.nav-link.active { background: var(--blue-50); color: var(--blue-500); font-weight: 600; }

/* Ações à direita */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin-inline: 2px;
  flex-shrink: 0;
}

/* Botão login */
.btn-login {
  padding: 7px 15px;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}

.btn-login:hover { background: var(--blue-50); color: var(--ink); }

/* Botão signup */
.btn-signup {
  padding: 7px 17px;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue-500);
  box-shadow: 0 3px 10px rgba(37,99,200,.28);
  transition: background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
  white-space: nowrap;
}

.btn-signup:hover {
  background: var(--blue-600);
  box-shadow: 0 5px 16px rgba(37,99,200,.38);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-base), opacity var(--dur-base);
}

/* Drawer mobile */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4);
  gap: var(--space-1);
  box-shadow: var(--shadow-md);
  z-index: 99;
  flex-direction: column;
  max-height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  animation: fadeIn var(--dur-base) var(--ease-out);
}

.nav-drawer.open { display: flex; }

/* Seletor de idioma */
.lang { position: relative; flex-shrink: 0; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}

.lang-btn:hover { background: var(--blue-50); border-color: var(--blue-300); }

.flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.09);
}

.flag svg { width: 22px; height: 22px; display: block; }

.lang-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.4;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lang.open .lang-chevron { transform: rotate(180deg); }

.lang-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.16s, transform 0.16s;
  z-index: 300;
}

.lang.open .lang-drop {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.lang-opt:not(:last-child) { border-bottom: 1px solid var(--border); }
.lang-opt:hover { background: var(--blue-50); color: var(--ink); }
.lang-opt.sel   { color: var(--blue-500); font-weight: 600; background: var(--blue-25); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 95%  0%,  #C5DCFA 0%, transparent 52%),
    radial-gradient(ellipse 55% 55% at 90% 95%, #D4E9FF 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at  5% 85%, #E2F0FF 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 56px;
  padding-block: var(--space-20);
  width: 100%;
}

.hero-text { max-width: 600px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.07;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-title em    { font-style: italic; color: var(--blue-500); }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-2);
  font-weight: 300;
  line-height: var(--leading-loose);
  max-width: 450px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast),
    border-color var(--dur-fast),
    box-shadow var(--dur-fast),
    transform var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primário — azul */
.btn--primary,
.btn-main {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,200,.30);
}
.btn--primary:hover,
.btn-main:hover {
  background: var(--blue-600);
  box-shadow: 0 6px 20px rgba(37,99,200,.40);
}

/* Secundário */
.btn--secondary,
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover,
.btn-outline:hover {
  background: var(--blue-25);
  border-color: var(--blue-300);
  color: var(--blue-600);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--blue-500);
  border-color: var(--blue-300);
}
.btn--ghost:hover {
  background: var(--blue-50);
}

/* Teal */
.btn--teal {
  background: var(--teal-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13,148,136,.25);
}
.btn--teal:hover {
  background: var(--teal-600);
  box-shadow: 0 6px 20px rgba(13,148,136,.35);
}

/* Danger */
.btn--danger {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,.25);
}
.btn--danger:hover {
  background: #b91c1c;
}

/* Tamanhos */
.btn--sm { padding: 0.5rem 1rem;  font-size: var(--text-xs); }
.btn--lg { padding: 1rem 2rem;    font-size: var(--text-base); }
.btn--icon { padding: 0.75rem; aspect-ratio: 1; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: var(--space-5) var(--space-6);
}

.card__tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--blue-50);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.card__tag--primary { background: var(--blue-50);  color: var(--blue-500); }
.card__tag--teal    { background: var(--teal-50);   color: var(--teal-600); }
.card__tag--amber   { background: var(--amber-50);  color: var(--amber-600); }

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

/* Destination card */
.card--destination {
  position: relative;
}

.card--destination .card__image {
  aspect-ratio: 4 / 3;
}

.card--destination .card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.72) 30%, transparent 70%);
}

.card--destination .card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
  color: #fff;
}

.card--destination .card__title { color: #fff; }
.card--destination .card__text  { color: rgba(255,255,255,0.8); margin-bottom: 0; }

/* Horizontal card */
.card--horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.card--horizontal .card__image {
  height: 100%;
  aspect-ratio: unset;
}

/* ── Form Elements ────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.form-label span { color: var(--blue-500); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-base);
  transition:
    border-color var(--dur-fast),
    box-shadow var(--dur-fast),
    background var(--dur-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-3); }

.form-input:hover,
.form-select:hover,
.form-textarea:hover { border-color: var(--blue-300); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,200,.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239,68,68,.10);
}

.form-hint  { font-size: var(--text-xs); color: var(--ink-3); }
.form-error { font-size: var(--text-xs); color: var(--red-600); font-weight: 500; }

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238096B4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  position: relative;
}

.form-check input[type="radio"] { border-radius: var(--r-full); }

.form-check input:checked {
  background: var(--blue-500);
  border-color: var(--blue-500);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-check input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: var(--r-full);
}

/* ── Badges / Tags ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge--primary { background: var(--blue-50);   color: var(--blue-500); }
.badge--teal    { background: var(--teal-50);    color: var(--teal-600); }
.badge--amber   { background: var(--amber-50);   color: var(--amber-600); }
.badge--green   { background: var(--green-50);   color: var(--green-600); }
.badge--red     { background: var(--red-50);     color: var(--red-600); }
.badge--neutral { background: var(--surface-2);  color: var(--ink-2); }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-10);
}

.section-header--centered {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.section-title em { font-style: italic; color: var(--blue-500); }

.section-subtitle {
  font-size: var(--text-md);
  color: var(--ink-2);
  font-weight: 300;
  line-height: var(--leading-loose);
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  border-bottom: 1.5px solid var(--border);
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
}

.tab:hover { color: var(--ink); }

.tab.active {
  color: var(--blue-500);
  border-bottom-color: var(--blue-500);
  font-weight: 600;
}

/* ── Chips / Filter Pills ─────────────────────────────────── */
.chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition:
    color var(--dur-fast),
    background var(--dur-fast),
    border-color var(--dur-fast);
  user-select: none;
}

.chip:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
  background: var(--blue-50);
}

.chip.active {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
}

/* ── Step Indicator ───────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.step__number {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 2px solid var(--border);
  color: var(--ink-3);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}

.step__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-3);
  transition: color var(--dur-base);
}

.step.active .step__number {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

.step.active .step__label { color: var(--ink); font-weight: 600; }

.step.done .step__number {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
}

.step__connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 var(--space-2);
  min-width: 24px;
}

.step__connector.done { background: var(--teal-500); }

/* ── Alert / Toast ────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  border: 1px solid transparent;
}

.alert--info    { background: var(--blue-50);   border-color: var(--blue-100); color: var(--blue-600); }
.alert--success { background: var(--green-50);  border-color: var(--green-100); color: var(--green-600); }
.alert--warning { background: var(--amber-50);  border-color: var(--amber-100); color: var(--amber-600); }
.alert--error   { background: var(--red-50);    border-color: var(--red-100);   color: var(--red-600); }

/* ── Rating Stars ─────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 2px;
  color: var(--amber-500);
  font-size: var(--text-sm);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-block: var(--space-8);
}

.divider--accent {
  height: 2px;
  width: 48px;
  background: var(--blue-500);
  margin-block: var(--space-4);
}

/* ── Search Bar ───────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.search-bar:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,200,.10), var(--shadow-sm);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--text-base);
  color: var(--ink);
  min-width: 0;
}

.search-bar input::placeholder { color: var(--ink-3); }

/* ── Stats / Numbers ──────────────────────────────────────── */
.stat { text-align: center; }

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__number span { color: var(--blue-500); }

.stat__label {
  font-size: var(--text-sm);
  color: var(--ink-3);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* ── Tooltip ──────────────────────────────────────────────── */
[data-tooltip] { position: relative; }

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast);
  z-index: 50;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.70);
  padding-block: var(--space-12) var(--space-8);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.footer__logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-400);
  margin-left: 2px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.40);
  margin-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: var(--space-8);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--dur-fast);
}

.footer__link:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.30);
}

/* ── Loading Skeleton ─────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--border)    50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
  color: transparent;
  pointer-events: none;
}

/* ── Utilities ────────────────────────────────────────────── */
.text-primary  { color: var(--blue-500); }
.text-teal     { color: var(--teal-500); }
.text-amber    { color: var(--amber-500); }
.text-muted    { color: var(--ink-2); }
.text-faint    { color: var(--ink-3); }
.text-sm       { font-size: var(--text-sm); }
.text-xs       { font-size: var(--text-xs); }
.text-center   { text-align: center; }
.font-display  { font-family: var(--font-display); }
.font-italic   { font-style: italic; }
.font-bold     { font-weight: 700; }
.font-medium   { font-weight: 500; }
.sr-only       { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.gap-3         { gap: var(--space-3); }
.gap-4         { gap: var(--space-4); }
.mt-4          { margin-top: var(--space-4); }
.mt-6          { margin-top: var(--space-6); }
.mt-8          { margin-top: var(--space-8); }
.mb-4          { margin-bottom: var(--space-4); }
.mb-6          { margin-bottom: var(--space-6); }
.mb-8          { margin-bottom: var(--space-8); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up  { animation: fadeUp  var(--dur-slow) var(--ease-out) both; }
.animate-fade-in  { animation: fadeIn  var(--dur-slow) var(--ease-out) both; }
.animate-scale-in { animation: scaleIn var(--dur-base) var(--ease-out) both; }

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background: rgba(37,99,200,.15);
  color: var(--ink);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* — Tablet (≤ 1024px) — */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

/* — Mobile (≤ 768px) — */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--r-md);
    font-size: var(--text-base);
    min-height: 44px;
  }

  .btn      { min-height: 44px; }
  .btn--sm  { min-height: 36px; }

  .card--horizontal {
    grid-template-columns: 1fr;
  }

  .card--horizontal .card__image {
    aspect-ratio: 16 / 8;
    height: auto;
  }

  .footer__grid    { grid-template-columns: 1fr; }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .steps           { gap: 0; }
  .step__label     { display: none; }
  .step__connector { min-width: 16px; }

  .hero-cta        { flex-direction: column; align-items: flex-start; }

  .section      { padding-block: var(--space-12); }
  .section--lg  { padding-block: var(--space-16); }
}

/* — Small mobile (≤ 480px) — */
@media (max-width: 480px) {
  :root { --nav-h: 56px; }

  .section     { padding-block: var(--space-10); }
  .section--lg { padding-block: var(--space-12); }
  .btn--lg     { padding: 0.875rem 1.5rem; }
  .chips       { gap: var(--space-2); }
  .card__body  { padding: var(--space-4); }
  .section-header--centered { margin-bottom: var(--space-8); }
}

/* — Landscape phone — */
@media (max-height: 500px) and (orientation: landscape) {
  .section     { padding-block: var(--space-8); }
  .section--lg { padding-block: var(--space-10); }
}
