/* A&M brand layer: navy sections, gold accents, photo headings */

/* 1. Consulting section: text directly on navy, gold labels/numbers, dark overlay */
.consult::before { background: linear-gradient(100deg, rgba(10,26,33,0.94) 0%, rgba(10,26,33,0.80) 50%, rgba(10,26,33,0.62) 100%); }
@media (max-width: 760px) { .consult::before { background: rgba(10,26,33,0.84); } }
.consult .consult-list li, .consult .consult-note { background: transparent !important; box-shadow: none !important; }
.consult .display, .consult h2, .consult h3 { color: #fff; }
.consult .display .hl { color: var(--gold); }
.consult .eyebrow, .consult .consult-list .n { color: var(--gold); }
.consult .consult-list p, .consult .lede { color: rgba(255,255,255,0.86); }

/* 2. Navy sections */
.why.section-navy { background: var(--navy-2, #173540); border-top: 1px solid rgba(215,154,74,0.35); }
.why.section-navy .why-grid li { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-top: 3px solid var(--gold); }
.why.section-navy .why-n { color: var(--gold); }
.why.section-navy .why-grid h3 { color: #fff; }
.why.section-navy .why-grid p, .why.section-navy .lede, .why.section-navy p { color: rgba(233,238,240,0.84); }
.why.section-navy .why-grid a { color: var(--gold); }
.why.section-navy .display { color: #fff; }

.warranty-band { background: var(--navy, #102630); border-top: 1px solid rgba(215,154,74,0.35); }

.section-sand.cta-navy { background: #0d2029; border-top: 1px solid rgba(215,154,74,0.35); }
.cta-navy h2 { color: #fff; }
.cta-navy .lede { color: rgba(233,238,240,0.84) !important; }
.cta-navy .btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.cta-navy .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); color: #fff; }

/* Footer: navy with the flowing-line pattern */
.site-footer { position: relative; isolation: isolate; background: #0a1a21 url(img/consult-texture-1920.webp) center / cover no-repeat; border-top: 1px solid rgba(215,154,74,0.35); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,26,33,0.86); pointer-events: none; }
@media (max-width: 760px) { .site-footer { background-image: url(img/consult-texture-960.webp); } }

/* 3. Photo headings on Remodeling and Roofing */
.page-hero.photo-hero { background: #0a1a21 var(--hero-bg, none) center / cover no-repeat; }
.page-hero.photo-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,26,33,0.90) 0%, rgba(10,26,33,0.70) 50%, rgba(10,26,33,0.30) 100%); pointer-events: none; }
.page-hero.photo-hero::before { opacity: 0.35; }
.page-hero.photo-hero .page-hero-media { display: none; }
.page-hero.photo-hero .page-hero-grid { grid-template-columns: 1fr; min-height: 520px; }
.page-hero.photo-hero .page-hero-copy { max-width: calc(var(--container, 1200px) + 2 * var(--gutter, 24px)); margin-inline: auto; width: 100%; padding-inline: var(--gutter, 24px); }
.page-hero.photo-hero h1 { color: #fff; }
.page-hero.photo-hero .lede { color: rgba(255,255,255,0.88); max-width: 40rem; }
.page-hero.photo-hero .book-line a, .page-hero.photo-hero .back-home { color: #fff; }
.page-hero.photo-hero[data-word="REMODELING"] { --hero-bg: url(img/remodel-hero-bg-1536.webp); }
.page-hero.photo-hero[data-word="ROOFING"] { --hero-bg: url(img/roof-hero-bg-1536.webp); }
@media (max-width: 760px) {
  .page-hero.photo-hero[data-word="REMODELING"] { --hero-bg: url(img/remodel-hero-bg-800.webp); }
  .page-hero.photo-hero[data-word="ROOFING"] { --hero-bg: url(img/roof-hero-bg-800.webp); }
  .page-hero.photo-hero::after { background: rgba(10,26,33,0.74); }
  .page-hero.photo-hero .page-hero-grid { min-height: 0; }
}

/* 5. Thin gold line under section headings */
main section h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 0.45em; background: var(--gold, #d79a4a); border-radius: 2px;
}
.share-dialog h2::after, dialog h2::after, .site-footer h2::after { content: none; }

/* Gold buttons always use dark text */
.btn-gold, .btn-gold:hover, .on-dark .btn-gold { color: var(--navy-deep, #0a1a21); }

/* Project photo captions (job type) */
.proj-cap { margin: var(--space-3, 12px) auto 0; font-size: var(--text-sm, 0.9rem); font-weight: 700; letter-spacing: 0.02em; color: var(--navy, #102630); display: flex; align-items: center; gap: 10px; }
.proj-cap::before { content: ""; width: 24px; height: 2px; background: var(--gold, #d79a4a); flex: none; }
.bas:not(.wide) ~ .proj-cap { max-width: 400px; }

/* Windows contrast themes: keep navy sections as designed (no white text backplates over the photo/line backgrounds) */
@media (forced-colors: active) {
  .consult, .site-footer, .page-hero, .hero-x, .section-navy, .warranty-band, .cta-navy, .stats.on-dark { forced-color-adjust: none; }
}

/* Phone menu: scroll inside the menu so the bottom buttons are always reachable */
.mobile-nav.open > div { max-height: calc(100vh - var(--nav-top, 125px)); max-height: calc(100dvh - var(--nav-top, 125px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mobile-nav .btn-leave { margin-bottom: 104px; }

/* Home hero: Google badge + Leave a review button side by side */
.hero-reviews { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: var(--space-5, 20px); }
.hero-reviews .g-badge { margin: 0; }
.hero-leave { min-height: 44px; padding: 0.6rem 1.1rem; gap: 8px; font-size: 0.95rem; }
.hero-leave svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .hero-reviews .hero-leave { width: 100%; justify-content: center; } }
