/* ============================================================
   TASSIE CARS — Global Stylesheet
   Luxury automotive dark UI · glassmorphism · smooth motion
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --charcoal: #16161a;
  --charcoal-2: #1d1d23;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text: #f5f6f8;
  --muted: #adb2bd; /* brightened for WCAG AA contrast on dark surfaces */
  --silver: #ced2da;
  --red: #d71920;
  --red-glow: rgba(215, 25, 32, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --font: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Outfit", "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip; /* decorative bleed (orbs) must never allow sideways panning */
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

/* Skip link: hidden until focused, then slides in for keyboard users */
.skip-link {
  position: fixed; top: 0.8rem; left: 0.8rem; z-index: 400;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 0.95rem;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.display-xl { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.display-lg { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.display-md { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

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

/* ---------- Layout ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head .lede { margin-inline: auto; margin-top: 1rem; }

.divider {
  width: 64px; height: 3px; margin: 1.4rem auto 0;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  border-radius: 2px;
}

/* ---------- Background FX ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(215, 25, 32, 0.08), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(120, 140, 190, 0.07), transparent 60%),
    var(--bg);
}

#particles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.55;
}

/* Animated cinematic light sweep */
.light-sweep::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.045) 48%, transparent 62%);
  background-size: 260% 100%;
  animation: sweep 9s var(--ease) infinite;
}
@keyframes sweep {
  0%, 15%   { background-position: 130% 0; }
  55%, 100% { background-position: -130% 0; }
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(100deg, #fff 20%, var(--silver) 45%, #fff 60%, #8a8d96 85%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

/* Floating decorative orbs */
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none; z-index: 0; opacity: 0.5;
  animation: float 12s ease-in-out infinite alternate;
}
.orb-red { background: rgba(215, 25, 32, 0.16); width: 380px; height: 380px; }
@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -50px, 0) scale(1.12); }
}

/* ---------- Glass card ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
  min-height: 48px; /* touch friendly */
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, #e6242b, var(--red) 55%, #a90f16);
  color: #fff;
  box-shadow: 0 8px 30px var(--red-glow);
}
.btn-primary:hover { box-shadow: 0 14px 44px rgba(215, 25, 32, 0.5); }

.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: rgba(255,255,255,0.2); }

/* JS ripple */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.65s ease-out forwards;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.nav-inner { display: flex; align-items: center; gap: 1rem; width: min(1180px, 92vw); margin-inline: auto; }

.nav-brand {
  display: flex; align-items: center; gap: 0.8rem; margin-right: auto;
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; font-size: 1.05rem;
}
.nav-brand img { height: 44px; width: 44px; object-fit: cover; border-radius: 10px; border: 1px solid var(--glass-border); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 1rem; font-weight: 700; color: #c6cad3;
  transition: color 0.3s; position: relative; padding: 0.4rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red); transition: width 0.35s var(--ease); border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: #ffffff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-cta { margin-left: 0.5rem; padding: 0.65rem 2rem; min-height: 42px; white-space: nowrap; flex-shrink: 0; color: #fff; }
