/* New Caney Wheels & Tires — garage-sign brochure
   Palette matched to the shop logo: black, logo red, chrome silver, white. */

:root {
  --ink: #0E0F12;        /* near-black, hero/footer */
  --panel: #16181C;      /* dark panel */
  --line-dark: #26282E;
  --red: #D22B1F;        /* logo red */
  --red-dark: #A81E14;
  --chrome: #C7C9CC;     /* chrome silver */
  --silver: #9DA1A8;     /* muted text on dark */
  --white: #FFFFFF;
  --paper: #F4F4F5;
  --line: #E5E6E8;
  --text: #1A1C20;
  --muted: #55585F;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 0; z-index: 50; }

/* Language toggle: show only active language copy */
[data-copy] { display: none; }
html[data-language="en"] [data-copy="en"] { display: inline; }
html[data-language="es"] [data-copy="es"] { display: inline; }

/* Type system */
h1, h2, .highlight-title, .button, .site-nav a, .brand span {
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.02;
  text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 14px;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.015em; margin: 0 0 18px;
}
.kicker {
  display: block; color: var(--red); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.85rem; margin: 0 0 8px;
  font-family: "Barlow", system-ui, sans-serif;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none;
}
.brand span {
  font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--silver); text-decoration: none; font-weight: 600; font-size: 1.08rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle {
  border: 1px solid var(--line-dark); background: transparent; color: var(--silver);
  font: inherit; font-size: 0.85rem; font-weight: 600;
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  white-space: nowrap;
}
.language-toggle:hover { border-color: var(--chrome); color: var(--white); }

/* Buttons */
.button {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 13px 26px; border-radius: 6px;
}
.button--red { background: var(--red); color: var(--white); }
.button--red:hover { background: var(--red-dark); }
.button--chrome { border: 2px solid var(--chrome); color: var(--white); }
.button--chrome:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.button--dark-outline { border: 2px solid var(--ink); color: var(--ink); }
.button--dark-outline:hover { background: var(--paper); }
.button--white { background: var(--white); color: var(--red); }
.button--white:hover { background: var(--paper); }
.header-call { padding: 9px 18px; font-size: 1rem; }

/* Hero (dark) */
.hero { background: var(--ink); color: var(--white); }
.hero-inner {
  display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: center;
  padding-top: 56px; padding-bottom: 60px;
}
.hero-logo { width: 100%; height: auto; }
.hero-copy .rule {
  width: 72px; height: 5px; background: var(--red); border: 0; margin: 0 0 18px;
}
.hero-facts {
  color: var(--chrome); margin: 0 0 28px; font-size: 1.15rem; letter-spacing: 0.02em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-phone {
  display: block; color: var(--white); text-decoration: none;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: 0.03em; margin: 0 0 6px;
}
.hero-phone:hover { color: var(--chrome); }

/* Live open / closed status, computed from the shop's real hours.
   Without JS it stays the plain "Open daily · 8:00 AM–7:00 PM" line. */
.status {
  display: flex; width: fit-content; align-items: center; gap: 9px;
  margin: 0 0 18px; padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--white);
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--silver);
}
.status[data-open="true"] { border-color: var(--red); }
.status[data-open="true"] .status-dot { background: var(--red); }
.status-hours { color: var(--chrome); font-weight: 500; letter-spacing: 0.04em; }

/* On light inner pages the same pill sits on paper. */
.page-hero .status { margin-left: auto; margin-right: auto; }

/* Red ticker strip */
.ticker { background: var(--red); color: var(--white); padding: 13px 0; }
.ticker-inner {
  display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.09em;
}
.ticker-inner > span::before { content: "★"; margin-right: 10px; font-size: 0.8em; }

/* Sections */
section { padding: 56px 0; }

/* Services */
.service-list {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px;
}
.service-list li {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 18px 18px 16px;
}
.service-list li strong {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.service-list li p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.service-area { color: var(--muted); margin: 0; }
.section-cta { margin: 8px 0 0; }

/* Gallery (dark) */
.gallery { background: var(--panel); color: var(--white); border-top: 3px solid var(--red); }
.gallery .kicker { color: var(--red); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--line-dark);
}
.gallery .service-area { color: var(--silver); }

/* Reviews */
.reviews { background: var(--paper); }
.reviews-card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red);
  padding: 30px; text-align: center;
}
.stars { color: #F5A623; font-size: 1.7rem; letter-spacing: 5px; margin: 0 0 8px; }
.reviews-card .hero-actions { justify-content: center; margin-top: 18px; }
.review-quote {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red);
  margin: 14px 0 0; padding: 16px 20px; color: var(--muted); font-style: italic;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-width 0.25s ease;
}
.review-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 20, 24, 0.10);
  border-left-width: 6px;
}

/* Scroll-reveal for review quotes: fade + slide up, staggered.
   JS adds .is-in when each quote scrolls into view. No-JS or reduced-motion → fully visible. */
.review-quote[data-reveal] { opacity: 0; transform: translateY(22px); }
.review-quote[data-reveal].is-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.review-quote[data-reveal].is-in:nth-of-type(2) { transition-delay: 0.10s; }
.review-quote[data-reveal].is-in:nth-of-type(3) { transition-delay: 0.20s; }
.review-quote[data-reveal].is-in:nth-of-type(4) { transition-delay: 0.30s; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--ink); color: var(--white);
  padding: 48px 0 44px; text-align: center;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero .hero-facts { margin: 0; }

/* Service detail cards */
.detail-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red);
  padding: 22px; margin-bottom: 18px;
}
.detail-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-card h2 { margin-bottom: 8px; }
.detail-card p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); padding: 40px 0; }
.cta-band-inner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.cta-band-inner p {
  margin: 0; font-size: 1.5rem; font-weight: 700;
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.03em;
}

/* Visit / map */
.visit-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: start;
}
.visit-info address { font-style: normal; font-size: 1.15rem; margin: 0 0 8px; }
.visit-info p { color: var(--muted); margin: 0 0 12px; }
.phone-link {
  color: var(--red); font-weight: 700; font-size: 1.7rem; text-decoration: none;
  font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.03em;
}
.contact-actions { justify-content: flex-start; margin: 14px 0; }
.map-frame iframe {
  width: 100%; height: 380px; border: 1px solid var(--line); display: block;
}
.map-frame--tall iframe { height: 460px; }

/* Footer */
.site-footer {
  background: var(--ink); color: var(--white);
  border-top: 3px solid var(--red); padding: 38px 0 100px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; align-items: start;
}
.footer-name {
  margin: 0 0 6px; font-weight: 700; font-size: 1.3rem;
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.04em;
}
.site-footer address { font-style: normal; color: var(--silver); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  color: var(--silver); text-decoration: none; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--white); }
.footer-call p { color: var(--silver); margin: 10px 0 0; font-size: 0.95rem; }

/* Sticky call button (mobile-first) */
.sticky-call {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  background: var(--red); color: var(--white); text-align: center;
  padding: 15px; border-radius: 8px; font-weight: 700; font-size: 1.2rem;
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.sticky-call:hover { background: var(--red-dark); }

@media (min-width: 721px) {
  .sticky-call { display: none; }
  .site-footer { padding-bottom: 38px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .hero-logo { width: min(320px, 76vw); margin: 0 auto; }
  .hero-copy .rule { margin: 0 auto 18px; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 720px) {
  .visit-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .header-call { display: none; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-card { grid-template-columns: 1fr; }
  .detail-card img { max-height: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .review-quote[data-reveal] { opacity: 1; transform: none; }
}
