/* ── Raine & Shine Mobile Detailing — shared stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nav-bg: #252a28;
  --dark: #1e2220;
  --dark2: #262b29;
  --off-white: #f2f0ec;
  --orange: #c07035;
  --orange-light: #d38548;
  --text-white: #ffffff;
  --text-muted-white: rgba(255,255,255,0.72);
  --text-dark: #1a1f1d;
  --text-gray: #5a5f5d;
  --card-bg: #ffffff;
  --border-light: #e4e0da;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }

/* ── HEADER / NAV ── */
.site-header {
  background: var(--nav-bg);
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 110px;
  position: relative;
  /* Header needs more room than body copy — the nav is wide */
  max-width: 1440px;
}

.brand {
  text-decoration: none;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  display: block;
}

.brand-name em { color: var(--orange-light); font-style: normal; }

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 0.15rem;
}

.header-social {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: #fff;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header-social a:hover { opacity: 0.85; }
.header-social svg { width: 15px; height: 15px; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1px;
  position: relative;
  z-index: 1;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,0.08); }

.nav-drop { position: relative; }

.nav-drop-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  background: var(--dark2);
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}

.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; }

.nav-drop-menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  white-space: nowrap;
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-light { background: #f0ede7; color: var(--text-dark); }
.btn-light:hover { background: #e5e1da; }

.header-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-right: 4px;
}

.burger { display: none; }

/* mobile nav (hidden on desktop) */
.mobile-nav { display: none; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,20,18,0.15) 0%, rgba(18,20,18,0.5) 100%);
}

.hero h1, .hero .lead, .hero .eyebrow {
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}

.hero .wrap { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 1rem;
}

.eyebrow.centered { text-align: center; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
  max-width: 800px;
}

.hero h1 em { color: var(--orange-light); font-style: normal; }

.lead {
  font-size: 1rem;
  color: var(--text-muted-white);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }

.arw { display: inline-block; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.75rem;
}

.hero-stats div { display: flex; flex-direction: column; }
.hero-stats span { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stats small { font-size: 0.76rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }

/* small hero for inner pages */
.page-hero { min-height: 46vh; }
.page-hero .lead { margin-bottom: 0; }

/* ── ESTIMATE FORM ── */
.estimate { background: var(--dark); padding: 5rem 0; }

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.estimate h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1.1; margin-bottom: 1rem; }
.estimate .lead { color: rgba(255,255,255,0.55); margin-bottom: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }

.field label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.7); }

.field input, .field select, .field textarea {
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.field select option { background: var(--dark2); color: #fff; }

.addon-options { gap: 0.55rem; }

.addon-check {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.85) !important;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.addon-check:hover { background: rgba(255,255,255,0.09); }

.addon-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.addon-check:has(input:checked) {
  border-color: var(--orange-light);
  background: rgba(200,133,72,0.12);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.25); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); }
.field textarea { resize: vertical; min-height: 100px; }

/* ── SECTIONS ── */
section { padding: 5rem 0; }
section.alt { background: #ffffff; }
section.dark { background: var(--dark2); color: #fff; }
section.tight { padding: 3rem 0; }

.sec-head { max-width: 640px; margin-bottom: 3rem; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; text-transform: uppercase; line-height: 1.08; margin-bottom: 0.9rem; }
section.dark .sec-head h2 { color: #fff; }
section.dark .lead { color: rgba(255,255,255,0.55); }

/* ── SERVICE CARDS GRID ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.svc-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  display: block;
}

.svc-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }

.badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  z-index: 2;
}

.media { position: relative; overflow: hidden; background: #ddd; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-16x9 { aspect-ratio: 16/9; }
.media-4x3 { aspect-ratio: 4/3; }
.media-1x1 { aspect-ratio: 1/1; }

.svc-num {
  position: absolute;
  bottom: 0; left: 0;
  background: rgba(20,22,20,0.75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-top-right-radius: 8px;
}

.svc-card h3 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; padding: 1.25rem 1.25rem 0.5rem; letter-spacing: 0.01em; }
.svc-card p { font-size: 0.85rem; color: var(--text-gray); padding: 0 1.25rem; line-height: 1.55; }

.svc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.svc-price { font-weight: 800; font-size: 1.05rem; color: var(--text-dark); display: flex; flex-direction: column; }
.svc-price small { font-weight: 500; font-size: 0.72rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.03em; }

.svc-link { font-size: 0.85rem; font-weight: 700; color: var(--orange); display: flex; align-items: center; gap: 0.3rem; }

/* ── SERVICE DETAIL PAGE ── */
.pkg-body { padding: 4.5rem 0; }
.pkg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }

.pkg-list-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin: 1.5rem 0 0.75rem; }
.pkg-list-label:first-child { margin-top: 0; }

.pkg-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pkg-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; color: var(--text-gray); line-height: 1.5; }
.pkg-list li::before { content: '✓'; color: var(--orange); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }

.pkg-price-box {
  background: var(--dark2);
  color: #fff;
  border-radius: 14px;
  padding: 2rem;
}

.pkg-price-box .price { font-size: 2.6rem; font-weight: 900; margin-bottom: 0.25rem; }
.pkg-price-box .price-note { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.pkg-price-box .note { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.55; margin-top: 1.5rem; font-style: italic; }

/* ── CTA BAND ── */
.cta-band { background: var(--orange); padding: 4.5rem 0; text-align: center; }
.cta-band .eyebrow { color: rgba(255,255,255,0.75); }
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 0.75rem; }
.cta-band .lead { color: rgba(255,255,255,0.85); margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.65); }

/* ── GALLERY ── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--dark2);
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

.testimonials .sec-head { margin-bottom: 2.75rem; }
.testimonials .sec-head h2 { color: #fff; }
.testimonials .sec-head .lead { color: rgba(255,255,255,0.55); }

.t-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 0.25rem 0;
}

.t-marquee + .t-marquee { margin-top: 1.25rem; }

.t-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: t-scroll 55s linear infinite;
}

.t-track.reverse { animation: t-scroll-rev 65s linear infinite; }

.t-marquee:hover .t-track { animation-play-state: paused; }

@keyframes t-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes t-scroll-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.t-card {
  width: 360px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.25s, background 0.25s;
}

.t-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,133,72,0.45);
}

.t-stars { color: var(--orange-light); letter-spacing: 2.5px; font-size: 0.95rem; }
.t-card p { font-size: 0.87rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
.t-card cite { font-style: normal; font-weight: 700; font-size: 0.82rem; color: #fff; margin-top: auto; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .t-track, .t-track.reverse { animation: none; }
  .t-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 640px) {
  .t-card { width: 300px; }
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.06); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── FOOTER ── */
footer.site-footer { background: var(--dark2); padding: 3rem 0 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-logo { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-area { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-top: 0.35rem; }
.footer-contact { text-align: right; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-contact a { font-size: 0.9rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1240px) {
  .nav, .header-phone, .header-social { display: none; }
  .burger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
  .site-header .wrap { height: 90px; }
  .brand { position: static; text-align: left; pointer-events: auto; }
  .header-cta { margin-left: auto; }

  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--dark2);
    padding: 1rem 1.5rem 1.5rem;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { color: rgba(255,255,255,0.8); text-decoration: none; padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.95rem; }
  .mobile-nav a.sub-link { padding-left: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

  .cols-2, .pkg-cols { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .wrap { padding: 0 1.25rem; }
}