.nav-links a.nav-cta::after { display: none; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: 0; width: 48px; height: 48px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 110;
}
.hamburger span {
  display: block; width: 26px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.theme-toggle:hover { background: var(--glass-strong); transform: scale(1.08); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
/* Attention pulse — stops once the toggle has been used */
.theme-toggle::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--red); pointer-events: none;
  animation: pulse-ring 2.2s ease-out infinite;
}
.theme-toggle.seen::after { animation: none; opacity: 0; }
@keyframes pulse-ring {
  0%        { transform: scale(0.85); opacity: 0.9; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-2: #ececef;
  --charcoal: #e8e9ec;
  --charcoal-2: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(20, 22, 28, 0.12);
  --text: #14151a;
  --muted: #474c56; /* darkened for WCAG AA contrast on light surfaces */
  --silver: #31353d;
  --red-glow: rgba(215, 25, 32, 0.25);
}
[data-theme="light"] .bg-fx {
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(215, 25, 32, 0.06), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(120, 140, 190, 0.08), transparent 60%),
    var(--bg);
}
[data-theme="light"] #particles { opacity: 0.22; filter: invert(1) hue-rotate(180deg); }
[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 40px rgba(20, 22, 28, 0.1);
}
[data-theme="light"] .nav.scrolled .nav-links a { color: #3a3e47; }
[data-theme="light"] .nav.scrolled .nav-links a:hover,
[data-theme="light"] .nav.scrolled .nav-links a.active { color: #101116; }
[data-theme="light"] .section-bg::before {
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(244,245,247,0.62) 18%, rgba(244,245,247,0.62) 82%, var(--bg) 100%);
}
[data-theme="light"] .section-bg .section-head h2,
[data-theme="light"] .section-bg .section-head .lede { text-shadow: 0 2px 16px rgba(255, 255, 255, 0.85); }
[data-theme="light"] .card, [data-theme="light"] .contact-card, [data-theme="light"] .form-card {
  box-shadow: 0 14px 40px rgba(20, 22, 28, 0.08);
}
[data-theme="light"] .form-field input,
[data-theme="light"] .form-field select,
[data-theme="light"] .form-field textarea { background: rgba(20, 22, 28, 0.035); }
[data-theme="light"] .pricing-table thead th { background: rgba(20, 22, 28, 0.05); }
[data-theme="light"] .pricing-table tbody tr:hover { background: rgba(20, 22, 28, 0.03); }
[data-theme="light"] .footer { background: rgba(20, 22, 28, 0.025); }
[data-theme="light"] .gradient-text {
  background: linear-gradient(100deg, #fff 20%, #d6d9df 45%, #fff 60%, #aab0bb 85%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* The hero stays cinematic (dark video) in both themes */
.hero-content { --text: #f2f3f5; --muted: #bcc1cb; color: var(--text); }
/* While the nav floats over the dark hero (not yet scrolled), keep its text light */
[data-theme="light"] .nav:not(.scrolled) { --text: #f2f3f5; --muted: #b9bec8; color: var(--text); }
[data-theme="light"] .nav:not(.scrolled) .theme-toggle { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }

/* Keep the video overlay identical to dark mode — no light gradient over the video */
[data-theme="light"] .hero-bg::after {
  background:
    linear-gradient(to bottom, rgba(10,10,12,0.55), rgba(10,10,12,0.35) 45%, #0a0a0c 96%),
    radial-gradient(900px 500px at 75% 20%, rgba(215,25,32,0.12), transparent 60%);
}
[data-theme="light"] .hero-bg--video::after {
  background:
    linear-gradient(to bottom, rgba(10,10,12,0.6), rgba(10,10,12,0.42) 45%, #0a0a0c 96%),
    linear-gradient(100deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.15) 60%),
    radial-gradient(900px 500px at 75% 20%, rgba(215,25,32,0.10), transparent 60%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -12% 0; z-index: -1;
  background-size: cover; background-position: center;
  will-change: transform; /* parallax layer */
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,12,0.55), rgba(10,10,12,0.35) 45%, var(--bg) 96%),
    radial-gradient(900px 500px at 75% 20%, rgba(215,25,32,0.12), transparent 60%);
}

/* Background video inside the hero (M4 rolling reel) */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  filter: brightness(0.55) saturate(0.9); /* dimmed so text stays readable */
}
/* Stronger scrim when a video is playing, for text contrast */
.hero-bg--video::after {
  background:
    linear-gradient(to bottom, rgba(10,10,12,0.6), rgba(10,10,12,0.42) 45%, var(--bg) 96%),
    linear-gradient(100deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.15) 60%),
    radial-gradient(900px 500px at 75% 20%, rgba(215,25,32,0.10), transparent 60%);
}
.hero-content { position: relative; z-index: 1; padding-top: var(--nav-h); }
.hero-content h1 { text-shadow: 0 3px 28px rgba(0, 0, 0, 0.85); }
.hero-content .lede { color: #d6dae1; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8); }
.hero-content .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero .lede { margin-top: 1.4rem; }

/* Minimal scroll hint: single bouncing chevron */
.scroll-hint {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px;
}
.scroll-hint::before {
  content: ""; position: absolute; left: 50%; top: 4px;
  width: 20px; height: 20px; margin-left: -10px;
  border-right: 3px solid rgba(255, 255, 255, 0.85);
  border-bottom: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transform: rotate(45deg);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  animation: chevron 2.2s ease-in-out infinite;
}
@keyframes chevron {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.45; }
  50%      { transform: translateY(10px) rotate(45deg); opacity: 1; }
}

/* ---------- About banner (My Story) ---------- */
.about-banner {
  min-height: 55svh;
  border-radius: var(--radius);
  overflow: hidden;
  width: min(1180px, 92vw);
  margin-inline: auto;
}
.about-banner .hero-content h2,
.about-banner .hero-content .lede { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85); }
.about-body { margin-top: 4.5rem; }

/* ---------- Cards ---------- */
.card {
  padding: 2.2rem 1.9rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}
.card h3 { font-size: 1.25rem; margin: 1.1rem 0 0.55rem; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.7; }

.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.45rem;
  background: linear-gradient(140deg, rgba(215,25,32,0.18), rgba(215,25,32,0.05));
  border: 1px solid rgba(215, 25, 32, 0.25);
  box-shadow: 0 0 26px rgba(215, 25, 32, 0.12);
}

/* Section with a photographic background + dark scrim for text contrast */
.section-bg {
  position: relative; isolation: isolate;
  background-size: cover; background-position: center;
}
.section-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(10,10,12,0.55) 18%, rgba(10,10,12,0.55) 82%, var(--bg) 100%);
}
.section-bg .section-head h2,
.section-bg .section-head .lede { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75); }

