/*
Theme Name: Cape Henry Mechanical
Description: Custom one-page theme for Cape Henry Mechanical, Inc. Edit phone, email, license and plan details under Appearance > Customize > Business Details.
Version: 1.0
Author: Cape Henry Mechanical, Inc.
Text Domain: cape-henry
*/

:root {
  --navy: #0E2233;
  --navy-2: #16334A;
  --ground: #F5F3EF;
  --ink: #1B2A36;
  --muted: #4A5A66;
  --line: #E2DED6;
  --accent: #C4471A;
  --accent-soft: #F2A37F;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Top bar */
.topbar { background: var(--navy); color: #C9D4DC; font-size: 14px; }
.topbar .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-right { display: flex; flex-wrap: wrap; gap: 20px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.brand-tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-weight: 500; }
.main-nav a { text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 14px 26px; border-radius: 4px; font-weight: 600; font-size: 18px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #A63B15; color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); font-weight: 700; font-size: 20px; }
.main-nav .btn { font-size: 16px; padding: 10px 22px; color: #fff; }

/* Shared section type */
.section { padding-top: 96px; padding-bottom: 96px; }
.eyebrow { margin: 0 0 10px; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.dark .eyebrow { color: var(--accent-soft); }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 0; }
h2 { font-size: 48px; color: var(--navy); margin-bottom: 48px; }
.dark h2 { color: #fff; }
h3 { margin: 18px 0 8px; font-size: 22px; color: var(--navy); }
.muted { color: var(--muted); }
.dark { background: var(--navy); color: #fff; }
.dark .lead { color: #C9D4DC; }

/* Hero */
.hero .wrap { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: 68px; line-height: 1.02; letter-spacing: .01em; }
.hero .lead { margin: 24px 0 0; font-size: 20px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-media { flex: 1 1 400px; min-width: 0; min-height: 420px; border-radius: 6px; background: var(--navy-2); border: 1px dashed #4F6B80; display: flex; align-items: center; justify-content: center; color: #9FB1BE; text-align: center; padding: 24px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media.has-image { padding: 0; border: 0; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; font-weight: 600; color: var(--navy); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 340px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.card p { margin: 0 0 16px; color: var(--muted); }
.card a { font-weight: 600; }

/* Emergency band */
.band { background: var(--accent); color: #fff; }
.band .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.band h2 { color: #fff; font-size: 38px; line-height: 1.1; max-width: 720px; margin: 0; }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 40px; }
.step { flex: 1 1 300px; }
.step-num { font-family: var(--display); font-weight: 700; font-size: 56px; color: var(--accent); line-height: 1; }
.step p { margin: 0; color: var(--muted); }

/* Plan */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.plan h2 { margin-bottom: 20px; }
.plan .lead { font-size: 19px; max-width: 520px; margin: 0; }
.plan-card { background: #fff; color: var(--ink); border-radius: 6px; padding: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; color: var(--navy); }
.plan-price strong { font-family: var(--display); font-weight: 700; font-size: 56px; }
.plan-card ul { margin: 24px 0 32px; padding-left: 20px; display: grid; gap: 10px; }
.plan-card .btn { width: 100%; }

/* Area */
.area h2 { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 500; }
.map { min-height: 340px; border-radius: 6px; overflow: hidden; background: #E9E5DD; }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Reviews */
.reviews { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review { flex: 1 1 320px; margin: 0; background: var(--ground); border-radius: 6px; padding: 32px; }
.review blockquote { margin: 0 0 20px; font-size: 18px; }
.review figcaption { font-weight: 600; color: var(--navy); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 360px; min-width: 0; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info dl { margin: 32px 0 0; display: grid; gap: 18px; }
.contact-info dt { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.contact-info dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); }
.contact-info dd a { text-decoration: none; }
.contact-form { flex: 1 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 40px; display: grid; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.form-row label { flex: 1 1 220px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #A9A396; border-radius: 4px; min-height: 44px; background: #fff; color: var(--ink); }
.contact-form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 4px; font-weight: 600; }
.notice-ok { background: #E3F1E8; color: #1E5B36; }
.notice-err { background: #FBE5DC; color: #8A2E0E; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D4DC; font-size: 15px; }
.footer-top { padding-top: 56px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-top > div:first-child { flex: 1 1 280px; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; color: #fff; }
.site-footer nav, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #2A4558; font-size: 14px; }

/* Basic pages */
.page-content { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.page-content h1 { font-size: 52px; color: var(--navy); margin-bottom: 24px; }

@media (max-width: 760px) {
  .hero h1 { font-size: 46px; }
  h2 { font-size: 36px; margin-bottom: 32px; }
  .band h2 { font-size: 30px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .hero-media { min-height: 260px; }
  .main-nav { gap: 6px 18px; font-size: 15px; }
  .contact-form, .plan-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }
