/* ==========================================================================
   Hughes Mechanical — faithful static clone of hugheshvacdenver.com
   Color/typography reproduced from the live Duda-built source site.
   ========================================================================== */

:root {
  --color-orange: #f28c38;
  --color-orange-dark: #e07a24;
  --color-teal: #2c6b6f;
  --color-teal-dark: #1f4c4f;
  --color-dark: #0e1215;
  --color-text: #454545;
  --color-text-light: #505050;
  --color-border: #d1d1d1;
  --color-bg-alt: #f5f5f5;
  --color-bg-alt-2: #f2f2f2;
  --color-white: #ffffff;

  --font-heading: 'Montserrat', 'Heebo', Arial, sans-serif;
  --font-body: 'Open Sans', 'Source Sans Pro', Arial, sans-serif;

  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-teal);
}

p { margin: 0 0 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------- Top bar ---------------- */
.topbar {
  background: var(--color-orange);
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  letter-spacing: 0.02em;
}

/* ---------------- Header / Nav ---------------- */
header.site-header {
  position: relative;
  background: var(--color-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo img { height: 56px; width: auto; }

nav.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

nav.main-nav > ul > li { position: relative; }

nav.main-nav a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  display: inline-block;
}

nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a {
  color: var(--color-orange);
  border-bottom: 2px solid var(--color-orange);
}

nav.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-dark);
  min-width: 240px;
  padding: 0.5rem 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

nav.main-nav li:hover > .submenu { display: block; }

nav.main-nav .submenu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

nav.main-nav .submenu .submenu {
  top: 0;
  left: 100%;
}

.header-cta {
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--color-orange-dark); }

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.75rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 760px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 0;
  filter: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  color: var(--color-white);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.01em;
}

.hero p.subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.page-title-row {
  background: var(--color-bg-alt-2);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  color: var(--color-teal);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 2px solid var(--color-orange);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--color-orange-dark); border-color: var(--color-orange-dark); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

/* ---------------- Generic Section ---------------- */
section {
  padding: 4rem 0;
}
section.alt-bg { background: var(--color-bg-alt); }
section.dark-bg { background: var(--color-dark); color: var(--color-white); }
section.dark-bg h2, section.dark-bg h3 { color: var(--color-white); }

.section-title {
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-light);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img { border-radius: 8px; width: 100%; height: auto; object-fit: cover; }

.two-col .text-block h2, .two-col .text-block h3 {
  text-transform: uppercase;
}

