/* ==========================================================================
   Home-Heroes SCC — Shared Stylesheet
   Design principles: senior-friendly (large text, high contrast, big tap
   targets), veteran-owned trust branding, mobile-first.
   ========================================================================== */

:root {
  --navy: #16283f;
  --navy-dark: #0d1826;
  --red: #8f2532;
  --red-dark: #6e1c27;
  --cream: #f4ede1;
  --cream-dark: #e6d9c2;
  --gold: #c9a961;
  --white: #ffffff;
  --text: #232323;
  --text-muted: #4d4d4d;
  --border: #d8cfc0;
  --shadow: 0 10px 30px rgba(13, 24, 38, 0.12);
  --radius: 14px;
  --max-width: 1180px;

  --fs-base: 19px;
  --fs-sm: 17px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 38px;
  --fs-3xl: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--red-dark); }
img { max-width: 100%; height: auto; display: block; }

.img-round img { width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 10px;
}

.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy .eyebrow { color: var(--gold); }
.section--navy p { color: #d8e0ea; }
.section--cream { background: var(--cream); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 14px 20px;
  z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

.topbar { background: var(--navy-dark); color: #e9e2d3; font-size: 16px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #e9e2d3; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar .topbar-badge { color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }

.site-header { background: var(--white); border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 100; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 0; gap: 12px 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 84px; width: 84px; }
.brand-text { font-family: Georgia, serif; line-height: 1.15; }
.brand-text .brand-name { font-weight: 700; font-size: 20px; color: var(--navy); display: block; white-space: nowrap; }
.brand-text .brand-tag { font-size: 13px; color: var(--red); font-weight: 600; letter-spacing: 0.5px; display: block; white-space: nowrap; }

nav.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
nav.main-nav a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: 16px; padding: 6px 2px; border-bottom: 3px solid transparent; white-space: nowrap; }
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.call-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff !important; text-decoration: none;
  font-weight: 800; font-size: 19px; padding: 14px 24px; border-radius: 50px;
  box-shadow: var(--shadow); border: none; cursor: pointer; white-space: nowrap;
}
.call-btn:hover { background: var(--red-dark); }
.call-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.call-btn--ghost { background: transparent; color: var(--navy) !important; border: 2px solid var(--navy); }
.call-btn--ghost:hover { background: var(--navy); color: #fff !important; }
.call-btn--lg { font-size: 24px; padding: 20px 36px; }

.nav-toggle { display: none; background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 10px 14px; font-size: 22px; cursor: pointer; }

.mobile-call-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--red); z-index: 200; padding: 12px 16px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}
.mobile-call-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; }
.mobile-call-bar a svg { width: 24px; height: 24px; flex-shrink: 0; }

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 60px 0 70px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: var(--fs-3xl); }
.hero .eyebrow { color: var(--gold); }
.hero p.lead { font-size: 21px; color: #dfe6ee; max-width: 52ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 16px; border-radius: 50px; font-weight: 700; font-size: 15px; color: #fff;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid rgba(255,255,255,0.15); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.value-card { display: flex; gap: 18px; align-items: flex-start; }
.value-icon { flex-shrink: 0; width: 56px; height: 56px; background: var(--red); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.value-icon svg { width: 30px; height: 30px; stroke: #fff; fill: none; }
.value-card h4 { margin-bottom: 6px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 21px; margin-bottom: 8px; }
.card-body p { color: var(--text-muted); flex: 1; }
.card-list { list-style: none; padding: 0; margin: 10px 0 0; }
.card-list li { padding-left: 30px; position: relative; margin-bottom: 8px; color: var(--text-muted); }
.card-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.badge-pill { display: inline-block; background: var(--cream-dark); color: var(--navy); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 50px; margin-bottom: 14px; }

.btn { display: inline-block; padding: 16px 30px; border-radius: 50px; font-weight: 800; font-size: 18px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.section--navy .btn-outline { color: #fff; }
.section--navy .btn-outline:hover { background: #fff; color: var(--navy); }

.area-badge { display: inline-block; background: var(--red); color: #fff; padding: 16px 22px; border-radius: 8px; }
.area-badge .area-city { font-size: 22px; font-weight: 800; display: block; }
.area-badge .area-county { font-size: 14px; font-weight: 600; display: block; }

.quote-card { background: #fff; border-left: 6px solid var(--gold); border-radius: 10px; padding: 28px 30px; box-shadow: var(--shadow); }
.quote-card p.quote-text { font-size: 20px; font-style: italic; color: var(--text); }
.quote-name { font-weight: 800; color: var(--navy); }

.placeholder-note { background: #fff8e6; border: 2px dashed var(--gold); border-radius: 12px; padding: 20px 24px; font-size: 16px; color: #5a4a20; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; border: none; padding: 0; background: none; }
.gallery-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(13,24,38,0.88), transparent); color: #fff; padding: 34px 16px 14px; font-weight: 700; text-align: left; font-size: 16px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 24px; }
.compare-table { width: 100%; min-width: 480px; border-collapse: collapse; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; background: #fff; }
.compare-table th { background: var(--navy); color: #fff; padding: 16px 22px; font-size: 19px; text-align: left; }
.compare-table td { padding: 16px 22px; font-size: 17px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tbody tr:nth-child(even) { background: var(--cream); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child { color: var(--navy); font-weight: 700; }
.compare-table tbody td:last-child { color: var(--text-muted); }

.gallery-project { margin-bottom: 48px; }
.gallery-project:last-child { margin-bottom: 0; }
.gallery-project h3 { margin-bottom: 4px; }
.gallery-project .project-note { color: var(--text-muted); margin-bottom: 18px; }
.gallery-project-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.gallery-item--wide img { aspect-ratio: 4/3; }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(13,24,38,0.92); z-index: 500; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 90vw; border-radius: 10px; }
.lightbox-close { position: absolute; top: 24px; right: 30px; background: var(--red); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }

.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; border: 1px solid var(--border); }
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 17px; }
input, select, textarea { width: 100%; font-size: 18px; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; margin-bottom: 22px; font-family: inherit; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); border-color: var(--navy); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 15px; color: var(--text-muted); margin-top: -8px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-method { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.contact-method .value-icon { background: var(--navy); }
.contact-method a { color: var(--navy); font-weight: 800; font-size: 22px; text-decoration: none; }
.contact-method a:hover { color: var(--red); }
.contact-method .label { color: var(--text-muted); font-size: 15px; }

.site-footer { background: var(--navy-dark); color: #cdd6e0; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-grid h4 { color: #fff; font-size: 18px; }
.footer-grid a { color: #cdd6e0; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img {
  height: 64px; width: 64px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 6px;
  box-shadow: var(--shadow);
}
.footer-brand span { font-family: Georgia, serif; font-weight: 700; color: #fff; font-size: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #9fadbd; }

.page-hero { background: var(--navy); color: #fff; padding: 46px 0; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #dfe6ee; font-size: 19px; max-width: 60ch; margin: 0 auto; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.img-round { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-width: 420px; margin: 0 auto; }
  .value-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --fs-base: 18px; --fs-xl: 24px; --fs-2xl: 30px; --fs-3xl: 34px; }
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .header-actions .call-btn { display: none; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 76px; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar .container { justify-content: center; text-align: center; }
  .header-row { flex-wrap: wrap; }
  .brand img { height: 76px; width: 76px; }
  nav.main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 2px solid var(--navy); padding: 12px 24px 20px; gap: 4px; box-shadow: var(--shadow);
  }
  nav.main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }
}
