/* Jamie Conner Well & Pump Repair — mobile-first, clean professional */
:root {
  --cab-red: #b71c28;
  --cab-red-deep: #8e121c;
  --navy: #14233a;
  --navy-ink: #0b1626;
  --steel: #3d4f66;
  --mist: #f3f5f8;
  --paper: #ffffff;
  --line: rgba(20, 35, 58, 0.12);
  --glow: rgba(183, 28, 40, 0.18);
  --max: 1120px;
  --pad: clamp(1.15rem, 4.5vw, 2rem);
  --callbar-h: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-bottom: var(--callbar-h);
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
  padding-bottom: var(--callbar-h);
}
img, picture, video, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a { color: var(--cab-red); }
a:hover { color: var(--cab-red-deep); }

.skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed;
  width: auto; height: auto;
  margin: 0; clip: auto;
  left: var(--pad); top: 1rem; z-index: 100;
  background: var(--paper); padding: .55rem 1rem; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow: visible; white-space: normal;
}

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  min-height: 4.25rem;
}
.brand {
  display: flex; align-items: center;
  text-decoration: none; color: var(--navy-ink);
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
  padding: .15rem 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem); /* ~18–25px */
  letter-spacing: -.025em;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-wrap: balance;
  max-width: 16ch;
}
.brand-dot { display: none; }
.nav-links {
  display: none;
  list-style: none; margin: 0; padding: 0;
  gap: 1.25rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--steel);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .5rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--navy-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-call {
  background: var(--cab-red);
  color: #fff !important;
  box-shadow: 0 8px 22px var(--glow);
  white-space: nowrap;
}
.btn-call:hover { background: var(--cab-red-deep); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-wide { width: 100%; }

.header-phone {
  flex: 0 0 auto;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
  padding: .7rem .95rem;
  min-height: 44px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  color: #fff;
  min-height: min(88svh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy-ink);
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 28%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  /* Stronger bottom/left veil for phone readability */
  background:
    linear-gradient(180deg, rgba(11,22,38,.55) 0%, rgba(11,22,38,.28) 32%, rgba(11,22,38,.78) 62%, rgba(11,22,38,.96) 100%),
    linear-gradient(90deg, rgba(11,22,38,.82) 0%, rgba(11,22,38,.45) 55%, rgba(11,22,38,.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem var(--pad) 2rem;
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  margin: 0 0 1rem;
  line-height: 1.45;
  max-width: 22rem;
}
.hero-kicker::before {
  content: "";
  width: 1.35rem; height: 2px;
  background: var(--cab-red);
  flex-shrink: 0;
}
.hero h1 {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.7rem, 7.2vw, 3.35rem);
  line-height: 1.14;
  letter-spacing: -.03em;
  max-width: 14ch;
  overflow-wrap: break-word;
  hyphens: manual;
}
.hero-lead {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 3.8vw, 1.22rem);
  line-height: 1.5;
  max-width: 34rem;
  color: rgba(255,255,255,.92);
  font-weight: 400;
}
.hero-actions {
  display: grid;
  gap: .7rem;
  margin-bottom: 1.5rem;
}
.hero-actions .btn { width: 100%; }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: 36rem;
  font-size: .95rem;
  color: rgba(255,255,255,.86);
  line-height: 1.35;
}
.hero-meta strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -.01em;
  margin-bottom: .1rem;
}

/* ——— Shared sections ——— */
.section {
  padding: clamp(2.75rem, 7vw, 5.75rem) var(--pad);
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}
#quote, #quote-form, .quote-panel, .nap, .site-footer, .footer-inner {
  scroll-margin-bottom: calc(var(--callbar-h) + 0.75rem);
}
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--cab-red);
  font-weight: 750;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.55rem, 5.5vw, 2.65rem);
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--navy-ink);
  max-width: 18ch;
  overflow-wrap: break-word;
}
.intro {
  margin: .9rem 0 0;
  color: var(--steel);
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  line-height: 1.55;
  max-width: 38rem;
}

