/* ============================================
   ALL TRAIN SOLUTIONS - COMPLETE STYLESHEET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

/* --- CSS Variables (Amtrak.com Official Brand Colors) --- */
:root {
  --brand-blue: #1A3567;
  --brand-blue-dark: #0D1F3C;
  --brand-blue-light: #005DAA;
  --brand-blue-bright: #006CB7;
  --brand-blue-teal: #00537E;
  --brand-red: #4DA8DA;
  --brand-red-dark: #2E86C1;
  --brand-white: #FFFFFF;
  --brand-gray-100: #F5F7FA;
  --brand-gray-200: #E8ECF1;
  --brand-gray-300: #CED4DA;
  --brand-gray-400: #8E97A3;
  --brand-gray-500: #5C6573;
  --brand-gray-600: #3D4551;
  --brand-gray-700: #2D3440;
  --brand-gray-800: #1C222B;
  --brand-gray-900: #0D1117;
  --brand-accent: #E8A317;
  --brand-accent-light: #F5C748;
  --brand-green: #0B8043;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 8px -1px rgba(13,31,60,0.1), 0 2px 4px -2px rgba(13,31,60,0.06);
  --shadow-lg: 0 12px 20px -4px rgba(13,31,60,0.12), 0 4px 8px -4px rgba(13,31,60,0.08);
  --shadow-xl: 0 24px 32px -6px rgba(13,31,60,0.14), 0 8px 12px -6px rgba(13,31,60,0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brand-gray-800);
  background: var(--brand-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: all var(--transition-normal);
}

ul, ol {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   TOP UTILITY BAR
   ============================================ */
.top-bar {
  background: var(--brand-gray-900);
  color: var(--brand-white);
  font-size: 0.8125rem;
  padding: 6px 0;
  position: relative;
  z-index: 100;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-left a {
  color: var(--brand-gray-300);
  font-size: 0.75rem;
  transition: color var(--transition-fast);
}

.top-bar-left a:hover {
  color: var(--brand-white);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right a {
  color: var(--brand-gray-300);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-bar-right a:hover {
  color: var(--brand-white);
}

.top-bar-phone {
  color: var(--brand-accent) !important;
  font-weight: 600;
}

/* ============================================
   MAIN HEADER / NAVIGATION
   ============================================ */
.main-header {
  background: var(--brand-blue);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1440px;
  margin: 0 auto;
  height: 68px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-white);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--brand-red);
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.main-nav a {
  color: var(--brand-white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 18px;
  height: 68px;
  display: flex;
  align-items: center;
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--brand-red);
  transition: width var(--transition-normal);
  border-radius: 3px 3px 0 0;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.08);
}

.main-nav a:hover::after {
  width: 70%;
}

.main-nav a.active::after {
  width: 70%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-btn {
  background: transparent;
  color: var(--brand-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.header-search-btn:hover {
  background: rgba(255,255,255,0.1);
}

.btn-sign-in {
  background: transparent;
  color: var(--brand-white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-sign-in:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--brand-white);
  font-size: 1.5rem;
  padding: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 40, 71, 0.85) 0%,
    rgba(27, 58, 107, 0.6) 40%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: var(--brand-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(77, 168, 218, 0.9);
  color: var(--brand-white);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
  color: var(--brand-accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 520px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
  background: var(--brand-red);
  color: var(--brand-white);
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(77, 168, 218, 0.4);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(77, 168, 218, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-white);
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* --- Booking Widget --- */
.booking-widget {
  background: var(--brand-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.booking-tabs {
  display: flex;
  background: var(--brand-gray-100);
  border-bottom: 2px solid var(--brand-gray-200);
}

.booking-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-gray-500);
  background: transparent;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.booking-tab.active {
  color: var(--brand-blue);
  background: var(--brand-white);
  border-bottom-color: var(--brand-blue);
}

.booking-tab:hover:not(.active) {
  color: var(--brand-gray-700);
  background: rgba(0,0,0,0.02);
}

.booking-form {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--brand-gray-300);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--brand-gray-800);
  background: var(--brand-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-blue-bright);
  box-shadow: 0 0 0 3px rgba(0, 93, 170, 0.15);
}

.form-group input::placeholder {
  color: var(--brand-gray-400);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.btn-book {
  width: 100%;
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: all var(--transition-normal);
}

.btn-book:hover {
  background: var(--brand-blue-dark);
  box-shadow: 0 4px 12px rgba(27, 58, 107, 0.4);
  transform: translateY(-1px);
}

.trip-type-toggle {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.trip-type-toggle label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--brand-gray-600);
  cursor: pointer;
  font-weight: 500;
}

.trip-type-toggle input[type="radio"] {
  accent-color: var(--brand-blue);
  width: 16px;
  height: 16px;
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
  padding: 14px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.02) 20px,
    rgba(255,255,255,0.02) 40px
  );
  animation: slide 30s linear infinite;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-56px); }
}

.promo-banner p {
  color: var(--brand-white);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.promo-banner a {
  color: var(--brand-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.promo-banner a:hover {
  color: #FFD700;
}

/* ============================================
   POPULAR DESTINATIONS
   ============================================ */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--brand-gray-100);
}

.section-blue {
  background: var(--brand-blue-dark);
  color: var(--brand-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-blue-bright);
  margin-bottom: 12px;
}

.section-blue .section-eyebrow {
  color: var(--brand-accent);
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-blue .section-header h2 {
  color: var(--brand-white);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--brand-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-blue .section-header p {
  color: rgba(255,255,255,0.7);
}

/* Destination Cards */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.destination-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.destination-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.destination-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.destination-card:hover .destination-card-img img {
  transform: scale(1.08);
}

.destination-card-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand-red);
  color: var(--brand-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.destination-card-body {
  padding: 20px;
}

.destination-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-gray-900);
  margin-bottom: 4px;
}

.destination-card-body p {
  font-size: 0.875rem;
  color: var(--brand-gray-500);
}

.destination-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-blue-bright);
}

.destination-card-link:hover {
  color: var(--brand-blue);
}

/* ============================================
   ROUTES SECTION
   ============================================ */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.route-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.route-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-accent));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.route-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.route-card:hover::before {
  opacity: 1;
}

