/* ==========================================================================
   Weather Tight Roofing, Inc. — Design System
   Palette: ink navy / charcoal / paper / oxide-red accent
   Type: Archivo (display, structural/condensed — sign-painter, ironwork feel)
         IBM Plex Sans (body/UI — spec-sheet, trade-technical feel)
   ========================================================================== */

:root {
  --ink: #101826;
  --ink-2: #1c2636;
  --charcoal: #2b3341;
  --paper: #faf9f6;
  --stone: #efeae0;
  --stone-2: #e4ddcf;
  --line: #d8d2c4;
  --text: #262523;
  --text-soft: #5b5850;
  --white: #ffffff;
  --oxide: #b23a22;
  --oxide-dark: #8c2c18;
  --oxide-tint: #f4e2dc;
  --ok: #3c6b47;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --radius-sm: 3px;
  --radius: 6px;
  --shadow: 0 12px 30px -14px rgba(16, 24, 38, 0.35);
  --container: 1160px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; max-width: 62ch; }
ul { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 2px;
}

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

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--dark { background: var(--ink); color: #cfd4dd; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #b7bdc9; }
.section--stone { background: var(--stone); }

.eyebrow-plain { font-family: var(--font-body); font-weight: 600; color: var(--oxide); font-size: 0.98rem; margin-bottom: 10px; display: block; }

.lede { font-size: 1.1rem; color: var(--text-soft); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--oxide); color: var(--white); }
.btn--primary:hover { background: var(--oxide-dark); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 17px 30px; font-size: 1.08rem; }

.phone-link { color: inherit; text-decoration: none; }

/* Top emergency bar */
.topbar {
  background: var(--ink);
  color: #e4e7ec;
  font-size: 0.92rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 24px;
  text-align: center;
}
.topbar strong { color: var(--white); }
.topbar a.phone-link {
  color: var(--white);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.topbar a.phone-link:hover { border-color: var(--white); }

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
}
.brand__mark { font-weight: 900; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.01em; }
.brand__mark span { color: var(--oxide); }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--text-soft); font-family: var(--font-body); display: block; margin-top: 1px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.96rem;
}
.nav__links a { text-decoration: none; color: var(--charcoal); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-color: var(--oxide); color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta__phone { text-decoration: none; text-align: right; line-height: 1.2; }
.header-cta__phone small { display: block; color: var(--text-soft); font-size: 0.72rem; }
.header-cta__phone strong { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .header-cta__phone small { display: none; }
  .nav-toggle { display: inline-block; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 24px 18px; }
.mobile-nav li + li { border-top: 1px solid var(--stone-2); }
.mobile-nav a { display: block; padding: 12px 0; text-decoration: none; font-weight: 600; color: var(--ink); }

/* Roofline motif — used sparingly as a section divider echoing shingle courses */
.roofline { display: block; width: 100%; height: 34px; }
.roofline--to-ink path { fill: var(--ink); }
.roofline--to-paper path { fill: var(--paper); }
.roofline--to-stone path { fill: var(--stone); }

/* Hero */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 64px 24px 90px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero__eyebrow { color: #ffb199; font-weight: 700; font-size: 0.98rem; margin-bottom: 14px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero__lede { color: #c6cbd6; font-size: 1.14rem; max-width: 46ch; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__facts { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__facts li { font-size: 0.94rem; color: #b7bdc9; padding-left: 18px; position: relative; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--oxide); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.hero__media-tag {
  position: absolute; left: -14px; bottom: -18px;
  background: var(--oxide); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow);
}
.hero__media-tag span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: #ffd8cd; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero__media { order: -1; }
  .hero__media-tag { left: 14px; bottom: -16px; }
}

/* Trust strip */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 28px;
  padding: 28px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.trust-item { display: flex; align-items: flex-start; gap: 10px; }
.trust-item__icon { width: 34px; height: 34px; flex: none; color: var(--oxide); }
.trust-item strong { display: block; font-size: 0.95rem; color: var(--ink); }
.trust-item span { font-size: 0.83rem; color: var(--text-soft); }