/* Content-block rows (auto-generated pages) */
.content-row {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.content-row:last-child { border-bottom: none; }
.content-row.has-bg {
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  position: relative;
}
.content-row.has-bg::before {
  content:"";
  position:absolute; inset:0;
  background: rgba(14,18,21,0.6);
}
.content-row.has-bg .container { position: relative; z-index:1; }
.content-row.has-bg h2, .content-row.has-bg h3, .content-row.has-bg h4 { color: var(--color-white); }
.content-row .inline-image { margin: 1.5rem 0; max-width: 480px; }

/* ---------------- Services Grid ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}
a.service-card { cursor: pointer; transition: transform 0.2s ease; }
a.service-card:hover { transform: translateY(-4px); }
a.service-card:hover::before { background: linear-gradient(to top, rgba(14,18,21,0.92), rgba(14,18,21,0.15)); }
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,18,21,0.85), rgba(14,18,21,0.05));
}
.service-card span {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-weight: 700;
  padding: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* ---------------- Blog teaser ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}
.blog-card .date { color: var(--color-orange); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.blog-card h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.blog-card a.read-more { color: var(--color-orange); font-weight: 700; }

/* ---------------- Reviews ---------------- */
.reviews-placeholder {
  background: var(--color-white);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  color: var(--color-text-light);
  font-style: italic;
}

/* ---------------- FAQ ---------------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: #f9f9f9;
  border: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-dark);
  font-family: var(--font-heading);
}
.faq-question::after {
  content: "+";
  color: var(--color-white);
  background: var(--color-orange);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.25rem;
  background: var(--color-white);
}
.faq-item.open .faq-answer {
  max-height: 800px;
  padding: 1rem 1.25rem 1.5rem;
}

/* ---------------- Contact form ---------------- */
.contact-section {
  background: var(--color-teal-dark);
  color: var(--color-white);
}
.contact-section h2 { color: var(--color-white); }
.contact-form {
  max-width: 640px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { justify-self: start; }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--color-dark);
  color: #cfcfcf;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  color: var(--color-white);
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-grid .logo img { height: 48px; margin-bottom: 1rem; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  font-size: 0.9rem;
}
.footer-socials a:hover { background: var(--color-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------------- Sitemap / Location index page ---------------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.sitemap-city h3 {
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-orange);
  padding-bottom: 0.5rem;
}
.sitemap-city ul { list-style: none; padding: 0; margin: 0; }
.sitemap-city li { margin-bottom: 0.5rem; }
.sitemap-city a { color: var(--color-teal); font-weight: 600; }
.sitemap-city a:hover { color: var(--color-orange); }

/* ---------------- Internal note callout (as-is per source) ---------------- */
.internal-note {
  /* Reproduced verbatim from the live source site's homepage — appears there
     as ordinary paragraph text with no special styling. Kept unstyled to
     match, per faithful-copy instructions. */
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .two-col, .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .header-inner { justify-content: space-between; }
  nav.main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
  }
  nav.main-nav.open ul { flex-direction: column; align-items: flex-start; width: 100%; }
  nav.main-nav.open .submenu { position: static; box-shadow: none; padding-left: 1rem; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Nav: keep items on one line ---------------- */
nav.main-nav > ul > li > a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
  nav.main-nav ul { gap: 0.6rem; flex-wrap: nowrap; }
  nav.main-nav > ul > li > a { font-size: 0.85rem; }
  .header-cta { padding: 0.6rem 0.9rem; font-size: 0.9rem; }
  .logo img { height: 48px; }
}

/* ---------------- Short contact block (bottom of pages) ---------------- */
.contact-cta { text-align: center; }
.contact-cta .section-intro { color: #e5e5e5; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.btn-light { background: var(--color-white); color: var(--color-teal-dark); border-color: var(--color-white); }
.btn-light:hover { background: #e9f1f1; border-color: #e9f1f1; color: var(--color-teal-dark); }

/* ---------------- Contact page ---------------- */
.contact-hero { background: var(--color-teal-dark); color: var(--color-white); padding: 3rem 0 2.5rem; }
.contact-hero h1 { color: var(--color-white); margin: 0 0 0.75rem; }
.contact-hero p { max-width: 680px; margin: 0; color: #e5e5e5; font-size: 1.05rem; }
.contact-page { padding: 3rem 0; }
.contact-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); gap: 2.5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-info .btn { text-align: center; }
.btn-outline-dark { background: transparent; color: var(--color-teal-dark); border-color: var(--color-teal-dark); }
.btn-outline-dark:hover { background: var(--color-teal-dark); color: var(--color-white); border-color: var(--color-teal-dark); }
.contact-info dl { margin: 1rem 0 0; }
.contact-info dt { font-family: var(--font-heading); font-weight: 700; color: var(--color-teal); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; margin-top: 1rem; }
.contact-info dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.contact-note { background: var(--color-bg-alt); border-left: 4px solid var(--color-orange); padding: 0.85rem 1rem; margin-top: 1rem; font-size: 0.95rem; }
.contact-form-wrap h2 { margin-top: 0; }
.hcp-lead-iframe { border: none; width: 100%; max-width: 640px; height: 820px; display: block; }
.contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.contact-map { padding: 0; }

/* ---------------- Mobile call / request bar ---------------- */
.mobile-cta-bar { display: none; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { order: -1; }
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-dark);
  }
  .mobile-cta-bar a { flex: 1; text-align: center; padding: 0.95rem 0.5rem; font-weight: 700; font-family: var(--font-heading); color: var(--color-white); font-size: 1rem; }
  .mcb-call { background: var(--color-orange); }
  .mcb-request { background: var(--color-teal); }
  body { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .hcp-lead-iframe { height: 1180px; }
  .contact-page { padding: 1.5rem 0 2rem; }
  .contact-hero { padding: 2rem 0 1.5rem; }
}

/* ---------------- Contact page: big tap-to-call ---------------- */
.hero-call {
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin-top: 1.5rem; padding: 0.9rem 1.75rem; min-height: 64px;
  background: var(--color-orange); color: var(--color-white);
  border-radius: 8px; font-family: var(--font-heading); font-weight: 800;
  font-size: 1.9rem; line-height: 1.1; letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.hero-call:hover, .hero-call:focus-visible { background: var(--color-orange-dark); color: var(--color-white); }
.hero-call:focus-visible { outline: 3px solid var(--color-white); outline-offset: 3px; }
.hero-call span { display: flex; flex-direction: column; }
.hero-call small { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.95; }
.contact-call { font-size: 1.35rem; padding: 1.1rem 1rem; min-height: 60px; }
.contact-info .btn-outline-dark { min-height: 52px; font-size: 1.1rem; }
.phone-big { display: inline-block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--color-teal-dark); padding: 0.35rem 0; }
@media (max-width: 600px) {
  .hero-call { display: flex; justify-content: center; width: 100%; font-size: 1.75rem; min-height: 72px; }
}

/* ---------------- Home hero: show the whole van video ---------------- */
@media (min-width: 901px) {
  .hero-video { aspect-ratio: 16 / 9; max-height: none; min-height: 0; height: auto; }
  .hero-video-bg { object-position: center center; }
}

/* ---------------- Home intro: AC video beside text ---------------- */
.intro-split { background: var(--color-bg-alt-2); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; align-items: center; }
.intro-media { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; background: #1f2a2c; }
.intro-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro-text h2 { margin-top: 0; text-transform: uppercase; }
.intro-text .btn { margin-top: 0.5rem; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro-media { aspect-ratio: 4 / 3; }
}

/* ---------------- Home service tiles (clean-up) ---------------- */
.services-grid .service-card { aspect-ratio: 4 / 3; }
.service-card-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem 1.1rem; text-transform: none; }
.service-card .service-card-title { padding: 0; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; line-height: 1.2; text-transform: none; color: var(--color-white); }
.service-card .service-card-sub { padding: 0; font-size: 0.85rem; font-weight: 600; text-transform: none; color: var(--color-orange); letter-spacing: 0.01em; }
a.service-card:focus-visible { outline: 3px solid var(--color-orange); outline-offset: 3px; }
@media (max-width: 600px) {
  .services-grid { gap: 0.85rem; }
  .services-grid .service-card { aspect-ratio: 1 / 1; }
  .service-card .service-card-title { font-size: 0.95rem; }
  .service-card .service-card-sub { font-size: 0.75rem; }
  .service-card-text { padding: 0.75rem; }
}

/* ---------------- Photo galleries ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-grid--preview { grid-template-columns: repeat(3, 1fr); }
.gallery-item { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 3px solid var(--color-orange); outline-offset: 3px; }
.gallery-more { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.gallery-hero { background: var(--color-teal-dark); color: var(--color-white); padding: 2.5rem 0 2rem; }
.gallery-hero h1 { color: var(--color-white); margin: 0.25rem 0 0.5rem; }
.gallery-hero p { margin: 0; color: #e5e5e5; }
.gallery-hero .crumbs { font-size: 0.9rem; margin-bottom: 0.5rem; }
.gallery-hero .crumbs a { color: var(--color-white); text-decoration: underline; }
@media (max-width: 600px) {
  .gallery-grid, .gallery-grid--preview { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.15); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,0.3); }
.lightbox .lb-close { top: 0.75rem; right: 0.75rem; }
.lightbox .lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #ddd; font-size: 0.9rem; }
.service-card .service-card-sub span { padding: 0; display: inline; font-size: inherit; }
.gallery-page { padding-top: 1.5rem; }
@media (max-width: 600px) { .service-card .service-card-sub span[aria-hidden] { display: none; } }

/* ---------------- Tankless rack photo ---------------- */
.rack-photo img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }

/* ---------------- Tankless quote form ---------------- */
.quote-page { padding: 2rem 0 4rem; }
.quote-form { max-width: 760px; margin: 0 auto; display: grid; gap: 1.5rem; }
.qf-group { border: 1px solid #e2e2e2; border-radius: 8px; padding: 1.25rem 1.25rem 1.5rem; margin: 0; background: #fff; }
.qf-group[hidden] { display: none; }
.qf-group legend { font-family: var(--font-heading, inherit); font-weight: 700; font-size: 1.15rem; padding: 0 .4rem; }
.qf-note { margin: 0 0 1rem; color: #555; }
.qf-choice { display: grid; gap: .75rem; }
.qf-choice label { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 2px solid #ddd; border-radius: 8px; cursor: pointer; font-weight: 600; min-height: 52px; }
.qf-choice label:has(input:checked) { border-color: var(--color-orange, #e87722); background: #fff6ee; }
.qf-choice input { width: 22px; height: 22px; accent-color: var(--color-orange, #e87722); flex: none; }
.qf-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.qf-field { display: grid; gap: .3rem; align-content: start; }
.qf-field > span:first-child { font-weight: 600; }
.qf-hint { font-size: .85rem; color: #666; margin-top: -.2rem; }
.qf-wide { grid-column: 1 / -1; }
.qf-field input, .qf-field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #c9c9c9; border-radius: 6px; font: inherit; font-size: 1rem; min-height: 48px; background: #fff; }
.qf-field input:focus, .qf-field textarea:focus { outline: 2px solid var(--color-orange, #e87722); outline-offset: 1px; border-color: transparent; }
.qf-field textarea { resize: vertical; }
.qf-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.qf-actions .btn { min-height: 52px; font-size: 1.05rem; }
.qf-error { color: #b00020; font-weight: 600; margin: 0; }
.qf-small { font-size: .9rem; color: #555; margin: 0; }
.qf-small a { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
  .qf-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .qf-grid .qf-field:has(input[type=text]), .qf-grid .qf-field:has(input[type=tel]), .qf-grid .qf-field:has(input[type=email]) { grid-column: 1 / -1; }
  .qf-actions .btn { width: 100%; text-align: center; }
}

/* Plumbing & drain cleaning page */
.equip-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.equip-card { background: #fff; border: 1px solid #e3e6e8; border-top: 4px solid var(--color-orange); border-radius: 8px; padding: 1.5rem; }
.equip-card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.equip-card ul { margin: .75rem 0 0; padding-left: 1.2rem; }
.equip-card li { margin-bottom: .4rem; }
.drain-list { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
.drain-list li { break-inside: avoid; margin-bottom: .45rem; }
@media (max-width: 760px) { .equip-grid { grid-template-columns: 1fr; } .drain-list { columns: 1; } }

/* Home services grid: 9 tiles */
@media (min-width: 901px) { .services-grid--home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .services-grid--home > .service-card:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 2 / 1; } }
.boiler-list { padding-left: 1.2rem; margin: .8rem 0 1rem; }
.boiler-list li { margin-bottom: .55rem; }
.source-note { font-size: .8rem; color: #666; }
.source-note a { color: inherit; text-decoration: underline; }
.rebate-note { background:#fff; border-left:4px solid #f08a24; border-radius:6px; padding:1rem 1.2rem; margin:1.2rem 0; }
.rebate-note h3 { margin:0 0 .5rem; color:#1f6b6b; font-size:1.1rem; }
