/* =====================================================
   J&J CAR DETAILING — STYLESHEET
   Organized in sections: variables, base, layout, components
===================================================== */

:root {
  /* Brand colors — matches the J&J logo (navy + gold), with a
     muted green used as a secondary accent for freshness/trust moments */
  --navy-900: #0b1420;
  --navy-800: #10192a;
  --navy-700: #1b2a41;
  --blue-100: #8fa8c9;
  --gold: #c9a24b;
  --gold-light: #e0c27f;
  --green: #3a7d5c;
  --green-light: #e7f2ec;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --ink: #12181f;
  --ink-soft: #4d5966;
  --border: #e2e6eb;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(11, 20, 32, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy-900); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }

p { color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

section.section { padding: 5rem 1.5rem; max-width: 1180px; margin: 0 auto; }
.section-alt { background: var(--off-white); }
.section-alt + .section-alt { background: var(--off-white); }
section.section.section-alt { max-width: none; }
section.section.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.section-note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 2rem; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-accent { background: var(--gold); color: var(--navy-900); }
.btn-accent:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(201,162,75,0.35); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,20,32,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-700); border: 1.5px solid var(--gold);
  color: var(--white); font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  flex-shrink: 0;
}
.brand-text { color: var(--white); font-weight: 600; font-size: 1.05rem; }

