/* =========================================================
   WanderStay – Design System CSS
   Travel Platform | Long-Stay International Travel
   ========================================================= */

/* ── Google Fonts ── */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap");

/* ── CSS Variables / Tokens ── */
:root {
  /* Brand Colors */
  --color-primary: #0a2240;
  --color-primary-light: #0e3060;
  --color-primary-dark: #061628;
  --color-accent: #c9a84c;
  --color-accent-light: #e8c96a;
  --color-accent-dark: #a8863c;

  /* Service Tints */
  --color-visa: #1e5fa8; /* medium blue */
  --color-dental: #0e7c6e; /* teal-green */

  /* Neutrals */
  --color-surface: #f8f7f4;
  --color-surface-2: #efede8;
  --color-white: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.18);
  --shadow-accent: 0 8px 24px rgba(201, 168, 76, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1280px;
  --nav-height: 80px;
}

/* ── CSS Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
ul,
ol {
  list-style: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

/* ── Typography ── */
.text-display {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.text-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.text-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.text-h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}
.text-h4 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}
.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}
.text-body {
  font-size: 1rem;
  line-height: 1.65;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1.4;
}

.text-accent {
  color: var(--color-accent);
}
.text-primary {
  color: var(--color-primary);
}
.text-muted {
  color: var(--color-text-muted);
}
.text-white {
  color: #fff;
}
.text-center {
  text-align: center;
}

/* ── Section ── */
.section {
  padding-block: var(--space-3xl);
}
.section-sm {
  padding-block: var(--space-2xl);
}
.section-dark {
  background: var(--color-primary);
  color: #fff;
}
.section-dark .text-muted {
  color: rgba(255, 255, 255, 0.65);
}
.section-surface-2 {
  background: var(--color-surface-2);
}

/* ─── Page Hero Background Image ─── */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.18;
  filter: saturate(1.3) brightness(0.85);
}

/* ─── Universal Horizontal Slider (mobile-only) ─── */
/* Desktop: slider-wrap/track are invisible wrappers — grid layout unchanged */
.slider-wrap {
  position: relative;
}

/* Nav buttons: hidden on desktop, shown on mobile */
.slider-nav {
  display: none;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: center;
}
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.slider-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.slider-btn:hover svg {
  stroke: #fff;
}
.slider-btn.dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.slider-btn.dark:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 767px) {
  /* Activate slider */
  .slider-track {
    display: flex !important;
    gap: 1rem !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    padding-inline: 0.25rem;
    margin-inline: -0.25rem;
  }
  .slider-track::-webkit-scrollbar {
    display: none;
  }
  /* Each direct child becomes a slide */
  .slider-track > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: calc(82vw - 2rem);
    max-width: 320px;
    min-width: 240px;
  }
  /* Stay-type cards need fixed height */
  .slider-track > .stay-type-card {
    height: 300px;
    aspect-ratio: unset !important;
  }
  /* dest-card-full (destinations page listings) */
  .slider-track > .dest-card-full {
    width: calc(85vw);
    max-width: 360px;
  }
  /* dest-card (homepage image cards with overlay) */
  .dest-grid.slider-track > .dest-card {
    height: 240px;
    aspect-ratio: unset !important;
  }
  /* Override the grid column sizing for dest-grid on mobile */
  .dest-grid.slider-track {
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
  }
  /* Reset first-child span for dest-grid slider */
  .dest-grid.slider-track > .dest-card:first-child {
    grid-row: unset !important;
    grid-column: unset !important;
    width: calc(82vw);
    max-width: 300px;
  }
  /* destinations-grid items on slider */
  .destinations-grid.slider-track {
    grid-template-columns: unset !important;
  }
  /* Feature cards */
  .slider-track > .feature-card,
  .slider-track > .dental-clinic-card,
  .slider-track > .visa-card {
    width: calc(82vw - 1rem);
    max-width: 300px;
  }
  /* Show slider nav on mobile */
  .slider-nav {
    display: flex;
  }
}

