/* ==========================================================================
   Sowers Residential — sowersresidential.com
   Residential trade services (sheetrock, framing, ceilings) — modern identity.
   ========================================================================== */

:root {
  --ink: #0e1116;
  --ink-soft: #1c222b;
  --body: #3d4451;
  --muted: #6c7482;
  --line: #e6e8ec;
  --paper: #ffffff;
  --surface: #f5f6f8;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #dbe7fe;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(14, 17, 22, 0.07);
  --shadow-md: 0 12px 32px -14px rgba(14, 17, 22, 0.22);
  --shadow-lg: 0 28px 64px -24px rgba(14, 17, 22, 0.32);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); margin-top: 14px; }
.section-head p.lead { max-width: 640px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.6); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-1px); }

.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }

.brand .brand-main {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand .brand-main .dot { color: var(--accent); }

.brand .brand-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 10px 15px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover { color: var(--accent-deep); }

.main-nav a.active { color: var(--accent-deep); background: var(--accent-soft); }

.main-nav .btn { margin-left: 12px; padding: 11px 20px; font-size: 14.5px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--ink);
  margin: 5.5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-slides { position: absolute; inset: 0; z-index: -2; }

.hero-slides .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: scale(1.05);
}

.hero-slides .slide.on { opacity: 1; transform: scale(1); transition: opacity 1.4s ease, transform 8s ease; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(102deg, rgba(10, 13, 18, 0.92) 0%, rgba(10, 13, 18, 0.68) 46%, rgba(10, 13, 18, 0.28) 100%);
}

.hero-content { padding-block: 110px 130px; max-width: 720px; }

.hero-content .kicker { color: #7ea8ff; }
.hero-content .kicker::before { background: #7ea8ff; }

.hero-content h1 {
  color: #fff;
  font-size: clamp(42px, 6.4vw, 76px);
  margin: 18px 0 0;
}

.hero-content h1 .accent { color: #7ea8ff; }

.hero-content p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin: 24px 0 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sub-page hero */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 330px;
  color: #fff;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.45) 0%, rgba(10, 13, 18, 0.86) 100%);
}

.page-hero .wrap { padding-block: 56px; }
.page-hero .kicker { color: #7ea8ff; }
.page-hero .kicker::before { background: #7ea8ff; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.5vw, 62px); margin-top: 14px; }
.page-hero p { max-width: 620px; color: rgba(255, 255, 255, 0.88); margin: 14px 0 0; font-size: 17px; }

/* ---------- Stat band ---------- */

.stat-band { background: var(--ink); color: #fff; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 40px;
}

.stat { text-align: center; padding-inline: 12px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.stat:first-child { border-left: 0; }

.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 44px);
  letter-spacing: -0.02em;
  color: #7ea8ff;
  line-height: 1;
}

.stat .label {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Sections ---------- */

.section { padding-block: 96px; }
.section.tint { background: var(--surface); }
.section.dark { background: var(--ink); color: rgba(255, 255, 255, 0.85); }
.section.dark h2, .section.dark h3 { color: #fff; }

/* Split layout */

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }

.split .media { position: relative; }

.split .media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.split .media .badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.1;
  padding: 20px 26px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.split .media .badge .big { font-size: 32px; font-weight: 700; display: block; letter-spacing: -0.02em; }
.split .media .badge .small { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; opacity: 0.9; }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }

.checklist li { display: flex; gap: 12px; align-items: flex-start; }

.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Service cards ---------- */

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }

.svc-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 50px;
  line-height: 1;
  color: var(--accent-soft);
  position: absolute;
  top: 24px;
  right: 28px;
}

.svc-card h3 { font-size: 23px; letter-spacing: -0.01em; padding-right: 70px; }

.svc-card p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }

.svc-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--body); font-size: 15px; }
.svc-card ul li { margin-bottom: 6px; }

/* ---------- Process ---------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.process-step { position: relative; padding-top: 20px; }

.process-step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.process-step h3 { font-size: 22px; margin-top: 12px; }

.process-step p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }

.section.dark .process-step p { color: rgba(255, 255, 255, 0.7); }
.section.dark .process-step .step-num { color: #7ea8ff; }

/* ---------- Photo band ---------- */

.photo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.photo-band > div { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }

.photo-band img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }

.photo-band > div:hover img { transform: scale(1.06); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  color: #fff;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(102deg, rgba(10, 13, 18, 0.92), rgba(29, 78, 216, 0.75));
}

.cta-inner {
  padding-block: 92px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner h2 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); }

.cta-inner p { color: rgba(255, 255, 255, 0.85); margin: 12px 0 0; max-width: 520px; }

.cta-band .btn-accent { background: #fff; color: var(--accent-deep); }
.cta-band .btn-accent:hover { background: var(--accent-soft); box-shadow: none; }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }

.info-card {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 42px 38px;
  box-shadow: var(--shadow-lg);
}

.info-card h3 { color: #fff; font-size: 26px; margin-bottom: 6px; }

.info-card p.sub { color: rgba(255, 255, 255, 0.62); font-size: 15px; margin: 0 0 28px; }

.info-row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.info-row .ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.28);
  display: grid;
  place-items: center;
}

.info-row .ico svg { width: 20px; height: 20px; stroke: #7ea8ff; }

.info-row .label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.info-row .value { color: #fff; font-weight: 500; }
.info-row .value a { color: #fff; text-decoration: none; }
.info-row .value a:hover { color: #7ea8ff; }

/* ---------- Footer ---------- */

.site-footer { background: #0a0d12; color: rgba(255, 255, 255, 0.68); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-block: 72px 48px;
}

.site-footer .brand .brand-main { color: #fff; }
.site-footer .brand .brand-sub { color: #7ea8ff; }

.site-footer p { font-size: 15px; }

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.footer-links a { text-decoration: none; color: rgba(255, 255, 255, 0.68); transition: color 0.15s ease; }

.footer-links a:hover { color: #7ea8ff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-band { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .stat:nth-child(3) { border-left: 0; }
}

@media (max-width: 700px) {
  .section { padding-block: 64px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--surface); border-radius: 0; }
  .main-nav a.active { background: none; }
  .main-nav .btn { margin: 16px 0 0; justify-content: center; }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .process-grid { grid-template-columns: 1fr; }
  .photo-band { grid-template-columns: 1fr; }
  .hero-content { padding-block: 88px 96px; }
  .split .media .badge { left: 12px; bottom: -14px; }
}
