/* TRI-CITY SMOG — mobile-first, no external dependencies. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #071018;
  --navy-900: #0b1a28;
  --navy-800: #122536;
  --navy-700: #1b3348;
  --steel: #8aa0b5;
  --cream: #f4f2ed;
  --paper: #fbfaf7;
  --ink: #12202c;
  --muted: #5c6b78;
  --line: #e2ded6;
  --orange: #e65c16;
  --orange-hot: #ff7a33;
  --orange-dark: #c44b10;
  --white: #ffffff;
  --header-h: 4.35rem;
  --callbar-h: 5.1rem;
  --wrap: 72rem;
  --radius: 0.85rem;
  --shadow: 0 16px 40px rgba(7, 16, 24, 0.12);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}

img, svg { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.wrap { width: min(100% - 1.75rem, var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,26,40,0.96);
  color: var(--white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: var(--header-h);
}
.logo-link { display: flex; align-items: center; flex: 0 0 auto; }
.logo-link img { height: 3.1rem; width: auto; background: var(--white); border-radius: 0.4rem; padding: 0.2rem 0.35rem; }
.brand-text { display: none; }

.loc-switch {
  display: flex; gap: 0; margin-left: auto;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; overflow: hidden; font-size: 0.78rem;
}
.loc-switch a {
  color: var(--steel); text-decoration: none; padding: 0.35rem 0.7rem; font-weight: 650;
}
.loc-switch a.is-active { background: var(--orange); color: var(--white); }
.loc-switch a:hover { color: var(--white); }

.nav-toggle { display: none; }
.nav-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.6rem; height: 2.6rem; margin-left: 0.25rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem; cursor: pointer;
}
.nav-btn span { display: block; height: 2px; background: var(--white); border-radius: 1px; }
.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0 1rem;
}
#nav-toggle:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0.9rem 0; }
.site-nav > ul > li > a, .drop-label {
  display: block; color: var(--white); text-decoration: none;
  padding: 0.7rem 0.35rem; font-weight: 600; font-size: 1rem;
}
.site-nav a:hover, .drop-label:hover { color: var(--orange-hot); }
.dropdown { border-top: 1px solid rgba(255,255,255,0.06); }
.drop-panel { display: none; padding: 0 0 0.6rem 0.8rem; }
.dropdown:hover .drop-panel, .dropdown:focus-within .drop-panel, .drop-toggle:checked ~ .drop-panel { display: block; }
.drop-toggle { display: none; }
.drop-label { cursor: pointer; }
.drop-panel a {
  display: block; color: var(--steel); text-decoration: none;
  padding: 0.35rem 0.2rem; font-size: 0.95rem;
}
.drop-panel h3 {
  margin: 0.7rem 0 0.25rem; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange-hot); font-weight: 700;
}
.header-phone {
  display: none;
}

/* Hero */
.hero {
  background: var(--navy-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 1.5rem; padding: 2rem 0 2.4rem; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5.5vw, 3.15rem);
  line-height: 1.12; margin: 0 0 0.75rem; font-weight: 720; letter-spacing: -0.02em;
}
.hero .lede { color: var(--cream); margin: 0 0 1.2rem; font-size: 1.08rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.15rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; font-size: 0.98rem;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hot); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--cream); color: var(--navy-900); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }

/* Sections */
section { padding: 2.75rem 0; }
.section-kicker {
  margin: 0 0 0.35rem; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange-dark); font-weight: 750;
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.2; margin: 0 0 0.8rem; letter-spacing: -0.02em;
}
h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 0.4rem; }
.muted { color: var(--muted); }
.section-intro { max-width: 44rem; margin: 0 0 1.5rem; }

.band-cream { background: var(--cream); }
.band-navy { background: var(--navy-900); color: var(--white); }
.band-navy .section-kicker { color: var(--orange-hot); }
.band-navy .muted { color: var(--steel); }

/* Cards */
.card-grid, .service-grid, .area-grid, .review-grid, .faq-list, .loc-grid, .why-grid, .blog-grid, .gallery-grid {
  display: grid; gap: 1rem;
}
.card, .service-card, .why-card, .review-card, .blog-card, .loc-card, .area-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(7,16,24,0.03);
}
.service-card a, .area-card a, .blog-card a, .loc-card a { text-decoration: none; color: inherit; }
.service-card h3 a, .blog-card h3 a, .loc-card h3 a, .area-card a { color: var(--navy-900); }
.service-card:hover, .loc-card:hover, .blog-card:hover, .area-card:hover { border-color: #d2b9a6; box-shadow: var(--shadow); }
.card-img { margin: -1.15rem -1.2rem 0.9rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-img img { width: 100%; height: 12rem; object-fit: cover; }

.why-grid { grid-template-columns: 1fr; }
.service-groups h3.group-label {
  margin: 1.4rem 0 0.6rem; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange-dark);
}

/* Locations */
.loc-meta { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0; }
.loc-meta a { color: inherit; }

/* FAQ */
.faq-list details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.85rem 1.1rem;
}
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--navy-900); }
.faq-list details p { margin: 0.6rem 0 0.2rem; }