/* ── Trust / Stats Bar ── */
.trust-bar {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-bar-inner {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 1.25rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.trust-item span {
  color: rgba(255, 255, 255, 0.8);
}
.trust-item strong {
  color: #fff;
  font-weight: 700;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}
.section-header {
  max-width: 680px;
  margin-bottom: var(--space-xl);
}
.section-header.centered {
  margin-inline: auto;
  text-align: center;
}
.section-header.centered .section-label {
  justify-content: center;
}
.section-header.centered .section-label::before {
  display: none;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 34, 64, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  padding-inline: 1.5rem;
  transition: all var(--transition-base);
  box-shadow: 0 2px 20px rgba(10, 34, 64, 0.08);
}

.option-btn {
  justify-content: start;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(10, 34, 64, 0.12);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}
.navbar-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-fast);
}
.navbar-logo:hover .navbar-logo-img {
  opacity: 0.88;
}
/* Keep old classes in case referenced elsewhere */
.navbar-logo-icon {
  display: none;
}
.navbar-logo-text {
  display: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(10, 34, 64, 0.7);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--color-primary);
  background: rgba(10, 34, 64, 0.07);
}
.nav-link.active {
  color: var(--color-primary);
  background: rgba(10, 34, 64, 0.1);
  font-weight: 700;
}

/* Service links with subtle tints */
.nav-link.visa-link:hover {
  background: rgba(30, 95, 168, 0.1);
  color: var(--color-visa);
}
.nav-link.dental-link:hover {
  background: rgba(14, 124, 110, 0.1);
  color: var(--color-dental);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

@media (max-width: 1023px) {
  .navbar-nav,
  .navbar-cta {
    display: none;
  }
  .navbar-hamburger {
    display: flex;
  }
  .navbar.mobile-open .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: start;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(10, 34, 64, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    gap: 0.5rem;
  }
  .navbar.mobile-open .navbar-nav .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.85);
  }
  .navbar.mobile-open .navbar-nav .nav-link:hover,
  .navbar.mobile-open .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
  .navbar.mobile-open .navbar-cta {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem + 200px);
    left: 0;
    right: 0;
    background: rgba(10, 34, 64, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}
.btn-md {
  padding: 0.75rem 1.5rem;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.btn-xl {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.btn-visa {
  background: var(--color-visa);
  color: #fff;
}
.btn-visa:hover {
  background: #1a54a0;
  box-shadow: 0 8px 24px rgba(30, 95, 168, 0.3);
  transform: translateY(-1px);
}

.btn-dental {
  background: var(--color-dental);
  color: #fff;
}
.btn-dental:hover {
  background: #0b6d61;
  box-shadow: 0 8px 24px rgba(14, 124, 110, 0.3);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* ── Badge / Tag ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.badge-accent {
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-accent-dark);
}
.badge-primary {
  background: rgba(10, 34, 64, 0.1);
  color: var(--color-primary);
}
.badge-visa {
  background: rgba(30, 95, 168, 0.12);
  color: var(--color-visa);
}
.badge-dental {
  background: rgba(14, 124, 110, 0.12);
  color: var(--color-dental);
}
.badge-white {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.badge-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

/* ── Cards ── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-body {
  padding: 1.5rem;
}

.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
}
.card-glass-dark {
  background: rgba(10, 34, 64, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #fff;
}

/* Destination Card */
.dest-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.dest-card:hover img {
  transform: scale(1.06);
}
.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 22, 40, 0.85) 0%,
    rgba(6, 22, 40, 0.15) 60%,
    transparent 100%
  );
}
.dest-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}
.dest-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Service Feature Card */
.feature-card {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
}
.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
  transform: translateY(-3px);
}
.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-bg-travel {
  background: rgba(10, 34, 64, 0.1);
}
.icon-bg-visa {
  background: rgba(30, 95, 168, 0.1);
}
.icon-bg-dental {
  background: rgba(14, 124, 110, 0.1);
}
.icon-bg-accent {
  background: rgba(201, 168, 76, 0.12);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 2rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 22, 40, 0.82) 0%,
    rgba(6, 22, 40, 0.55) 50%,
    rgba(6, 22, 40, 0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-block: var(--space-3xl);
}

/* Page Hero (not full-height) */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 4rem;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(30, 95, 168, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
}

/* ── Search Bar ── */
.search-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-xl);
}
.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.search-field label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.search-field input,
.search-field select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  width: 100%;
}
.search-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }
  .search-divider {
    display: none;
  }
}

/* ── Stats Row ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.375rem;
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Process / Steps ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}
.process-step {
  text-align: center;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-number.visa-step {
  background: var(--color-visa);
  color: #fff;
}
.step-number.dental-step {
  background: var(--color-dental);
  color: #fff;
}

/* ── Testimonial ── */
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-base);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.3);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-accent);
}
.stars {
  display: flex;
  gap: 2px;
}
.star {
  color: var(--color-accent);
  font-size: 0.875rem;
}
.star-empty {
  color: var(--color-border);
}

