/* =========================================================
   Tavi Travel — landing page styles
   Material Design 3 inspired · mobile first
   Design tokens live in :root. Do not hard-code colors elsewhere.
   ========================================================= */

:root {
  /* ink / text */
  --ink: #0A2540;          /* headings, dark text */
  --body: #3D5A73;         /* body copy */
  --accent: #0277BD;       /* links, accents, eyebrows */
  --on-info: #01579B;      /* text on info (light blue) pills */

  /* sky blue family (brand) */
  --sky: #4FC3F7;          /* primary fill */
  --sky-pale: #CFF0FF;
  --sky-tint: #EAF8FF;     /* section / card backgrounds */
  --sky-hover: #D6F1FF;
  --sky-line: #CDEBFB;     /* hairlines, borders */
  --sky-form: #CFEFFF;
  --sky-border: #9FD8F7;
  --field-border: #5A9BC4;

  /* supporting */
  --blush: #FFF4F8;        /* light pink tint (never deep pink / red) */
  --blush-chip: #FFD6E6;
  --success: #C4EED0;
  --success-tint: #E3F6E8;
  --on-success: #0F5223;
  --call: #1B7F3B;         /* call buttons */
  --error: #BA1A1A;        /* form errors only */
  --sun: #FFD84D;

  /* shape + type */
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-1: 0 1px 3px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .12);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); }
a:hover { color: var(--on-info); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }

.icon { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--thin { stroke-width: 1.8; }
.icon--fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout helpers ---------- */
.container { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.container--narrow { max-width: 800px; }
.section { padding: 48px 0; }
.section--sky { background: var(--sky-tint); }
.section--blush { background: var(--blush); }
.section--form { background: var(--sky-form); padding-bottom: 96px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--md { gap: 24px; }
.stack--lg { gap: 28px; }

.section__head { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .5px; }
h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; font-weight: 800; color: var(--ink); }
.section__head p, .docs__intro p, .form-grid__intro p { font-size: 16px; line-height: 1.6; color: var(--body); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.note { font-size: 14px; line-height: 1.5; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-xl);
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: box-shadow .2s, background-color .2s, transform .1s;
}
.btn:hover { box-shadow: var(--shadow-1); }
.btn:active { transform: scale(.98); }
.btn--lg { height: 56px; border-radius: 28px; }
.btn--block { width: 100%; height: 56px; border-radius: 28px; }
.btn--primary { background: var(--sky); color: var(--ink); }
.btn--primary:hover { color: var(--ink); }
.btn--light { background: #fff; color: var(--on-info); }
.btn--outline { border: 1px solid var(--field-border); color: var(--accent); background: transparent; }
.btn--call { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--call); color: #fff; font-size: 14px; }
.btn--call:hover { color: #fff; }

/* ---------- App bar ---------- */
.appbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sky-line); }
.appbar__inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--sky); display: flex; align-items: center; justify-content: center; }
.brand__logo .icon { stroke-width: 2; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.brand__tagline { font-size: 14px; color: var(--body); }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: var(--r-lg); text-decoration: none; color: var(--body); font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--sky-hover); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 40px; }
.hero__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__visual { flex: 1 1 360px; min-width: 0; }

.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 16px; border-radius: var(--r-lg); background: var(--sky-pale); border: 1px solid var(--sky-border); font-size: 14px; font-weight: 600; color: var(--ink); }
.tag__chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 15px; background: #fff; color: var(--accent); }

