/* ==========================================================================
   Catawba Ridge Heating & Air — example site
   Own design system, deliberately distinct from Koncal Web's.
   ========================================================================== */

:root {
  --teal: #0f2f31;
  --teal-soft: #17454a;
  --teal-line: rgba(243, 246, 248, 0.16);
  --white: #f4f7f7;
  --paper: #ffffff;
  --heat: #d4472a;
  --heat-dark: #b03a20;
  --cool: #2b7f9e;
  --amber: #f0a830;
  --gray: #4c5c5e;
  --gray-light: #7a8c8e;
  --border: #dbe4e3;

  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-max: 1160px;
  --section-pad-y: clamp(56px, 8vw, 96px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
  --call-bar-height: 62px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--teal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

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

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--heat); color: #fff; font-weight: 700;
  padding: 12px 18px; border-radius: var(--radius-sm); z-index: 1000;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Utility bar (also carries the example-site disclosure)
   ========================================================================== */

.utility-bar {
  background: var(--teal);
  color: rgba(244, 247, 247, 0.82);
  font-size: 0.82rem;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  flex-wrap: wrap;
}

.utility-bar__hours { display: flex; align-items: center; gap: 8px; }
.utility-bar__hours svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--amber); }

.utility-bar__demo {
  color: rgba(244, 247, 247, 0.72);
  white-space: nowrap;
}
.utility-bar__demo a {
  color: var(--amber);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .utility-bar__hours { display: none; }
  .utility-bar__inner { justify-content: center; }
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px) { .container { padding-inline: 32px; } }

.section { position: relative; padding-block: var(--section-pad-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--heat-dark); margin-bottom: 12px;
}
.section--teal .eyebrow { color: var(--amber); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.015em; line-height: 1.08;
  color: var(--teal);
}
.section--teal h2, .section--teal h3 { color: var(--white); }

h1 { font-size: clamp(2.3rem, 4.6vw + 1rem, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 2.3vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.15rem, 0.9vw + 1rem, 1.35rem); }

.lede { font-size: clamp(1.02rem, 0.35vw + 1rem, 1.15rem); color: var(--gray); max-width: 54ch; }
.section--teal .lede { color: rgba(244, 247, 247, 0.82); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1rem; padding: 15px 26px;
  border-radius: 999px; border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--heat); color: #fff; }
.btn--primary:hover { background: var(--heat-dark); }
.btn--light { background: #fff; color: var(--heat-dark); }
.btn--light:hover { background: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--outline-dark { border-color: var(--teal); color: var(--teal); }
.btn--outline-dark:hover { background: var(--teal); color: #fff; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(244, 247, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 12px;
}

.logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--teal); white-space: nowrap;
}
.logo__mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.18rem;
  letter-spacing: -0.015em;
}
.logo__tag {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-light);
}

.nav { display: none; align-items: center; gap: 26px; }
.nav__links { display: flex; gap: 24px; font-weight: 700; font-size: 0.94rem; }
.nav__links a {
  text-decoration: none; color: var(--teal);
  padding-block: 4px; border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav__links a:hover { border-color: var(--heat); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; }
@media (min-width: 500px) { .header-actions .btn { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: rgba(15, 47, 49, 0.06); }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 22px; height: 2px; background: var(--teal); position: relative;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  padding: 8px 20px 18px; border-bottom: 1px solid var(--border); background: var(--white);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 13px 4px; text-decoration: none; font-weight: 700; color: var(--teal);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: 0; }

@media (min-width: 940px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero — photo
   ========================================================================== */

.hero {
  position: relative;
  min-height: clamp(460px, 66vh, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 47, 49, 0.92) 0%,
    rgba(15, 47, 49, 0.86) 55%,
    rgba(15, 47, 49, 0.90) 100%);
}

@media (min-width: 780px) {
  .hero__scrim {
    background: linear-gradient(100deg,
      rgba(15, 47, 49, 0.95) 0%,
      rgba(15, 47, 49, 0.88) 34%,
      rgba(15, 47, 49, 0.55) 58%,
      rgba(15, 47, 49, 0.28) 100%);
  }
}

.hero__inner {
  position: relative;
  padding-block: clamp(52px, 8vw, 84px);
  max-width: 640px;
  color: #fff;
}

.hero h1 { color: #fff; margin-bottom: 16px; }
.hero__sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1.02rem, 0.35vw + 1rem, 1.18rem);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 8px 15px; border-radius: 999px; margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0;
}

.hero__foot {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust-bar { background: var(--paper); border-bottom: 1px solid var(--border); }
.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
  padding-block: 24px;
}
@media (min-width: 780px) { .trust-bar__inner { grid-template-columns: repeat(4, 1fr); } }

.trust-pill { display: flex; align-items: center; gap: 11px; justify-content: center; text-align: left; }
.trust-pill svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--cool); }
.trust-pill span { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }

/* ==========================================================================
   Dial — signature element on service cards
   ========================================================================== */

