/* ── Screen reader text (skip link, etc.) ── */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{position:static!important;width:auto;height:auto;padding:8px 16px;margin:0;overflow:visible;clip:auto;white-space:normal;background:var(--o);color:#fff;font-size:14px;font-weight:600;border-radius:6px;z-index:999}

/*
Theme Name:  Cosmo Car Wash
Theme URI:   https://cosmoexpresswash.com
Author:      Cosmo Car Wash
Author URI:  https://cosmoexpresswash.com
Description: Custom premium theme for Cosmo Car Wash — Route 9, South Amboy NJ. Features editorial typography, interactive wash slider, dynamic pricing, and theme-settings-powered content management.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:     Private — All rights reserved
License URI: https://cosmoexpresswash.com/terms-of-use
Text Domain: cosmo
Tags:        custom-menu, custom-logo, featured-images, theme-options

Cosmo Car Wash — Clean. Confident. Modern. Memorable.
*/

/* ================================================================
   Legal-page overrides (loaded after cosmo.css via this file)
   ================================================================ */
.legal-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(52px, 6vw, 92px) var(--gut) clamp(70px, 9vw, 120px);
}
.legal-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 86px) var(--gut) 0;
}
.legal-hero-inner .kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-hero-inner .kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--o);
}
.legal-hero-inner h1 {
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .98;
  font-size: clamp(38px, 6vw, 72px);
}
.legal-hero-inner .sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--fs-lede);
  max-width: 640px;
  line-height: 1.6;
}
.legal-hero-inner .updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--faint);
  margin-top: 14px;
}
.legal-hero-inner .divider {
  max-width: 1200px;
  margin: clamp(30px, 4vw, 46px) auto 0;
  border: none;
  border-top: 1px solid var(--line);
}
.legal-body p {
  margin: 0 0 18px;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--fg);
}
.legal-body h2 {
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-size: clamp(21px, 2.5vw, 30px);
  margin: 46px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  position: relative;
}
.legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-body h2::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--o);
  border-radius: 2px;
}
.legal-body h2:first-of-type::after { display: none; }
.legal-body ul,
.legal-body ol { margin: 0 0 20px; padding-left: 26px; }
.legal-body li {
  margin-bottom: 9px;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--fg);
}
.legal-body li::marker { color: var(--o); }
.legal-body li p { margin: 0 0 8px; }
.legal-body strong { font-weight: 600; }
.legal-body a {
  color: var(--o-dk);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color .3s;
}
.legal-body a:hover { color: var(--o); }