.route-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-bright), var(--brand-blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.route-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.route-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}

.route-card-link {
  color: var(--brand-accent);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.route-card-link:hover {
  color: #FFD700;
}

/* ============================================
   EXPERIENCE SECTION (2 Column)
   ============================================ */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.experience-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.experience-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.experience-image:hover img {
  transform: scale(1.03);
}

.experience-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.experience-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.experience-text p {
  font-size: 1rem;
  color: var(--brand-gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 93, 170, 0.1);
  color: var(--brand-blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.feature-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-gray-800);
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.8125rem;
  color: var(--brand-gray-500);
  margin-bottom: 0;
}

/* ============================================
   DEALS BANNER
   ============================================ */
.deals-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 0 auto;
  max-width: 1280px;
}

.deals-banner-bg {
  position: absolute;
  inset: 0;
}

.deals-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deals-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 58, 107, 0.92) 0%, rgba(27, 58, 107, 0.5) 100%);
}

.deals-banner-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.deals-banner-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-white);
  margin-bottom: 12px;
}

.deals-banner-text p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
}

/* ============================================
   TRAK SUITS SECTION
   ============================================ */
.trak-section {
  background: linear-gradient(180deg, var(--brand-gray-100) 0%, var(--brand-white) 100%);
}

.trak-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.trak-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.trak-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.trak-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin-bottom: 16px;
}

