/* ==========================================================================
   Vantage Visa Partners — Design System
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #0f2a43;
  --navy-dark: #081a2b;
  --navy-tint: #12385a;
  --teal: #1ba98c;
  --teal-dark: #148f76;
  --gold: #e3a93a;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #1a2330;
  --text-muted: #5b6b7c;
  --border: #e2e8ef;
  --success: #1ba98c;
  --danger: #d64545;

  /* Type */
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 42, 67, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 42, 67, 0.16);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 var(--space-2); color: var(--text-muted); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(27, 169, 140, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

.section-head { max-width: 640px; margin: 0 auto var(--space-4); text-align: center; }
.section-head p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--teal-dark); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 0 0 0; background: var(--surface); flex-direction: column; padding: var(--space-4); gap: var(--space-3); transform: translateY(-120%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: inline-flex; background: none; border: none; cursor: pointer; padding: 0.4rem; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(27,169,140,0.35), transparent 60%),
    linear-gradient(100deg, rgba(8,26,43,0.96) 0%, rgba(8,26,43,0.90) 38%, rgba(15,42,67,0.55) 68%, rgba(15,42,67,0.30) 100%),
    url('../img/hero-journey-abroad.jpg');
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  padding: var(--space-6) 0 var(--space-5);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 520px; }
.hero h1 { color: #fff; margin-bottom: var(--space-3); }
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.hero-trust { margin-top: var(--space-5); display: flex; gap: var(--space-4); flex-wrap: wrap; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.hero-trust strong { color: #fff; display: block; font-size: 1.4rem; font-family: var(--font-heading); }

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.hero-card h3 { margin-bottom: var(--space-2); }
.hero-card ul { margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.hero-card li { display: flex; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.hero-card li:last-child { border-bottom: none; }
.hero-card .check { color: var(--teal); font-weight: 800; }

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

/* ---------- Country chips / grid ---------- */
.country-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
.country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2);
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.country-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.country-flag { font-size: 2rem; margin-bottom: 0.4rem; }
.country-card strong { display: block; font-family: var(--font-heading); color: var(--navy); }

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

/* ---------- Cards / features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.card-photo {
  overflow: hidden;
  padding: 0;
}
.card-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.card-photo .card-photo-body {
  padding: var(--space-3);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(27,169,140,0.12);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}

/* ---------- Steps / timeline ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-3); }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.step-num {
  counter-increment: step;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800;
}
.step-num::before { content: counter(step); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: var(--space-3); }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--navy); }
.field .hint { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,169,140,0.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--text-muted); }
.checkbox-field input { margin-top: 0.25rem; }

/* Progress / stepper */
.progress-track { display: flex; align-items: center; margin-bottom: var(--space-4); }
.progress-step { flex: 1; text-align: center; position: relative; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.progress-step .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.4rem; font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; }
.progress-step.active .dot, .progress-step.done .dot { background: var(--teal); color: #fff; }
.progress-step:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: 55%; width: 90%; height: 2px; background: var(--border); z-index: -1; }
.progress-step.done:not(:last-child)::after { background: var(--teal); }

/* Upload dropzone */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 700px) { .upload-grid { grid-template-columns: 1fr; } }
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--teal); background: rgba(27,169,140,0.06); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.dropzone .dz-title { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.dropzone .dz-sub { font-size: 0.75rem; color: var(--text-muted); }
.dropzone .dz-file { margin-top: 0.5rem; font-size: 0.8rem; color: var(--teal-dark); font-weight: 700; word-break: break-all; }

/* Alerts / status */
.alert { border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font-size: 0.9rem; margin-bottom: var(--space-3); }
.alert-success { background: rgba(27,169,140,0.1); color: var(--teal-dark); border: 1px solid rgba(27,169,140,0.3); }
.alert-error { background: rgba(214,69,69,0.08); color: var(--danger); border: 1px solid rgba(214,69,69,0.3); }
.alert-info { background: rgba(15,42,67,0.05); color: var(--navy); border: 1px solid rgba(15,42,67,0.15); }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-draft { background: rgba(91,107,124,0.12); color: var(--text-muted); }
.badge-paid { background: rgba(27,169,140,0.12); color: var(--teal-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-tint));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  margin: 0 auto;
  max-width: var(--max-width);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: var(--space-5) 0 var(--space-3); margin-top: var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
.footer-grid h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--space-4); padding-top: var(--space-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.disclaimer-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: var(--space-4); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: var(--space-5) 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-1); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

/* Page-header photo variants: dark overlay gradient over a background photo,
   one per inner page so each section gets a distinct, relevant image. */
.page-hero-photo {
  background-size: cover;
  background-position: center;
  padding: var(--space-6) 0;
}
.page-hero--about {
  background-image: linear-gradient(180deg, rgba(8,26,43,0.90) 0%, rgba(8,26,43,0.80) 100%), url('../img/about-header-tradesperson.jpg');
}
.page-hero--howitworks {
  background-image: linear-gradient(180deg, rgba(8,26,43,0.90) 0%, rgba(8,26,43,0.80) 100%), url('../img/howitworks-header-construction.jpg');
}
.page-hero--apply {
  background-image: linear-gradient(180deg, rgba(8,26,43,0.90) 0%, rgba(8,26,43,0.80) 100%), url('../img/apply-header-mobile-consult.jpg');
}
.page-hero--contact {
  background-image: linear-gradient(180deg, rgba(8,26,43,0.90) 0%, rgba(8,26,43,0.80) 100%), url('../img/contact-header-consultation.jpg');
}

/* Table (how-it-works pricing / fee breakdown) */
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: 0.9rem 1.1rem; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
table.simple th { background: var(--bg); color: var(--navy); font-family: var(--font-heading); }
table.simple tr:last-child td { border-bottom: none; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 0.8rem; margin-bottom: var(--space-3); }
.contact-item .card-icon { margin-bottom: 0; flex-shrink: 0; }

.faq-item { border-bottom: 1px solid var(--border); padding: var(--space-2) 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); font-family: var(--font-heading); }
.faq-item p { margin-top: 0.6rem; }