/* Gallery */
.gallery-grid { grid-template-columns: 1fr 1fr; }
.gallery-grid a { border-radius: 0.6rem; overflow: hidden; background: var(--navy-800); }
.gallery-grid img { width: 100%; height: 8.5rem; object-fit: cover; }

/* Reviews */
.review-card .who { font-weight: 700; margin: 0; }
.review-card .when { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.5rem; }
.stars { color: var(--orange); letter-spacing: 0.05em; font-weight: 700; }
.rating-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1rem; margin-bottom: 1.2rem; }
.rating-hero strong { font-size: 2rem; font-family: var(--display); }

/* Contact */
.contact-grid { display: grid; gap: 1.4rem; }
.contact-form, .contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem;
}
.contact-form label { display: block; font-weight: 650; font-size: 0.88rem; margin: 0.7rem 0 0.25rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--line);
  border-radius: 0.5rem; font: inherit; background: var(--paper);
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }
.map-link { display: inline-block; margin-top: 0.4rem; }

/* Offer */
.offer {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--white); border-radius: var(--radius); padding: 1.4rem 1.3rem;
}
.offer h2, .offer p { color: var(--white); }
.offer ul { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }

/* Article / longform */
.prose { max-width: 46rem; }
.prose p { margin: 0 0 1rem; }
.prose h2 { margin-top: 1.8rem; }
.prose h3 { margin-top: 1.2rem; }
.byline { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.2rem; }

/* Footer */
.site-footer {
  background: var(--navy-950); color: var(--cream);
  padding: 2.4rem 0 6.5rem;
}
.footer-grid { display: grid; gap: 1.5rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--orange-hot); }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-hot); }
.site-footer p, .site-footer li { color: var(--steel); }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 1 !important; }
@media (min-width: 700px) {
  .site-footer ul { columns: 2 !important; }
}
.site-footer li { margin: 0.25rem 0; }
.footer-bottom {
  margin-top: 1.8rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  justify-content: space-between; color: var(--steel); font-size: 0.92rem;
}
.hdim-link { color: var(--orange-hot) !important; font-weight: 700; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 0;
  background: var(--navy-950);
  padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}
.callbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--white); font-weight: 700;
  background: var(--orange); margin: 0.15rem; border-radius: 0.6rem;
  padding: 0.45rem 0.3rem; font-size: 0.82rem; line-height: 1.2;
}
.callbar a span { font-weight: 500; font-size: 0.68rem; color: rgba(255,255,255,0.85); }
.callbar a:hover { background: var(--orange-hot); color: var(--white); }

/* Chooser (root home) */
.chooser { padding: 2rem 0 3rem; }
.chooser-grid { display: grid; gap: 1.1rem; }

/* HDIM banner */
.hdim-banner {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 1.2rem;
}
.hdim-banner a { font-weight: 750; }

@media (min-width: 700px) {
  .service-grid, .why-grid, .review-grid, .blog-grid, .loc-grid, .chooser-grid { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid img { height: 11rem; }
  .contact-grid, .hero-grid, .footer-grid { grid-template-columns: 1.1fr 0.9fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .nav-btn { display: none; }
  .header-inner { gap: 1rem; }
  .brand-text { display: none; }
  .loc-switch { margin-left: 1rem; margin-right: 0; }
  .site-nav {
    display: block !important; position: static; background: transparent;
    border: 0; padding: 0; margin-left: auto;
  }
  .site-nav > ul {
    display: flex; align-items: center; gap: 0.15rem 0.85rem;
    padding: 0;
  }
  .site-nav > ul > li > a, .drop-label {
    padding: 0.4rem 0; font-size: 0.86rem; font-weight: 650;
  }
  .dropdown { position: relative; border: 0; }
  .drop-panel {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-40%);
    width: 38rem; max-width: 80vw;
    background: var(--navy-800); padding: 0.9rem 1.1rem 1.1rem;
    border-radius: 0.7rem; box-shadow: var(--shadow);
    columns: 2; column-gap: 1.2rem;
  }
  .dropdown:hover .drop-panel, .dropdown:focus-within .drop-panel, .drop-toggle:checked ~ .drop-panel { display: block; }
  .header-phone {
    display: inline-flex; align-items: center;
    color: var(--white); text-decoration: none; font-weight: 750;
    margin-left: 0.6rem; white-space: nowrap; font-size: 0.95rem;
  }
  .header-phone:hover { color: var(--orange-hot); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 3.2rem 0; }
  .hero-photo img { aspect-ratio: 5/4; min-height: 22rem; }
  .service-grid { grid-template-columns: 1fr 1fr 1fr; }
  section { padding: 3.4rem 0; }
}

@media (min-width: 1100px) {
  .area-grid { grid-template-columns: repeat(4, 1fr); }
}
