/* Capitol AC Pros — premium Houston HVAC service site
   Palette: deep navy / charcoal / cool sky accent
   Typography: Inter (self-hosted, font-display: swap)
*/
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700.woff2") format("woff2");
}

:root {
  --navy: #0a1f33;
  --navy-mid: #12324f;
  --navy-soft: #1a4468;
  --sky: #2f7fbf;
  --sky-hover: #2569a0;
  --sky-soft: #e8f3fb;
  --charcoal: #1a2330;
  --muted: #5b6b7c;
  --steel: #8494a7;
  --sand: #f4f7fa;
  --cream: #fbfcfd;
  --border: #d9e2ec;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(10, 31, 51, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 31, 51, 0.14);
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky-hover); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand .working-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav {
  display: none;
  gap: 0.35rem 1.1rem;
  align-items: center;
}
.nav a {
  color: var(--navy-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
}
.nav a:hover, .nav a.active { color: var(--sky); }
.nav-toggle {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  padding: 1rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-cta {
  display: inline-flex !important;
  background: var(--sky) !important;
  color: #fff !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--sky-hover) !important; color: #fff !important; }
@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .nav { display: flex; }
  .nav.open { position: static; flex-direction: row; padding: 0; border: 0; box-shadow: none; background: transparent; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn-primary, .btn-dark {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}
.btn-primary:hover, .btn-dark:hover { background: var(--sky-hover); border-color: var(--sky-hover); color: #fff; }
.btn-secondary, .btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10,31,51,0.22);
}
.btn-secondary:hover, .btn-outline:hover { border-color: var(--sky); color: var(--sky); }
.btn-on-dark {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-on-dark-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.35rem; }

/* Hero */
.hero-photo {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero-photo__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-photo__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,22,38,0.88) 0%, rgba(7,22,38,0.55) 55%, rgba(7,22,38,0.28) 100%);
}
.hero-photo__content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 3rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 40rem;
}
.hero-photo .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-photo h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero-photo .lead {
  margin: 0;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  max-width: 36rem;
}
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 2.5rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}
.page-hero.has-photo { min-height: 280px; display: flex; align-items: flex-end; }
.page-hero.has-photo .page-hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-hero.has-photo .page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,22,38,0.9) 0%, rgba(7,22,38,0.55) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-hero p { margin: 0; color: rgba(255,255,255,0.86); max-width: 40rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 0.35rem; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }

/* Trust strip */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .trust-strip ul { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.trust-strip .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sky);
  flex-shrink: 0;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--sand); }
.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}
.muted { color: var(--muted); }

.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.15rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card__img { width: 100%; height: 160px; object-fit: cover; background: var(--sand); }
.card__body { padding: 1.15rem 1.2rem 1.35rem; }
.card h3 { margin: 0 0 0.35rem; color: var(--navy); font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}
.icon-card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--sky-soft); color: var(--sky);
  display: grid; place-items: center;
  font-weight: 800; margin-bottom: 0.85rem;
}
.icon-card h3 { margin: 0 0 0.35rem; color: var(--navy); font-size: 1.05rem; }
.icon-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.steps {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: grid; gap: 1rem;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  counter-increment: step;
  position: relative;
}
.steps { counter-reset: step; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 0.85rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.steps strong { display: block; color: var(--navy); margin-bottom: 0.25rem; }

.media-round {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-round img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* Form */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.75rem; }
.estimate-form, .form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.form-note {
  background: var(--sky-soft);
  color: var(--navy-mid);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(47,127,191,0.35);
  border-color: var(--sky);
}
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.consent input { width: auto; margin-top: 0.25rem; }
.consent label { font-weight: 500; color: var(--charcoal); }
.warn-box {
  background: #fff8e8;
  border: 1px solid #f0d9a0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0.55rem 0;
}
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.related { margin-top: 2rem; }
.related ul { padding-left: 1.1rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.86); text-decoration: none; display: inline-block; margin: 0.2rem 0; }
.site-footer a:hover { color: #fff; }
.footer-disclosure {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

/* Hide pending phone */
html[data-cap-phone="pending"] .js-tracking-phone,
html[data-cap-phone="pending"] .js-tracking-phone-display,
html[data-cap-phone="pending"] .js-tracking-phone-line,
html:not([data-cap-phone="live"]) .js-tracking-phone,
html:not([data-cap-phone="live"]) .js-tracking-phone-line {
  display: none !important;
}

.pill {
  display: inline-block;
  background: var(--sky-soft);
  color: var(--navy-mid);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
}
