/* ═══════════════════════════════════════════════
   Sawyer Family Roofers — Roswell, GA
   ═══════════════════════════════════════════════ */

:root {
  --color-ink: #1c2b3a;
  --color-ink-light: #5a6b7c;
  --color-green: #2a6b4f;
  --color-green-hover: #358c64;
  --color-green-glow: rgba(42, 107, 79, 0.12);
  --color-stone: #f3f2ef;
  --color-stone-dark: #e8e6e1;
  --color-white: #ffffff;
  --color-border: #d0cec8;
  --color-gold: #d4a836;
  --color-white-muted: rgba(255, 255, 255, 0.7);

  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, monospace;

  --max-width: 1140px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-space: clamp(40px, 5vw, 64px);
}

/* ── Reset ── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background-color: var(--color-stone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

/* ── Focus ── */

:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* ── Ridge Line ──
   The ridge is the peak where two roof slopes meet —
   the single most important structural line on any roof.
   This 3 px bar is its echo at the top of every page. */

body::before {
  content: '';
  display: block;
  height: 3px;
  background-color: var(--color-green);
}

/* ── Layout ── */

.wrap {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Header ── */

.header-top {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.phone-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.phone-link:hover {
  color: var(--color-green);
}

.nav {
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.nav-brand {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--color-green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-green);
}

/* ── Hero ── */

.hero {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero-headline {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

.hero-location {
  font-size: 1.125rem;
  color: var(--color-ink-light);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-image img {
  width: 100%;
  height: clamp(260px, 28vw, 400px);
  object-fit: cover;
  border-radius: 3px;
}

.hero-image figcaption {
  font-size: 0.75rem;
  color: var(--color-ink-light);
  font-style: italic;
  margin-top: 8px;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
  line-height: 1.3;
}

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

.btn-primary:hover {
  background-color: var(--color-green-hover);
  border-color: var(--color-green-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}

.btn-outline:hover {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white-muted);
}

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-white);
}

/* ── Rating Strip ── */

.rating-strip {
  background-color: var(--color-ink);
  padding: 20px 0;
}

.rating-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rating-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  font-family: var(--font-mono);
}

.rating-stars {
  color: var(--color-gold);
  font-size: 1.125rem;
  letter-spacing: 2px;
}

.rating-source {
  font-size: 0.9375rem;
  color: var(--color-white-muted);
}

/* ── Sections ── */

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section--alt {
  background-color: var(--color-stone-dark);
}

.section-heading {
  font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--color-ink-light);
  line-height: 1.7;
  max-width: 600px;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 28px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text a {
  color: var(--color-green);
  text-decoration: none;
  font-weight: 500;
}

.about-text a:hover {
  text-decoration: underline;
}

.about-image img {
  width: 100%;
  height: clamp(240px, 24vw, 360px);
  object-fit: cover;
  border-radius: 3px;
}

.about-image figcaption {
  font-size: 0.75rem;
  color: var(--color-ink-light);
  font-style: italic;
  margin-top: 8px;
}

/* ── Services List (homepage) ── */

.services-list {
  margin-top: 28px;
}

.service-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--color-border);
  align-items: baseline;
}

.service-row:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-green);
  padding-top: 2px;
}

.service-row h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-ink);
}

.service-row p {
  color: var(--color-ink-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.services-cta {
  margin-top: 28px;
}

/* ── CTA ── */

.cta {
  background-color: var(--color-ink);
  padding: var(--section-space) 0;
  text-align: center;
}

.cta .section-heading {
  color: var(--color-white);
}

.cta-sub {
  color: var(--color-white-muted);
  font-size: 1.0625rem;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.footer p,
.footer a {
  font-size: 0.9375rem;
  color: var(--color-ink-light);
  text-decoration: none;
  line-height: 1.65;
}

.footer a:hover {
  color: var(--color-green);
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 6px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-ink-light);
}

/* ── Page Header (inner pages) ── */

.page-header {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(20px, 3vw, 36px);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--color-ink-light);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Service Detail (services page) ── */

.service-block {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.service-block:last-child {
  padding-bottom: 0;
}

.service-block h2 {
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.75rem);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-ink);
}

.service-block > p {
  color: var(--color-ink-light);
  line-height: 1.7;
  max-width: 680px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 20px;
}

.check-list li {
  padding-left: 22px;
  position: relative;
  color: var(--color-ink-light);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 28px;
}

.contact-block {
  margin-bottom: 28px;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-block h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.contact-block p,
.contact-block a {
  font-size: 1rem;
  color: var(--color-ink-light);
  text-decoration: none;
  line-height: 1.65;
}

.contact-block a:hover {
  color: var(--color-green);
}

.contact-phone {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
  display: inline-block;
  margin-top: 4px;
}

/* ── Form ── */

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px var(--color-green-glow);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .hero-body {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    height: 240px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image img {
    height: 240px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-pair {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    letter-spacing: -0.015em;
  }

  .hero-image img {
    height: 200px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    text-align: center;
  }
}

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