/* Frosted glass panel behind section headings that sit on photos */
.section-bg .section-head {
  background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  max-width: 860px;
  margin-inline: auto;
}
[data-theme="light"] .section-bg .section-head {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(20, 22, 28, 0.08);
}

/* Cards sitting on photos get a more solid backing */
.section-bg .contact-card { background: rgba(10, 10, 12, 0.55); }
[data-theme="light"] .section-bg .contact-card { background: rgba(255, 255, 255, 0.75); }
.section-bg .pricing-table { background: rgba(10, 10, 12, 0.6); }
[data-theme="light"] .section-bg .pricing-table { background: rgba(255, 255, 255, 0.78); }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.contact-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.9rem;
  padding: 2.4rem 1.4rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s var(--ease);
}
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 25, 32, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 44px rgba(215, 25, 32, 0.12);
}
/* The primary link inside each card; its ::after stretches the click target
   across the whole card while the chips stay independently clickable */
.contact-main { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.contact-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.contact-card .card-icon { font-size: 1.6rem; }
.contact-card h3 { font-size: 1.12rem; }
.contact-card span { color: var(--muted); font-size: 0.95rem; word-break: break-word; }
.copy-chip {
  position: relative; z-index: 1;
  margin-top: 0.2rem; font-size: 0.8rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--silver);
  transition: background 0.3s, color 0.3s;
}
.copy-chip:hover { background: var(--red); color: #fff; }
/* Decorative "open" labels inside social links don't need their own hit area */
.contact-main .copy-chip { z-index: auto; }

/* ---------- Timeline (stepped line with corners, media beside text) ---------- */
.timeline { position: relative; max-width: 1020px; margin-inline: auto; padding: 1rem 0 0; }
.tl-item {
  position: relative; width: min(92%, 900px);
  padding: 0 0 3.5rem 4.5rem; /* generous gap between the line and the card */
  border-left: 2px solid rgba(215, 25, 32, 0.5);
  border-bottom: 2px solid rgba(215, 25, 32, 0.5);
  border-bottom-left-radius: 28px;
}
.tl-item:nth-child(even) {
  margin-left: auto;
  padding: 0 4.5rem 3.5rem 0;
  border-left: 0;
  border-right: 2px solid rgba(215, 25, 32, 0.5);
  border-bottom: 2px solid rgba(215, 25, 32, 0.5);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 28px;
}
.tl-item:last-child { border-bottom: 0; border-radius: 0; padding-bottom: 1rem; }
.tl-dot {
  position: absolute; top: 0; left: -10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--red);
  box-shadow: 0 0 0 6px rgba(215, 25, 32, 0.14), 0 0 22px rgba(215, 25, 32, 0.45);
  z-index: 1;
}
.tl-item:nth-child(even) .tl-dot { left: auto; right: -10px; }
/* Card hugs its content: photo with text tucked in beside it */
.tl-card {
  display: flex; align-items: center; overflow: hidden; padding: 0;
  width: fit-content; max-width: 100%;
}
.tl-item:nth-child(even) .tl-card { flex-direction: row-reverse; margin-left: auto; }
/* Uncropped: images keep their original aspect ratio */
.tl-card img {
  width: min(300px, 44vw); flex-shrink: 0; height: auto; display: block;
  transition: transform 0.6s var(--ease);
}
.tl-card:hover img { transform: scale(1.03); }
.tl-card-body { padding: 1.5rem 1.7rem; max-width: 50ch; }
.tl-date {
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red);
}
.tl-card h3 { margin: 0.45rem 0 0.4rem; font-size: 1.3rem; }
.tl-card-body p { color: #c3c8d1; font-size: 1.02rem; line-height: 1.7; }
[data-theme="light"] .tl-card-body p { color: #3c4049; }

/* ---------- Portfolio / gallery ----------
   Editorial 6-column grid. Every visual row's spans sum to 6, so rows
   always align perfectly. Aspect ratios normalise tile heights; grid
   stretch absorbs sub-pixel differences. Mobile-first:

   phone  (<600px)   : full-width hero → 2-up pairs → portrait feature
   tablet (600–1023) : 2-up pairs → portrait + wide companion → cinematic
   desktop (≥1024)   : 2-up hero row → 3-up row → portrait band → 2-up  */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.gallery-item {
  position: relative; display: block; overflow: hidden;
  grid-column: span 3;               /* default: 2-up pair */
  aspect-ratio: 3 / 2;               /* native orientation of the shots */
  border-radius: var(--radius-sm); cursor: zoom-in;
  border: 1px solid var(--glass-border);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
/* Phone layout: hero, pairs, and a tall portrait feature mid-scroll */
.g-1, .g-6, .g-7 { grid-column: span 6; }
.g-7 { aspect-ratio: 4 / 5; }        /* portrait shot, gently cropped */
.gallery-cta { text-align: center; margin-top: 3rem; }

/* Zoom-on-hover only where a real pointer exists — no sticky hover on touch */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,0.55); }
  .gallery-item:hover img { transform: scale(1.07); }
}

