/*
Theme Name: Cape Henry Mechanical
Theme URI: https://capehenrymechanical.com
Author: Cape Henry Mechanical, Inc.
Description: Custom one-page theme for Cape Henry Mechanical, Inc. — HVAC repair, installation, maintenance and sheet metal fabrication serving Hampton Roads, Virginia.
Version: 1.0.0
License: Proprietary
Text Domain: capehenry
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }

:root {
  --navy: #0b2239;
  --navy-deep: #071627;
  --teal: #1d5b83;
  --gold: #c99b45;
  --gold-light: #e6c377;
  --red: #c0392b;
  --light: #f5f7f9;
  --line: #e4e9ee;
  --text: #263746;
  --muted: #5b6b78;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(11,34,57,.09);
  --shadow-lg: 0 24px 60px rgba(11,34,57,.18);
  --container: 1160px;
}

.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 780px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.on-dark { color: var(--gold-light); }

.section-heading { max-width: 680px; margin-bottom: 48px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--navy); }
.section-heading p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(201,155,69,.35); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 14px 30px rgba(201,155,69,.45); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }

.site-logo { display: flex; align-items: center; gap: 10px; color: var(--gold-light); }
.site-logo-icon { width: 30px; height: 42px; flex: none; }
.site-logo-word { line-height: 1.2; }
.site-logo-word strong { display: block; color: #fff; font-size: 1.12rem; font-weight: 800; letter-spacing: .4px; }
.site-logo-word small { display: block; color: var(--gold-light); font-size: .66rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.primary-nav a:hover, .primary-nav a.is-active { color: #fff; background: rgba(255,255,255,.08); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.header-phone svg { width: 20px; height: 20px; color: var(--gold-light); flex: none; }
.header-phone small { display: block; font-size: .65rem; font-weight: 600; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-7px); }
.nav-toggle::after { position: absolute; transform: translateY(7px); }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: rotate(45deg); }
.nav-toggle.is-open::after { transform: rotate(-45deg); }

@media (max-width: 940px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone small { display: none; }
  .header-actions { gap: 10px; }
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--navy-deep);
    padding: 8px 0 18px;
  }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a {
    color: #fff;
    text-decoration: none;
    padding: 13px 5%;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .mobile-nav .btn { margin: 14px 5% 0; }
}
@media (min-width: 941px) { .mobile-nav { display: none !important; } }

@media (max-width: 600px) {
  .header-actions .header-phone,
  .header-actions > .btn-gold { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 55%, #0d2a44 100%);
  color: #fff;
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(201,155,69,.25), transparent 45%),
    radial-gradient(circle at 95% 75%, rgba(29,91,131,.55), transparent 50%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
.hero-copy { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 540px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.trust-row { display: grid; grid-template-columns: repeat(4, auto); gap: 26px; }
.trust-row .item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .82rem; letter-spacing: .3px; }
.trust-row svg { width: 26px; height: 26px; color: var(--gold-light); flex: none; }

.hero-visual {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 34px;
  backdrop-filter: blur(2px);
}
.hero-visual-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.06); margin-bottom: 14px; }
.hero-visual-card:last-child { margin-bottom: 0; }
.hero-visual-card svg { width: 34px; height: 34px; color: var(--gold-light); flex: none; }
.hero-visual-card strong { display: block; font-size: .95rem; }
.hero-visual-card span { display: block; font-size: .8rem; color: rgba(255,255,255,.65); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .trust-row { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 72px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Services ---------- */
.services-section { background: var(--light); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; color: #fff; }
.service-card h3 { font-size: 1.08rem; color: var(--navy); letter-spacing: .3px; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; flex: 1; }
.service-card a { color: var(--teal); font-weight: 700; font-size: .88rem; text-decoration: none; }
.service-card a:hover { color: var(--gold); }
.service-card.featured { background: var(--navy); color: #fff; }
.service-card.featured h3, .service-card.featured p { color: #fff; }
.service-card.featured p { opacity: .78; }
.service-card.featured .service-icon { background: var(--gold); }
.service-card.featured a { color: var(--gold-light); }

@media (max-width: 940px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- About / why us ---------- */
.about-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 64px; align-items: center; }
.about-grid > p { color: var(--muted); font-size: 1.05rem; }
.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.feature-list .feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(201,155,69,.14); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-list strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .94rem; }

.about-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: 20px;
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-card .badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.about-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.about-card p { color: rgba(255,255,255,.75); margin-bottom: 26px; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-card { order: -1; } }

/* ---------- Fabrication banner ---------- */
.fab-section { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.fab-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 30%, rgba(201,155,69,.18), transparent 55%);
}
.fab-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.fab-copy .eyebrow { color: var(--gold-light); }
.fab-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.fab-copy p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.fab-items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 26px 0 32px; }
.fab-items .item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.fab-items svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }
.fab-visual {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.01));
  padding: 46px 34px;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: center;
}
.fab-visual svg { width: 54px; height: 54px; color: var(--gold-light); margin-bottom: 20px; }
.fab-visual .line { width: 60px; height: 4px; background: var(--gold); margin-bottom: 18px; border-radius: 2px; }
.fab-visual strong { font-size: 1.6rem; line-height: 1.15; display: block; margin-bottom: 10px; }
.fab-visual span { font-size: .75rem; letter-spacing: 1.6px; color: rgba(255,255,255,.6); text-transform: uppercase; }

@media (max-width: 900px) { .fab-grid { grid-template-columns: 1fr; } }

/* ---------- Service area ---------- */
.area-section { background: var(--light); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.area-grid h2 { color: var(--navy); }
.area-grid p { color: var(--muted); font-size: 1.05rem; }
.area-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.area-pills span {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 999px;
  font-weight: 700; color: var(--navy); font-size: .92rem;
  box-shadow: var(--shadow);
}
.area-pills svg { width: 16px; height: 16px; color: var(--gold); }

@media (max-width: 820px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- Reviews + contact ---------- */
.review-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 14px; }
.review-card blockquote { margin: 0 0 18px; font-size: 1.08rem; color: var(--navy); font-style: italic; }
.review-card cite { color: var(--muted); font-size: .9rem; font-style: normal; font-weight: 700; }

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.contact-card h2 { color: var(--navy); }
.contact-card > p.lead { color: var(--muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .82rem; font-weight: 700; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--light);
  transition: border-color .15s, background .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.form-success {
  background: #eaf6ec; color: #276b3a; border: 1px solid #bfe3c4;
  padding: 14px 18px; border-radius: 10px; font-weight: 700; margin-bottom: 22px; font-size: .92rem;
}

@media (max-width: 900px) { .review-contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); }
.footer-top { padding: 70px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand { margin-bottom: 16px; }
.footer-brand .site-logo-icon { width: 26px; height: 36px; }
.footer-brand .site-logo-word strong { font-size: 1rem; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.site-footer nav a, .footer-contact a, .footer-contact p {
  display: block; color: rgba(255,255,255,.68); text-decoration: none; margin-bottom: 12px; font-size: .92rem;
}
.site-footer nav a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact .row { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold-light); flex: none; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem;
}
.footer-bottom .badge { color: var(--gold-light); font-weight: 700; }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; padding: 50px 0 30px; } }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--navy);
  padding: 12px 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.2);
}
@media (max-width: 640px) {
  .mobile-call-bar { display: flex; gap: 10px; }
  .mobile-call-bar .btn { flex: 1; }
  body { padding-bottom: 74px; }
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