.main-nav { display: flex; gap: 1.8rem; }
.main-nav a { color: rgba(255,255,255,0.82); font-size: 0.94rem; font-weight: 500; transition: color 0.15s ease; }
.main-nav a:hover { color: var(--gold-light); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone { color: var(--white); font-weight: 600; font-size: 0.92rem; display: none; }
.nav-book { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: transparent; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; }

/* Floating mobile book button */
.mobile-float-cta {
  display: none;
  position: fixed; bottom: 1.2rem; left: 1.2rem; right: 1.2rem; z-index: 90;
  background: var(--gold); color: var(--navy-900); text-align: center;
  padding: 0.95rem; border-radius: 50px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
  padding: 4.5rem 1.5rem 5rem; max-width: 1240px; margin: 0 auto;
}
.hero h1, .hero .eyebrow { color: var(--white); }
.hero h1 { color: var(--white); }
.hero-sub { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 560px; margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.hero-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.hero-badge { border-left: 2px solid var(--gold); padding-left: 0.8rem; }
.hero-badge strong { display: block; font-family: var(--font-mono); font-size: 1.3rem; color: var(--gold-light); }
.hero-badge span { color: rgba(255,255,255,0.68); font-size: 0.8rem; }

.hero-visual { position: relative; }

/* Placeholder photo boxes — soft, icon-based, until real photos are added */
.image-placeholder {
  background: linear-gradient(160deg, #1b2a41 0%, #10192a 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.55); font-size: 0.82rem; text-align: center;
  min-height: 220px;
}
.image-placeholder::before {
  content: "";
  width: 44px; height: 44px;
  background-color: rgba(255,255,255,0.4);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'><path d='M4 8h3l1.5-2h7L17 8h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/><circle cx='12' cy='13' r='3.5'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'><path d='M4 8h3l1.5-2h7L17 8h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/><circle cx='12' cy='13' r='3.5'/></svg>") center/contain no-repeat;
}
.hero-image { min-height: 0; }
.hero-photo { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.hero-photo::before { content: none; }

.hero-logo-overlay {
  position: absolute; bottom: 14px; right: 14px;
  width: 92px; height: 92px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.hero-logo-overlay svg { width: 100%; height: 100%; display: block; }

/* Light-background variant, used on white/off-white sections */
.image-placeholder-light {
  background: linear-gradient(160deg, #eef1f5 0%, #e4e8ed 100%);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.image-placeholder-light::before { background-color: #a7b1bd; }

.seal-badge {
  position: absolute; bottom: -18px; right: -18px;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.seal-inner { text-align: center; color: var(--navy-900); }
.seal-line1 { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.seal-line2, .seal-line3 { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* Guarantee strip */
.guarantee-strip {
  background: var(--green); color: var(--white); text-align: center;
  padding: 1.1rem 1.5rem; font-size: 0.95rem;
}
.guarantee-strip strong { color: var(--white); }

/* ===================== SERVICE CARDS ===================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 780px; }
.service-card, .price-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover, .price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card-featured, .price-card-featured {
  background: var(--navy-800); border-color: var(--navy-800);
}
.service-card-featured h3, .price-card-featured h3, .service-card-featured p, .price-card-featured .price { color: var(--white); }
.service-card-featured p { color: rgba(255,255,255,0.75); }
.card-flag {
  position: absolute; top: -12px; left: 2rem; background: var(--gold); color: var(--navy-900);
  font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 20px;
}
.check-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem; color: var(--ink-soft); font-size: 0.94rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.service-card-featured .check-list li { color: rgba(255,255,255,0.8); }

/* ===================== SERVICE AREA ===================== */
.area-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: center; }
.area-list li {
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  font-weight: 500; color: var(--navy-800); display: flex; align-items: center; gap: 0.6rem;
}
.area-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.area-note { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }
.area-map { min-height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.area-map iframe { display: block; }

/* ===================== PRICING ===================== */
.price { font-family: var(--font-mono); font-size: 1.5rem; color: var(--navy-900); margin: 0.4rem 0 1.2rem; font-weight: 500; }
.price span { font-size: 0.9rem; color: var(--ink-soft); }
.price-card .btn { margin-top: 1rem; width: 100%; text-align: center; }

/* ===================== CALCULATOR ===================== */
.calculator-card {
  background: var(--off-white); border-radius: var(--radius); padding: 2.4rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 780px;
}
.calc-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 0.4rem; }
.calc-field select {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--ink);
}
.calc-result {
  grid-column: 1 / -1; text-align: center; background: var(--navy-900); color: var(--white);
  border-radius: var(--radius-sm); padding: 1.6rem;
}
.calc-result span { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }
.calc-result strong { font-family: var(--font-mono); font-size: 2.2rem; color: var(--gold-light); display: block; margin: 0.3rem 0; }
.calc-disclaimer { color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.calc-cta { grid-column: 1 / -1; text-align: center; }

/* ===================== PROCESS ===================== */
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; counter-reset: step; }
.process-list li { display: flex; gap: 1rem; align-items: flex-start; }
.stamp {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  color: var(--gold); font-weight: 600;
}
.process-list h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.process-list p { font-size: 0.88rem; }

/* ===================== REVIEWS ===================== */
.review-cta-buttons { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }

/* ===================== BOOKING PAGE ===================== */
.booking-hero { max-width: 1180px; }
.booking-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
.booking-main .section-head { max-width: none; text-align: left; }
.booking-hero h1 { margin-bottom: 1rem; }
.booking-phone-link {
  display: inline-block; font-family: var(--font-mono); font-size: 2rem; font-weight: 500;
  color: var(--navy-900); background: var(--off-white); border: 1.5px solid var(--gold);
  padding: 0.7rem 1.6rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem;
}
.booking-phone-link:hover { background: var(--green-light); }
.booking-or { font-weight: 600; color: var(--navy-800); margin-bottom: 2rem; }

.booking-sidebar {
  background: var(--navy-900); color: rgba(255,255,255,0.85);
  border-radius: var(--radius); padding: 2rem; position: sticky; top: 6rem;
}
.booking-sidebar h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.6rem; }
.booking-sidebar h3:not(:first-child) { margin-top: 1.6rem; }
.booking-sidebar p { color: rgba(255,255,255,0.78); font-size: 0.94rem; margin-bottom: 0.3rem; }
.booking-sidebar a { color: var(--gold-light); font-weight: 600; }
.sidebar-list li { color: rgba(255,255,255,0.78); font-size: 0.94rem; padding-left: 1.1rem; position: relative; }
.sidebar-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); position: absolute; left: 0; top: 0.5em; }

/* ===================== BOOKING FORM ===================== */
.booking-form { max-width: 900px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-bottom: 1.8rem; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 0.4rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--white);
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-status { margin-top: 1rem; font-weight: 600; color: var(--green); }

/* ===================== FAQ ===================== */
.faq-list { max-width: 760px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem; margin-bottom: 0.8rem;
}
.faq-item summary { font-weight: 600; color: var(--navy-800); cursor: pointer; }
.faq-item p { margin-top: 0.7rem; font-size: 0.94rem; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 4rem 1.5rem 1.5rem; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: 0.8rem; font-size: 0.9rem; }
.footer-brand a { color: var(--gold-light); font-weight: 600; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.68); font-size: 0.92rem; margin-bottom: 0.6rem; }
.newsletter-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.newsletter-form input { flex: 1; padding: 0.65rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); color: var(--white); }
.newsletter-form .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); padding: 0.65rem 1rem; font-size: 0.85rem; }
.newsletter-form .btn-outline:hover { background: rgba(255,255,255,0.12); }
.social-links { display: flex; gap: 0.8rem; }
.social-links a { background: rgba(255,255,255,0.08); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: 1.5rem; font-size: 0.82rem; text-align: center; }

/* ===================== FLOATING BUTTONS ===================== */
.emergency-cta, .scroll-top {
  position: fixed; z-index: 95; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.emergency-cta {
  bottom: 1.4rem; right: 1.4rem; width: 58px; height: 58px; background: var(--green); color: var(--white);
  font-size: 0.65rem; font-weight: 700; text-align: center; box-shadow: var(--shadow); line-height: 1.1;
}
.scroll-top {
  bottom: 1.4rem; right: 5.6rem; width: 42px; height: 42px; background: var(--navy-800); color: var(--white);
  border: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ===================== COUNTER ANIMATION READY ===================== */
.counter { display: inline-block; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-visual { order: -1; }
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .pricing-grid, .process-list { grid-template-columns: repeat(2, 1fr); }
  .area-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-float-cta { display: block; }
  .nav-book { display: none; }
  .service-grid, .pricing-grid, .process-list { grid-template-columns: 1fr; }
  .calculator-card { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section.section { padding: 3.5rem 1.2rem; }

  /* Mobile nav dropdown */
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-900); padding: 1.2rem 1.5rem; gap: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
