/* Stormshield Residential — site styles
   Palette: white-dominant, deep orange accent, charcoal black
   Tone: premium craftsman, not flashy
*/

:root {
  --orange: #DC5A1C;
  --orange-deep: #B5430E;
  --orange-tint: #FCEFE5;
  --ink: #131313;
  --ink-soft: #2A2A2A;
  --slate: #5A5A5A;
  --rule: #E6E2DC;
  --paper: #FAF7F2;
  --white: #FFFFFF;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Source Serif Pro", "Iowan Old Style", Georgia, "Times New Roman", serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.2em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}

/* Header */
header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo .mark {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 800; font-size: 1.45rem; color: var(--ink);
  letter-spacing: -0.02em;
}
.logo .sub {
  font-size: 0.78rem; color: var(--orange-deep);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
}
nav.primary ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 22px; align-items: center;
}
nav.primary a {
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 8px 0;
}
nav.primary a:hover { color: var(--orange-deep); text-decoration: none; }
nav.primary .cta-btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 900px) {
  nav.primary ul { display: none; }
  nav.primary.open ul {
    display: flex; flex-direction: column; gap: 6px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 18px 24px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 22px;
  background: var(--orange); color: var(--white) !important;
  font-weight: 600; border-radius: 4px;
  border: 2px solid var(--orange);
  font-size: 1rem; line-height: 1;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); text-decoration: none; }
.btn.ghost {
  background: transparent; color: var(--ink) !important;
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--white) !important; }
.btn.sm { padding: 10px 16px; font-size: 0.9rem; }

/* Hero */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 88px 0 96px;
  position: relative;
}
.hero .eyebrow {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--orange-deep); font-weight: 700; margin-bottom: 14px;
}
.hero p.lead { max-width: 640px; }
.hero .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust {
  margin-top: 36px; display: flex; gap: 24px; flex-wrap: wrap;
  color: var(--slate); font-size: 0.95rem;
}
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero .trust strong { color: var(--ink); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
}
.card h3 { margin-top: 0; }
.card.elev {
  box-shadow: 0 1px 2px rgba(19,19,19,0.04), 0 4px 24px rgba(19,19,19,0.04);
}
.card .stripe {
  width: 36px; height: 3px; background: var(--orange); margin-bottom: 18px;
}

/* Service tile */
.service-tile {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 30px;
  background: var(--white);
  transition: border-color 0.15s, transform 0.15s;
  display: block;
  color: var(--ink);
}
.service-tile:hover {
  border-color: var(--orange);
  text-decoration: none;
  transform: translateY(-2px);
}
.service-tile h3 { color: var(--ink); margin-top: 6px; }
.service-tile .arrow {
  color: var(--orange-deep); font-weight: 700; margin-top: 14px; display: inline-block;
}

/* Section header */
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .eyebrow {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--orange-deep); font-weight: 700; margin-bottom: 10px;
}

/* Stats / trust strip */
.strip {
  background: var(--ink); color: var(--white);
  padding: 22px 0;
}
.strip .row {
  display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
.strip .stat { font-size: 0.95rem; }
.strip .stat strong {
  display: block; font-family: "Source Serif Pro", Georgia, serif;
  font-size: 1.65rem; color: var(--orange);
  font-weight: 700; margin-bottom: 2px;
}

/* Process steps */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step .num {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 2.6rem; font-weight: 700; color: var(--orange);
  line-height: 1;
}
.step h3 { margin: 0 0 6px; }

/* Spec list */
.spec {
  list-style: none; padding: 0; margin: 0;
}
.spec li {
  padding: 14px 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 200px 1fr; gap: 18px;
}
.spec li:last-child { border-bottom: 1px solid var(--rule); }
.spec li strong { color: var(--ink); }
@media (max-width: 640px) {
  .spec li { grid-template-columns: 1fr; gap: 4px; }
}

/* Testimonial */
.quote {
  border-left: 3px solid var(--orange);
  padding: 6px 0 6px 22px;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 1.2rem; color: var(--ink-soft);
  font-style: italic;
}
.quote cite {
  display: block; margin-top: 12px;
  font-style: normal; font-family: inherit;
  font-size: 0.92rem; color: var(--slate);
}

/* CTA band */
.cta-band {
  background: var(--ink); color: var(--white);
  padding: 64px 0; text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 580px; margin: 0 auto 26px; }
.cta-band .btn.ghost { color: var(--white) !important; border-color: var(--white); }
.cta-band .btn.ghost:hover { background: var(--white); color: var(--ink) !important; }

/* FAQ */
details.faq {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--rule); }
details.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.08rem;
  list-style: none; position: relative; padding-right: 28px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  color: var(--orange-deep); font-weight: 700; font-size: 1.4rem; line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq .answer { padding-top: 12px; color: var(--ink-soft); }

/* Form */
form.estimate {
  display: grid; gap: 14px;
  background: var(--white); padding: 28px;
  border: 1px solid var(--rule); border-radius: 6px;
}
form.estimate label {
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
}
form.estimate input, form.estimate select, form.estimate textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 4px;
  font: inherit; color: var(--ink); background: var(--white);
}
form.estimate input:focus, form.estimate select:focus, form.estimate textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange);
}
form.estimate textarea { min-height: 110px; resize: vertical; }
form.estimate .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { form.estimate .row2 { grid-template-columns: 1fr; } }
form.estimate button { justify-self: start; }

/* Breadcrumb */
.crumb {
  font-size: 0.85rem; color: var(--slate); padding: 18px 0 0;
}
.crumb a { color: var(--slate); }
.crumb a:hover { color: var(--orange-deep); }

/* Footer */
footer.site {
  background: var(--ink); color: rgba(255,255,255,0.72);
  padding: 56px 0 28px;
  font-size: 0.94rem;
}
footer.site h4 {
  color: var(--white); font-family: inherit; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 14px;
}
footer.site a { color: rgba(255,255,255,0.82); }
footer.site a:hover { color: var(--orange); text-decoration: none; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site ul li { padding: 4px 0; }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
}

/* Misc */
.bg-paper { background: var(--paper); }
.bg-orange-tint { background: var(--orange-tint); }
.muted { color: var(--slate); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.tag {
  display: inline-block; padding: 4px 10px;
  background: var(--orange-tint); color: var(--orange-deep);
  border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.list-clean { list-style: none; padding: 0; }
.list-clean li {
  padding: 8px 0 8px 28px; position: relative;
}
.list-clean li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 14px; height: 2px; background: var(--orange);
}

/* Hero with image hint */
.hero-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 38%;
  background: linear-gradient(135deg, var(--orange-tint), var(--paper));
  border-left: 1px solid var(--rule);
}
@media (max-width: 1000px) { .hero-art { display: none; } }

/* Article (blog) */
article.post { max-width: 740px; margin: 0 auto; }
article.post h2 { margin-top: 1.8em; }
article.post img { border-radius: 6px; margin: 24px 0; }
article.post .meta { color: var(--slate); font-size: 0.92rem; margin-bottom: 8px; }
