/* ============================================
   CROWN ROOFING — Custom Theme
   Typography: Playfair Display + DM Sans
   Palette: Charcoal #1C1F26, Amber #C87941, Copper #8B6914
   ============================================ */

:root {
  --bg: #F7F5F0;
  --bg-alt: #EDE9E1;
  --dark: #1C1F26;
  --dark-mid: #2A2D35;
  --amber: #C87941;
  --amber-light: #E8A96A;
  --copper: #8B6914;
  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --text-light: #F7F5F0;
  --border: rgba(200, 121, 65, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 31, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 121, 65, 0.15);
}
.navbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.02em;
}
.navbar-tag {
  font-size: 0.75rem;
  color: var(--amber-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 31, 38, 0.3) 0%,
    rgba(28, 31, 38, 0.55) 50%,
    rgba(28, 31, 38, 0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}
.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-light);
  background: rgba(200, 121, 65, 0.15);
  border: 1px solid rgba(200, 121, 65, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.75rem;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(247, 245, 240, 0.8);
  max-width: 44ch;
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* Stats strip */
.hero-stats {
  position: relative;
  z-index: 2;
  background: var(--amber);
  display: flex;
  align-items: stretch;
  gap: 0;
}
.stat {
  flex: 1;
  padding: 1.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-divider {
  width: 1px;
  background: rgba(28, 31, 38, 0.2);
  align-self: stretch;
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(28, 31, 38, 0.65);
}

/* ===== SERVICES ===== */
.services {
  padding: 7rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}
.services-header {
  margin-bottom: 4rem;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}
.service-card {
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card-accent {
  background: var(--dark);
  color: var(--text-light);
}
.service-card-accent .service-title,
.service-card-accent .service-desc,
.service-card-accent .service-bullets li {
  color: var(--text-light);
}
.service-card-accent .service-bullets li {
  border-color: rgba(247, 245, 240, 0.15);
}
.service-img-wrap {
  overflow: hidden;
  height: 220px;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-img {
  transform: scale(1.04);
}
.service-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}
.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-bullets li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  letter-spacing: 0.02em;
}
.service-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

/* ===== SERVICE AREAS ===== */
.areas {
  background: var(--dark);
  padding: 7rem 2rem;
}
.areas-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.areas .section-label { color: var(--amber-light); }
.areas .section-heading { color: var(--text-light); }
.areas-body {
  font-size: 1rem;
  color: rgba(247, 245, 240, 0.7);
  line-height: 1.75;
  margin: 1.5rem 0 2.5rem;
}
.areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(200, 121, 65, 0.2);
  border-radius: 2px;
}
.area-city {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}
.area-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}
.area-tag.primary {
  background: var(--amber);
  color: var(--dark);
}
.areas-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.areas-stat-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.areas-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.areas-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}
.areas-stat-desc {
  font-size: 0.85rem;
  color: rgba(247, 245, 240, 0.55);
  letter-spacing: 0.02em;
}

/* ===== CREDENTIALS ===== */
.credentials {
  padding: 5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cred-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.cred-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.cred-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}
.cred-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  background: var(--dark);
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.closing .section-label { color: var(--amber-light); }
.closing-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.15;
  margin: 1rem 0 1.5rem;
}
.closing-body {
  font-size: 1.05rem;
  color: rgba(247, 245, 240, 0.7);
  line-height: 1.8;
  max-width: 55ch;
  margin: 0 auto 2.5rem;
}
.closing-actions {
  margin-bottom: 2.5rem;
}
.closing-cta-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(247, 245, 240, 0.6);
  border: 1px solid rgba(200, 121, 65, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
}
.closing-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.closing-contact-label {
  font-size: 0.75rem;
  color: rgba(247, 245, 240, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.closing-phone {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.closing-phone:hover { color: var(--amber-light); }

/* ===== FOOTER ===== */
.footer {
  background: #111318;
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--amber-light);
  display: block;
}
.footer-address {
  font-size: 0.8rem;
  color: rgba(247, 245, 240, 0.4);
}
.footer-legal {
  font-size: 0.7rem;
  color: rgba(247, 245, 240, 0.25);
  margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .areas-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cred-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .hero-headline { font-size: 2.4rem; }
  .hero-stats {
    flex-direction: column;
  }
  .stat-divider {
    width: 100%;
    height: 1px;
  }
  .stat { padding: 1.25rem 1.5rem; }
  .cred-inner {
    grid-template-columns: 1fr 1fr;
  }
  .areas-list {
    grid-template-columns: 1fr;
  }
}