/* ==========================================================================
   FORT SMITH WELL PUMP REPAIR — Design Tokens
   Palette drawn from the actual subject: clear well water running through
   deep blue-teal, against the rust/iron staining that's a real, common
   Arkansas well-water problem — and the Ozark foothill stone tones of
   the region itself.
   ========================================================================== */

:root {
  /* Color */
  --stone:        #EEEBE3; /* page background — Ozark limestone */
  --stone-dim:    #E2DDCF; /* card surfaces on stone */
  --deep-water:   #16333F; /* header, footer, deep text */
  --deep-water-soft: #294B58;
  --well-teal:    #2C6E7A; /* primary brand / links / icons — clear water */
  --well-teal-dark: #1E4E57;
  --iron-rust:    #A85C2E; /* primary CTA accent — iron staining, not terracotta */
  --iron-rust-dark: #824423;
  --sky:          #6FA3A8; /* secondary accent */
  --amber:        #C98A2E; /* diagnostic tool: caution */
  --danger:       #A33A2E; /* diagnostic tool: urgent */
  --white:        #FFFFFF;
  --line:         rgba(22, 51, 63, 0.14);

  /* Type */
  --font-display: "Roboto Slab", "Zilla Slab", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 4px;
  --max-width: 1160px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--deep-water);
  line-height: 1.6;
  font-size: 17px;
  padding-bottom: 60px;
}
@media (min-width: 880px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: var(--well-teal); text-decoration-thickness: 1.5px; }
a:hover { color: var(--iron-rust); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--deep-water);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-2); max-width: 65ch; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--iron-rust);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--deep-water);
  color: var(--stone);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--iron-rust);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-2); padding-bottom: var(--space-2); gap: var(--space-3);
}
.logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--stone); text-decoration: none; }
.logo span { color: var(--iron-rust); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.phone-link { font-family: var(--font-mono); font-size: 1.05rem; color: var(--stone); text-decoration: none; white-space: nowrap; }
.phone-link:hover { color: var(--iron-rust); }

nav.main-nav { display: none; }
@media (min-width: 960px) {
  nav.main-nav { display: flex; gap: var(--space-3); flex-wrap: wrap; max-width: 620px; }
  nav.main-nav a { color: var(--stone); text-decoration: none; font-size: 0.9rem; opacity: 0.88; }
  nav.main-nav a:hover { opacity: 1; color: var(--iron-rust); }
}
.nav-toggle {
  background: none; border: 1px solid var(--stone); color: var(--stone);
  padding: 0.4rem 0.7rem; border-radius: var(--radius); font-size: 0.9rem; cursor: pointer;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.mobile-nav { display: none; flex-direction: column; background: var(--deep-water-soft); padding: var(--space-2) var(--space-3); }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--stone); text-decoration: none; padding: var(--space-1) 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body);
  font-weight: 600; padding: 0.8rem 1.4rem; border-radius: var(--radius); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn-rust { background: var(--iron-rust); color: var(--white); }
