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

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

:root {
  --color-bg: #f7f8fa;
  --color-bg-alt: #eceef2;
  --color-dark: #141c2b;
  --color-dark-hover: #1f2940;
  --color-primary: #1e5631;
  --color-primary-hover: #174425;
  --color-accent: #c49030;
  --color-accent-hover: #a87a24;
  --color-accent-text: #8a6b15;
  --color-text: #1a1e28;
  --color-text-muted: #4d5668;
  --color-border: #d4d8e0;
  --color-white: #ffffff;
  --color-white-muted: rgba(255, 255, 255, 0.7);
  --color-white-bright: rgba(255, 255, 255, 0.85);
  --color-shadow: rgba(20, 28, 43, 0.08);
  --color-shadow-md: rgba(20, 28, 43, 0.14);
  --color-border-light: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --section-pad: 72px;
  --section-pad-sm: 48px;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-hover); }

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

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


/* ===== BUTTONS ===== */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
  min-height: 48px;
  line-height: 1.3;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-dark);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}
.btn-dark:hover {
  background: var(--color-dark-hover);
  border-color: var(--color-dark-hover);
  color: var(--color-white);
}

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

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


/* ===== NAV ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  gap: 16px;
}
.nav-phone {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.nav-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--color-text);
  transition: color 0.2s;
}
.nav-phone a:hover { color: var(--color-primary); }

.nav-brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-left: auto;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--color-text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active { color: var(--color-primary); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ===== HERO ===== */

.hero {
  padding: 56px 24px 72px;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text h1 { margin-bottom: 14px; }
.hero-text p {
  color: var(--color-text-muted);
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 460px;
  line-height: 1.6;
}
.hero-img img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 8px 32px var(--color-shadow-md);
}
.stock-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-style: italic;
}


/* ===== CREDENTIALS ===== */

.credentials {
  background: var(--color-primary);
  padding: 26px 24px;
}
.credentials-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.credentials-item {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.credentials-item .star { color: var(--color-white); font-size: 18px; }
.cred-sep {
  width: 1px;
  height: 20px;
  background: var(--color-white-muted);
}


/* ===== SECTION HEAD ===== */

.section-head { margin-bottom: 44px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--color-text-muted); max-width: 520px; }


/* ===== SERVICES OVERVIEW ===== */

.services-overview { padding: var(--section-pad) 24px; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.service-item {
  padding: 24px 0 28px;
  border-top: 2px solid var(--color-border);
}
.service-item .num {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.service-item h3 { margin-bottom: 8px; }
.service-item p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.services-link {
  margin-top: 36px;
}
.services-link a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}
.services-link a:hover {
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}


/* ===== ABOUT ===== */

.about {
  padding: var(--section-pad) 24px;
  background: var(--color-bg-alt);
}
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { margin-bottom: 14px; }
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.about-text p:last-of-type { margin-bottom: 0; }
.about-img img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 360px;
  object-fit: cover;
  box-shadow: 0 6px 24px var(--color-shadow);
}


/* ===== CTA BANNER ===== */

.cta-banner {
  background: var(--color-primary);
  padding: var(--section-pad) 24px;
  text-align: center;
}
.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 10px;
}
.cta-banner p {
  color: var(--color-white-bright);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }


/* ===== PAGE HEADER ===== */

.page-header {
  padding: 56px 24px 40px;
  background: var(--color-bg-alt);
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: var(--color-text-muted); max-width: 540px; }


/* ===== SERVICE DETAIL ===== */

.service-detail { padding: var(--section-pad) 24px; }
.service-detail.bg-alt { background: var(--color-bg-alt); }

.service-detail-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
}
.num-lg {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -0.03em;
}
.service-detail-text h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}
.service-detail-text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 620px;
}
.service-detail-text p + p { margin-top: 12px; }


/* ===== PROCESS ===== */

.process {
  padding: var(--section-pad) 24px;
  background: var(--color-bg-alt);
}
.process .section-head {
  text-align: center;
}
.process .section-head p {
  margin-left: auto;
  margin-right: auto;
}
.process-steps {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--color-border);
}
.process-step {
  position: relative;
  padding-left: 56px;
  padding-bottom: 36px;
}
.process-step:last-child { padding-bottom: 0; }
.step-num {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.process-step h3 { margin-bottom: 6px; }
.process-step p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}


/* ===== CONTACT ===== */

.contact { padding: var(--section-pad) 24px; }
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 12px; }
.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}
.contact-detail { margin-bottom: 24px; }
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.contact-detail span,
.contact-detail a {
  color: var(--color-text);
  font-size: 16px;
}
.contact-detail a:hover { color: var(--color-primary); }

.contact-form {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group:last-of-type { margin-bottom: 24px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234d5668' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}


/* ===== FOOTER ===== */

.footer {
  background: var(--color-dark);
  color: var(--color-white-muted);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--color-white);
  margin-bottom: 10px;
}
.footer-address { font-size: 14px; line-height: 1.7; }
.footer-address a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--color-white-muted);
}
.footer-address a:hover { color: var(--color-white); }
.footer-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--color-white-muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--color-white); }
.footer-copy {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
  font-size: 13px;
  text-align: center;
}


/* ===== REVEAL ANIMATIONS ===== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ===== RESPONSIVE — TABLET ===== */

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
    --section-pad-sm: 40px;
  }

  .hero { padding: 40px 24px 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-text p { max-width: 100%; }
  .hero-img img { height: 260px; }

  .credentials-inner { flex-direction: column; align-items: center; gap: 12px; }
  .cred-sep { display: none; }

  .services-grid { grid-template-columns: 1fr; gap: 0; }

  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-img { order: -1; }
  .about-img img { height: 240px; }

  .service-detail-inner { grid-template-columns: 1fr; gap: 8px; }
  .num-lg { font-size: 2.5rem; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { flex-direction: column; gap: 20px; }
}


/* ===== RESPONSIVE — MOBILE ===== */

@media (max-width: 480px) {
  :root {
    --section-pad: 48px;
    --section-pad-sm: 36px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 16px;
    gap: 12px;
    box-shadow: 0 4px 16px var(--color-shadow);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .nav-brand { font-size: 14px; }
  .nav-phone { font-size: 14px; }

  .hero { padding: 32px 24px 44px; }
  .hero-text p { font-size: 16px; }
  .hero-img img { height: 220px; }

  .page-header { padding: 44px 24px 32px; }

  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }

  .process-steps::before { left: 15px; }
  .process-step { padding-left: 48px; }
  .step-num { left: 2px; width: 26px; height: 26px; font-size: 12px; }

  .contact-form { padding: 24px; }
}


/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