.dial { position: relative; width: var(--dial-size, 72px); height: var(--dial-size, 72px); flex-shrink: 0; }
.dial__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial__track { fill: none; stroke: var(--border); stroke-width: 7; }
.dial__fill {
  fill: none; stroke: var(--fill-color, var(--heat)); stroke-width: 7;
  stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: var(--dial-offset, 60);
}
.dial__icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.dial__icon svg { width: 40%; height: 40%; }

/* ==========================================================================
   Services
   ========================================================================== */

.service-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 26px 22px; text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,47,49,0.08); }
.service-card .dial { margin-inline: auto; margin-bottom: 16px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--gray); font-size: 0.92rem; }

/* ==========================================================================
   Split (image + text)
   ========================================================================== */

.split {
  display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--reverse .split__media { order: 2; }
}

.split__media img {
  width: 100%; height: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--radius-lg);
}

.split__body h2 { margin-bottom: 16px; }
.split__body p { color: var(--gray); margin-bottom: 14px; }
.section--teal .split__body p { color: rgba(244,247,247,0.8); }

.check-list { display: grid; gap: 12px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; }
.check-list svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--heat);
}
.section--teal .check-list svg { color: var(--amber); }

/* ==========================================================================
   Service area
   ========================================================================== */

.area-list {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.area-list li {
  border: 1px solid var(--teal-line);
  background: rgba(255,255,255,0.06);
  color: rgba(244,247,247,0.9);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.review-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.review__stars { display: flex; gap: 3px; color: var(--amber); }
.review__stars svg { width: 17px; height: 17px; }
.review__text { color: var(--gray); font-size: 0.97rem; }
.review__who { font-weight: 800; font-size: 0.9rem; margin-top: auto; }
.review__where { font-weight: 600; color: var(--gray-light); font-size: 0.85rem; }

/* ==========================================================================
   Emergency banner
   ========================================================================== */

.emergency {
  background: var(--heat); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px; color: #fff;
}
.emergency h2 { color: #fff; margin-bottom: 6px; }
.emergency p { color: rgba(255,255,255,0.92); max-width: 44ch; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

.contact-card {
  display: flex; align-items: center; gap: 15px;
  padding: 19px; border-radius: var(--radius-md);
  border: 1px solid var(--teal-line); background: var(--teal-soft);
  text-decoration: none; color: var(--white); margin-bottom: 13px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--amber); }
.contact-card__icon { width: 25px; height: 25px; flex-shrink: 0; color: var(--amber); }
.contact-card__label {
  display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(244,247,247,0.6); margin-bottom: 2px;
}
.contact-card__value {
  font-weight: 800;
  font-size: clamp(0.92rem, 3.2vw, 1.08rem);
  overflow-wrap: anywhere;
}

.hours-box {
  border: 1px solid var(--teal-line); border-radius: var(--radius-md);
  padding: 19px; margin-top: 4px;
}
.hours-box h3 { font-size: 0.98rem; margin-bottom: 10px; color: #fff; }
.hours-box dl { margin: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.hours-box .row { display: flex; justify-content: space-between; gap: 16px; color: rgba(244,247,247,0.8); }
.hours-box dt, .hours-box dd { margin: 0; }
.hours-box dd { font-weight: 700; color: #fff; }

.contact-form {
  background: var(--paper); border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 30px); color: var(--teal);
}
.form-row { display: grid; gap: 15px; margin-bottom: 15px; }
@media (min-width: 500px) { .form-row--split { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 1rem; background: var(--white); color: var(--teal);
  transition: border-color var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--heat); }
.field textarea { min-height: 104px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--gray-light); margin-top: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--teal); color: rgba(244,247,247,0.72);
  padding-block: 44px calc(44px + var(--call-bar-height));
}
@media (min-width: 940px) { .site-footer { padding-bottom: 44px; } }

.footer-top {
  display: grid; gap: 28px; grid-template-columns: 1fr;
  padding-bottom: 28px; border-bottom: 1px solid var(--teal-line); margin-bottom: 22px;
}
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: #fff; margin-bottom: 8px;
}
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }

.footer-col h4 {
  color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px; font-family: var(--font-body); font-weight: 800;
}
.footer-col ul { display: grid; gap: 8px; font-size: 0.9rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-disclosure {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.87rem;
  margin-bottom: 18px;
}
.footer-disclosure a { color: var(--amber); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.8rem;
}

/* ==========================================================================
   Call bar
   ========================================================================== */

.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
  display: flex; align-items: stretch;
  height: var(--call-bar-height);
  background: var(--heat); border-top: 2px solid var(--heat-dark);
}
.call-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; color: #fff; font-weight: 800; font-size: 1rem;
}
.call-bar__book {
  flex: 0 0 auto; padding-inline: 20px;
  border-left: 1.5px solid rgba(255,255,255,0.3);
  font-size: 0.9rem;
}
.call-bar svg { width: 20px; height: 20px; }

@media (min-width: 940px) { .call-bar { display: none; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
