/* ============================================
   WEST ALABAMA GUTTERS — Design System
   Grounded in: river geography, galvanized steel,
   red clay soil, rural practicality.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root {
  --paper: #EDEFEE;
  --paper-dim: #E2E5E2;
  --ink: #22262A;
  --ink-soft: #4A5158;
  --river: #4C6B7A;
  --river-deep: #38505C;
  --clay: #8B3A2B;
  --clay-deep: #6E2E22;
  --wheat: #B99A4B;
  --line: #CBD0CC;
  --white: #FBFBFA;

  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-body: 'Archivo', -apple-system, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;

  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: var(--river-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--wheat);
  outline-offset: 2px;
}

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

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

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

.site-header {
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.header-phone {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--clay);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone::before { content: "☎ "; }

nav.town-nav {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  overflow-x: auto;
}

nav.town-nav .wrap {
  display: flex;
  gap: 4px;
  padding-top: 0;
  padding-bottom: 0;
}

nav.town-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 12px 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.town-nav a:hover,
nav.town-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--clay);
}

/* ---------- River route hero ---------- */

.hero {
  padding: 56px 0 40px;
  position: relative;
}

.hero .eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--river-deep);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--clay);
}

.hero .sub {
  font-family: var(--font-accent);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 18px;
}

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

/* Route map — the signature element */

.route-map {
  margin-top: 48px;
  padding: 32px 24px 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.route-map .route-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.route-svg {
  width: 100%;
  height: auto;
  display: block;
}

.route-svg .river-path {
  fill: none;
  stroke: var(--river);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  opacity: 0.55;
}

.route-svg .town-dot {
  fill: var(--white);
  stroke: var(--clay);
  stroke-width: 3;
}

.route-svg .town-dot.is-hub {
  fill: var(--clay);
  stroke: var(--ink);
}

.route-svg text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  fill: var(--ink);
}

.route-svg .town-link {
  cursor: pointer;
}

.route-svg .town-link:hover .town-dot {
  fill: var(--wheat);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.12s ease, background 0.12s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

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

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

/* ---------- Gutter-line divider (signature secondary motif) ---------- */

.gutter-divider {
  height: 34px;
  width: 100%;
  margin: 8px 0;
}

.gutter-divider svg { width: 100%; height: 100%; display: block; }
.gutter-divider path {
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
}
.gutter-divider circle { fill: var(--clay); }

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

section { padding: 56px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 36px; }

.section-head .kicker {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.section-head p {
  font-family: var(--font-accent);
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 12px;
}

/* ---------- Service grid ---------- */

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

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--river);
  padding: 26px 24px;
  border-radius: 3px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 10px;
}

.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Process steps (real sequence — numbering is justified) ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .process { grid-template-columns: 1fr; }
}

.process-step {
  background: var(--white);
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-right: none; }

@media (max-width: 800px) {
  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: none; }
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--clay);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.process-step h3 { font-size: 16.5px; margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; }
.process-step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Town cards ---------- */

.town-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .town-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .town-grid { grid-template-columns: 1fr; }
}

.town-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  border-radius: 3px;
  transition: border-color 0.15s ease;
}
.town-card:hover { border-color: var(--clay); }

.town-card .town-name {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 4px;
}

.town-card .town-county {
  font-size: 13px;
  color: var(--river-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.town-card .town-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Testimonial / trust ---------- */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

.trust-bar span::before { content: "✓ "; color: var(--river-deep); font-weight: 900; }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
}

.faq-item p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Form ---------- */

.form-panel {
  background: var(--ink);
  color: var(--paper);
  padding: 44px;
  border-radius: 4px;
}

@media (max-width: 700px) { .form-panel { padding: 28px 22px; } }

.form-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 32px);
  color: var(--white);
}

.form-panel .sub {
  color: #C7CCC8;
  margin-top: 10px;
  font-family: var(--font-accent);
  font-size: 16px;
  max-width: 50ch;
}

form.lead-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 620px) { form.lead-form { grid-template-columns: 1fr; } }

form.lead-form .full { grid-column: 1 / -1; }

form.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #C7CCC8;
}

form.lead-form input,
form.lead-form select,
form.lead-form textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 3px;
  border: 2px solid #3A4046;
  background: #2C3136;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
}

form.lead-form input::placeholder,
form.lead-form textarea::placeholder { color: #808892; }

form.lead-form textarea { min-height: 90px; resize: vertical; }

form.lead-form .btn-primary {
  margin-top: 6px;
  justify-self: start;
}

.form-disclosure {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: #9AA1A8;
  line-height: 1.5;
  margin-top: 4px;
}

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

footer {
  padding: 44px 0 30px;
  border-top: 3px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

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

footer h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: var(--ink); text-decoration: none; font-size: 14.5px; }
footer a:hover { color: var(--clay); }

.footer-disclosure {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 90ch;
}

.footer-bottom {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
