/* Dayton Gutter Installation — conversion-focused local contractor layout */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --text: #1a1a1a;
  --muted: #4a5568;
  --bg: #ffffff;
  --surface: #f4f6f8;
  --border: #d1d5db;
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --green: #2d7a3e;
  --green-dark: #1f5a2c;
  --green-hover: #256832;
  --container: 72rem;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

html { font-size: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 4.75rem;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

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

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

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

/* ── Buttons (click-to-call only conversion) ── */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  line-height: 1.2;
  min-height: 48px;
  box-shadow: 0 2px 6px rgba(45, 122, 62, 0.35);
}

.btn-call:hover {
  background: var(--green-hover);
  color: #fff !important;
}

.btn-call-lg {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  padding: 1rem 1.75rem;
  min-height: 56px;
}

.btn-call-sm {
  font-size: 0.9375rem;
  padding: 0.65rem 1rem;
  min-height: 44px;
}

.text-link-light {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link-light:hover { color: #fff !important; }

.btn-text {
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text:hover { color: var(--green); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
  object-position: left center;
}

.header-call {
  order: 2;
  font-size: 0.875rem;
  padding: 0.55rem 0.85rem;
  min-height: 44px;
}

.site-nav { order: 3; width: 100%; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.4rem;
}

.site-nav a {
  display: block;
  padding: 0.35rem 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border-radius: 4px;
}

.site-nav a:hover { background: var(--surface); color: var(--navy); }

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--green);
  background: var(--surface);
}

@media (min-width: 960px) {
  .header-inner { flex-wrap: nowrap; padding: 0.55rem 1rem; }
  .logo-img { height: 48px; max-width: 240px; }
  .site-nav { order: 2; width: auto; flex: 1; }
  .site-nav ul { justify-content: center; gap: 0.2rem 0.55rem; }
  .site-nav a { font-size: 0.875rem; }
  .header-call { order: 3; font-size: 0.9375rem; padding: 0.65rem 1rem; }
}

/* ── Mobile sticky call bar ── */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-top: 2px solid var(--green);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.mobile-call-bar .btn-call {
  width: 100%;
  font-size: 1.0625rem;
  min-height: 48px;
}

@media (min-width: 768px) {
  .mobile-call-bar { display: none; }
}

/* ── Photo hero (homepage) ── */
.hero-photo {
  position: relative;
  min-height: clamp(420px, 62vh, 560px);
  display: flex;
  align-items: center;
  background: var(--navy-dark) url("/img/hero-eave.png") center / cover no-repeat;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(21, 42, 69, 0.88) 0%, rgba(21, 42, 69, 0.72) 45%, rgba(21, 42, 69, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  max-width: 38rem;
}

.hero-photo h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* ── Sections ── */
.section { padding: 2.75rem 0; }
.section-compact { padding: 2rem 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy); color: #fff; }

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 0 0 1.25rem;
  color: var(--navy);
}

.section-dark .section-title { color: #fff; }

/* ── Service cards with photos ── */
.service-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.service-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.service-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h2 {
  font-size: 1.125rem;
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.45;
}

.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* ── Cost teaser ── */
.cost-teaser {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cost-teaser-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.25rem;
}

.cost-stat strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--navy);
  line-height: 1.2;
}

.cost-stat span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.cost-teaser-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.cost-teaser-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

/* ── Trust strip ── */
.trust-strip {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-item strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 0.25rem;
  color: #fff;
}

.trust-item span {
  font-size: 0.8125rem;
  opacity: 0.85;
  line-height: 1.4;
  display: block;
}

/* ── CTA band ── */
.cta-band {
  text-align: center;
  padding: 2rem 0;
}

.cta-band p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.cta-band-dark p { color: rgba(255, 255, 255, 0.88); }

/* ── Area chips ── */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.area-chip {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.area-chip:hover {
  border-color: var(--green);
  color: var(--green);
  background: #fff;
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  text-align: center;
  padding: 1.35rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.step-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* ── Inner pages ── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.page-hero-photo {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  background: var(--navy-dark) center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.page-hero-photo .hero-overlay {
  background: linear-gradient(to top, rgba(21, 42, 69, 0.85) 0%, rgba(21, 42, 69, 0.35) 100%);
}

.page-hero-photo .hero-content {
  padding: 2rem 0;
  max-width: none;
}

.page-hero-photo h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 0.5rem;
  color: #fff;
}

.page-hero-photo .lead {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 42rem;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.page-hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
  max-width: 42rem;
}

main.page-main { padding: 2rem 0 3rem; }

.content-body { max-width: 48rem; }
.content-body-wide { max-width: none; }

h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); line-height: 1.3; margin: 2rem 0 0.75rem; color: var(--navy); }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

.lead { font-size: 1.05rem; color: var(--muted); }

.content-photo {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.content-photo img { width: 100%; object-fit: cover; max-height: 360px; }

.figure { margin: 1.5rem 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.figure figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

th, td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th { background: var(--surface); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* ── CTA block ── */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-block p { margin-bottom: 1rem; font-size: 1.05rem; }

/* ── Area list ── */
.area-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .area-list { grid-template-columns: repeat(2, 1fr); }
}

.area-list-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.area-list-item h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.area-list-item p { font-size: 0.9375rem; color: var(--muted); margin: 0 0 0.75rem; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.875rem;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.2fr 1.5fr 0.8fr; }
}

.footer-brand .footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand .footer-phone {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-tagline { margin: 0 0 1rem; opacity: 0.85; }

.footer-areas h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem;
}

.footer-area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-call { margin-top: 0.5rem; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ── 404 ── */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page h1 { font-size: 4rem; color: var(--navy); margin-bottom: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
