/* =========================================================
   West Texas Carriage — black & white classic western
   ========================================================= */

:root {
  --ink: #111111;
  --ink-2: #2a2a2a;
  --paper: #ffffff;
  --paper-2: #f4f2ee;
  --muted: #5d5d5d;
  --line: #d6d3cc;

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 400; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }

h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
}

p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, .hero-lede, .section-lede { text-wrap: balance; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

[hidden] { display: none !important; }

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: #cfcfcf; }
.star { display: inline-block; margin: 0 .5em; font-size: .8em; }

/* Western double rule with a star in the middle */
.rule {
  display: flex; align-items: center; gap: 1rem;
  max-width: 260px; margin: 1.25rem auto 1.5rem;
  color: var(--ink);
}
.rule::before, .rule::after {
  content: ""; flex: 1; height: 6px;
  border-top: 2px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.rule span { font-size: 1rem; line-height: 1; }
.rule-light { color: var(--paper); }
.rule-left { margin-left: 0; max-width: 200px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); }

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

.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #333;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { width: 75px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.brand-sub {
  font-family: var(--font-cond); font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; color: #bdbdbd;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  font-family: var(--font-cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; font-size: 1rem;
  text-decoration: none; color: #e6e6e6;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--paper); border-bottom-color: var(--paper); }

.nav-toggle {
  display: none;
  background: none; border: 2px solid #555; border-radius: var(--radius);
  width: 46px; height: 42px; padding: 0 10px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle .bar { display: block; height: 2px; background: var(--paper); }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid #333;
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid #2c2c2c; }
  .site-nav .btn { margin-top: 1rem; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 58px; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, #2b2b2b 0%, transparent 60%),
    var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(9rem, 16vw, 12rem);
  border-bottom: 6px double var(--paper);
}
.hero-inner { position: relative; z-index: 1; }

.hero-logo {
  width: clamp(190px, 26vw, 280px); height: auto;
  margin: 0 auto 2rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: .03em;
}
.hero-lede {
  max-width: 40rem; margin: 1.5rem auto 2.25rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #d9d9d9;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.hero-points {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem;
  font-family: var(--font-cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; font-size: .95rem; color: #bdbdbd;
}
.hero-points li::before { content: "★"; margin-right: .6em; font-size: .75em; color: var(--paper); }

.horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  color: #6b6b6b; pointer-events: none;
}
.horizon::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: #6b6b6b;
}
.pumpjack { position: absolute; bottom: 0; }
.pj-1 { left: 4%; width: 220px; color: #8a8a8a; }
.pj-2 { right: 6%; width: 170px; transform: scaleX(-1); }
.pj-3 { left: 58%; width: 110px; color: #4a4a4a; }

@media (max-width: 640px) {
  .pj-3 { display: none; }
  .pj-1 { width: 160px; left: -10px; }
  .pj-2 { width: 120px; right: -6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .pumpjack .beam {
    transform-box: view-box; transform-origin: 104px 44px;
    animation: nod 4.5s ease-in-out infinite;
  }
  .pj-2 .beam { animation-duration: 5.2s; animation-delay: -1.3s; }
  .pj-3 .beam { animation-duration: 3.9s; animation-delay: -2.4s; }
}
@keyframes nod {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

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

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-lede { max-width: 36rem; margin: 0 auto; color: var(--muted); font-size: 1.125rem; }

/* Services cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  counter-reset: card;
}
.card {
  counter-increment: card;
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -8px;
  background: var(--paper);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.card::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.9rem; line-height: 1;
  margin-bottom: .9rem;
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-2); margin: 0; }

/* How it works band */
.band {
  background: var(--ink); color: var(--paper);
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-block: 6px double var(--paper);
  outline: 6px solid var(--ink);
}
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  text-align: center;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 68px; height: 68px; margin-bottom: 1.1rem;
  border: 2px solid var(--paper); border-radius: 50%;
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .04em;
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: #cfcfcf; max-width: 22rem; margin: 0 auto; }

/* Coverage */
.coverage {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1.1fr 1fr;
}
.coverage-copy p { color: var(--ink-2); max-width: 34rem; margin-bottom: 1.75rem; }
.coverage-list {
  border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px;
  padding: 2rem;
}
.home-base {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: .04em;
  text-align: center; margin: 0 0 1.25rem; padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--ink);
}
.home-base .star { margin-left: 0; }
.towns {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 2rem;
  font-family: var(--font-cond); font-weight: 600; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.towns li {
  break-inside: avoid; padding: .35rem 0;
  border-bottom: 1px dashed var(--line);
}

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

/* About */
.about { max-width: 46rem; text-align: center; }
.about p { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- Quote ---------- */

.quote {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
}
.quote-intro p { color: var(--ink-2); }

.quote-direct {
  margin-top: 2rem; padding: 1.5rem;
  background: var(--ink); color: var(--paper);
}
.quote-direct .quote-direct-label {
  font-family: var(--font-cond); text-transform: uppercase;
  letter-spacing: .18em; font-size: .9rem; color: #d9d9d9; margin-bottom: .4rem;
}
.quote-direct a { display: block; text-decoration: none; }
.quote-direct-phone { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: .03em; }
.quote-direct-email { margin-top: .35rem; color: #e0e0e0; text-decoration: underline !important; }

.quote-form {
  border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
}
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend {
  font-family: var(--font-cond); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: 1.05rem;
  width: 100%; padding-bottom: .4rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.grid-2 { display: grid; gap: 0 1.25rem; grid-template-columns: 1fr 1fr; }

label {
  display: block; margin-bottom: 1rem;
  font-weight: 600; font-size: .95rem;
}
.req { color: var(--muted); }
input, textarea {
  display: block; width: 100%; margin-top: .35rem;
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .75rem .85rem;
  background: var(--paper);
  border: 1.5px solid #9a9a9a; border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.12);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--ink); border-width: 2px; background: #f6f6f6;
}
textarea { resize: vertical; min-height: 120px; }

.form-status { margin: 1rem 0 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { padding: 1rem; background: var(--ink); color: var(--paper); }
.form-status.err { padding: 1rem; border: 2px solid var(--ink); }

@media (max-width: 860px) {
  .quote { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
}

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

.site-footer {
  background: var(--ink); color: #cfcfcf;
  border-top: 6px double var(--paper);
  padding-top: 3rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid #333;
}
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-logo { width: 120px; height: auto; }
.footer-brand p { margin: 0; }
.footer-name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--paper); font-size: 1.3rem; margin-bottom: .25rem !important;
}
.footer-contact { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.footer-contact a {
  color: var(--paper); text-decoration: none;
  font-family: var(--font-cond); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em;
}
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .footer-accounting { text-transform: none; letter-spacing: .04em; font-weight: 500; color: #bdbdbd; }
.footer-contact [data-email-link] { text-transform: none; letter-spacing: .04em; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0 1.5rem; font-size: .9rem; color: #9a9a9a;
}
.footer-base p { margin: 0; }

/* ---------- Simple pages (privacy, 404) ---------- */

.page { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .5rem; }
.page h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.page-center { text-align: center; }

/* ---------- Mobile polish ---------- */

.mobile-bar { display: none; }

@media (max-width: 640px) {
  body { padding-bottom: 68px; } /* room for the quick-action bar */

  .mobile-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink);
    border-top: 3px double var(--paper);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .mobile-bar-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: 48px;
    font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem;
    text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
    border: 2px solid var(--paper); border-radius: var(--radius);
  }
  .mobile-bar-call { color: var(--paper); }
  .mobile-bar-quote { background: var(--paper); color: var(--ink); }

  .eyebrow { letter-spacing: .14em; font-size: .85rem; }
  .hero .eyebrow .star { margin: 0 .3em; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn, .coverage-copy .btn { width: 100%; }
  .hero-points { flex-direction: column; align-items: center; gap: .45rem; margin-top: 2rem; }

  .section-head { margin-bottom: 2.25rem; }
  .card { padding: 1.6rem 1.4rem 1.4rem; }
  .card:hover { transform: none; box-shadow: none; }
  .coverage-list { padding: 1.5rem 1.25rem; }
  .towns { column-gap: 1.25rem; font-size: 1.05rem; }
  .quote-form { outline-offset: -6px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-contact { align-items: center; }
  .footer-base { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Hero fits the first screen ----------
   The black hero fills exactly one screen under the header (and above the
   mobile action bar), with everything sized off the viewport height. */

:root { --header-h: 72px; --mobile-bar-h: 0px; }

.hero {
  --horizon-h: clamp(64px, 14vh, 150px);
  min-height: calc(100vh - var(--header-h) - var(--mobile-bar-h));
  min-height: calc(100svh - var(--header-h) - var(--mobile-bar-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1rem, 3.5vh, 3rem) 0 calc(var(--horizon-h) + clamp(.5rem, 2.5vh, 2rem));
}
.hero-logo { width: clamp(80px, 19vh, 260px); margin-bottom: clamp(.5rem, 2vh, 1.75rem); }
.hero .eyebrow { margin-bottom: clamp(.35rem, 1.2vh, .75rem); }
.hero h1 { font-size: clamp(2rem, min(7vw, 7.6vh), 5rem); }
.hero-lede {
  margin: clamp(.6rem, 2vh, 1.5rem) auto clamp(.9rem, 3vh, 2.25rem);
  font-size: clamp(.98rem, min(1.8vw, 2.2vh), 1.25rem);
}
.hero-points { margin-top: clamp(.9rem, 3vh, 2.5rem); }

.horizon { height: var(--horizon-h); }
.pj-1 { width: calc(var(--horizon-h) * 1.45); }
.pj-2 { width: calc(var(--horizon-h) * 1.12); }
.pj-3 { width: calc(var(--horizon-h) * .72); }

@media (max-width: 640px) {
  :root { --mobile-bar-h: 68px; }
  .hero { --horizon-h: clamp(56px, 11vh, 100px); }
  .pj-1 { left: -10px; }
  .pj-2 { right: -6px; }

  /* Side-by-side buttons and a one-line highlight row save vertical space */
  .hero-ctas { flex-direction: row; gap: .6rem; }
  .hero-ctas .btn {
    flex: 1; width: auto; padding: .8rem .5rem;
    font-size: .95rem; letter-spacing: .08em;
  }
  .hero-points {
    flex-direction: row; flex-wrap: nowrap; justify-content: center;
    gap: .9rem; font-size: .7rem; letter-spacing: .1em;
  }
  .hero-points li::before { margin-right: .4em; }
}

@media (max-width: 640px) {
  .hero { padding-top: clamp(.75rem, 2.5vh, 2rem); }
  .hero-logo { width: clamp(76px, 16vh, 170px); }
  .hero-lede { font-size: .95rem; line-height: 1.55; }
  .lede-more { display: none; }
}
/* Short phones (e.g. iPhone SE): the bottom bar already has Call + Quote */
@media (max-width: 640px) and (max-height: 620px) {
  .hero-ctas { display: none; }
  .hero-lede { margin-bottom: 0; }
}
/* Short laptop screens */
@media (min-width: 641px) and (max-height: 640px) {
  .hero-logo { width: 15vh; }
  .hero-points { margin-top: .6rem; }
  .hero-lede { margin-bottom: .9rem; }
}
@media (min-width: 641px) and (max-height: 580px) {
  .hero-points { display: none; }
}

/* Keep header items on one line */
.brand-name, .brand-sub, .site-nav a { white-space: nowrap; }
