/*
Theme Name: Apex FastPass Theme
Theme URI: https://fastpasstijuana.com
Author: Apex AI Operations
Description: Premium custom theme for FastPass Tijuana — Priority lane border crossing pass. Navy/gold design, mobile-first, pure CSS.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: apex-fastpass
*/

/* ========== RESET & VARIABLES ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --navy-light: #121f36;
  --navy-medium: #1a2d4a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-glow: rgba(37, 99, 235, 0.15);
  --gold: #d4a843;
  --gold-light: #e8c566;
  --gold-glow: rgba(212, 168, 67, 0.12);
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.12);
  --red: #ef4444;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-700); background: var(--white); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.9rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.site-logo { text-decoration: none; }
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--white); display: flex; align-items: center; gap: 0.5rem; }
.logo-text .gold { color: var(--gold); }
.logo-tagline { display: none; }

.nav-list { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-list li a { color: var(--gray-400); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-list li a:hover { color: var(--white); }

.header-cta .btn { background: var(--gold); color: var(--navy); padding: 0.6rem 1.4rem; border-radius: 8px; font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: var(--transition); }
.header-cta .btn:hover { background: var(--gold-light); }
.header-phone { display: none; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); }
.mobile-nav { display: none; }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-medium) 100%);
  padding: 8rem 0 5rem; position: relative; overflow: hidden;
}
.hero-bg-img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('/wp-content/uploads/2025/12/4PU5fZ8cJziY-CnUqrD-X.webp') center/cover no-repeat;
  opacity: 0.15; z-index: 0;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold-glow); border: 1px solid rgba(212,168,67,0.25);
  color: var(--gold-light); padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading); font-size: 3.2rem; font-weight: 800;
  color: var(--white); line-height: 1.15; margin-bottom: 1.5rem;
}
.hero-title .highlight { color: var(--gold); }
.hero-desc { color: var(--gray-400); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.8rem; border-radius: 10px; font-weight: 700;
  font-size: 0.95rem; text-decoration: none; transition: var(--transition); cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
/* Legacy button support */
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

.hero-stats { display: flex; gap: 2.5rem; }
.hero-stat-number { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.15rem; }

/* Pass card visual */
.pass-card {
  background: linear-gradient(135deg, var(--navy-medium) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius-lg); padding: 2rem; position: relative; overflow: hidden;
}
.pass-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px;
  background: radial-gradient(circle at top right, var(--gold-glow) 0%, transparent 70%);
}
.pass-card-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 0.75rem; }
.pass-card-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--white); font-weight: 700; margin-bottom: 1.5rem; }
.pass-card-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pass-card-row:last-child { border: none; }
.pass-label { color: var(--gray-400); font-size: 0.85rem; }
.pass-value { font-weight: 600; font-size: 0.85rem; }
.pass-fast { color: var(--green); }
.pass-slow { color: var(--red); }
.pass-badge {
  display: inline-block; margin-top: 1.25rem; padding: 0.5rem 1.2rem;
  background: var(--green-glow); border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px; color: var(--green); font-size: 0.8rem; font-weight: 600;
}

/* ========== TRUST BAR ========== */
.trust-bar { background: var(--gray-50); padding: 1.2rem 0; border-bottom: 1px solid var(--gray-100); }
.trust-inner, .trust-bar-inner { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; color: var(--gray-500); font-size: 0.85rem; font-weight: 500; }
.trust-item svg { color: var(--blue); }
.trust-icon { color: var(--blue); }

/* ========== SECTIONS ========== */
.section { padding: 5rem 0; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue); margin-bottom: 0.75rem;
}
.section-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--navy); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.text-center { text-align: center; }

/* ========== PROBLEM ========== */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.problem-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--gray-100); border-left: 4px solid var(--red);
  text-align: left;
}
.problem-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--navy); margin: 1rem 0 0.5rem; }
.problem-card p { color: var(--gray-500); font-size: 0.9rem; }
.problem-icon { color: var(--red); }

