/* Roofing Specialists Inc — design system
   Heritage craftsmanship. Dark slate, copper accents, generous whitespace. */

:root {
  --ink: #1d2329;
  --ink-soft: #2c343c;
  --copper: #b0702f;
  --copper-deep: #8f5a24;
  --cream: #faf7f1;
  --paper: #ffffff;
  --stone: #6d7175;
  --line: #e4dccf;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--copper-deep); }
a:hover { color: var(--copper); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
p { margin-bottom: 1.1em; }

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--copper-deep); font-weight: 600; margin-bottom: 1em;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header {
  background: var(--ink); color: #f2ede3;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--copper);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; color: #f2ede3; }
.brand .name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.01em; display: block; line-height: 1.1; }
.brand .tag { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--copper); }
.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a { color: #e9e2d4; text-decoration: none; font-size: 0.92rem; letter-spacing: 0.02em; }
.main-nav a:hover { color: #fff; }
.btn {
  display: inline-block; background: var(--copper); color: #fff !important;
  padding: 12px 26px; border-radius: 3px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; border: 0; cursor: pointer;
}
.btn:hover { background: var(--copper-deep); color: #fff !important; }
.btn-ghost {
  display: inline-block; border: 1px solid var(--copper); color: var(--copper-deep) !important;
  padding: 11px 25px; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  background: transparent;
}
.btn-ghost:hover { background: var(--copper); color: #fff !important; }
.btn-light { background: transparent; border: 1px solid rgba(255,255,255,0.7); color: #fff !important; }
.btn-light:hover { background: rgba(255,255,255,0.12); }
.header-phone { color: #f2ede3; text-decoration: none; font-weight: 600; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, #232b32 0%, #1d2329 60%, #2a2118 100%);
  color: #f4efe4; padding: 96px 0 88px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(35,43,50,.88) 0%, rgba(29,35,41,.55) 45%, rgba(42,33,24,.22) 100%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #faf6ec; max-width: 16ch; margin-bottom: 0.35em; }
.hero .sub { font-family: var(--serif); font-size: 1.45rem; color: var(--copper); margin-bottom: 0.8em; font-style: italic; }
.hero p.lede { color: #cfc8b8; max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 0.85rem; color: #9aa0a3; letter-spacing: 0.06em; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #e8e2d3; }
.section.dark h2, .section.dark h3 { color: #faf6ec; }
.section.dark p { color: #c9c2b2; }

/* ---------- proof cards ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.proof-card { border-top: 3px solid var(--copper); padding-top: 20px; }
.proof-card h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
.proof-card p { color: var(--stone); font-size: 0.97rem; }
.proof-card .who { font-size: 0.85rem; color: var(--stone); font-style: italic; }

/* ---------- photo placeholders & cards ---------- */
.ph {
  background: linear-gradient(150deg, #3a434c 0%, #232a31 70%);
  color: #b9b2a2; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 260px; padding: 20px;
}
.ph.tall { min-height: 420px; }
img.photo { width: 100%; height: auto; display: block; }
img.photo.tall { aspect-ratio: 3/4; object-fit: cover; }
.work-card img.photo { height: 220px; object-fit: cover; }
.mat-card img.photo { height: 190px; object-fit: cover; }
img.badge { max-width: 300px; width: 100%; height: auto; display: block; margin: 8px auto 0; }
.cert-grid { align-items: center; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.work-card { text-decoration: none; color: inherit; display: block; background: var(--paper); border: 1px solid var(--line); }
.work-card:hover { border-color: var(--copper); }
.work-card .ph { min-height: 220px; }
.work-card .meta { padding: 18px 20px; }
.work-card .meta .mat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper-deep); font-weight: 700; }
.work-card .meta h3 { margin: 6px 0 4px; font-size: 1.25rem; }
.work-card .meta p { font-size: 0.92rem; color: var(--stone); margin: 0; }

/* ---------- materials strip ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.mat-card { text-decoration: none; color: inherit; }
.mat-card .ph { min-height: 190px; }
.mat-card h3 { margin-top: 12px; font-size: 1.3rem; }
.mat-card p { font-size: 0.92rem; color: var(--stone); }

/* ---------- quote / testimonial ---------- */
.pullquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-style: italic; line-height: 1.4; max-width: 22em; }
.pullquote + .attr { margin-top: 16px; color: var(--stone); font-size: 0.95rem; }

/* ---------- faq ---------- */
.faq { margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-family: var(--serif); font-size: 1.25rem; cursor: pointer; }
.faq details p { margin: 10px 0 4px; color: var(--ink-soft); }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 40px; counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 18px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 2rem; color: var(--copper); display: block; margin-bottom: 8px;
}

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; align-items: start; }
form.consult label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin: 16px 0 6px; }
form.consult input, form.consult select, form.consult textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfc8b8; border-radius: 3px;
  font-size: 1rem; font-family: var(--sans); background: #fff;
}
form.consult textarea { min-height: 130px; resize: vertical; }
form.consult .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b2a2; padding: 64px 0 32px; border-top: 3px solid var(--copper); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #f2ede3; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 12px; }
.site-footer a { color: #cfc8b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 0.93rem; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid #39424b; font-size: 0.82rem; color: #7d8387; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt { margin-top: 32px; }
.cta-band { background: var(--copper); color: #fff; padding: 60px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f7e9d4; }
.cta-band .btn { background: #fff; color: var(--copper-deep) !important; }
.cta-band .btn:hover { background: var(--ink); color: #fff !important; }
.state-list { columns: 2; list-style: none; margin-top: 16px; }
.state-list li { margin-bottom: 10px; }
.breadcrumb { font-size: 0.82rem; color: var(--stone); margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--stone); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .proof-grid, .work-grid, .steps { grid-template-columns: 1fr 1fr; }
  .mat-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .site-footer .cols { grid-template-columns: 1fr; }
  .site-header .wrap { position: relative; }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .menu-toggle {
    display: block; background: transparent; border: 1px solid rgba(255,255,255,0.45);
    color: #f2ede3; font-size: 1.25rem; line-height: 1; padding: 8px 13px; border-radius: 3px; cursor: pointer;
  }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: stretch;
    padding: 8px 24px 20px; gap: 0; border-top: 1px solid #39424b;
    box-shadow: 0 18px 30px rgba(0,0,0,0.35);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid #2c343c; font-size: 1.05rem; }
  .main-nav a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .header-phone { font-size: 0.92rem; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .proof-grid, .work-grid, .mat-grid, .steps { grid-template-columns: 1fr; }
  form.consult .row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .brand .name { font-size: 1.2rem; }
  .brand .tag { font-size: 0.6rem; letter-spacing: 0.12em; white-space: nowrap; }
  .header-phone { font-size: 0.85rem; }
}
