/* Geruso Detailing — Shared Customer Page Styles */

:root {
  --primary: #00FF41;
  --primary-dark: #00DD33;
  --primary-light: #33FF66;
  --white: #ffffff;
  --light-bg: #0a0a0a;
  --light-bg2: #1a1a1a;
  --light-bg3: #222222;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --text-light: #888888;
  --success: #10b981;
  --error: #ef4444;
  --accent: #ff6b6b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--light-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button,
a[href],
label[for] { touch-action: manipulation; }
input,
select,
textarea,
button { max-width: 100%; min-width: 0; font: inherit; }

/* ── NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 20px;
  height: 76px;
  flex-wrap: nowrap;
}
.nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.nav-brand img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.nav-brand-name { font-weight: 700; font-size: 15px; color: var(--primary); letter-spacing: 0.3px; }
.nav-brand-sub { font-size: 9px; color: var(--text-muted); letter-spacing: 1.3px; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 18px; list-style: none; align-items: center; flex-wrap: nowrap; }
.nav-links li { white-space: nowrap; display: flex; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
/* Hide the "Premium Auto Care" subtitle on narrow widths so the nav links keep room */
@media (max-width: 1200px) { .nav-brand-sub { display: none; } }
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-cta {
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Sign In link / Logout button / Dashboard link in nav — gray-on-black,
   matches nav-links. Button needs explicit transparent bg + font-family
   because browsers give <button> a default white background otherwise. */
.nav-signin {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
.nav-signin:hover { color: var(--primary); border-color: var(--primary); background: rgba(0, 255, 65, 0.05); }

/* Cart button in nav — gray-on-black, matches sign-in */
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-cart:hover { color: var(--primary); border-color: var(--primary); background: rgba(0, 255, 65, 0.05); }
.nav-cart svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
.nav-cart .cart-label { line-height: 1; }
.nav-cart .cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--border);
  color: var(--text);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s;
}
.nav-cart:hover .cart-count { background: var(--primary); color: #000; }
.nav-cart.is-empty .cart-count { background: var(--border); color: var(--text-muted); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle-label span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.2s; }

@media (max-width: 900px) {
  .nav { padding: 0 16px; height: 68px; gap: 12px; }
  .nav-brand img { width: 38px; height: 38px; }
  .nav-brand-name { font-size: 14px; }
  .nav-toggle-label { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--light-bg2);
    flex-direction: column;
    padding: 14px 18px 18px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links li,
  .nav-links a,
  .nav-signin,
  .nav-cart {
    width: 100%;
  }
  .nav-links a,
  .nav-signin,
  .nav-cart {
    min-height: 42px;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

@media (max-width: 420px) {
  .nav { padding: 0 12px; }
  .nav-brand { gap: 8px; min-width: 0; }
  .nav-brand img { width: 34px; height: 34px; }
  .nav-brand-name { font-size: 13px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle-label { flex-shrink: 0; }
}

/* ── HERO ──────────────────────────────────────────────────── */
.page-hero {
  padding: 100px 32px 80px;
  background: linear-gradient(135deg, rgba(0,255,65,0.08) 0%, rgba(0,255,65,0.02) 100%), var(--light-bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.page-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SECTIONS ──────────────────────────────────────────────── */
section { padding: 80px 32px; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 12px rgba(0,255,65,0.2);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,255,65,0.3); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: rgba(0,255,65,0.1); transform: translateY(-2px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--light-bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,255,65,0.1);
}
.card h3 { font-size: 19px; margin-bottom: 8px; color: var(--text); }
.card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--light-bg2);
  border-top: 1px solid var(--border);
  padding: 60px 32px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand h3 { color: var(--primary); font-size: 18px; margin-bottom: 8px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-col a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-location {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-location-label {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── UTILITIES ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── SHARED CART MODAL ────────────────────────────────────── */
.site-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(4px);
  padding: 24px;
  overflow-y: auto;
}
.site-cart-content {
  position: relative;
  width: min(560px, 100%);
  margin: 80px auto 24px;
  background: var(--light-bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}
.site-cart-content h2 {
  color: var(--text);
  font-size: 24px;
  margin-bottom: 16px;
}
.site-cart-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(239,68,68,0.45);
  border-radius: 50%;
  background: rgba(239,68,68,0.12);
  color: #ff5f5f;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.site-cart-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}
.site-cart-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 640px) {
  .site-cart-modal { padding: 12px; }
  .site-cart-content {
    margin-top: 72px;
    padding: 22px 16px;
  }
}

/* ── PHONE LAYOUT PASS ─────────────────────────────────────── */
@media (max-width: 700px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  section,
  .page-hero,
  .services-section,
  .gallery-section,
  .reviews-section,
  .contact-section,
  .quote-section,
  .cta-strip,
  .values,
  .preview-services,
  .preview-work {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .page-hero {
    padding-top: 48px;
    padding-bottom: 44px;
    text-align: left;
  }

  .page-hero-inner,
  .section-inner {
    width: 100%;
    max-width: 100%;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  input,
  select,
  textarea {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }

  .page-hero-eyebrow,
  .section-eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
  }

  .page-hero h1,
  .section-title {
    font-size: clamp(28px, 10vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .page-hero p,
  .section-sub,
  .hero-desc,
  .cta-strip p,
  .quote-section p {
    font-size: 14px;
    line-height: 1.65;
  }

  .btn-row,
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }

  .btn,
  .btn-row .btn,
  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 13px 18px;
  }

  .card-grid,
  .values-grid,
  .preview-grid,
  .gallery-grid,
  .reviews-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .card,
  .value-item,
  .preview-card,
  .gallery-item,
  .review-card,
  .summary-card,
  .contact-card,
  .service-card,
  .service-note,
  .checkout-panel,
  .order-summary {
    border-radius: 10px;
  }

  .card,
  .value-item,
  .preview-card,
  .review-card,
  .summary-card,
  .contact-card,
  .service-card,
  .service-note {
    padding: 20px 16px;
  }

  .category-tab-bar {
    justify-content: stretch;
    gap: 8px;
    margin-bottom: 24px;
  }

  .category-tab {
    flex: 1 1 100%;
    min-height: 42px;
  }

  .service-card h3,
  .preview-card h3 {
    font-size: 19px;
  }

  .service-card .price,
  .preview-card .price {
    font-size: 23px;
  }

  .hero {
    min-height: auto !important;
    padding: 52px 16px 56px !important;
    align-items: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
    padding: 7px 10px;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(40px, 17vw, 58px);
    line-height: 1;
  }

  .hero-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 20px;
  }

  .hero-quick-item .num {
    font-size: 22px;
  }

  .hero-quick-item .label {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .work-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .gallery-overlay {
    padding: 14px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 82vh;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .footer {
    padding: 40px 16px 22px;
    margin-top: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
  }

  .footer-col ul {
    gap: 8px;
  }

  .footer-col li,
  .footer-col a,
  .footer-location span {
    overflow-wrap: anywhere;
  }

  .site-cart-content {
    width: 100%;
    margin: 76px auto 16px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }

  .site-cart-total {
    justify-content: space-between;
  }
}

@media (max-width: 380px) {
  section,
  .page-hero,
  .services-section,
  .gallery-section,
  .reviews-section,
  .contact-section,
  .quote-section,
  .cta-strip,
  .values,
  .preview-services,
  .preview-work {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .hero-quick {
    grid-template-columns: 1fr;
  }

  .nav-brand-name {
    max-width: 145px;
  }
}
