/* MDJ Roofing and Construction. Hand-written, no framework. */
:root {
  --slate: #102033;        /* brand dark: headings, dark sections */
  --slate-2: #1B3049;
  --text: #1F2933;
  --muted: #52606D;        /* 6.2:1 on white */
  --paper: #F7F6F3;        /* warm off-white page background */
  --surface: #FFFFFF;
  --stone: #EEEBE5;        /* alt section background */
  --line: #DED9D0;
  --copper: #A94B1A;       /* CTA (white text 5.7:1) */
  --copper-hover: #8E3D13;
  --copper-bright: #D9773F; /* decorative accents, large text on dark */
  --copper-tint: #F8E9DF;
  --sky: #2E6DA4;          /* links (5.4:1 on white) */
  --on-dark: #F4F2EE;
  --on-dark-muted: #C3CBD6;
  --ok: #2F7D4F;
  --font-display: "Archivo", "Source Sans 3", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,32,51,.06), 0 2px 8px rgba(16,32,51,.05);
  --shadow: 0 2px 4px rgba(16,32,51,.05), 0 14px 34px rgba(16,32,51,.10);
  --wrap: 1180px; --gutter: 20px; --header-h: 68px; --bar-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 1.075rem; line-height: 1.65; padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--copper-bright); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--slate); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slate); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1; letter-spacing: -.01em; display: block; }
.brand small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-top: 3px; }
.nav { display: none; }
.brand span, .nav a, .header-tel { white-space: nowrap; }
.nav a { font-size: .98rem; color: var(--slate); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--stone); }
.header-cta { display: none; align-items: center; gap: 14px; }
.header-cta .btn { white-space: nowrap; min-height: 46px; padding: 10px 18px; }
.header-tel { font-weight: 700; color: var(--slate); text-decoration: none; white-space: nowrap; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--slate); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--gutter); color: var(--slate); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--stone); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; border-radius: 10px; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s; width: 100%; text-align: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--copper); color: #fff; box-shadow: 0 8px 20px -10px rgba(169,75,26,.8); }
.btn-primary:hover { background: var(--copper-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: #fff; }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--slate); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 10px; }
.btn-note { font-size: .95rem; color: var(--muted); margin: 0; }
.on-dark .btn-note { color: var(--on-dark-muted); }
.on-dark .btn-note a { color: #fff; }

/* Hero */
.hero { position: relative; color: var(--on-dark); background: var(--slate); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,32,51,.96) 0%, rgba(16,32,51,.88) 45%, rgba(16,32,51,.55) 100%); }
.hero-in { position: relative; padding: 44px 0 52px; max-width: 700px; }
.hero h1 { color: #fff; }
.hero h1 .eyebrow { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-bright); margin-bottom: 14px; line-height: 1.3; }
.hero .lead { font-size: 1.18rem; color: var(--on-dark-muted); max-width: 600px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 22px 0 0; }
.proof li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .98rem; color: #fff; }
.proof svg { width: 18px; height: 18px; color: var(--copper-bright); flex: none; }
.stars { color: #F2B544; letter-spacing: 1px; }
.crumbs { font-size: .9rem; margin-bottom: 16px; color: var(--on-dark-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--on-dark-muted); }

/* Sections */
.section { padding: 56px 0; }
.section-stone { background: var(--stone); }
.section-dark { background: var(--slate); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--on-dark-muted); }
.head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: 10px; }
.section-dark .kicker { color: var(--copper-bright); }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--copper-tint); color: var(--copper); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card-link .more { display: inline-flex; margin-top: 10px; color: var(--copper); font-weight: 700; }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-card .body { padding: 18px 20px 20px; }
.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding: 6px 0 6px 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--copper-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A94B1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.steps { counter-reset: s; display: grid; gap: 18px; }
.steps .card { position: relative; padding-top: 30px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--copper); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); }
.rating-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.rating-box .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--slate); line-height: 1; }
.rating-box .stars { font-size: 1.4rem; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.areas a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--slate); font-weight: 600; text-decoration: none; }
.areas a:hover { border-color: var(--copper); color: var(--copper); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--slate); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--copper); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 18px 16px; color: var(--text); }
.cta-band { background: linear-gradient(135deg, var(--slate) 0%, var(--slate-2) 100%); color: #fff; border-radius: var(--radius-lg); padding: 34px 24px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { max-width: 560px; margin-left: auto; margin-right: auto; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 20px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose .short { font-size: 1.15rem; font-weight: 600; color: var(--slate); background: var(--copper-tint); border-left: 4px solid var(--copper); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links a { font-weight: 600; }
.booking-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-height: 720px; }
.booking-frame iframe { width: 100%; min-height: 720px; border: 0; }
.notice { font-size: .95rem; color: var(--muted); }

