/* Vietnam Visa by Matthew - main stylesheet. Bump ?v= in every HTML file after editing. */
:root {
  --primary: #1E2A5A;
  --accent: #F2A93B;
  --bg: #FBF8F2;
  --text: #1B1F2A;
  --muted: #4A5068;
  --surface: #FFFFFF;
  --line: #E4DFD3;
  --accent-soft: #FDF1DC;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { color: var(--primary); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); letter-spacing: -.01em; }
h2, .h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 46rem; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Top bar */
.topbar { background: var(--primary); color: #fff; font-size: .8125rem; line-height: 1.4; padding: 6px 0; text-align: center; }
.topbar a { color: #fff; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--primary); text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.15; margin-right: auto; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: var(--accent); font-weight: 800; flex: none; }
.logo-by { font-weight: 500; }
.nav-desktop { display: none; gap: 20px; }
.nav-desktop a, .nav-mobile a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-mobile { border-bottom: 1px solid var(--line); font-size: .95rem; }
.nav-mobile .wrap { display: flex; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
@media (min-width: 720px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  .logo { font-size: 1.1rem; }
}

/* Buttons (amber buttons always use dark text) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--accent); color: #1B1F2A; border-color: var(--accent); }
.btn-primary:hover { background: #E89B26; border-color: #E89B26; color: #1B1F2A; }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 1.25em; }

/* Sections */
.hero { padding: 48px 0 40px; }
.hero-small { padding: 40px 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .5em; }
.lead { font-size: 1.15rem; max-width: 42rem; }
.section { padding: 40px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .hero { padding: 72px 0 56px; } .section { padding: 56px 0; } }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: 1.25em; }
@media (min-width: 720px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.card .btn { margin-top: auto; }
.card-tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4em; }
.price-line { background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; }
.card .small { margin: 12px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1em 0 1.25em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--primary); color: #fff; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td:last-child, th:last-child { white-space: nowrap; }
tbody td:last-child { font-weight: 700; }

/* Lists, steps, notes */
.ticks { padding-left: 1.2em; }
.ticks li { margin-bottom: .5em; }
.steps { list-style: none; padding: 0; margin: 1.25em 0 1.5em; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps p { margin: 0; }
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.prose h2 { margin-top: 1.4em; }
.email { font-weight: 700; word-break: break-all; }

/* FAQ */
.faq { margin: 1em 0 1.5em; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; color: var(--primary); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 16px 16px; margin: 0; }

/* Footer */
.site-footer { background: var(--primary); color: #fff; padding: 40px 0 88px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr; } .site-footer { padding-bottom: 32px; } }
.footer-brand { font-weight: 700; font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.25); margin-top: 24px; padding-top: 16px; }
.footer-bottom p { margin: 0; }

/* Floating WhatsApp button (mobile only) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(27,31,42,.25); border: 2px solid #fff; }
@media (min-width: 720px) { .wa-float { display: none; } }
.table-wrap-cells td:last-child, .table-wrap-cells th:last-child { white-space: normal; }

/* Coupon box (apply.html) */
.coupon { background: var(--surface); border: 2px dashed var(--primary); border-radius: var(--radius); padding: 20px; text-align: center; margin-top: 1.5em; }
.coupon-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .25em; }
.coupon-code { font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: .12em; color: var(--primary); margin: 0 0 .4em; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; user-select: all; }
.coupon-status { min-height: 1.5em; margin: .6em 0 0; color: var(--text); }
@media (min-width: 720px) { .steps.steps-stack { grid-template-columns: 1fr; } }

/* Breadcrumbs and footer guides */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; }
.footer-head { font-weight: 700; margin-bottom: .5em; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; } }
