/* ============================================
   Lake Geneva Spray Foam — Design Tokens
   Palette: warm amber/rust + charcoal + cream paper (warmth against cold winters)
   Type: Zilla Slab (display, sturdy/warm) + Source Sans 3 (body)
   Signature: stacked chevron "layer" mark evoking insulation layers under a roofline
   ============================================ */

:root {
  --ink: #2a211b;
  --paper: #f6f1ea;
  --paper-dim: #ece3d6;
  --charcoal: #33291f;
  --charcoal-2: #4a3c2c;
  --amber: #b8631f;
  --amber-dark: #8f4c17;
  --gold: #d99a3d;
  --line: #ddd0bc;
  --white: #fffdfa;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 5px;
  --max-w: 1120px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--amber-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

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

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.6em;
  display: inline-block;
}

/* ---------- Layer signature motif (stacked chevrons = insulation layers) ---------- */
.layer-mark {
  display: inline-block;
  width: 1em;
  height: 0.8em;
  position: relative;
}
.layer-mark::before, .layer-mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-top: 0.35em solid currentColor;
}
.layer-mark::before { top: 0; opacity: 1; }
.layer-mark::after { top: 0.32em; opacity: 0.55; }

.layer-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 3.2em 0 2.2em;
  color: var(--amber);
}
.layer-divider::before, .layer-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.layer-divider .layer-mark { width: 22px; height: 18px; }

/* ---------- Header ---------- */
header.site {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--amber);
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.brand .layer-mark { color: var(--gold); }

nav.primary { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; }
nav.primary a { color: var(--white); opacity: 0.88; text-decoration: none; }
nav.primary a:hover { opacity: 1; text-decoration: underline; }

.call-btn {
  background: var(--amber);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.call-btn:hover { background: var(--amber-dark); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  color: var(--white);
  padding: 60px 0 72px;
}
.hero .container { max-width: 820px; }
.hero h1 { color: var(--white); }
.hero p.lede { font-size: 1.15rem; color: #eadfce; max-width: 62ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.btn { display: inline-block; padding: 13px 24px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #c98f36; }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ---------- Photo banner ---------- */
.photo-banner { background: var(--paper); }
.photo-banner img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 58px 0; }
.section.alt { background: var(--paper-dim); }
.section.dark { background: var(--charcoal); color: var(--white); }
.section.dark h2 { color: var(--white); }
.lead-copy { max-width: 74ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 2em; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.card h3 { margin-bottom: 0.4em; }
.card a.card-link { font-weight: 700; font-size: 0.92rem; text-decoration: none; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+ "; color: var(--amber); font-weight: 700; }
details.faq[open] summary::before { content: "\2212 "; }
details.faq p { margin-top: 0.8em; }

/* Permit / info callout */
.callout {
  border-left: 4px solid var(--amber);
  background: var(--paper-dim);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Footer */
footer.site { background: var(--ink); color: #d3c6b3; padding: 46px 0 30px; font-size: 0.92rem; }
footer.site h3 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
footer.site a { color: #d3c6b3; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; margin-bottom: 30px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #40332480; padding-top: 20px; font-size: 0.82rem; color: #a2937d; }

/* CTA band */
.cta-band { background: var(--amber); color: var(--white); padding: 40px 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band .btn-primary { background: var(--charcoal); color: var(--white); }
.cta-band .btn-primary:hover { background: #221b14; }

/* Utility */
.text-center { text-align: center; }
.small { font-size: 0.85rem; color: #5c5040; }

@media (max-width: 720px) {
  nav.primary { display: none; }
  .hero { padding: 46px 0 54px; }
}