/* ── Accordion / FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  gap: 1rem;
  transition: color var(--transition-fast);
}
.faq-question:hover {
  color: var(--color-accent-dark);
}
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-accent);
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ── Form ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-white);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Service Pill Nav (Tabs) ── */
.pill-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pill-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pill-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pill-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ── Pricing / Cost Comparison ── */
.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}
.pricing-card.featured {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured .text-muted {
  color: rgba(255, 255, 255, 0.65);
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}
.price-amount.savings {
  color: #22c55e;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    var(--color-visa),
    var(--color-dental)
  );
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -1.875rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline-dot.visa {
  background: var(--color-visa);
  box-shadow: 0 0 0 2px var(--color-visa);
}
.timeline-dot.dental {
  background: var(--color-dental);
  box-shadow: 0 0 0 2px var(--color-dental);
}

/* ── Image with Overlay Layout ── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-layout.reverse {
  direction: rtl;
}
.split-layout.reverse > * {
  direction: ltr;
}
@media (max-width: 767px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-layout.reverse {
    direction: ltr;
  }
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-frame-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

/* ── Footer ── */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  max-width: 280px;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
  cursor: pointer;
}
.footer-link:hover {
  color: var(--color-accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.social-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}

/* ─── RESPONSIVE FIXES ─── */

/* Mobile: 480px và nhỏ hơn */
@media (max-width: 480px) {
  :root {
    --space-3xl: 3.5rem;
    --space-2xl: 2.5rem;
  }

  .section {
    padding-block: 2.5rem;
  }

  /* Page hero */
  .page-hero {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
  }

  /* Hero search bar — stack vertically, full width */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    padding: 1rem;
  }
  .search-divider {
    display: none;
  }
  .search-field select,
  .search-field input {
    font-size: 0.9rem;
  }

  /* Trust bar — wrap tighter */
  .trust-bar-inner {
    gap: 0.75rem 1.25rem;
    padding-block: 0.875rem;
    justify-content: flex-start;
    padding-inline: 1rem;
  }
  .trust-item {
    font-size: 0.8rem;
  }

  /* CTA banner */
  .cta-banner {
    padding: 2rem 1.25rem;
  }

  /* Flex-between stack */
  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Saving hero in dental page */
  .saving-hero {
    flex-direction: column;
    padding: 1.75rem;
  }
  .saving-stat-num {
    font-size: 2.25rem;
  }

  /* Planning layout sidebar hides on mobile */
  .planning-layout {
    grid-template-columns: 1fr;
  }

  /* Dest grid on homepage */
  .dest-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 200px 200px 200px 200px;
  }
  .dest-grid .dest-card:first-child {
    grid-row: span 1;
  }
}

/* Tablet: 481px – 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .section {
    padding-block: 3.5rem;
  }

  .trust-bar-inner {
    gap: 1rem 2rem;
    justify-content: center;
  }

  .saving-hero {
    flex-direction: column;
  }

  .planning-layout {
    grid-template-columns: 1fr;
  }
  .planning-layout aside {
    order: -1;
  }

  /* Dest grid 2 cols on tablet */
  .dest-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .dest-grid .dest-card:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }
}

/* Medium: 769px – 1023px */
@media (min-width: 769px) and (max-width: 1023px) {
  .planning-layout {
    grid-template-columns: 1fr;
  }
  .planning-layout aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .saving-hero {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ── Utility ── */
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.items-center {
  align-items: center;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mt-16 {
  margin-top: 4rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.pt-nav {
  padding-top: calc(var(--nav-height) + 2rem);
}
.w-full {
  width: 100%;
}
.max-w-lg {
  max-width: 512px;
}
.max-w-xl {
  max-width: 640px;
}
.max-w-2xl {
  max-width: 768px;
}
.max-w-3xl {
  max-width: 1024px;
}
.mx-auto {
  margin-inline: auto;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.overflow-hidden {
  overflow: hidden;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  inset: 0;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface-2);
}
::-webkit-scrollbar-thumb {
  background: rgba(10, 34, 64, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ── Selection ── */
::selection {
  background: rgba(201, 168, 76, 0.25);
  color: var(--color-primary);
}