.btn-rust:hover { background: var(--iron-rust-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--stone); color: var(--stone); }
.btn-outline:hover { background: rgba(238,235,227,0.1); color: var(--stone); }
.btn-teal { background: var(--well-teal); color: var(--white); }
.btn-teal:hover { background: var(--well-teal-dark); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--deep-water) 0%, var(--deep-water-soft) 100%); color: var(--stone); padding: var(--space-6) 0 var(--space-5); }
.hero .container { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.05fr 0.95fr; } }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--sky); margin-bottom: var(--space-2); }
.hero h1 { color: var(--stone); }
.hero p.lede { font-size: 1.15rem; color: rgba(238,235,227,0.86); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* ---------- Diagnostic tool (signature element) ---------- */
.diag-card { background: rgba(238,235,227,0.05); border: 1px solid rgba(238,235,227,0.18); border-radius: var(--radius); padding: var(--space-3); }
.diag-card h3 { color: var(--stone); font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-2); }
.diag-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: var(--space-3); }
.diag-btn {
  background: rgba(238,235,227,0.08); border: 1px solid rgba(238,235,227,0.25); color: var(--stone);
  padding: 0.7rem 0.6rem; border-radius: var(--radius); font-size: 0.88rem; cursor: pointer; text-align: left;
  font-family: var(--font-body);
}
.diag-btn:hover, .diag-btn.active { background: var(--iron-rust); border-color: var(--iron-rust); }
.diag-result { font-family: var(--font-mono); font-size: 0.92rem; color: var(--sky); min-height: 4.5em; line-height: 1.5; }
.diag-result a { color: var(--iron-rust); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--stone-dim); border-bottom: 1px solid var(--line); padding: var(--space-3) 0; }
.trust-bar .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); text-align: center; }
@media (min-width: 700px) { .trust-bar .container { grid-template-columns: repeat(4, 1fr); } }
.trust-item .num { font-family: var(--font-display); font-size: 1.8rem; color: var(--well-teal); display: block; }
.trust-item .label { font-size: 0.83rem; color: var(--deep-water-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
.section { padding: var(--space-5) 0; }
.section-tight { padding: var(--space-4) 0; }
.section-dark { background: var(--deep-water); color: var(--stone); }
.section-dark h2, .section-dark h3 { color: var(--stone); }
.section-head { max-width: 60ch; margin-bottom: var(--space-4); }
.section-head .eyebrow { color: var(--iron-rust); }

.service-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3);
  text-decoration: none; color: var(--deep-water); display: block; border-top: 4px solid var(--well-teal);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,51,63,0.1); color: var(--deep-water); }
.service-card .tag { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--well-teal); letter-spacing: 0.06em; }
.service-card h3 { margin-top: var(--space-1); }
.service-card p { margin-bottom: 0; font-size: 0.95rem; color: var(--deep-water-soft); }

.faq-item { border-bottom: 1px solid var(--line); padding: var(--space-3) 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.faq-item p { color: var(--deep-water-soft); margin-bottom: 0; }

.testimonial { background: var(--white); border-left: 4px solid var(--iron-rust); padding: var(--space-3); border-radius: var(--radius); }
.testimonial p.quote { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--deep-water); }
.testimonial .attrib { font-family: var(--font-mono); font-size: 0.82rem; color: var(--deep-water-soft); }

.two-col { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 0.9fr; } }

.sticky-call { position: fixed; bottom: 0; left: 0; right: 0; background: var(--iron-rust); color: var(--white); display: flex; z-index: 60; }
.sticky-call a { flex: 1; color: var(--white); text-decoration: none; text-align: center; padding: 0.9rem; font-weight: 700; font-family: var(--font-body); }
.sticky-call a.secondary { background: var(--well-teal); }
@media (min-width: 880px) { .sticky-call { display: none; } }

.quote-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.quote-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--deep-water-soft); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; margin-bottom: var(--space-2); background: var(--stone);
}
.quote-form .field-row-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .quote-form .field-row-2 { grid-template-columns: 1fr 1fr; gap: var(--space-2); } }
.form-note { font-size: 0.82rem; color: var(--deep-water-soft); }
.form-success { display: none; background: #E7F0E2; border: 1px solid #6B9269; color: #2F4A2C; padding: var(--space-2); border-radius: var(--radius); margin-bottom: var(--space-2); }
.form-success.visible { display: block; }

.site-footer { background: var(--deep-water); color: rgba(238,235,227,0.75); padding: var(--space-5) 0 var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--stone); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
.site-footer a { color: rgba(238,235,227,0.75); }
.site-footer a:hover { color: var(--iron-rust); }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(238,235,227,0.14); font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.4rem; }

.breadcrumb { font-family: var(--font-mono); font-size: 0.82rem; color: var(--deep-water-soft); padding: var(--space-2) 0; }
.breadcrumb a { color: var(--deep-water-soft); }

.page-hero { background: var(--stone-dim); border-bottom: 1px solid var(--line); padding: var(--space-4) 0; }
.page-hero .eyebrow { color: var(--iron-rust); }