.trak-text p {
  font-size: 1rem;
  color: var(--brand-gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-bar {
  background: var(--brand-blue);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  color: var(--brand-white);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.85;
}

/* ============================================
   CTA / CALL SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-white);
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-white);
  color: var(--brand-blue-dark);
  padding: 16px 36px;
  border-radius: 40px;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: all var(--transition-normal);
}

.cta-phone:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  color: var(--brand-blue-bright);
}

.cta-phone-icon {
  width: 44px;
  height: 44px;
  background-color: #08203e;
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  animation: blinkBlueBg 0.8s infinite alternate;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 168, 218, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(77, 168, 218, 0); }
}

.cta-hours {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--brand-gray-900);
  color: var(--brand-gray-300);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--brand-gray-400);
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gray-400);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--brand-blue-bright);
  color: var(--brand-white);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-white);
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 0.875rem;
  color: var(--brand-gray-400);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--brand-white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--brand-gray-500);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--brand-gray-500);
}

.footer-bottom-links a:hover {
  color: var(--brand-white);
}

.footer-disclaimer {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 100% !important;
  hyphens: auto;
}

/* Prevent horizontal overflow on sections with pseudo-elements */
.promo-banner,
.cta-section,
.page-hero,
.hero,
.stats-bar,
.section,
.section-dark,
.section-blue,
.newsletter-section,
.main-footer {
  overflow: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   IMAGE GALLERY SECTION
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px 250px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--brand-white);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  background: var(--brand-gray-100);
  padding: 60px 0;
}

.newsletter-box {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-gray-900);
  margin-bottom: 8px;
}

.newsletter-box p {
  font-size: 1rem;
  color: var(--brand-gray-500);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--brand-gray-300);
  border-radius: 30px;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--brand-blue-bright);
}

.newsletter-form button {
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--brand-blue-dark);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* --- Tablet Breakpoint --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .booking-widget {
    max-width: 500px;
    margin: 0 auto;
  }

  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 200px 200px;
  }

  .gallery-item:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }

  .experience-grid {
    gap: 32px;
  }

  .trak-content {
    gap: 32px;
  }

  .deals-banner-content {
    padding: 40px;
    gap: 30px;
  }
}