/* Section heading block */
.head-block { max-width: 640px; margin-bottom: 42px; }
.head-block--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.service-card__index { font-family: var(--font-display); font-size: 0.8rem; color: var(--oxide); font-weight: 700; margin-bottom: 12px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.96rem; color: var(--text-soft); flex-grow: 1; }
.service-card a.btn { margin-top: 16px; align-self: flex-start; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Why us — split layout */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.checklist__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--oxide-tint); color: var(--oxide); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; margin-top: 1px; }

@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Emergency banner */
.emergency {
  background: var(--oxide);
  color: var(--white);
}
.emergency__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 46px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.emergency h2 { color: var(--white); margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.emergency p { color: #ffe3db; margin: 0; }
.emergency .btn--dark { background: var(--ink); }
.emergency .btn--dark:hover { background: var(--ink-2); }

/* Estimate form */
.estimate {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}
.estimate__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row--split { grid-template-columns: 1fr 1fr; gap: 18px; display: grid; }
.form-row label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--oxide);
  background: var(--white);
}
.form-fineprint { font-size: 0.8rem; color: var(--text-soft); margin-top: 14px; }

@media (max-width: 860px) {
  .estimate { grid-template-columns: 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
}

/* Savings */
.savings-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.savings-card__amount { font-family: var(--font-display); font-size: 3.4rem; color: var(--oxide-tint); font-weight: 900; line-height: 1; }
.savings-card__amount small { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: #b7bdc9; margin-top: 6px; }
@media (max-width: 700px) {
  .savings-card { grid-template-columns: 1fr; text-align: center; }
}

/* Service area / map block */
.area-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.area-block dl { display: grid; gap: 14px; margin: 24px 0 0; }
.area-block dt { font-weight: 700; color: var(--ink); font-size: 0.86rem; text-transform: none; }
.area-block dd { margin: 2px 0 0; color: var(--text-soft); }
@media (max-width: 860px) { .area-block { grid-template-columns: 1fr; } }

/* Community */
.community {
  background: var(--stone);
  border-left: 4px solid var(--oxide);
  padding: 30px 34px;
  border-radius: var(--radius-sm);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 0.82rem; color: var(--text-soft); margin-top: 8px; }
.gallery-note { border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; font-size: 0.9rem; color: var(--text-soft); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* Testimonials */
.testimonial-slot {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--text-soft);
}

/* FAQ */
.faq { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--oxide);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 20px; color: var(--text-soft); }

/* Final CTA */
.final-cta { background: var(--ink); color: var(--white); text-align: center; }
.final-cta h2 { color: var(--white); }
.final-cta__ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Footer */
.site-footer { background: var(--ink-2); color: #b7bdc9; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 56px 24px 36px;
  max-width: var(--container);
  margin: 0 auto;
}
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.92rem; }
.site-footer a { text-decoration: none; color: #b7bdc9; }
.site-footer a:hover { color: var(--white); }
.site-footer p { color: #9aa0ac; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid #333e4f;
  padding: 20px 24px 96px;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 0.82rem;
  color: #838a97;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* Mobile sticky CTA bar */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--ink);
  border-top: 1px solid #333e4f;
}
.mobile-cta__inner { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--white);
}
.mobile-cta a.mobile-cta__call { background: var(--oxide); }
.mobile-cta a.mobile-cta__quote { background: var(--ink-2); }
@media (max-width: 760px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 58px; }
}

/* Page hero (interior pages) */
.page-hero { background: var(--ink); color: var(--white); padding: 54px 0 60px; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: #c6cbd6; max-width: 60ch; }
.breadcrumbs { font-size: 0.85rem; color: #9aa0ac; margin-bottom: 16px; }
.breadcrumbs a { color: #cfd4dd; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Materials table */
.materials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.materials .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.materials .card h4 { font-family: var(--font-body); font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 0.98rem; }
.materials .card ul { margin: 0; padding-left: 1.1em; font-size: 0.92rem; color: var(--text-soft); }
@media (max-width: 760px) { .materials { grid-template-columns: 1fr; } }

/* Simple two-col content */
.prose-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
@media (max-width: 860px) { .prose-cols { grid-template-columns: 1fr; } }

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--oxide); color: var(--white);
  padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }
