/* ================================================
   CK Mobile Detailing — Global Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* Design Tokens */
:root {
  --black: #070707;
  --dark: #0D0D0D;
  --charcoal: #161616;
  --charcoal-light: #222;
  --gold: #0057B8;
  --gold-bright: #1a6fd4;
  --gold-dim: #003f8a;
  --gold-bg: rgba(0,87,184,0.07);
  --gold-border: rgba(0,87,184,0.22);
  --white: #F8F8F6;
  --gray-dark: #444;
  --gray: #888;
  --gray-light: #BABABA;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --section-pad: clamp(64px, 10vw, 120px);
  --container: 1200px;
  --nav-h: 80px;
  --mobile-cta-h: 60px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 3px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--charcoal);
  border: 1px solid var(--gold-border);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }

/* Typography */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.15; }
.display-xl { font-size: clamp(52px, 8vw, 90px); letter-spacing: -0.02em; }
.display-lg { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.02em; }
.display-md { font-size: clamp(26px, 3.5vw, 44px); }
.display-sm { font-size: clamp(22px, 2.5vw, 32px); }
em { font-style: italic; color: var(--gold); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: var(--section-pad) 0; }
.section-header { margin-bottom: clamp(40px, 6vw, 72px); }
.section-header.centered { text-align: center; }
.section-header.centered .eyebrow { justify-content: center; }
.section-header.centered .eyebrow::before { display: none; }
.section-header p { margin-top: 16px; font-size: 17px; color: var(--gray-light); max-width: 560px; line-height: 1.7; }
.section-header.centered p { margin: 16px auto 0; }
.gold-rule { display: block; width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gold), transparent); margin: 32px auto; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px;
  background: var(--gold); color: #fff;
  font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: transparent; color: var(--white);
  font-weight: 400; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: transparent; color: var(--gold);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}
.btn-gold-outline:hover { background: var(--gold-bg); border-color: var(--gold); }

/* Stars */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

/* Card base */
.card {
  background: var(--charcoal);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); }

/* GSAP animation classes */
.reveal { opacity: 0; transform: translateY(32px); }
.reveal-left { opacity: 0; transform: translateX(-32px); }
.reveal-right { opacity: 0; transform: translateX(32px); }
.reveal-scale { opacity: 0; transform: scale(0.94); }

/* ================================================
   MOBILE CTA BAR
   ================================================ */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--mobile-cta-h);
  background: var(--charcoal);
  border-top: 1px solid var(--gold-border);
  display: none;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.mobile-cta-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  height: 42px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  transition: opacity 0.2s;
}
.mobile-cta-bar a:active { opacity: 0.8; }
.mcta-call { background: var(--gold); color: #fff !important; font-weight: 600 !important; }
.mcta-text { border: 1px solid var(--gold-border); color: var(--gold) !important; }
.mcta-quote { border: 1px solid rgba(255,255,255,0.15); color: var(--gray-light) !important; }
@media (max-width: 767px) { .mobile-cta-bar { display: flex; } }

/* ================================================
   NAV
   ================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
#nav.scrolled {
  background: rgba(7,7,7,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--gold-border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500; letter-spacing: 0.04em;
}
.nav-logo .ck { color: var(--gold); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta-btn {
  padding: 9px 22px;
  background: var(--gold); color: #fff !important;
  font-weight: 600 !important; letter-spacing: 0.04em !important;
  border-radius: var(--radius);
}
.nav-cta-btn:hover { background: var(--gold-bright) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all 0.3s; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-hamburger { display: flex; } }

/* Mobile nav drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 850;
  background: var(--black);
  padding: calc(var(--nav-h) + 32px) 32px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 300;
  padding: 16px 0;
  border-bottom: 1px solid var(--gold-border);
  color: var(--white);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-drawer a:hover { color: var(--gold); padding-left: 8px; }
.nav-drawer .drawer-cta {
  margin-top: 24px;
  padding: 16px 32px;
  background: var(--gold); color: #fff;
  text-align: center; border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: var(--dark);
  border-top: 1px solid var(--gold-border);
  padding: 64px 0 calc(32px + var(--mobile-cta-h));
}
@media (min-width: 768px) { footer { padding-bottom: 48px; } }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 500;
  color: var(--white); margin-bottom: 16px;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 14px; color: var(--gray); line-height: 1.7; max-width: 280px; }
.footer-brand .footer-contact { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.footer-brand .footer-contact a { font-size: 14px; color: var(--gray-light); transition: color 0.2s; }
.footer-brand .footer-contact a:hover { color: var(--gold); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--gray); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--container); margin: 48px auto 0;
  padding: 24px clamp(20px, 4vw, 48px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--gray-dark); }
.footer-bottom a { font-size: 12px; color: var(--gray-dark); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gray); }

/* ================================================
   PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: linear-gradient(to bottom, var(--charcoal), var(--black));
  border-bottom: 1px solid var(--gold-border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(0,87,184,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.02em; margin-bottom: 20px; }
.page-hero .sub { font-size: 17px; color: var(--gray-light); max-width: 580px; line-height: 1.7; }
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray); margin-bottom: 32px;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--gray-dark); }

/* Pricing table */
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); padding: 12px 16px;
  border-bottom: 1px solid var(--gold-border);
  text-align: left;
}
.pricing-table td {
  padding: 14px 16px; font-size: 14px; color: var(--gray-light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-table tr:hover td { background: rgba(0,87,184,0.04); }
.pricing-table .price { color: var(--white); font-weight: 500; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--gold-border);
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px); font-weight: 400;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }
.faq-question .icon {
  width: 24px; height: 24px; flex-shrink: 0; margin-left: 16px;
  border: 1px solid var(--gold-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gold);
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--gold-bg); }
.faq-answer {
  overflow: hidden; max-height: 0;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}
.faq-answer p {
  font-size: 15px; color: var(--gray-light); line-height: 1.75;
  padding-bottom: 20px;
}

/* Before/After Slider */
.ba-wrapper {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: ew-resize; user-select: none;
  aspect-ratio: 16/9;
}
.ba-before, .ba-after {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ba-after { clip-path: inset(0 0 0 50%); z-index: 4; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: var(--gold);
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
}
.ba-handle::before {
  content: '◀ ▶';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold); color: #fff;
  font-size: 10px; padding: 8px 10px;
  border-radius: 50px;
  white-space: nowrap; font-weight: 700;
  letter-spacing: 0.05em;
}
.ba-label {
  position: absolute; bottom: 16px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px;
}
.ba-label-before { left: 16px; background: rgba(0,0,0,0.6); }
.ba-label-after { right: 16px; background: rgba(0,87,184,0.85); color: #fff; }

/* Review cards */
.review-card {
  background: var(--charcoal);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 28px;
}
.review-card .reviewer { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: var(--gold);
  flex-shrink: 0;
}
.review-card .name { font-weight: 500; font-size: 15px; }
.review-card .date { font-size: 12px; color: var(--gray); }
.review-card .stars { margin-bottom: 10px; }
.review-card p { font-size: 14px; color: var(--gray-light); line-height: 1.7; }

/* Google Maps embed */
.map-embed {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  overflow: hidden;
}
.map-embed iframe { display: block; width: 100%; height: 400px; filter: grayscale(0.8) invert(0.85) contrast(0.9); }
