/* ===========================================================
   Rick's Auto Spa - landing page styles
   Static CSS, no build step. Edit values in :root to retheme.
   =========================================================== */

:root {
  --ink:        #0d1620;   /* near-black blue, page text on light */
  --ink-2:      #46586a;   /* secondary text */
  --paper:      #ffffff;
  --paper-2:    #f4f7f9;   /* tinted section background */
  --deep:       #101d29;   /* dark sections + header */
  --deep-2:     #17293a;
  --accent:     #12b5c9;   /* water/chrome cyan */
  --accent-dk:  #0d8fa0;
  --line:       #dbe3ea;
  --line-dark:  rgba(255, 255, 255, .14);

  --wrap:   1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 22, 32, .09);

  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .4em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.9rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.32rem; letter-spacing: .02em; }

p { margin: 0 0 1rem; }

a { color: var(--accent-dk); }
a:hover { color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.muted { color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: #062026; }
.btn-accent:hover { background: #22cde1; color: #062026; }

.btn-ghost {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: inherit; }

.section .btn-ghost:hover { background: rgba(13, 22, 32, .06); }

.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(18, 181, 201, .4);
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 29, 41, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #062026;
  flex: none;
}
.brand-mark svg { width: 24px; height: 24px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-text em {
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }
.site-nav .btn { color: #062026; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  color: #fff;
  background: var(--deep);
  overflow: hidden;
}

/* Layered gradients stand in for a hero photo until real ones exist.
   TODO: swap in a photo -> background-image: url("images/hero.jpg"); */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(18, 181, 201, .30) 0%, transparent 58%),
    radial-gradient(80% 70% at 8% 100%, rgba(38, 96, 133, .45) 0%, transparent 62%),
    linear-gradient(160deg, #14283a 0%, #0b1620 62%, #0a1219 100%);
}
.hero-bg::after {
  /* faint diagonal sheen, like light across a wet panel */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .05) 50%, transparent 58%);
}

.hero-inner {
  position: relative;
  padding: clamp(5rem, 12vw, 8.5rem) 24px clamp(4rem, 9vw, 6rem);
  max-width: 900px;
  margin-inline: auto;
}

.hero h1 { margin-bottom: 1.2rem; }
.hero .accent { color: var(--accent); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, .82);
  max-width: 40ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.4rem;
  list-style: none;
  margin: 3rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line-dark);
  font-size: .92rem;
  color: rgba(255, 255, 255, .68);
}
.hero-badges strong { color: #fff; font-weight: 600; }

/* ---------------- Trust strip ---------------- */

.strip {
  background: var(--accent);
  color: #062026;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  padding-block: 1.4rem;
}
.strip-item { display: flex; flex-direction: column; }
.strip-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
}
.strip-value { font-weight: 600; font-size: 1.02rem; }
.strip-value a { color: inherit; text-decoration: none; }
.strip-value a:hover { text-decoration: underline; }

/* ---------------- Sections ---------------- */

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }

.section-tint { background: var(--paper-2); }

.section-dark {
  background: var(--deep-2);
  color: #fff;
}
.section-dark .eyebrow { color: var(--accent); }

.section-head {
  max-width: 620px;
  margin-bottom: 3rem;
}
.section-sub { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.section-dark .section-sub { color: rgba(255, 255, 255, .7); }

/* ---------------- Service cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(18, 181, 201, .45);
}
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(18, 181, 201, .12);
  color: var(--accent-dk);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }

.cta-line {
  margin: 2.5rem 0 0;
  text-align: center;
  color: var(--ink-2);
}

/* ---------------- Steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-dark);
}
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: .6rem;
}
.steps p { color: rgba(255, 255, 255, .72); margin: 0; }

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-copy p { color: var(--ink-2); }

.checklist {
  list-style: none;
  margin: 1.75rem 0 2rem;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .7rem;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 1.15rem;
  height: .6rem;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.photo-placeholder {
  display: grid;
  place-content: center;
  gap: .4rem;
  text-align: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink-2);
  padding: 1.5rem;
}
.photo-placeholder span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.photo-placeholder small { font-size: .85rem; opacity: .8; }

/* ---------------- Reviews ---------------- */

.reviews-inner {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.rating-block {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.rating-score {
  font-family: var(--font-head);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--ink);
}
.rating-stars { color: #f0a500; font-size: 1.25rem; letter-spacing: .12em; }
.rating-meta { font-size: .85rem; color: var(--ink-2); margin: .5rem 0 0; }
.reviews-copy p { color: var(--ink-2); max-width: 52ch; }

/* ---------------- Visit ---------------- */

.visit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.info-block { margin-bottom: 2rem; }
.info-block h3 {
  font-size: .82rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink-2);
  margin-bottom: .5rem;
}
.info-block p { margin-bottom: .4rem; }

.big-phone {
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.1;
}
.big-phone a { color: var(--ink); text-decoration: none; }
.big-phone a:hover { color: var(--accent-dk); }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.hours th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
  padding: .4rem 0;
  border-bottom: 1px solid var(--line);
}
.hours td {
  text-align: right;
  padding: .4rem 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.visit-map iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

/* ---------------- Final CTA ---------------- */

.final-cta {
  background: var(--deep);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.final-cta p { color: rgba(255, 255, 255, .72); margin-bottom: 2rem; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: #08111a;
  color: rgba(255, 255, 255, .62);
  padding: 2.5rem 0;
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
}
.footer-brand p { margin: .2rem 0 0; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-nav { display: flex; gap: 1.4rem; }
.copyright { margin: 0; width: 100%; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); font-size: .84rem; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .about-grid,
  .reviews-inner,
  .visit-grid { grid-template-columns: 1fr; }

  /* Keep the (currently placeholder) image from dwarfing the copy when stacked */
  .about-media { order: -1; }
  .photo-placeholder { aspect-ratio: 16 / 9; max-height: 300px; }
  .rating-block { max-width: 260px; }
  .visit-map iframe { height: 340px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--deep);
    border-bottom: 1px solid var(--line-dark);
    padding: .5rem 24px 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav .btn {
    margin-top: 1rem;
    border-bottom: 0;
    justify-content: center;
  }

  .strip-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
