/* ===== DESIGN TOKENS ===== */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Dark automotive palette — Night City */
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-2: #1a1a1a;
  --color-surface-3: #222222;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-accent: rgba(123, 131, 235, 0.25);
  --color-text: #f0f0f0;
  --color-text-muted: #9a9a9a;
  --color-text-faint: #555555;

  /* Primary: Periwinkle purple */
  --color-accent: #7B83EB;
  --color-accent-hover: #9198F0;
  --color-accent-muted: rgba(123, 131, 235, 0.15);

  /* Secondary: Light pink */
  --color-green: #DB2777;
  --color-green-light: #F9A8D4;
  --color-green-muted: rgba(249, 168, 212, 0.10);

  /* Tertiary: Cool teal */
  --color-terra: #2DD4BF;
  --color-terra-light: #5EEAD4;
  --color-terra-muted: rgba(45, 212, 191, 0.10);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);

  /* Gradient accent bar */
  --gradient-mex: linear-gradient(90deg, var(--color-accent), var(--color-green-light), var(--color-terra));

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ===== GLOBAL ===== */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 200;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-4);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.logo-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-oe-t {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 22px;
  color: #7B83EB;
  line-height: 1;
  display: block;
  margin-top: 1px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-terra);
}

/* Desktop nav */
.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--color-terra); }

/* Mobile menu button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.mobile-nav a:hover, .mobile-nav a:active { color: var(--color-terra); }

/* ===== CTA BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(123, 131, 235, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--color-terra);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid var(--color-terra);
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--color-terra-muted);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-32) var(--space-4) var(--space-12);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.5) 40%,
    rgba(10, 10, 10, 0.92) 80%,
    rgba(10, 10, 10, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-green-light);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-green-muted);
  border-radius: var(--radius-full);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-terra);
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ===== SECTION GENERAL ===== */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-4);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

/* Alternate section label colors for tri-color feel */
.about .section-label { color: var(--color-green-light); }
.packages .section-label { color: var(--color-accent); }
.results .section-label { color: var(--color-terra); }
.contact .section-label { color: var(--color-green-light); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-10);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.stat-row {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-terra);
}

.stat-item:nth-child(2) strong { color: var(--color-accent); }
.stat-item:nth-child(3) strong { color: var(--color-green-light); }

.stat-item span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== PACKAGES / PRICING ===== */
.packages {
  background: var(--color-bg);
}

.packages-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.package-card:hover {
  border-color: rgba(249, 168, 212, 0.2);
  box-shadow: 0 8px 32px rgba(123, 131, 235, 0.06);
}

.package-card.featured {
  border-color: var(--color-accent);
  background: linear-gradient(to bottom, rgba(206, 44, 36, 0.06), var(--color-surface));
}

.package-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.package-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.package-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-terra);
  margin-bottom: var(--space-1);
}

.package-card.featured .package-price { color: var(--color-accent); }
.package-card:nth-child(1) .package-price { color: var(--color-green-light); }
.package-card:nth-child(4) .package-price { color: var(--color-accent); }

.package-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}

.package-note {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.package-features {
  list-style: none;
  flex: 1;
  margin-bottom: var(--space-6);
}

.package-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.package-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green-light);
  flex-shrink: 0;
}

.package-card.featured .package-features li::before { background: var(--color-accent); }

.package-card .btn-primary,
.package-card .btn-outline {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Add-ons section */
.addons {
  margin-top: var(--space-10);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.addons-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.addons-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .addons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}

.addon-name {
  font-size: var(--text-sm);
  font-weight: 500;
}

.addon-price {
  font-weight: 700;
  color: var(--color-terra);
  font-size: var(--text-sm);
}

/* ===== RESULTS / GALLERY ===== */
.results {
  background: var(--color-surface);
}

.results-showcase {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .results-showcase {
    grid-template-columns: 1fr 1fr;
  }
}

.result-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
}

.result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card:hover img {
  transform: scale(1.03);
}

.result-card-label {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* ===== CONTACT / BOOK NOW ===== */
.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item:nth-child(1) .contact-icon { background: var(--color-accent-muted); color: var(--color-accent); }
.contact-info-item:nth-child(2) .contact-icon { background: var(--color-green-muted); color: var(--color-green-light); }
.contact-info-item:nth-child(3) .contact-icon { background: var(--color-terra-muted); color: var(--color-terra); }

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.contact-detail p, .contact-detail a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.contact-detail a:hover { color: var(--color-terra); }

.book-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.book-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-mex);
}

.book-cta h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.book-cta p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 360px;
}

.book-cta .btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 280px;
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer .logo {
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* ===== SCROLL ANIMATIONS ===== */
/* Only animate reveals if JS has loaded — prevents invisible content on slow connections */
.js-loaded .reveal {
  opacity: 0;
}

.js-loaded .reveal button,
.js-loaded .reveal a {
  pointer-events: auto;
}

.js-loaded .reveal {
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js-loaded .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* ===== FLOATING BOOK NOW (mobile only) ===== */
.floating-cta {
  display: none; /* hidden by default, shown on mobile only */
}

@media (max-width: 767px) {
  .floating-cta {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 90;
    /* Safe area for notched phones */
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    pointer-events: auto;
  }

  .floating-cta .btn-primary {
    flex: 1;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.875rem;
    box-shadow: 0 4px 24px rgba(123, 131, 235, 0.45), 0 0 0 1px rgba(123, 131, 235, 0.3);
  }

  /* Extra bottom padding so floating CTA doesn't cover footer content */
  .footer { padding-bottom: calc(var(--space-8) + 80px); }
}
