/*
Theme Name: CMG HVAC Fresh Manual
Theme URI: https://cmghvacservices.com/
Author: CORE MECHANICAL HVAC
Description: Locked header/footer with fully manual Home content.
Version: 1.1.1
Text Domain: cmg-hvac-fresh-manual
*/

:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface-2: #edf3fb;
  --ink: #112032;
  --ink-soft: #41546d;
  --line: #d6e0ee;
  --brand: #ff6b2d;
  --brand-deep: #d74e17;
  --teal: #0f9baa;
  --navy: #071a2f;
  --navy-soft: #102b49;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(9, 27, 52, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -5%, #dff7f5 0%, transparent 32%),
    radial-gradient(circle at 0% 55%, #dbe9ff 0%, transparent 28%),
    var(--bg);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2.2rem, var(--max));
  margin-inline: auto;
}

.editable-inner > .wp-block-group,
.editable-inner > .wp-block-cover,
.editable-inner > .wp-block-columns,
.editable-inner > .wp-block-image,
.editable-inner > .wp-block-heading,
.editable-inner > .wp-block-paragraph {
  margin-top: 0;
  margin-bottom: 0;
}

.editable-inner .container {
  width: min(100% - 2.2rem, var(--max));
}

.top-alert {
  background: linear-gradient(90deg, #0f9baa 0%, #0e80c7 100%);
  color: #fff;
  font-size: 0.9rem;
}

.top-alert-wrap {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-alert p {
  margin: 0;
  font-weight: 600;
}

.top-alert a {
  text-decoration: none;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  background: rgba(7, 26, 47, 0.86);
}

.nav-wrap {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 150px;
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
  padding: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
  font-size: 0.97rem;
}

.brand small {
  color: #aac0db;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.main-nav a {
  color: #d8e6f8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #fff;
}

.btn {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .wp-block-button__link {
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--brand) 0%, #ff8e22 100%);
  box-shadow: 0 14px 28px rgba(215, 78, 23, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #ed5a21 0%, #ec7f14 100%);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero {
  min-height: calc(100vh - 120px);
  position: relative;
  overflow: clip;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(104deg, rgba(7, 18, 35, 0.9) 0%, rgba(9, 25, 47, 0.7) 48%, rgba(8, 29, 59, 0.85) 100%),
    linear-gradient(0deg, rgba(3, 11, 21, 0.45) 0%, rgba(3, 11, 21, 0.45) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: inherit;
  padding: clamp(3.5rem, 8vw, 6.6rem) 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.85rem;
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}

.hero .eyebrow,
.final-cta .eyebrow {
  color: #8edfe6;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.14;
}

h1 {
  font-size: clamp(2.1rem, 2.8vw + 1rem, 3.8rem);
  margin-bottom: 0.8rem;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.65rem, 1.8vw + 1rem, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
}

.hero-text {
  margin-top: 0;
  color: #d7e8fa;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 1.2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-points li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.38rem 0.78rem;
}

.hero-panel {
  color: #e9f5ff;
  background: linear-gradient(160deg, rgba(19, 49, 82, 0.95) 0%, rgba(8, 27, 47, 0.93) 100%);
  border: 1px solid rgba(166, 201, 235, 0.2);
  border-radius: 22px;
  padding: 1.3rem;
  box-shadow: 0 24px 50px rgba(4, 14, 28, 0.4);
}

.panel-title {
  margin: 0;
  color: #b7d6f4;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.panel-phone {
  margin-top: 0.4rem;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 2vw + 1rem, 2.35rem);
  line-height: 1;
}

.panel-copy {
  color: #c8dcf1;
  margin: 0.7rem 0 1.1rem;
}

.panel-meta {
  border-top: 1px solid rgba(177, 207, 235, 0.2);
  padding-top: 0.72rem;
  margin-top: 0.72rem;
}

.panel-meta span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: #9ab7d4;
}

.panel-meta p {
  margin: 0.26rem 0 0;
}

.proof-bar {
  margin-top: -36px;
  position: relative;
  z-index: 3;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.proof-grid article {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.95rem;
  box-shadow: var(--shadow);
}

.proof-grid h3 {
  margin-bottom: 0.35rem;
}

.proof-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section {
  padding: clamp(2rem, 4vw, 3.6rem) 0;
}

/* Tighten spacing for service-page content inserted via WP editor wrappers. */
.editable-inner .section {
  padding: clamp(1.2rem, 2.4vw, 2rem) 0 !important;
  margin: 0 !important;
}

.editable-inner .section .container > *:first-child {
  margin-top: 0 !important;
}

.editable-inner .section .container > *:last-child {
  margin-bottom: 0 !important;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.service-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
}

.service-list {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.service-list li {
  color: var(--ink-soft);
}

.service-section-title {
  margin-top: 0.25rem;
}

.service-card.accent {
  background: linear-gradient(160deg, #0f2d4e 0%, #153d66 100%);
  border: 0;
  color: #fff;
}

.service-card.accent p {
  color: #d3e8fb;
}

.service-card.accent a {
  display: inline-block;
  margin-top: 0.65rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.advantage {
  background:
    linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%),
    repeating-linear-gradient(-35deg, rgba(148, 173, 205, 0.18) 0, rgba(148, 173, 205, 0.18) 10px, transparent 10px, transparent 28px);
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.66rem;
  height: 0.66rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 45, 0.19);
}

.comparison-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.comp-row {
  padding: 0.75rem 0;
  border-top: 1px dashed #d3ddec;
}

.comp-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.comp-row span {
  display: block;
  color: #6a7d97;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.comp-row p {
  margin: 0.3rem 0 0;
}

.process {
  background: linear-gradient(180deg, #081b31 0%, #102a48 100%);
  color: #fff;
}

.process .eyebrow {
  color: #8edfe6;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.process-step {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(172, 204, 235, 0.2);
}

.process-step span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #95caef;
  font-weight: 700;
}

.process-step p {
  margin: 0;
  color: #d6e5f8;
}

.media-band {
  background: linear-gradient(180deg, #f7fbff 0%, #edf3fc 100%);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.rounded-image {
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  height: 100%;
  object-fit: cover;
}

.media-copy p {
  color: var(--ink-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list span {
  padding: 0.45rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.89rem;
}

.testimonials {
  background: #fff;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbff;
  margin-bottom: 1rem;
}

.review-score {
  font-weight: 700;
  color: var(--ink);
}

.review-stars {
  color: #ffb400;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.quote {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0;
}

.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.quote-head strong {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.faq {
  background: var(--surface-2);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.95rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.final-cta {
  background: linear-gradient(180deg, #071a2f 0%, #0d2b49 100%);
  color: #fff;
}

.final-cta-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.2rem;
  align-items: center;
}

.final-cta-box p {
  color: #d4e6f9;
}

.site-footer {
  border-top: 1px solid rgba(145, 175, 204, 0.25);
  background: #061526;
  color: #bcd1e6;
}

.footer-grid {
  min-height: 82px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-grid p {
  margin: 0;
  font-size: 0.93rem;
}

.footer-grid a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.sticky-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(145deg, var(--brand) 0%, #ff8d1d 100%);
  box-shadow: 0 14px 30px rgba(215, 78, 23, 0.36);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .advantage-grid,
  .media-grid,
  .final-cta-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .proof-grid,
  .process-grid,
  .service-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-alert-wrap {
    min-height: auto;
    padding: 0.45rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap {
    grid-template-columns: 1fr;
    padding: 0.7rem 0;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .proof-grid,
  .service-grid,
  .process-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .sticky-call {
    right: 0.7rem;
    left: 0.7rem;
    bottom: 0.7rem;
    text-align: center;
  }

  .footer-grid {
    padding: 0.8rem 0;
    align-items: flex-start;
    flex-direction: column;
  }
}