/* --- Mobile Breakpoint --- */
@media (max-width: 768px) {

  /* --- Top Bar & Header --- */
  .top-bar {
    display: none;
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .btn-sign-in {
    padding: 7px 16px;
    font-size: 0.75rem;
  }

  /* --- Hero Section --- */
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 36px 16px 40px;
    gap: 24px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .hero-badge {
    font-size: 0.6875rem;
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 15px 24px;
    font-size: 0.9375rem;
    text-align: center;
    justify-content: center;
    border-radius: 12px;
    width: 100%;
    min-height: 50px;
  }

  /* --- Booking Widget --- */
  .booking-widget {
    border-radius: 14px;
    max-width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  }

  .booking-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .booking-tabs::-webkit-scrollbar {
    display: none;
  }

  .booking-tab {
    padding: 13px 12px;
    font-size: 0.8125rem;
    white-space: nowrap;
    min-width: 0;
  }

  .booking-form {
    padding: 18px 16px;
  }

  .form-group label {
    font-size: 0.6875rem;
    margin-bottom: 5px;
  }

  .form-group input,
  .form-group select {
    padding: 13px 14px;
    font-size: 1rem; /* 16px prevents iOS zoom */
    border-radius: 10px;
    -webkit-appearance: none;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .btn-book {
    padding: 15px;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 52px;
    margin-top: 4px;
  }

  .trip-type-toggle {
    gap: 20px;
    margin-bottom: 14px;
  }

  .trip-type-toggle label {
    font-size: 0.8125rem;
  }

  /* --- Promo Banner --- */
  .promo-banner {
    padding: 12px 16px;
  }

  .promo-banner p {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  /* --- Sections General --- */
  .section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-header .section-eyebrow {
    font-size: 0.6875rem;
    margin-bottom: 8px;
  }

  .section-header h2 {
    font-size: 1.5rem;
    letter-spacing: -0.3px;
  }

  .section-header p {
    font-size: 0.9375rem;
    padding: 0 8px;
  }

  /* --- Stats Bar --- */
  .stats-bar {
    padding: 32px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .stat-item {
    padding: 8px 0;
  }

  .stat-number {
    font-size: 1.75rem;
    margin-bottom: 2px;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* --- Destination Cards --- */
  .destinations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .destination-card {
    border-radius: 14px;
  }

  .destination-card-img {
    height: 200px;
  }

  .destination-card-body {
    padding: 16px 18px;
  }

  .destination-card-body h3 {
    font-size: 1.0625rem;
    margin-bottom: 4px;
  }

  .destination-card-body p {
    font-size: 0.8125rem;
  }

  .destination-card-link {
    padding: 10px 0 0;
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .destination-card-price {
    padding: 5px 14px;
    font-size: 0.8125rem;
  }

  /* --- Experience Section --- */
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .experience-image {
    border-radius: 14px;
  }

  .experience-image img {
    height: 220px;
    border-radius: 14px;
  }

  .experience-image-badge {
    bottom: 14px;
    left: 14px;
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .experience-text .section-eyebrow {
    font-size: 0.6875rem;
  }

  .experience-text h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .experience-text > p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .feature-list {
    gap: 14px;
    margin-bottom: 24px;
  }

  .feature-item {
    gap: 14px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
    flex-shrink: 0;
  }

  .feature-item h4 {
    font-size: 0.875rem;
    margin-bottom: 2px;
  }

  .feature-item p {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  /* --- Routes --- */
  .routes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
  }

  .route-card {
    padding: 24px 20px;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }

  .route-card-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .route-card h3 {
    font-size: 1.0625rem;
    width: calc(100% - 64px);
    margin-bottom: 4px;
  }

  .route-card p {
    font-size: 0.8125rem;
    width: 100%;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .route-card-link {
    font-size: 0.8125rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* --- Deals Banner --- */
  .deals-banner {
    border-radius: 14px;
    margin: 0 -4px;
  }

  .deals-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    gap: 20px;
  }

  .deals-banner-text h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .deals-banner-text p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  /* --- Trak / Seating Sections --- */
  .trak-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trak-image {
    border-radius: 14px;
    order: -1;
  }

  .trak-image img {
    height: 220px;
    border-radius: 14px;
  }

  .trak-text .section-eyebrow {
    font-size: 0.6875rem;
  }

  .trak-text h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .trak-text p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  /* --- Gallery --- */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    height: 200px;
  }

  .gallery-item {
    height: 150px;
    border-radius: 10px;
  }

  .gallery-item-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
    padding: 12px;
  }

  .gallery-item-overlay span {
    font-size: 0.8125rem;
  }

  /* --- Newsletter --- */
  .newsletter-section {
    padding: 48px 0;
  }

  .newsletter-box {
    padding: 0 4px;
  }

  .newsletter-box h2 {
    font-size: 1.375rem;
    margin-bottom: 8px;
  }

  .newsletter-box p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input {
    font-size: 1rem;
    border-radius: 12px;
    padding: 14px 16px;
  }

  .newsletter-form button {
    border-radius: 12px;
    padding: 15px;
    min-height: 50px;
  }

  /* --- CTA Section --- */
  .cta-section {
    padding: 48px 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
    padding: 0 8px;
    margin-bottom: 10px;
  }

  .cta-section p {
    font-size: 0.9375rem;
    padding: 0 8px;
    margin-bottom: 24px;
  }

  .cta-phone {
    font-size: 1.125rem;
    padding: 14px 24px;
    border-radius: 14px;
    flex-direction: row;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .cta-phone-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .cta-hours {
    font-size: 0.8125rem;
  }

  /* --- Footer --- */
  .main-footer {
    padding: 44px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: span 2;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-brand .logo-text {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column h4 {
    margin-bottom: 12px;
    font-size: 0.75rem;
  }

  .footer-column ul li {
    margin-bottom: 8px;
  }

  .footer-column ul li a {
    font-size: 0.8125rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 0;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-bottom-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  /* --- Page Hero (Privacy, Terms, etc.) --- */
  .page-hero {
    padding: 36px 16px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero p {
    font-size: 0.9375rem;
  }

  .page-content {
    padding: 36px 0;
  }

  .page-content .container {
    padding: 0 16px;
  }

  .page-content h2 {
    font-size: 1.25rem;
    margin-top: 28px;
    margin-bottom: 12px;
  }

  .page-content h3 {
    font-size: 1rem;
    margin-top: 20px;
  }

  .page-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .page-content ul li {
    font-size: 0.9375rem;
  }
}

/* --- Small Phone Breakpoint --- */
@media (max-width: 480px) {

  .header-inner {
    height: 52px;
  }

  .logo-text {
    font-size: 1.125rem;
  }

  .hero-content {
    padding: 28px 14px 36px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-badge {
    font-size: 0.625rem;
    padding: 5px 12px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 20px;
    font-size: 0.875rem;
  }

  .booking-form {
    padding: 14px;
  }

  .booking-tab {
    padding: 11px 8px;
    font-size: 0.75rem;
  }

  .section {
    padding: 36px 0;
  }

  .container {
    padding: 0 14px;
  }

  .section-header h2 {
    font-size: 1.375rem;
  }

  .stats-grid {
    gap: 16px 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }

  .destination-card-img {
    height: 180px;
  }

  .experience-image img {
    height: 200px;
  }

  .gallery-item:first-child {
    height: 170px;
  }

  .gallery-item {
    height: 130px;
  }

  .route-card {
    padding: 20px 16px;
  }

  .route-card-icon {
    width: 42px;
    height: 42px;
  }

  .cta-section h2 {
    font-size: 1.375rem;
  }

  .cta-phone {
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 100%;
  }

  .newsletter-box h2 {
    font-size: 1.25rem;
  }

  /* Footer small phone */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column ul li a {
    justify-content: center;
  }

  .page-hero {
    padding: 28px 14px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .deals-banner-content {
    padding: 28px 16px;
  }

  .deals-banner-text h2 {
    font-size: 1.375rem;
  }

  .trak-image img {
    height: 190px;
  }
}

/* ============================================
   PRIVACY, TERMS, DISCLAIMER PAGES
   ============================================ */
.page-hero {
  background: var(--brand-blue);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-white);
  margin-bottom: 8px;
  position: relative;
}

.page-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  position: relative;
}

.page-content {
  padding: 60px 0;
}

.page-content .container {
  max-width: 840px;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-gray-900);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-gray-200);
}

.page-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-gray-800);
  margin-top: 24px;
  margin-bottom: 8px;
}

.page-content p {
  font-size: 1rem;
  color: var(--brand-gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.page-content ul li {
  list-style: disc;
  font-size: 1rem;
  color: var(--brand-gray-600);
  line-height: 1.8;
  margin-bottom: 6px;
}

.page-content a {
  color: var(--brand-blue-bright);
  text-decoration: underline;
}

.page-content a:hover {
  color: var(--brand-blue);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--brand-blue-dark);
  z-index: 9999;
  padding: 24px;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  background: transparent;
  color: var(--brand-white);
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
}

.mobile-menu nav a {
  display: block;
  color: var(--brand-white);
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu nav a:hover {
  color: var(--brand-accent);
}

.mobile-menu-phone {
  display: block;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--brand-red);
  color: var(--brand-white);
  text-align: center;
  border-radius: 30px;
  font-size: 1.125rem;
  font-weight: 700;
}

/* ============================================
   POPUP MODAL
   ============================================ */
/* Hide popup on desktop entirely */
@media (min-width: 769px) {
  .popup-overlay {
    display: none !important;
  }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-modal {
  background: var(--brand-white);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  transform: scale(0.85) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.popup-overlay.active .popup-modal {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 10;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: rotate(90deg);
}

/* Popup Logo */
.popup-logo {
  background: var(--brand-white);
  padding: 18px 20px;
  text-align: center;
  border-bottom: 4px solid var(--brand-red);
}

.popup-logo-img {
  height: 55px;
  margin: 0 auto;
  object-fit: contain;
}

/* Popup Image */
.popup-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
}

.popup-discount-badge {
  background: var(--brand-red);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(77, 168, 218, 0.5);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Popup Content */
.popup-content {
  padding: 24px;
}

.popup-sorry {
  text-align: center;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--brand-gray-200);
  margin-bottom: 16px;
}

.popup-sorry-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.popup-sorry-msg {
  font-size: 0.9375rem;
  color: var(--brand-gray-600);
  line-height: 1.6;
}

.popup-help-text {
  font-size: 0.9375rem;
  color: var(--brand-gray-700);
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}

.popup-help-text strong {
  color: var(--brand-gray-900);
}

/* Popup Deals */
.popup-deals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--brand-gray-100);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--brand-gray-200);
}

.popup-deal-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-gray-700);
  padding: 4px 0;
}

.popup-deal-item strong {
  color: var(--brand-red);
}

/* Popup Phone Button */
.popup-phone-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background-color: #08203e;
  color: white;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(77, 168, 218, 0.4);
  animation: blinkBlueBg 0.8s infinite alternate;
}

@keyframes blinkBlueBg {
  0% { background-color: #08203e; box-shadow: 0 4px 15px rgba(8, 32, 62, 0.4); }
  100% { background-color: #4DA8DA; box-shadow: 0 4px 25px rgba(77, 168, 218, 0.8); }
}

.popup-phone-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(77, 168, 218, 0.5);
  color: white;
}

.popup-phone-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: phoneShake 1.5s infinite;
}

@keyframes phoneShake {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-8deg); }
  20% { transform: rotate(8deg); }
  30% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); }
  50%, 100% { transform: rotate(0deg); }
}