/* Tablet: 2-up pairs, then the portrait tile beside a wide companion,
   closing on a full-width cinematic strip */
@media (min-width: 600px) {
  .gallery-grid { gap: 0.75rem; }
  .g-1, .g-6 { grid-column: span 3; }
  .g-7 { grid-column: span 2; aspect-ratio: 2 / 3; } /* native portrait */
  .g-8 { grid-column: span 4; aspect-ratio: 15 / 11; }
  .g-9 { grid-column: span 6; aspect-ratio: 21 / 9; }
}

/* Desktop: hero pair → 3-up row → portrait band → closing pair */
@media (min-width: 1024px) {
  .gallery-grid { gap: 1rem; }
  .g-3, .g-4, .g-5 { grid-column: span 2; }
  .g-6 { grid-column: span 4; aspect-ratio: 15 / 11; } /* sits beside the portrait */
  .g-7 { grid-column: span 2; aspect-ratio: 2 / 3; }
  .g-8, .g-9 { grid-column: span 3; aspect-ratio: 3 / 2; }
}

/* Ultrawide: let the gallery breathe into the extra width */
@media (min-width: 1440px) {
  #portfolio .container { width: min(1360px, 92vw); }
}

/* Lazy-loaded images fade in softly once they arrive (class added by JS) */
.img-fade { opacity: 0; transition: opacity 0.7s var(--ease); }
.img-fade.loaded { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 3.5rem 1rem;
}
.lightbox.open { display: flex; animation: fadeIn 0.35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 84vh; border-radius: var(--radius-sm);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); object-fit: contain;
  animation: zoomIn 0.4s var(--ease);
}
@keyframes zoomIn { from { transform: scale(0.94); opacity: 0; } }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.25rem; color: var(--text);
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); transition: background 0.3s, transform 0.3s;
}
.lb-btn:hover { background: var(--red); transform: scale(1.07); }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.07); }