/* Force dark header on all page templates (inner pages have no transparent hero) */
body[class*="page-template-template-"] .hdr {
  background: rgba(17, 18, 21, .97);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
body[class*="page-template-template-"] .hdr.stuck {
  background: rgba(14, 15, 17, .99);
}

/* ================================================================
   Breadcrumb Navigation
   ================================================================ */
.breadcrumb {
  background: var(--bg-deep, #0c0c0f);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.breadcrumb-inner {
  max-width: var(--maxw, 1400px);
  margin: 0 auto;
  padding: 14px var(--gut);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.breadcrumb a {
  color: var(--muted, #8c8a86);
  text-decoration: none;
  transition: color .3s;
}
.breadcrumb a:hover {
  color: var(--o);
}
.breadcrumb .sep {
  color: rgba(255, 255, 255, .2);
  font-weight: 300;
}
.breadcrumb .current {
  color: var(--o);
  font-weight: 500;
}

/* ================================================================
   Inner Page Hero
   ================================================================ */
.page-hero {
  padding: clamp(180px, 22vw, 280px) var(--gut) clamp(70px, 10vw, 120px);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.page-hero .kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-hero .kicker::before,
.page-hero .kicker::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--o);
}
.page-hero h1 {
  font-family: var(--disp);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .96;
  font-size: clamp(36px, 6vw, 72px);
  max-width: 800px;
  margin: 0 auto;
}
.page-hero .hero-sub {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: var(--fs-lede);
  line-height: 1.65;
}
.page-hero .hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

/* ================================================================
   Inner Page — Centred Section Head
   ================================================================ */
.head-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(38px, 4.6vw, 66px);
}
.head-center h2 {
  margin-top: 20px;
}
.head-center .lede {
  margin-top: 18px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   Inner Page — Steps Grid (Services / Plans / Location)
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.step {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .35s, box-shadow .35s, transform .35s;
}
.step:hover {
  border-color: var(--o);
  box-shadow: 0 8px 32px rgba(242, 101, 34, .1);
  transform: translateY(-4px);
}
.step-no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 16px;
  display: block;
}
.step h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.step p {
  color: var(--muted);
  font-size: var(--fs-body, 16px);
  line-height: 1.7;
}

/* Light theme step card enhancements */
[data-theme="light"] .step {
  background: #fff;
  border-color: rgba(19, 18, 22, .1);
  box-shadow: 0 2px 16px rgba(19, 18, 22, .06);
}
[data-theme="light"] .step:hover {
  border-color: var(--o);
  box-shadow: 0 12px 40px rgba(242, 101, 34, .12);
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Inner Page — Plans page contact block
   ================================================================ */
.plans-contact {
  text-align: center;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 64px);
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card, transparent);
}
.plans-contact .kicker {
  margin-bottom: 0;
}
.plans-contact p {
  color: var(--muted);
  font-size: var(--fs-body, 16px);
  line-height: 1.7;
  margin-bottom: 20px;
}
.plans-contact .num {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: -.02em;
  color: var(--o);
  display: block;
  margin-bottom: 8px;
}
.plans-contact-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

/* ================================================================
   Inner Page — Final CTA Section (all inner pages)
   ================================================================ */
.cta-final {
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.cta-final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 45vh;
  justify-content: center;
}
.cta-final-inner h2 {
  max-width: 900px;
}
.cta-final-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
  justify-content: center;
}

/* ================================================================
   Inner Page — Location grid for standalone page
   ================================================================ */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.loc-details .detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.loc-details .detail-row:first-child { padding-top: 0; }
.loc-details .detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(242, 101, 34, .12);
  color: var(--o);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-details .detail-icon svg {
  width: 20px;
  height: 20px;
}
.loc-details .detail-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.loc-details .detail-value {
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.5;
}
.loc-details .detail-value a {
  color: var(--o);
  text-decoration: none;
  transition: opacity .3s;
}
.loc-details .detail-value a:hover { opacity: .75; }
@media (max-width: 768px) {
  .loc-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Inner Page — FAQ standalone page intro
   ================================================================ */
.faq-intro {
  max-width: 600px;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.7;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* ================================================================
   Inner Page — Blog listing pagination
   ================================================================ */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: clamp(36px, 4vw, 56px);
  flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.3s var(--e), background 0.3s var(--e), color 0.3s var(--e);
}
.blog-pagination a:hover {
  border-color: var(--o);
  color: var(--o);
}
.blog-pagination .current {
  background: var(--o);
  border-color: var(--o);
  color: #fff;
}
.blog-pagination .dots {
  border: none;
  min-width: auto;
  padding: 0 4px;
  color: var(--muted);
}

/* ================================================================
   Fallback: journey steps visible when JS hasn't triggered
   Covers the homepage journey in case IntersectionObserver is slow
   ================================================================ */
.journey:not(.on) .jstep {
  animation: jstep-fallback 0s 3s forwards;
}
.journey:not(.on) .jnode {
  animation: jnode-fallback 0s 3s forwards;
}
@keyframes jstep-fallback {
  to { opacity: 1; transform: none; }
}
@keyframes jnode-fallback {
  to { background: var(--o); border-color: var(--o); color: #fff; }
}

/* ================================================================
   Inner Page — Responsive overrides
   ================================================================ */
@media (max-width: 640px) {
  .page-hero { padding-top: clamp(140px, 26vw, 200px); }
  .page-hero h1 { font-size: clamp(28px, 7.5vw, 42px); }
  .page-hero .hero-sub { font-size: 16px; }
  .page-hero .hero-acts { justify-content: center; }
  .page-hero .hero-acts .btn { flex: 1 1 auto; }
  .plans-contact { border-radius: 18px; padding: 32px 20px; }
  .cta-final-inner { min-height: 36vh; }
  .cta-final-acts .btn { flex: 1 1 auto; }
}
