/* MG Air Travel — site styles */

:root {
  --ink: #0b1b33;
  --ink-2: #33445c;
  --muted: #5d6c82;
  --line: #e3e8f0;
  --line-strong: #cfd7e3;
  --bg: #ffffff;
  --tint: #f5f8fc;
  --accent: #1657d9;
  --accent-soft: #eaf1fe;
  --wa: #0f7a43;
  --wa-hover: #0b6637;
  --warn: #b4530a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 12px 32px -12px rgba(11, 27, 51, .18);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #17305a; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.site-nav a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer;
  place-items: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s, background .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.lede { margin-top: 22px; font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { margin-top: 34px; display: grid; gap: 10px; }
.hero-points li {
  position: relative; padding-left: 30px; font-size: .98rem; font-weight: 600; color: var(--ink-2);
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.300 2.700 2.700L14 7.500' fill='none' stroke='%231657d9' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ── Boarding-pass quote form ── */
.pass { filter: drop-shadow(0 1px 1px rgba(11, 27, 51, .08)) drop-shadow(0 18px 30px rgba(11, 27, 51, .14)); }
.pass-main, .pass-stub { background: #fff; padding: 24px; }
.pass-main {
  border-radius: 20px 20px 0 0; display: grid; gap: 14px;
  -webkit-mask: radial-gradient(circle 11px at 0 100%, #0000 97%, #000) , radial-gradient(circle 11px at 100% 100%, #0000 97%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 11px at 0 100%, #0000 97%, #000), radial-gradient(circle 11px at 100% 100%, #0000 97%, #000);
  mask-composite: intersect;
}
.pass-stub {
  border-radius: 0 0 20px 20px; padding-top: 20px;
  background-image: linear-gradient(to right, var(--line-strong) 55%, transparent 0);
  background-size: 12px 1.5px; background-repeat: repeat-x; background-position: 6px 0;
  -webkit-mask: radial-gradient(circle 11px at 0 0, #0000 97%, #000), radial-gradient(circle 11px at 100% 0, #0000 97%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 11px at 0 0, #0000 97%, #000), radial-gradient(circle 11px at 100% 0, #0000 97%, #000);
  mask-composite: intersect;
}
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pass-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

.seg { display: inline-flex; padding: 3px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 27, 51, .14); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.grid-2.solo { grid-template-columns: minmax(0, 1fr); }
.field select:invalid { color: #9aa6b6; font-weight: 500; }
.field select option { color: var(--ink); }
.field.invalid select { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(180, 83, 10, .14); }
.field.req > .field-label::after { content: " *"; color: var(--warn); }

.route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.swap {
  width: 40px; height: 40px; margin-bottom: 6px; padding: 0; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--accent); cursor: pointer;
  transition: transform .25s, border-color .15s;
}
.swap:hover { border-color: var(--accent); transform: rotate(180deg); }
.swap svg { width: 20px; height: 20px; }

/* minmax(0, …) keeps a long label from pushing a column wider than the card. */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
#method-field .field-label { white-space: normal; }

.field { display: grid; gap: 5px; min-width: 0; }
.field-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.field-label small { font-size: .7rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #8894a6; }
.field input, .field select {
  width: 100%; min-width: 0; height: 46px; padding: 0 12px;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.500 4.500 3.500 3.500 3.500-3.500' fill='none' stroke='%235d6c82' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 11px center / 12px no-repeat;
}
.field input::placeholder { color: #9aa6b6; font-weight: 500; }
.field input:hover, .field select:hover { border-color: #a9b5c6; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 87, 217, .16); }
.field input:disabled { background: var(--tint); color: #9aa6b6; }
.field.invalid input { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(180, 83, 10, .14); }
.field-big input { height: 54px; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }

.stub-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.stub-actions > :only-child, .stub-actions.single { grid-column: 1 / -1; }
.stub-actions.single { grid-template-columns: 1fr; }
.stub-note { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; line-height: 1.45; }
.form-msg { font-size: .92rem; font-weight: 600; color: var(--warn); }
.form-msg:not(:empty) { margin-bottom: 12px; }
.form-msg.ok { color: var(--wa); }

/* ── Sections ── */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.step { position: relative; padding: 26px 26px 30px 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1; color: var(--accent); }
.step h3 { margin: 16px 0 8px; font-size: 1.2rem; }
.step p { color: var(--ink-2); font-size: .98rem; }
.step-who {
  display: inline-block; margin-top: 16px; padding: 3px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--tint); color: var(--muted); border: 1px solid var(--line);
}
.step-who.you { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--ink-2); font-size: .98rem; }

/* Why an agent */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-copy > p:not(.eyebrow) { margin-top: 18px; color: var(--ink-2); font-size: 1.08rem; }
.ticks { margin-top: 24px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.300 2.700 2.700L14 7.500' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.why-cta { margin-top: 28px; }
.why-list { counter-reset: why; border-top: 1.5px solid var(--ink); }
.why-list li {
  counter-increment: why; position: relative; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--line);
}
.why-list li::before {
  content: "0" counter(why); position: absolute; left: 0; top: 24px;
  font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--accent);
}
.why-list h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.why-list p { margin-top: 6px; color: var(--ink-2); }

.also {
  margin-top: 22px; padding: 18px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--ink-2); text-align: center;
}
.also strong { color: var(--ink); }

/* Urgent band */
.section-ink { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.section-ink .eyebrow { color: #8db6ff; }
.urgent { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.urgent h2 + p { margin-top: 16px; color: #c6d2e4; font-size: 1.08rem; max-width: 36em; }
.urgent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.urgent-note { flex-basis: 100%; margin-top: 6px; font-size: .9rem; color: #a9b8cf; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' fill='none' stroke='%230b1b33' stroke-width='1.600' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-lede { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 32em; }
.contact-lede a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.contact-list { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; }
.contact-kind { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.contact-list li > span:last-child { color: var(--ink-2); }

.hours { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.hours h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.2rem; margin-bottom: 8px; }
.hours h3 span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hours dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.hours dt { font-weight: 600; color: var(--ink-2); }
.hours dd { font-weight: 700; text-align: right; white-space: nowrap; }
.hours dd.closed { color: var(--warn); }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 20px 0 16px;
  background: var(--wa); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 2px 4px rgba(11, 27, 51, .18), 0 12px 28px -8px rgba(15, 122, 67, .55);
  transition: background .15s, transform .15s;
}
.wa-float:hover { background: var(--wa-hover); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 96px; }
.footer-row { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.footer-nav a { text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.footer-nav a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); }

/* ── Reveal on scroll (only when JS is running and motion is OK) ── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .swap, .wa-float { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pass { max-width: 620px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; }
  .split, .urgent, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    box-shadow: 0 24px 32px -24px rgba(11, 27, 51, .25);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .pass-main, .pass-stub { padding: 18px; }
  .route { grid-template-columns: 1fr; }
  .swap { justify-self: end; margin: -22px 12px -22px 0; z-index: 1; transform: rotate(90deg); }
  .swap:hover { transform: rotate(270deg); }
  .grid-2.stack-sm { grid-template-columns: 1fr; }
  .grid-3 { gap: 8px; }
  .grid-3 .field-label small { display: none; }
  .stub-actions { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0 24px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .faq details p { padding-right: 0; }
  .why-list li { padding-left: 48px; }
  .why-list h3 { font-size: 1.35rem; }
  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wa-float svg { width: 30px; height: 30px; }
  .hours { padding: 22px 20px; }
  .hours dl > div { font-size: .95rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