/* ---------- Pricing table ---------- */
.pricing-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--glass-border); }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--glass); backdrop-filter: blur(16px); }
.pricing-table th, .pricing-table td { padding: 1.3rem 1.5rem; text-align: left; font-size: 1rem; }
.pricing-table thead th {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver); background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--glass-border);
}
.pricing-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: background 0.3s; }
.pricing-table tbody tr:last-child { border-bottom: 0; }
.pricing-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.pricing-table td:first-child { font-weight: 700; }
.pricing-table .desc { color: var(--muted); font-size: 0.97rem; line-height: 1.6; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--red); white-space: nowrap; }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 1.1rem; font-style: italic; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq details {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s;
}
.section-bg .faq details { background: rgba(10, 10, 12, 0.55); }
[data-theme="light"] .section-bg .faq details { background: rgba(255, 255, 255, 0.75); }
.faq details[open] { border-color: rgba(215, 25, 32, 0.35); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  color: var(--red); font-size: 1.4rem; font-weight: 600; line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.98rem; line-height: 1.7; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.8rem, 4vw, 3rem); max-width: 860px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; color: var(--silver); }
.form-field label .req { color: var(--red); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit; font-size: 1.02rem; color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; outline: none; width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  min-height: 50px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-field select option { background: var(--charcoal); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #969daa; opacity: 1; }
[data-theme="light"] .form-field input::placeholder,
[data-theme="light"] .form-field textarea::placeholder { color: #6a707c; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: rgba(215, 25, 32, 0.6);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
.form-field input.invalid, .form-field textarea.invalid {
  border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.15);
}
.field-error { font-size: 0.85rem; font-weight: 600; color: #ff5a60; display: none; }
[data-theme="light"] .field-error { color: #b00d13; }
.form-field.show-error .field-error { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: 0.8rem; grid-column: 1 / -1; }
.checkbox-row input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; accent-color: var(--red);
  margin-top: 0.15rem; flex-shrink: 0; cursor: pointer;
}
.checkbox-row label { font-size: 0.98rem; color: var(--silver); cursor: pointer; font-weight: 500; }
.form-submit { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-top: 0.6rem; }
.form-hint { font-size: 0.88rem; color: var(--muted); text-align: center; }

/* Booking form card with photo background */
.form-card-bg {
  position: relative; isolation: isolate; overflow: hidden;
  background-size: cover; background-position: center;
}
.form-card-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 12, 0.78);
}
[data-theme="light"] .form-card-bg::before { background: rgba(244, 245, 247, 0.85); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--glass-border); padding: 3.5rem 0 2.5rem; margin-top: 4rem; background: rgba(255,255,255,0.015); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.05em; }
.footer-brand img { height: 40px; width: 40px; border-radius: 9px; object-fit: cover; border: 1px solid var(--glass-border); }
.footer-links { display: flex; gap: 1.6rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.98rem; font-weight: 600; transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-area { width: 100%; text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.2rem; }
.footer-copy { width: 100%; text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 1rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* Back to top */
.back-top {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: var(--glass-strong); color: var(--text); font-size: 1.1rem;
  backdrop-filter: blur(12px); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--red); box-shadow: 0 10px 30px var(--red-glow); }

/* Toast (copy feedback) */
.toast {
  position: fixed; left: 50%; bottom: 2.4rem; transform: translate(-50%, 20px); z-index: 300;
  background: var(--charcoal-2); border: 1px solid var(--glass-border); color: var(--text);
  padding: 0.8rem 1.6rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 16px 44px rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ----------
   Content is only hidden when the .js class is present (set in <head>),
   so the site stays fully visible if JavaScript is unavailable. */
.reveal, .reveal-left, .reveal-right {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal { opacity: 0; transform: translateY(34px); }
.js .reveal-left { opacity: 0; transform: translateX(-40px); }
.js .reveal-right { opacity: 0; transform: translateX(40px); }
.js .reveal.in { opacity: 1; transform: translateY(0); }
.js .reveal-left.in, .js .reveal-right.in { opacity: 1; transform: translateX(0); }
.d-1 { transition-delay: 0.08s; } .d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; } .d-4 { transition-delay: 0.32s; }

/* ---------- Focus visibility (keyboard users) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.75);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Calmer type scale on phones */
  body { font-size: 1.03rem; }
  .display-xl { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .display-lg { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .display-md { font-size: 1.4rem; }
  .lede { font-size: 1.05rem; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.24em; }
  .section { padding: 3.8rem 0; }
  .section-head { margin-bottom: 2.4rem; }
  .section-bg .section-head { padding: 1.6rem 1.2rem; }
  .btn { font-size: 0.98rem; }

  /* Pricing tables fit the screen: tighten cells */
  .pricing-table { min-width: 0; }
  .pricing-table th, .pricing-table td { padding: 0.85rem 0.8rem; font-size: 0.95rem; }
  .pricing-table td:first-child { font-size: 0.92rem; }
  .pricing-table .desc { font-size: 0.9rem; }
  .price { font-size: 0.92rem; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 2.2rem;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    opacity: 0; pointer-events: none; transform: translateY(-14px);
    visibility: hidden; /* keeps closed-menu links out of the tab order */
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .nav-links.open {
    opacity: 1; pointer-events: auto; transform: translateY(0);
    visibility: visible;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s;
  }
  .nav-links a { font-size: 1.45rem; }
  .nav-links a.nav-cta { padding: 0.9rem 2.4rem; }

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

  /* Timeline collapses to a single left-aligned rail */
  .tl-item, .tl-item:nth-child(even) {
    width: 100%; margin-left: 0; padding: 0 0 2.6rem 1.8rem;
    border-right: 0; border-bottom: 0; border-radius: 0;
    border-left: 2px solid rgba(215, 25, 32, 0.5);
  }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: -10px; right: auto; }
  .tl-card, .tl-item:nth-child(even) .tl-card { flex-direction: column; align-items: stretch; width: 100%; }
  .tl-card img { width: 100%; }
  .card p, .tl-card-body p { font-size: 1rem; }

  .lb-prev { left: 0.6rem; } .lb-next { right: 0.6rem; }
  .back-top { right: 1rem; bottom: 1rem; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  /* Compact 2x2 contact cards */
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .contact-card { padding: 1.3rem 0.8rem; gap: 0.5rem; }
  .contact-main { gap: 0.5rem; }
  .contact-card .card-icon { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 12px; }
  .contact-card .card-icon svg { width: 20px; height: 20px; }
  .contact-card h3 { font-size: 1rem; }
  .contact-card span { font-size: 0.85rem; }
  .copy-chip { font-size: 0.74rem; padding: 0.26rem 0.7rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal-left, .js .reveal-right { opacity: 1; transform: none; }
  .img-fade { opacity: 1; }
}
