/* ============================================
   STAR DETAILING — Premium CSS
   sanfranciscocardetailing.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --black:       #0a0a0a;
  --black-2:     #111111;
  --black-3:     #1a1a1a;
  --black-4:     #222222;
  --gold:        #c9a84c;
  --gold-light:  #d4af37;
  --gold-dim:    rgba(201,168,76,0.15);
  --gold-border: rgba(201,168,76,0.3);
  --white:       #ffffff;
  --white-70:    rgba(255,255,255,0.70);
  --white-40:    rgba(255,255,255,0.40);
  --white-15:    rgba(255,255,255,0.06);
  --ff-head:     'Playfair Display', Georgia, serif;
  --ff-body:     'Inter', system-ui, sans-serif;
  --max-w:       1200px;
  --section-pad: 120px 24px;
  --radius:      4px;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Utility ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,76,0.35); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.btn-outline::after { display: none; }
.btn-outline:hover {
  background: var(--gold-dim);
  box-shadow: 0 8px 32px rgba(201,168,76,0.15);
}

/* ---- Scroll Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   NAV
   ============================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
#nav.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.12);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta { font-size: 0.78rem; padding: 11px 26px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 74px; left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-70);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Premium dark background — layered gradients + subtle grid */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(201,168,76,0.04) 0%, transparent 60%),
    linear-gradient(160deg, #0e0e0e 0%, #0a0a0a 50%, #0d0b08 100%);
}

/* Subtle grid lines */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 40%, transparent 80%);
}

/* Diagonal accent line */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 55%;
  height: 140%;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.03) 50%, transparent 60%);
  transform: skewX(-8deg);
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-headline {
  font-family: var(--ff-head);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 760px;
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--white-70);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-proof {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 4px;
}
.hero-stat-value {
  font-family: var(--ff-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
}
.hero-stat-value span { color: var(--gold); font-size: 1.1rem; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-border);
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 18px;
}
.section-sub {
  font-size: 0.97rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ============================================
   SERVICES
   ============================================ */
#services {
  padding: var(--section-pad);
  background: var(--black-2);
  position: relative;
}
#services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.service-card {
  background: var(--black-2);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { background: var(--black-3); }
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  color: var(--gold);
}
.service-icon svg { width: 100%; height: 100%; }

.service-name {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.service-desc {
  font-size: 0.93rem;
  color: var(--white-70);
  line-height: 1.8;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap var(--transition);
}
.service-link:hover { gap: 14px; }

/* ============================================
   WHY US
   ============================================ */
#why {
  padding: var(--section-pad);
  background: var(--black);
  position: relative;
  overflow: hidden;
}
#why::before {
  content: '';
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.03);
}

.why-card {
  background: var(--black);
  padding: 48px 44px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: background var(--transition);
}
.why-card:hover { background: var(--black-3); }

.why-number {
  font-family: var(--ff-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-dim);
  line-height: 1;
  flex-shrink: 0;
  min-width: 52px;
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.08));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.why-body {}
.why-title {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.why-desc {
  font-size: 0.92rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
#how {
  padding: var(--section-pad);
  background: var(--black-2);
  position: relative;
}
#how::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}
#how::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.steps-row::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.6% + 24px);
  right: calc(16.6% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-border), var(--gold-border));
  z-index: 0;
}

.step {
  padding: 0 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: var(--black-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}
.step-number::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--gold-dim);
  opacity: 0;
  transition: opacity var(--transition);
}
.step:hover .step-number { border-color: var(--gold); }
.step:hover .step-number::before { opacity: 1; }
.step-number span {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.step-title {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.8;
}

/* ============================================
   QUOTE FORM
   ============================================ */
#quote {
  padding: var(--section-pad);
  background: var(--black);
  position: relative;
  overflow: hidden;
}
#quote::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 60px 64px;
  position: relative;
}
.form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-70);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.93rem;
  padding: 14px 18px;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-40); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-border);
  background: var(--black-4);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--black-3); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; padding: 17px; font-size: 0.85rem; }

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 0 20px;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--gold);
}
.form-success h3 {
  font-family: var(--ff-head);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 12px;
}
.form-success p { color: var(--white-70); font-size: 0.97rem; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--black-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 64px 24px 36px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand {}
.footer-logo {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 0.88rem;
  color: var(--white-70);
  max-width: 280px;
  line-height: 1.7;
}
.footer-contact { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.footer-contact a {
  font-size: 0.88rem;
  color: var(--white-70);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--gold); }
.footer-contact a svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--white-40);
  letter-spacing: 0.05em;
}
.footer-location {
  font-size: 0.75rem;
  color: var(--white-40);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-location svg { width: 13px; height: 13px; color: var(--gold); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  .why-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .step { padding: 0 24px 48px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-headline { font-size: clamp(2rem, 7vw, 3rem); }
  .form-wrap { padding: 40px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .footer-contact { text-align: left; }
  .footer-contact a { justify-content: flex-start; }
  .hero-proof { gap: 32px; }
  .why-card { padding: 36px 28px; }
  .service-card { padding: 40px 28px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
