/* =========================================================
   Mobile Car Detailer — landing page template
   Theme tokens live here; tweak these when remixing.
   ========================================================= */
:root {
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --paper: #ffffff;
  --paper-alt: #f4f1ec;         /* slightly warm cream, not clinical gray */
  --line: #d9d9d9;
  --footer-bg: #0d0d0d;         /* a touch deeper than #111 */
  --footer-ink: #f2f2f2;
  --accent: #c8102e;            /* Premium Auto Spa red — pulled from the logo */
  --accent-dark: #8a0a1f;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Barlow', Helvetica, Arial, sans-serif;
  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

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

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 34px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- attribution banner ---------- */
.attribution-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}
.attribution-banner a { color: #fff; text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 51px; height: 51px; border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; }
.brand-line-1 { font-family: var(--display); font-size: 20px; font-weight: 600; }
.brand-line-2 { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }

.header-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.social-bar {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.social-bar img { width: 24px; height: 24px; }
.social-bar a { display: block; transition: opacity 0.2s ease; }
.social-bar a:hover { opacity: 0.6; }
/* SVG icons in header are dark; in footer we invert to white */
.social-bar:not(.social-bar--footer) img { filter: brightness(0); }
.social-bar--footer img { filter: brightness(0) invert(1); }

.main-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.btn-shop { padding: 10px 22px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('/uploads/hero-hellcat-foam.jpg');
  background-size: cover;
  background-position: center;
}
.hero-content { padding: 60px 20px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: transparent; color: #fff; }

/* ---------- features strip ---------- */
.features-strip {
  background: var(--ink);
  color: #fff;
  padding: 34px 20px;
}
.features-strip ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max-w);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 32px;
  text-align: center;
}
.features-strip li { flex: 1 1 160px; }
.features-strip h2,
.features-strip h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- about ---------- */
.about,
.services-intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about h2,
.services-intro h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; }
.about p { color: var(--ink-soft); margin-bottom: 28px; }
.about img,
.services-intro img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- services intro ---------- */
.services-intro { background: var(--paper); padding-top: 0; }
.services-sub { font-family: var(--body); font-size: 19px; font-weight: 500; color: var(--ink-soft); }
.services-bullets {
  margin: 22px 0 32px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 18px;
}
.services-bullets li { margin-bottom: 8px; }

/* ---------- gallery ---------- */
.gallery { background: var(--paper-alt); padding: 70px 20px; }
.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- testimonial ---------- */
.testimonial {
  padding: 90px 20px;
  text-align: center;
}
.testimonial h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  font-style: italic;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- special ---------- */
.special {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.special-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('/uploads/hellcat-3q-front.jpg');
  background-size: cover;
  background-position: center;
}
.special-content { padding: 80px 20px; }
.special h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.special-sub {
  font-size: 20px;
  margin: 0 0 30px;
}

/* ---------- availability ---------- */
.availability {
  max-width: 960px;
  margin: 0 auto;
  padding: 90px 20px;
  text-align: center;
}
.availability h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; }
.availability p { color: var(--ink-soft); max-width: 640px; margin: 0 auto 40px; }
.calendar-embed iframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--line);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 80px 20px 60px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
}
.footer-logo { border-radius: 4px; margin-bottom: 18px; }
.footer-brand-1 { font-size: 26px; font-weight: 600; margin-bottom: 2px; }
.footer-brand-2 { font-size: 16px; font-weight: 400; letter-spacing: 0.06em; color: #bdbdbd; margin-bottom: 26px; }
.footer-info p { margin: 6px 0; color: #d9d9d9; }
.footer-info a { color: #fff; }
.footer-link { text-decoration: underline; }
.social-bar--footer { margin-top: 22px; }
.footer-shop { margin-top: 26px; font-size: 15px; }
.footer-shop a { color: #bdbdbd; }

/* form */
.footer-form h3 {
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 26px;
}
#contact-form label { display: block; margin-bottom: 18px; }
#contact-form label span {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: #cfcfcf;
}
#contact-form label em { color: #fff; font-style: normal; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: #fff;
  background: transparent;
  border: 1px solid #555;
  outline: none;
  transition: border-color 0.2s ease;
}
#contact-form input:focus,
#contact-form textarea:focus { border-color: #fff; }
#contact-form input[type="date"] { color-scheme: dark; }

.btn-submit {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  margin-top: 6px;
}
.btn-submit:hover { background: transparent; color: #fff; }

.form-success { color: #9be29b; margin-top: 14px; }
.form-error { color: #f0908c; margin-top: 14px; }

/* visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #4c9ffe;
  outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .about,
  .services-intro { grid-template-columns: 1fr; gap: 36px; padding: 60px 20px; }
  .services-intro { padding-top: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 760px) {
  .header-inner { align-items: center; }
  .social-bar:not(.social-bar--footer) { display: none; }
  .btn-shop { display: none; }

  .nav-toggle { display: block; }
  .main-nav .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .main-nav .nav-menu.open { display: flex; }
  .main-nav .nav-menu a { display: block; padding: 12px 0; }
  .main-nav { position: static; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   ROUNDED CORNERS — applied globally so every box/image has
   soft edges. Adjust the variables to taste.
   ========================================================= */
:root {
  --r-sm: 8px;      /* logos, small icons */
  --r-md: 12px;     /* buttons, inputs */
  --r-lg: 18px;     /* image blocks, gallery tiles */
  --r-xl: 24px;     /* hero card, special promo */
}

/* buttons */
.btn { border-radius: var(--r-md); }

/* logos */
.brand-logo,
.footer-logo { border-radius: var(--r-sm); }

/* section images (about + services intro) */
.about img,
.services-intro img { border-radius: var(--r-lg); }

/* gallery tiles */
.gallery-item { border-radius: var(--r-lg); }
.gallery-item img { border-radius: var(--r-lg); }

/* availability calendar */
.calendar-embed iframe { border-radius: var(--r-lg); }

/* contact form inputs */
#contact-form input,
#contact-form textarea { border-radius: var(--r-md); }

/* special promo — round the outer box just slightly so it doesn't feel like a full-bleed band */
.special { border-radius: var(--r-xl); overflow: hidden; margin: 0 20px; }
.special-bg { border-radius: inherit; }

/* =========================================================
   BRAND POLISH — small red accents that make the page feel
   like it belongs to Premium Auto Spa, not a stock template.
   ========================================================= */

/* red underline on major section headings */
.about h2,
.services-intro h2,
.availability h2,
.footer-form h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.about h2::after,
.services-intro h2::after,
.availability h2::after,
.footer-form h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* hero button pops as red now, but keep the .btn-primary variant readable
   over the darkened photo — swap to solid red on both states */
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* header shop/schedule button gets same red treatment */
.btn-shop { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-shop:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* subtle red hover on nav links so the header feels alive */
.nav-menu a { position: relative; padding: 4px 0; transition: color 0.15s ease; }
.nav-menu a:hover { color: var(--accent); }

/* focus outlines match the brand */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline-color: var(--accent);
}

/* thin red top bar above the header so the site has a signature strip */
.attribution-banner { border-top: 3px solid var(--accent); }