/* ——— Services ——— */
.services { background: var(--mist); }
.service-list {
  margin-top: 2rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  gap: .55rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.service-num {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 650;
  color: var(--cab-red);
  letter-spacing: .04em;
}
.service h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  letter-spacing: -.02em;
  color: var(--navy-ink);
  font-weight: 650;
}
.service p {
  margin: 0;
  color: var(--steel);
  max-width: 40rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* ——— About ——— */
.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  min-width: 0;
}
.about-copy { min-width: 0; }
.about-copy .intro { margin-top: .9rem; }
.about-points {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.about-points li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  color: var(--steel);
  line-height: 1.5;
}
.about-points li::before {
  content: "";
  width: .55rem; height: .55rem;
  margin-top: .5rem;
  border-radius: 50%;
  background: var(--cab-red);
  box-shadow: 0 0 0 4px rgba(183,28,40,.12);
}
figure { margin: 0; }
.photo-frame {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 4 / 5;
  max-height: 420px;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 18px 40px rgba(11,22,38,.14);
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

/* ——— Area ——— */
.area {
  background: var(--navy-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.area::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  right: -100px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183,28,40,.26), transparent 70%);
  pointer-events: none;
}
.area .eyebrow { color: #ffb4bc; }
.area h2 { color: #fff; max-width: 16ch; }
.area .intro { color: rgba(255,255,255,.8); }
.county-rail {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.county {
  padding: .7rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  font-weight: 650;
  font-size: .92rem;
  letter-spacing: .01em;
  line-height: 1.2;
}

/* ——— Quote / form ——— */
.quote {
  background: var(--paper);
}
.quote-shell {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
.quote-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.1rem 1.4rem;
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(11,22,38,.06);
  min-width: 0;
}
.quote-panel h2 { max-width: 14ch; }
.form {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  gap: 1rem;
}
.field { min-width: 0; }
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--navy);
  margin-bottom: .4rem;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .95rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(20,35,58,.16);
  background: #fbfcfd;
  font: inherit;
  font-size: 16px; /* prevent iOS input zoom */
  color: var(--navy-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(20,35,58,.08);
  background: #fff;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}
.hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.form-note {
  margin: .15rem 0 0;
  color: var(--steel);
  font-size: .92rem;
  line-height: 1.5;
}
.form-status {
  display: none;
  margin-top: .35rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.form-status.ok {
  display: block;
  background: #eaf7ef;
  color: #1b5e36;
  border: 1px solid #b7e0c5;
}
.form-status.err {
  display: block;
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f0c2c2;
}
.nap {
  background: var(--navy-ink);
  color: #fff;
  border-radius: 18px;
  padding: 1.3rem 1.15rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}
.nap h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.45rem);
  letter-spacing: -.02em;
  font-weight: 650;
  line-height: 1.2;
}
.nap dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.nap dt {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 700;
  margin-bottom: .3rem;
}
.nap dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.nap a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  display: inline;
  padding: .15rem 0;
}
.nap a:hover { border-bottom-color: #fff; color: #fff; }
.nap-map {
  color: #ffc9cf !important;
  border-bottom-color: rgba(255,201,207,.45) !important;
  font-size: .95rem !important;
  font-weight: 650 !important;
}

/* ——— Footer ——— */
.site-footer {
  background: #070e18;
  color: rgba(255,255,255,.72);
  padding: 2.2rem var(--pad) calc(1.5rem + var(--callbar-h));
  border-top: 3px solid var(--cab-red);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: .85rem;
  min-width: 0;
}
.footer-name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.footer-nap {
  font-size: 1rem;
  line-height: 1.55;
}
.footer-nap a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.footer-nap a:hover { text-decoration: underline; }
.footer-phone {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff !important;
  margin-bottom: .2rem;
  min-height: 44px;
  padding: .25rem 0;
}
.footer-phone:hover { text-decoration: underline; }
.footer-fine {
  font-size: .84rem;
  opacity: .72;
  max-width: 42rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Mobile sticky call bar */
.mobile-callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  padding: .65rem var(--pad) calc(.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(7,14,24,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
}
.mobile-callbar .btn-call {
  width: 100%;
  justify-content: center;
  min-height: 50px;
  font-size: 1.05rem;
  font-weight: 800;
}

/* ——— Wider phones / small tablets ——— */
@media (min-width: 480px) {
  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem 1rem;
  }
  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }
  .hero-actions .btn { width: auto; }
  .header-phone {
    font-size: 1rem;
    padding: .75rem 1.1rem;
  }
}

/* ——— Desktop ——— */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .nav-links { display: flex; }
  .mobile-callbar { display: none; }
  .site-footer { padding-bottom: 2.6rem; }
  .nav { padding: 1.15rem var(--pad); gap: 1.25rem; min-height: 4.75rem; }
  .brand-name {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    white-space: nowrap;
    max-width: none;
  }
  .header-phone {
    font-size: 1.05rem;
    padding: .85rem 1.3rem;
    min-height: 48px;
  }
  .hero {
    min-height: min(92vh, 780px);
  }
  .hero-media img { object-position: 50% 32%; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(11,22,38,.35) 0%, rgba(11,22,38,.15) 28%, rgba(11,22,38,.72) 68%, rgba(11,22,38,.94) 100%),
      linear-gradient(90deg, rgba(11,22,38,.78) 0%, rgba(11,22,38,.45) 48%, rgba(11,22,38,.2) 100%);
  }
  .hero-content {
    padding: clamp(5.5rem, 14vw, 8rem) var(--pad) clamp(2.4rem, 6vw, 3.5rem);
  }
  .hero-kicker {
    font-size: .82rem;
    letter-spacing: .12em;
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    max-width: 12ch;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
  }
  .hero-actions .btn { width: auto; }
  .hero-meta {
    grid-template-columns: repeat(3, auto);
    gap: .35rem 1.5rem;
  }
  .service {
    grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1.25rem;
    align-items: baseline;
    padding: 1.75rem 0;
  }
  .about-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 3rem;
    align-items: center;
  }
  .photo-frame {
    aspect-ratio: 3 / 4;
    max-height: 560px;
    border-radius: 18px;
  }
  .quote-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    gap: 1.35rem;
    align-items: stretch;
  }
  .quote-panel {
    padding: clamp(1.35rem, 3vw, 2rem);
    border-radius: 20px;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .field input,
  .field textarea {
    font-size: 1.0625rem;
  }
  .county { padding: .65rem 1rem; }
}

@media (min-width: 980px) {
  .hero-content { padding-bottom: 4rem; }
}


.footer-address {
  display: inline-block;
  margin-top: .15rem;
}
.footer-map {
  display: inline-block;
  margin-top: .45rem;
  color: #ffc9cf !important;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,201,207,.45);
}
.footer-map:hover {
  color: #fff !important;
  border-bottom-color: #fff;
}


/* Landscape truck photo: preserve the whole side profile on phones. */
.hero-media picture { width: 100%; height: 100%; }
.hero-media img { object-position: 50% 50%; }
.photo-frame { aspect-ratio: 4 / 3; max-height: none; }
.photo-frame img { object-position: 50% 50%; }
@media (max-width: 759px) {
  .hero-media {
    inset: 0 0 auto;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(11,22,38,.03) 45%, rgba(11,22,38,.16) 75%, var(--navy-ink) 100%);
  }
  .hero-content { padding-top: calc(75vw + 1rem); }
}