/* Legal */
.legal-section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.sec-num { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 8px; background: var(--copper-tint); color: var(--copper); font-size: .82rem; font-weight: 800; flex: none; }
.legal-section h3 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin: 18px 0 6px; }
.highlight-box { background: var(--copper-tint); border-left: 3px solid var(--copper); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 12px 0; font-weight: 600; color: var(--slate); }
.highlight-box p { margin: 0; }

/* Footer */
.site-footer { background: #0B1726; color: var(--on-dark-muted); padding: 48px 0 28px; font-size: .98rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.site-footer a:hover { color: var(--copper-bright); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.foot-grid { display: grid; gap: 28px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: .9rem; }
.foot-brand .brand { color: #fff; }

/* Mobile call / book bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,32,51,.08); }
.mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: 1rem; }

@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn { width: auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .prose { padding: 40px 44px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .section { padding: 84px 0; }
  .hero-in { padding: 88px 0 96px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .header-cta { display: flex; margin-left: auto; }
  .split.flip > :first-child { order: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cta-band { padding: 52px 40px; }
}
@media (min-width: 1200px) {
  .nav { display: flex; gap: 2px; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Lead form */
.lead-form { padding: 26px 22px; }
.fgrid { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 16px 0; }
.fgrid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--slate); font-size: .98rem; }
.fgrid input, .fgrid select, .fgrid textarea { font: inherit; font-weight: 400; color: var(--text); min-height: 48px; padding: 10px 12px; border: 1px solid #B9B2A6; border-radius: 8px; background: #fff; }
.fgrid textarea { min-height: 90px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .88rem; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--copper); }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: var(--slate); }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid .full { grid-column: 1 / -1; } }

/* Legal layout (modeled on propello.ventures/privacy) */
.legal-tag { display: inline-flex; background: rgba(217,119,63,.16); border: 1px solid rgba(217,119,63,.45); color: var(--copper-bright); border-radius: 999px; padding: 5px 14px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .92rem; color: var(--on-dark-muted); }
.legal-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--copper-bright); margin-right: 8px; vertical-align: middle; }
.legal-layout { display: grid; gap: 28px; align-items: start; }
.legal-toc { display: none; }
.legal-contact { background: var(--slate); color: var(--on-dark-muted); border-radius: var(--radius); padding: 20px 22px; }
.legal-contact p { margin: 0 0 6px; color: var(--on-dark-muted); }
.legal-contact a { color: #fff; }
.legal-contact .legal-contact-name { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
@media (min-width: 960px) {
  .legal-layout { grid-template-columns: 240px 1fr; gap: 44px; }
  .legal-toc { display: block; position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; }
  .legal-toc-h { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin: 0 0 8px 10px; }
  .legal-toc ol { list-style: none; padding: 0; margin: 0; }
  .legal-toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; font-size: .9rem; color: var(--muted); text-decoration: none; }
  .legal-toc a span { color: var(--copper); font-weight: 800; min-width: 16px; }
  .legal-toc a:hover { background: var(--stone); color: var(--slate); }
}
