/*
Theme Name: Quality Air Reviews
Theme URI: https://qualityairductcleaningreviews.com/
Author: CertTech Web Solutions
Description: Custom review-focused landing page for Quality Air Duct Cleaning.
Version: 1.0.0
License: Proprietary
Text Domain: qualityairreviews
*/

:root {
  --ink: #0b0f14;
  --coal: #1a2744;
  --paper: #f8fafc;
  --soft: #edf4f7;
  --muted: #536170;
  --line: rgba(26, 39, 68, 0.14);
  --red: #1976d2;
  --red-dark: #1a2744;
  --gold: #a3e635;
  --gold-light: #d9f99d;
  --green: #84cc16;
  --sky: #e7f5fb;
  --blue: #1976d2;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(11, 15, 20, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  left: 16px;
  top: 16px;
  width: auto;
  z-index: 1000;
  background: var(--white);
  border: 2px solid var(--red);
  padding: 10px 14px;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(23, 20, 18, 0.08);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.97);
  box-shadow: 0 12px 40px rgba(23, 20, 18, 0.1);
}

.top-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--green));
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-link img {
  width: 178px;
  height: auto;
}

.brand-kicker {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--coal);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 11px 16px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--coal);
  color: var(--white);
  box-shadow: 0 16px 38px rgba(26, 39, 68, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ink);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(163, 230, 53, 0.24);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(23, 20, 18, 0.18);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--white);
  border-color: var(--gold);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 0;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
  transition: transform 160ms ease;
}

.mobile-toggle span::before {
  transform: translateY(-6px);
}

.mobile-toggle span::after {
  transform: translateY(4px);
}

.site-main {
  overflow: hidden;
}

.hero {
  min-height: 82vh;
  padding: 118px 0 44px;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.88) 0%, rgba(26, 39, 68, 0.72) 48%, rgba(11, 15, 20, 0.2) 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--green));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  gap: 40px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 4.4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.proof-tile,
.hero-panel,
.review-card,
.trust-item,
.source-card,
.faq-item {
  border-radius: 8px;
}

.proof-tile {
  min-height: 98px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.proof-value {
  display: block;
  color: var(--gold-light);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.proof-label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-panel {
  background: rgba(251, 250, 246, 0.94);
  color: var(--ink);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rating-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.stars {
  color: var(--gold);
  font-size: 1.26rem;
  line-height: 1;
}

.rating-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.rating-score {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.panel-quote {
  margin: 18px 0 0;
  color: var(--coal);
  font-size: 1.05rem;
  font-weight: 750;
}

.panel-source {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.panel-buttons {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 64px 0;
}

.band-white {
  background: var(--white);
}

.band-soft {
  background: var(--soft);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-summary {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  min-height: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sky);
  color: var(--green);
  margin-bottom: 18px;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-item h3,
.review-card h3,
.source-card h3,
.faq-item h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.trust-item p,
.review-card p,
.source-card p,
.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
  align-items: stretch;
}

.review-feature {
  min-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.review-feature img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.review-feature-copy {
  padding: 24px;
}

.review-feature-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  min-height: 238px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.pattern-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.review-card .stars {
  margin-bottom: 18px;
}

.review-card p {
  color: var(--coal);
  font-size: 1.02rem;
  font-weight: 700;
}

.review-meta {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.source-card {
  min-height: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
}

.source-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 36px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 950;
}

.source-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 950;
  text-decoration: none;
}

.map-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 48vw, 520px);
  border: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: repeat(2, 260px);
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.gallery-item:first-child {
  grid-row: 1 / span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-caption {
  position: absolute;
  inset: auto 12px 12px 12px;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: rgba(23, 20, 18, 0.78);
  color: var(--white);
  border-radius: 7px;
  font-weight: 850;
}

.areas-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 32px;
  align-items: start;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--coal);
  font-weight: 850;
}

.cta-band {
  background:
    linear-gradient(90deg, rgba(23, 20, 18, 0.92), rgba(23, 20, 18, 0.82)),
    var(--cta-image) center / cover no-repeat;
  color: var(--white);
}

.cta-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-wrap h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 2.25rem;
  line-height: 1.08;
}

.cta-wrap p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
}

.site-footer {
  background: var(--coal);
  color: rgba(255, 255, 255, 0.78);
  padding: 34px 0;
}

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-wrap img {
  width: 150px;
  height: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .brand-kicker {
    display: block;
  }

  .hero-inner,
  .section-head,
  .review-layout,
  .areas-wrap,
  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .trust-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .brand-link img {
    width: 136px;
  }

  .brand-kicker,
  .header-actions .btn-outline {
    display: none;
  }

  .header-actions .btn-primary {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: calc(100vh - 58px);
    padding: 92px 0 24px;
    background:
      linear-gradient(180deg, rgba(11, 15, 20, 0.84), rgba(26, 39, 68, 0.76)),
      var(--hero-image) center / cover no-repeat;
  }

  .hero-inner {
    gap: 0;
  }

  .hero h1 {
    font-size: 2.34rem;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 43px;
  }

  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .hero-proof .proof-tile:nth-child(n+3),
  .hero-panel {
    display: none;
  }

  .proof-tile {
    min-height: 72px;
    padding: 12px;
  }

  .proof-value {
    font-size: 1.35rem;
  }

  .proof-label {
    font-size: 0.76rem;
  }

  .review-grid,
  .trust-grid,
  .source-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 230px);
  }

  .gallery-item:first-child {
    grid-row: auto;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
