/* All Coast Roofing public styles (033). Layout follows the design reference in 000 §7
   (moralesroofingllc.net): white header with call and estimate actions, a deep red menu bar,
   a dark hero with bold uppercase headings, red buttons and alternating gray bands.
   Colors are provisional until the logo sets BRAND_COLORS; change them only here. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-400.woff2?v=8909904ab6c8") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/inter-500.woff2?v=f3779f1efccc") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-600.woff2?v=f9a06e79cd3a") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/poppins-600.woff2?v=f4e80d9dfd37") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/poppins-700.woff2?v=9338e65fc077") format("woff2"); }

:root {
  color-scheme: light;
  --brand: #b4141b;          /* buttons, accents: 6.4:1 on white */
  --brand-dark: #8a1016;     /* menu bar, hover */
  --brand-ink: #ffffff;
  --ink: #1b2430;            /* body text: 15:1 on white */
  --ink-muted: #4b5563;      /* 7.5:1 on white */
  --dark: #111922;           /* hero, footer */
  --dark-ink: #e5e7eb;
  --dark-muted: #b8c0cc;     /* 9:1 on --dark */
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --line: #d9dde3;
  --radius: 4px;
  --gutter: 16px;
  --max: 1200px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
main:focus { outline: none; }
code { font-size: .95em; background: var(--surface-muted); padding: .1em .35em; border-radius: var(--radius); overflow-wrap: anywhere; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link { position: absolute; left: -10000px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); color: var(--ink); padding: .75rem 1rem; border-radius: var(--radius); }
/* Honeypot: off-screen, not display:none only (021 req 2). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .625rem 1.25rem;
  border: 2px solid transparent; border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dark); color: var(--brand-ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }
.btn-lg { min-height: 52px; padding: .875rem 1.75rem; font-size: 1.0625rem; }

/* Header */
.site-header { background: var(--surface); position: relative; z-index: 20; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.125rem, 3.5vw, 1.625rem); text-transform: uppercase; letter-spacing: .02em; }
.brand-reverse, .brand-reverse:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-call { display: none; align-items: center; gap: .625rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.header-call .icon { width: 40px; height: 40px; padding: 9px; border-radius: var(--radius); background: var(--brand); fill: #fff; flex: none; }
.header-call small { display: block; font-size: .8125rem; color: var(--ink-muted); line-height: 1.2; }
.header-call strong { display: block; font-family: var(--font-head); font-size: 1.125rem; line-height: 1.2; }
.header-call:hover strong { color: var(--brand); }
.header-cta { display: none; }
@media (min-width: 640px) { .header-call { display: inline-flex; } }
@media (min-width: 960px) { .header-cta { display: inline-flex; } .header-top-inner { min-height: 104px; } }

.site-nav { background: var(--brand-dark); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25rem; }
.site-nav a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 0 1rem; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem; text-transform: uppercase; letter-spacing: .04em; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { background: rgba(0, 0, 0, .22); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #fff; }
.site-nav li ul { display: none; }
.nav-cta { display: none; }

.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: .5rem .75rem; border: 2px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 600 .9375rem var(--font-head); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Small screens: with JavaScript the menu folds behind the toggle; without it the bar wraps. */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-header.nav-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 100%); overflow-y: auto; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
  .js .site-nav > ul { flex-direction: column; padding-block: .5rem; }
  .js .site-nav a:not(.btn) { padding-inline: var(--gutter); }
  .js .nav-cta { display: block; padding: .75rem var(--gutter) 1rem; }
  .js .nav-cta .btn { width: 100%; background: #fff; color: var(--brand-dark); }
}

/* Hero */
.hero { position: relative; color: #fff; background-color: var(--dark);
  background-image:
    linear-gradient(100deg, rgba(17, 25, 34, .97) 0%, rgba(17, 25, 34, .88) 55%, rgba(17, 25, 34, .7) 100%),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, .05) 34px 36px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, .035) 58px 60px);
  border-bottom: 6px solid var(--brand); }
.hero-inner { padding-block: clamp(4rem, 12vw, 8.5rem); max-width: var(--max); }
.hero h1 { text-transform: uppercase; letter-spacing: .01em; max-width: 18ch; }
.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; color: var(--dark-muted); margin-bottom: 1rem; }
.hero-lede { font-size: clamp(1.125rem, 2.4vw, 1.375rem); color: var(--dark-ink); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Bands and sections */
.section { padding-block: clamp(3rem, 8vw, 5rem); }
.section-muted { background: var(--surface-muted); }
.section-title { text-align: center; }
.strip { background: #000; color: #fff; border-bottom: 4px solid var(--brand); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem; padding-block: 1.5rem; text-align: center; }
.strip h2 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); text-transform: uppercase; margin: 0; }
.strip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; color: var(--dark-ink); }
.check-list { list-style: none; padding: 0; margin: 0 auto; max-width: 48rem; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: ""; position: absolute; left: .25rem; top: .45em; width: .9rem; height: .5rem; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

/* Contact band above the footer */
.contact-band { background: var(--surface-muted); border-top: 1px solid var(--line); }
.contact-band-inner { display: grid; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.contact-band h2 { margin: 0; }
.contact-list { display: grid; gap: 1.25rem 2rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.contact-list dt { font-family: var(--font-head); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.contact-list dd { margin: .25rem 0 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-list a { display: inline-block; min-height: 24px; }
.line { display: block; }
@media (min-width: 960px) { .contact-band-inner { grid-template-columns: 1fr 2fr; align-items: start; } }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-ink); border-top: 6px solid var(--brand); font-size: .9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--dark-muted); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.footer-brand p { color: var(--dark-muted); margin-top: .5rem; }
.footer-col h2 { font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dark-muted); margin-bottom: .75rem; }
.footer-col ul, .footer-socials, .footer-legal { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding-block: .2rem; overflow-wrap: anywhere; }
.footer-col a, .footer-legal a, .footer-socials a { display: inline-block; min-height: 24px; line-height: 24px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem; color: var(--dark-muted); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* Site credits (040): small, muted, underlined links, 24px targets. */
.site-credits { font-size: .8125rem; margin-top: .75rem; }
.site-credits p { margin: .25rem 0; }
.site-credits a { text-decoration: underline; display: inline-block; min-height: 24px; line-height: 24px; }

/* Flash messages */
.flash { max-width: var(--max); margin: 1rem auto 0; padding: .75rem var(--gutter); border-radius: var(--radius); }
.flash-success { background: #dcfce7; color: #14532d; }
.flash-error { background: #fee2e2; color: #7f1d1d; }
.flash-info { background: #e0f2fe; color: #0c4a6e; }

/* Error pages and CMS pages */
.error-page { padding-block: clamp(3rem, 10vw, 6rem); max-width: 48rem; }
.request-id { color: var(--ink-muted); font-size: .9375rem; }
.cms-page { padding-block: clamp(2.5rem, 8vw, 4.5rem); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25rem; }

/* Banners (108): preset styles; custom colors come from a nonce'd style element. */
.banner { --banner-bg: #e0f2fe; --banner-fg: #075985; display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 1rem; background: var(--banner-bg); color: var(--banner-fg); }
.banner p { margin: 0; flex: 1; }
.banner a { color: inherit; text-decoration: underline; }
.banner-promo { --banner-bg: #dcfce7; --banner-fg: #166534; }
.banner-warning { --banner-bg: #fef9c3; --banner-fg: #854d0e; }
.banner-closure { --banner-bg: #fee2e2; --banner-fg: #991b1b; }
.banner-close { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
