/* Roofing landing template: static recreation of design_handoff_roofing_template.
   Every value below is copied from the handoff's inline styles; class names are ours.
   Exception: --cta is darker than the handoff's #e2702b so white button text reads at 4.5:1 or better. */

:root{--cta:#b84f15;--cta-hover:#8f3c0f}

body{margin:0;background:#f5f4f1;color:#1c1f24;font-family:'Public Sans',sans-serif;-webkit-font-smoothing:antialiased}
a{color:#c2561a;text-decoration:none}a:hover{color:#8f3c0f;text-decoration:underline}
*{box-sizing:border-box}
[hidden]{display:none !important}

.page{min-height:100vh;display:flex;flex-direction:column}

/* ---------- Header (shared) ---------- */
.site-header{background:#1f252d;color:#f5f4f1}
.site-header--sticky{position:sticky;top:0;z-index:10}
.header-in{max-width:1180px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.header-in--legal{max-width:880px}
.brand{display:flex;align-items:center;gap:12px}
a.brand,a.brand:hover{color:#f5f4f1;text-decoration:none}
.brand-logo{display:block;width:84px;height:44px;flex-shrink:0;border-radius:6px;object-fit:contain}
/* A dark or unreadable logo sits on a light plate so it reads on the dark header (src/lib/site/logo-tone.js). */
.brand-logo--plate{background:#ffffff;padding:4px 8px;box-sizing:border-box;box-shadow:0 0 0 1px rgba(255,255,255,.35),0 1px 3px rgba(0,0,0,.25)}
.brand-text{display:flex;flex-direction:column}
.brand-name{font-family:Archivo,sans-serif;font-weight:800;font-size:18px}
.brand-name--home{letter-spacing:.01em}
.brand-tag{font-size:12px;color:#a9b0b8}
.phone-btn,.phone-btn:hover{display:flex;align-items:center;gap:8px;background:var(--cta);color:#fff;padding:10px 18px;min-height:44px;border-radius:6px;font-weight:600;font-size:15px}
.back-link,.back-link:hover{color:#f0a06e;font-size:14px;font-weight:600}

/* ---------- Hero ---------- */
.hero{background:#1f252d;color:#f5f4f1;padding:56px 24px 72px}
.hero-in{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:48px;align-items:start}
.hero-copy{display:flex;flex-direction:column;gap:24px;padding-top:12px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#f0a06e}
.hero-title{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:clamp(34px,5vw,56px);line-height:1.05;text-wrap:balance}
.hero-lede{margin:0;font-size:18px;line-height:1.6;color:#c9ced4;max-width:520px;text-wrap:pretty}
/* The company's own photo fills the hero under one flat header-colour overlay. Its strength is
   measured in test/site/logo-hero-contrast.test.js: the copy keeps 4.5:1 even over a pure-white photo. */
.hero--photo{position:relative;overflow:hidden;color:#f5f4f1}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.hero--photo::after{content:"";position:absolute;inset:0;background:rgba(31,37,45,.78)}
.hero--photo .hero-in{position:relative;z-index:1}
.hero--photo .eyebrow{color:#ffc9a3}
.hero--photo .hero-lede{color:#e4e7eb}

/* ---------- Lead form card ---------- */
.lead-form{background:#fff;color:#1c1f24;border-radius:10px;padding:32px;display:flex;flex-direction:column;gap:16px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.form-head{display:flex;flex-direction:column;gap:4px}
.form-title{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:26px}
.form-sub{margin:0;font-size:14px;color:#5c636b}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.field input{font:inherit;font-weight:400;font-size:15px;padding:12px 14px;min-height:44px;border:1px solid #d5d7da;border-radius:6px;background:#fafaf9}
.field input::placeholder{color:#5c636b;opacity:1}
.consent{display:flex;gap:10px;align-items:flex-start;min-height:44px;font-size:12px;line-height:1.5;color:#4a5058;cursor:pointer}
.consent input{margin-top:3px;accent-color:#e2702b;flex-shrink:0}
.form-links{display:flex;gap:16px;font-size:13px}
.submit-btn{font:inherit;font-weight:700;font-size:16px;background:var(--cta);color:#fff;border:0;border-radius:6px;padding:14px;cursor:pointer}
.submit-btn:hover{background:var(--cta-hover)}

/* ---------- Services ---------- */
.services{padding:80px 24px}
.services-in{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:40px}
.section-head{display:flex;flex-direction:column;gap:8px}
.section-title{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:clamp(28px,3.5vw,40px)}
.section-sub{margin:0;font-size:17px;color:#5c636b}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}
.card{background:#fff;border:1px solid #e3e2de;border-radius:10px;padding:28px;display:flex;flex-direction:column;gap:10px}
.card-num{font-family:Archivo,sans-serif;font-weight:800;font-size:14px;color:var(--cta)}
.card-title{margin:0;font-family:Archivo,sans-serif;font-weight:700;font-size:21px}
.card-body{margin:0;font-size:15px;line-height:1.6;color:#4a5058}

/* ---------- About ---------- */
.about{padding:0 24px 80px}
.about-in{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:48px;align-items:center}
.photo{aspect-ratio:4/3;width:100%;border-radius:10px;overflow:hidden}
.photo img{display:block;width:100%;height:100%;object-fit:cover}
.about-copy{display:flex;flex-direction:column;gap:16px}
.about-body{margin:0;font-size:17px;line-height:1.7;color:#4a5058;text-wrap:pretty}
.about-place{font-size:15px;font-weight:600}

/* ---------- Home footer ---------- */
/* flex-grow, not margin-top:auto: when the window is taller than the page, the footer
   takes the spare height below its own content, so About keeps the 80px section gap.
   .legal-footer does the same for the privacy and terms pages. */
.site-footer{background:#1f252d;color:#c9ced4;padding:56px 24px 28px;flex-grow:1}
.footer-in{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:40px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:32px}
.footer-col{display:flex;flex-direction:column;gap:8px}
.footer-col--list{font-size:14px}
.footer-name{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:20px;color:#f5f4f1}
.footer-tag{font-size:14px}
.footer-blurb{margin:6px 0 0;font-size:14px;line-height:1.6}
.footer-head{margin:0 0 4px;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#f5f4f1}
.footer-link,.footer-link:hover{color:#f0a06e}
.footer-bottom{border-top:1px solid #39414b;padding-top:20px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:#9aa1a9}
.footer-bottom-links{display:flex;align-items:center;gap:16px}
.footer-bottom-links a,.footer-bottom-links a:hover{color:#9aa1a9}
.photo-credit{flex-basis:100%;font-size:12px}
.photo-credit a,.photo-credit a:hover{color:inherit;text-decoration:underline}

/* ---------- Success modal ---------- */
.modal{position:fixed;inset:0;background:rgba(20,24,29,.6);display:flex;align-items:center;justify-content:center;padding:24px;z-index:50}
.modal-card{background:#fff;border-radius:10px;padding:32px;max-width:420px;width:100%;position:relative;display:flex;flex-direction:column;gap:10px}
.modal-close{position:absolute;top:10px;right:14px;border:0;background:none;font-size:24px;cursor:pointer;color:#5c636b}
.modal-title{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:22px}
.modal-body{margin:0;font-size:15px;line-height:1.6;color:#4a5058}

/* ---------- Legal pages ---------- */
.legal{max-width:880px;width:100%;margin:0 auto;padding:56px 24px 72px;display:flex;flex-direction:column;gap:32px;font-size:16px;line-height:1.7;color:#3a4048}
.legal-head{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid #e3e2de;padding-bottom:24px}
.legal-title{margin:0;font-family:Archivo,sans-serif;font-weight:800;font-size:clamp(32px,5vw,46px);color:#1c1f24}
.legal-updated{font-size:14px;color:#5c636b}
.legal p{margin:0}
.legal-section{display:flex;flex-direction:column;gap:12px}
.legal-section h2{margin:0;font-family:Archivo,sans-serif;font-weight:700;font-size:22px;color:#1c1f24}
.legal-section ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.legal-section strong{color:#1c1f24}
.contact-card{background:#fff;border:1px solid #e3e2de;border-radius:10px;padding:20px 24px;display:flex;flex-direction:column;gap:2px}
.legal-footer{background:#1f252d;color:#9aa1a9;flex-grow:1}
.legal-footer-in{max-width:880px;margin:0 auto;padding:24px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.legal-footer-in a,.legal-footer-in a:hover{color:#f0a06e}

/* ---------- Tap targets: 44px tall on touch screens and phone widths ---------- */
@media (pointer:coarse),(max-width:640px){
a.brand{min-height:44px}
.back-link,.form-links a,.footer-link,.footer-bottom-links a,.legal-footer-in a,.photo-credit a{display:inline-flex;align-items:center;min-height:44px}
}
