/*
Theme Name: Reynolds HVAC
Theme URI: https://reynoldsheatandair.com/
Author: Reynolds Heating and Air Conditioning
Description: Custom WordPress theme draft for Reynolds Heating and Air Conditioning.
Version: 0.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: reynolds-hvac
*/

:root {
  --ink: #172027;
  --muted: #5d6871;
  --paper: #ffffff;
  --cool: #e8f4f5;
  --line: #d8e2e4;
  --blue: #176ca7;
  --blue-dark: #0c4266;
  --red: #c94b3a;
  --amber: #f6b23d;
  --green: #2f7d66;
  --shadow: 0 22px 60px rgba(16, 32, 41, 0.16);
  --radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 244, 245, 0.5), rgba(255, 255, 255, 0) 360px),
    var(--paper);
}

body,
button,
input,
textarea {
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 48px;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 19px;
}

.brand-text span {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 10px;
  color: var(--muted);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-dark);
  background: var(--cool);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--red);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(86vh - 76px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 80px);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 30, 38, 0.88), rgba(13, 30, 38, 0.6) 42%, rgba(13, 30, 38, 0.08) 78%),
    linear-gradient(0deg, rgba(13, 30, 38, 0.18), rgba(13, 30, 38, 0.18));
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/reynolds-hvac-hero-branded.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 840px;
  font-size: clamp(42px, 7vw, 82px);
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.hero-copy,
.page-hero p,
.section-intro p,
.band-content p,
.review-panel p,
.review-cta p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-copy {
  margin-top: 22px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--paper);
  background: var(--red);
}

.button-light {
  color: var(--blue-dark);
  background: var(--paper);
}

.button-ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.button-outline {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.68);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-action {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 26px clamp(18px, 3vw, 34px);
  background: var(--paper);
  text-decoration: none;
}

.quick-action span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-action strong {
  max-width: 360px;
  font-size: 20px;
  line-height: 1.2;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 80px);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.section-intro p,
.review-panel p,
.review-cta p {
  color: var(--muted);
}

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

.service-card,
.contact-card,
.review-card,
.empty-review,
.process-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(18, 35, 43, 0.07);
}

.service-card {
  display: grid;
  gap: 16px;
  min-height: 280px;
  padding: 26px;
}

.service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--cool);
  border-radius: var(--radius);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card p,
.process-grid p,
.contact-card p,
.review-card p,
.empty-review p {
  color: var(--muted);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(12, 66, 102, 0.96), rgba(47, 125, 102, 0.94)),
    var(--blue-dark);
}

.band-content {
  display: grid;
  gap: 14px;
}

.band .eyebrow {
  color: var(--amber);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 30px;
}

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

.process-grid article {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 26px;
}

.process-grid span,
.contact-card span {
  color: var(--red);
  font-weight: 800;
}

.page-hero {
  display: grid;
  min-height: 430px;
  align-items: end;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 80px);
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(12, 66, 102, 0.98), rgba(201, 75, 58, 0.92)),
    var(--blue-dark);
}

.contact-hero {
  background:
    linear-gradient(120deg, rgba(47, 125, 102, 0.98), rgba(12, 66, 102, 0.94)),
    var(--green);
}

.page-hero-inner {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 70px);
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: start;
}

.review-panel {
  display: grid;
  gap: 16px;
}

.review-panel code,
.empty-review code {
  padding: 2px 5px;
  color: var(--blue-dark);
  background: var(--cool);
  border-radius: 4px;
  font-size: 0.92em;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

.review-card,
.empty-review {
  display: grid;
  gap: 18px;
  min-height: 250px;
  padding: 26px;
}

.empty-review {
  grid-column: 1 / -1;
}

.stars {
  color: var(--amber);
  font-size: 22px;
  letter-spacing: 0;
}

.review-card footer {
  display: grid;
  gap: 2px;
  margin-top: auto;
}

.review-card footer span {
  color: var(--muted);
  font-size: 14px;
}

.review-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--cool);
}

.review-cta .button {
  align-self: center;
}

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

.contact-card {
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 26px;
}

.contact-card .button,
.contact-card .text-link {
  align-self: end;
  justify-self: start;
}

.pay-card {
  background: var(--cool);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 80px);
  color: var(--paper);
  background: #172027;
}

.footer-brand {
  color: var(--paper);
}

.site-footer p {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
}

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

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(13, 30, 38, 0.92), rgba(13, 30, 38, 0.52)),
      linear-gradient(0deg, rgba(13, 30, 38, 0.22), rgba(13, 30, 38, 0.22));
  }

  .quick-actions,
  .section-split,
  .band,
  .process-grid,
  .reviews-layout,
  .review-cta,
  .site-footer,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    position: static;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-call {
    width: 100%;
  }

  .brand-mark {
    flex-basis: 50px;
    width: 50px;
    height: 44px;
  }

  .hero,
  .page-hero {
    padding: 48px 18px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-actions,
  .band-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .quick-actions,
  .service-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 18px;
  }

  .service-card,
  .contact-card,
  .review-card,
  .empty-review,
  .process-grid article {
    min-height: auto;
  }
}