/* ========== STEPS ========== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.step-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  border: 1px solid var(--gray-100); text-align: center; position: relative;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num, .step-number {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1rem;
  margin: 0 auto 1.25rem;
}
.step-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--navy); margin: 0.75rem 0 0.5rem; }
.step-card p { color: var(--gray-500); font-size: 0.9rem; }
.step-icon { color: var(--blue); margin-bottom: 0.5rem; }

/* ========== PRICING ========== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 780px; margin: 3rem auto 0; }
.price-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem;
  border: 1px solid var(--gray-100); text-align: center; position: relative;
  transition: var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-card.featured { border: 2px solid var(--gold); }
.price-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); padding: 0.3rem 1.2rem;
  border-radius: 100px; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.price-amount { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--navy); margin: 1rem 0 0.25rem; }
.price-amount span { font-size: 1.2rem; font-weight: 500; }
.price-per { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 1.5rem; }
.price-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.price-features li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--gray-700); }
.price-check { color: var(--green); flex-shrink: 0; }

/* Legacy pricing support */
.services-grid { display: grid; gap: 2rem; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--gray-100); transition: var(--transition); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* ========== COMPARE ========== */
.compare-section, .border-info { background: var(--navy); color: var(--white); }
.compare-grid, .border-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; align-items: start; }
.compare-table { background: var(--navy-light); border-radius: var(--radius-lg); overflow: hidden; }
.compare-header { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 1rem 1.5rem; background: var(--navy-medium); font-weight: 700; font-size: 0.85rem; }
.compare-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.compare-row:last-child { border: none; }
.val-good { color: var(--green); font-weight: 600; }
.val-bad { color: var(--red); font-weight: 500; }
.feature-list, .border-info-features { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-item, .border-feature { display: flex; gap: 1rem; }
.feature-icon, .border-feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-glow); color: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-item h4, .border-feature h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 0.25rem; }
.feature-item p, .border-feature p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.5; }
/* Legacy comparison table */
.comparison-table { background: var(--navy-light); border-radius: var(--radius-lg); overflow: hidden; }
.comparison-header { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 1rem 1.5rem; background: var(--navy-medium); font-weight: 700; font-size: 0.85rem; }
.comparison-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.comparison-row:last-child { border: none; }
.feature { font-weight: 500; }
.sentri-val { color: var(--green); font-weight: 600; }
.regular-val { color: var(--red); font-weight: 500; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.test-card, .testimonial-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 2rem; }
.test-stars, .testimonial-stars { color: var(--gold); margin-bottom: 1rem; display: flex; gap: 2px; }
.test-text, .testimonial-text { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.test-author, .testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar, .testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.test-name, .testimonial-name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.test-role, .testimonial-role { color: var(--gray-500); font-size: 0.8rem; }

/* ========== FAQ ========== */
.faq-section { background: var(--gray-50); }
details, .faq-item { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; border: 1px solid var(--gray-100); cursor: pointer; }
details summary { font-weight: 600; font-size: 1rem; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: '+'; font-size: 1.5rem; color: var(--blue); font-weight: 300; }
details[open] summary::after { content: '-'; }
details summary::-webkit-details-marker { display: none; }
details p { margin-top: 1rem; color: var(--gray-500); line-height: 1.7; font-size: 0.95rem; }

/* ========== CTA ========== */
.cta-section, .booking-cta {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-medium) 100%);
  padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before, .booking-cta::before {
  content: ''; position: absolute; top: -40%; right: -15%; width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2, .booking-cta h2 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--white); margin-bottom: 0.75rem; position: relative; z-index: 2; }
.cta-section p, .booking-cta p { color: var(--gray-400); font-size: 1.05rem; margin-bottom: 2rem; position: relative; z-index: 2; }
.cta-section .btn, .booking-cta .btn { position: relative; z-index: 2; }
.booking-cta-content { position: relative; z-index: 2; }
.booking-cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ========== FOOTER ========== */
.site-footer { background: var(--navy); padding: 3rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.footer-brand { color: var(--gray-400); font-size: 0.85rem; }
.footer-brand .logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-brand .gold { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--gray-500); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy, .footer-bottom { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); color: var(--gray-500); font-size: 0.8rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
/* Legacy footer grid support */
.footer-main { padding: 0; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-column h4 { color: var(--white); margin-bottom: 0.75rem; font-size: 0.9rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.5rem; }
.footer-column a { color: var(--gray-500); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-column a:hover { color: var(--white); }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; color: var(--gray-400); font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a { color: var(--gray-500); transition: var(--transition); }
.footer-social a:hover { color: var(--gold); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero { padding: 6rem 0 3rem; }
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }
  .problem-grid, .steps-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .compare-grid, .border-info-grid { grid-template-columns: 1fr; }
  .compare-header, .compare-row { font-size: 0.8rem; padding: 0.7rem 1rem; }
  .comparison-header, .comparison-row { font-size: 0.8rem; padding: 0.7rem 1rem; }
  .nav-list { display: none; }
  .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem; gap: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .mobile-nav a { color: var(--gray-400); text-decoration: none; padding: 0.5rem 0; font-size: 0.95rem; }
  .mobile-nav a:hover { color: var(--white); }
  .mobile-cta { text-align: center; margin-top: 0.5rem; }
  .section-title { font-size: 1.8rem; }
  .trust-inner, .trust-bar-inner { gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .services-grid { grid-template-columns: 1fr !important; }
}

/* SVG icons inline */
.icon { display: inline-flex; vertical-align: middle; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; z-index: 9999; padding: 0.5rem 1rem; background: var(--gold); color: var(--navy); font-weight: 700; }
.skip-link:focus { left: 0; top: 0; }

/* Screen reader text */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