.hero__headline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1 { font-size: clamp(36px, 8vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
h1 span { color: var(--accent); }
.flag { flex: none; width: clamp(72px, 18vw, 120px); height: auto; border-radius: var(--r-sm); border: 1px solid var(--sky-line); box-shadow: 0 4px 14px rgba(10, 37, 64, .12); background: #fff; transform: rotate(4deg); }
.hero__lede { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; }
.pill--success { background: var(--success); color: var(--on-success); }

.visual { position: relative; border-radius: 28px; background: var(--sky-pale); padding: 24px; overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.visual__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.status-card { position: relative; background: #fff; border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 2px 8px rgba(0, 30, 46, .12); }
.status-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-card__title { font-size: 14px; font-weight: 500; color: var(--body); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.badge--info { background: var(--sky-hover); color: var(--on-info); }
.status-card__steps { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.status-card__steps li { display: flex; align-items: center; gap: 10px; }
.status-card__steps .is-pending { color: var(--body); }
.dot { width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--accent); }
.dot--done { background: var(--accent); color: #fff; }
.dot .icon { stroke-width: 3; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.price-card {
  container-type: inline-size; container-name: price;
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: 24px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--sky-line);
  transition: box-shadow .2s, transform .2s;
}
.price-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.price-card--primary { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.price-card__head { display: flex; flex-direction: column; gap: 6px; }
.price-title { font-size: 20px; font-weight: 600; }
.price-desc { font-size: 14px; line-height: 1.5; color: var(--body); }
.price-card--primary .price-desc { color: var(--ink); }
.price-card__amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.amount { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.unit { font-size: 16px; font-weight: 600; color: var(--body); }
.price-card--primary .unit { color: var(--ink); }
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: 16px; line-height: 1.4; }
.checklist .icon { color: var(--accent); }
.price-card--primary .checklist .icon { color: var(--ink); }
.price-card .btn { margin-top: auto; }
.badge--top { align-self: flex-end; background: #fff; color: var(--on-info); }

/* Keep the card description on one line when there is room; wrap on narrow phones. */
@container price (min-width: 360px) {
  .price-desc { white-space: nowrap; font-size: min(14px, calc(100cqw / 30)); }
}
/* Badge sits in the top-right corner on wider cards; above the title (right-aligned) on phones. */
@container price (min-width: 440px) {
  .badge--top { position: absolute; top: 20px; right: 20px; }
  .price-title { padding-right: 190px; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-lg); }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { font-size: 16px; line-height: 1.55; color: var(--body); }
.step__num { width: 40px; height: 40px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
.step--1 { background: var(--sky-tint); }
.step--1 .step__num { background: var(--sky-pale); color: var(--ink); }
.step--2 { background: var(--blush); }
.step--2 .step__num { background: var(--blush-chip); color: var(--accent); }
.step--3 { background: var(--sky); }
.step--3 p { color: var(--ink); }
.step--3 .step__num { background: #fff; color: var(--accent); }
.step--4 { background: var(--success-tint); }
.step--4 .step__num { background: var(--success); color: var(--on-success); }

/* ---------- Documents ---------- */
.docs { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.docs__intro { flex: 1 1 320px; min-width: 0; gap: 12px; }
.doclist { flex: 1 1 440px; min-width: 0; padding: 8px; background: #fff; border-radius: var(--r-xl); display: flex; flex-direction: column; }
.doclist li { display: flex; gap: 14px; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--sky-hover); font-size: 16px; line-height: 1.45; }
.doclist li:last-child { border-bottom: 0; }
.doclist .icon { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq__item { background: var(--sky-tint); border-radius: 16px; overflow: hidden; }
.faq__q { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.faq__q:hover { background: var(--sky-hover); }
.faq__q .icon { stroke: var(--body); stroke-width: 2; transition: transform .2s; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__a { padding: 0 20px 18px; font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- Form ---------- */
.form-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.form-grid__intro { flex: 1 1 320px; min-width: 0; color: var(--ink); }
.contact { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.contact li, .contact a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.contact .icon { color: var(--accent); stroke-width: 2; }

.form { flex: 1 1 420px; min-width: 0; background: #fff; border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; height: 56px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--field-border); font-size: 16px; color: var(--ink); background: #fff; outline: none; }
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 14px; color: var(--error); }

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--field-border); border-radius: var(--r-xl); overflow: hidden; }
.seg__btn { height: 48px; border: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; background: #fff; color: var(--body); cursor: pointer; }
.seg__btn + .seg__btn { border-left: 1px solid var(--field-border); }
.seg__btn .icon { display: none; stroke-width: 2.6; }
.seg__btn[aria-pressed="true"] { background: var(--sky); color: var(--ink); }
.seg__btn[aria-pressed="true"] .icon { display: block; }
.form__privacy { font-size: 14px; color: var(--body); text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 28px 0 96px; background: #fff; color: var(--body); border-top: 1px solid var(--sky-line); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer strong { color: var(--ink); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { position: sticky; bottom: 0; z-index: 25; display: flex; gap: 8px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--sky-line); box-shadow: 0 -2px 8px rgba(0, 0, 0, .06); }
.sticky-cta__call { width: 56px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--call); color: #fff; }
.sticky-cta__call .icon { stroke-width: 2; }
.sticky-cta__main { flex: 1; height: 52px; border-radius: 26px; }

/* ---------- Snackbar ---------- */
.snackbar { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 40; width: calc(100% - 32px); max-width: 480px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); animation: snack-in .25s ease-out; }
.snackbar[hidden] { display: none; }
.snackbar span { flex: 1; }
.snackbar__close { border: 0; background: transparent; color: #7DD3FC; font-size: 14px; font-weight: 600; padding: 8px; border-radius: var(--r-sm); cursor: pointer; }
@keyframes snack-in { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- Desktop (>= 840px) ---------- */
@media (min-width: 840px) {
  .nav { display: flex; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 28px; }
  .snackbar { bottom: 24px; }
}