.popup-phone-text {
  display: flex;
  flex-direction: column;
}

.popup-phone-label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.popup-phone-number {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Popup Card Image (bottom) */
.popup-card-image {
  margin-top: 16px;
  text-align: center;
  background: linear-gradient(135deg, #eef2f7 0%, #dce4ee 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--brand-gray-200);
}

.popup-card-image img {
  max-height: 140px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.15));
}

.popup-footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--brand-gray-400);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ============================================
   POPUP - PHONE / MOBILE OPTIMIZED
   ============================================ */
@media (max-width: 520px) {
  .popup-overlay {
    padding: 16px;
    align-items: center;
  }

  .popup-modal {
    max-width: 100%;
    width: 100%;
    border-radius: 20px;
    max-height: 85vh;
    transform: scale(0.9) translateY(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  }

  .popup-overlay.active .popup-modal {
    transform: scale(1) translateY(0);
  }

  .popup-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20;
  }

  .popup-logo {
    padding: 14px 16px;
  }

  .popup-logo-img {
    height: 42px;
  }

  .popup-image {
    height: 130px;
  }

  .popup-image img {
    object-position: center 40%;
  }

  .popup-discount-badge {
    padding: 7px 16px;
    font-size: 0.8125rem;
  }

  .popup-content {
    padding: 18px 16px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .popup-sorry {
    padding: 0 0 14px;
    margin-bottom: 14px;
  }

  .popup-sorry-title {
    font-size: 1.1875rem;
    margin-bottom: 6px;
  }

  .popup-sorry-msg {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .popup-help-text {
    font-size: 0.8125rem;
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .popup-deals {
    padding: 12px 14px;
    gap: 6px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .popup-deal-item {
    font-size: 0.8125rem;
    padding: 4px 0;
  }

  .popup-phone-btn {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 12px;
    min-height: 60px;
  }

  .popup-phone-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .popup-phone-label {
    font-size: 0.6875rem;
  }

  .popup-phone-number {
    font-size: 1.25rem;
  }

  .popup-card-image {
    padding: 12px;
    margin-top: 12px;
    border-radius: 10px;
  }

  .popup-card-image img {
    max-height: 100px;
  }

  .popup-footer-text {
    margin-top: 10px;
    font-size: 0.6875rem;
  }
}

/* Sticky Phone CTA Bar - Mobile Only */
.sticky-phone-bar {
  display: none;
}

@media (max-width: 768px) {
  .sticky-phone-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background-color: #08203e;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
    animation: stickySlideUp 0.5s ease 1s both, blinkBlueBg 0.8s infinite alternate;
    min-height: 52px;
  }

  @keyframes stickySlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .sticky-phone-bar .sticky-icon {
    font-size: 1.25rem;
    animation: phoneShake 1.5s infinite;
  }

  .sticky-phone-bar .sticky-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .sticky-phone-bar .sticky-number {
    font-size: 1.0625rem;
    font-weight: 800;
  }

  /* Add bottom padding to footer so content isn't hidden behind sticky bar */
  .main-footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* Ensure body content isn't hidden under sticky bar */
  body {
    padding-bottom: 0;
  }
}
