/* WhiteTail Towing — one-page site
   Palette built around the monochrome logo, with warm paper,
   night-black, and antique gold (antler / headlight). */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #141311;
  --ink-soft: #2C2A27;
  --paper: #F4F1EB;
  --paper-elevated: #FBFAF7;
  --rule: #E2DDD4;
  --stone: #5C5852;
  --gold: #C4A15A;
  --gold-hover: #B38D43;
  --gold-press: #9F7B38;
  --gold-soft: #EFE6D2;
  --gold-line: rgba(196, 161, 90, 0.45);
  --gold-ink: #6B5220;
  --night: #141614;
  --night-deep: #0C0D0C;
  --mist: #A8A39A;
  --white: #F8F6F2;
  --focus: #C4A15A;
  --header-h: 6.75rem;
  --mobile-bar-h: 4.75rem;
  --max: 70rem;
  --radius: 0.5rem;
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0.005em;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink-soft);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

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

@media (min-width: 720px) {
  .wrap {
    width: min(var(--max), calc(100% - 4rem));
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: rgba(20, 22, 20, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 0.55rem;
}

.site-header .logo-link {
  margin-right: auto;
}

.site-header nav {
  flex: 1 0 100%;
  order: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.45rem;
}

.nav-short { display: inline; }
.nav-full { display: none; }

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  outline-offset: 4px;
  min-height: 44px;
}

.logo-link img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  justify-content: space-between;
}

.nav-links li {
  flex: 1 1 0;
  min-width: 0;
}

.nav-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  width: 100%;
  padding: 0.25rem 0.35rem;
  text-align: center;
}

.nav-links a:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--gold);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
  min-height: 44px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--gold-hover);
  color: var(--ink);
  text-decoration: none;
}

.btn:active {
  background: var(--gold-press);
  transform: translateY(1px);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1.05rem 1.55rem;
  border-radius: 0.4375rem;
}

.btn-block {
  width: 100%;
}

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

.hero {
  position: relative;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  /* soft gold-warm glow, upper left, like a distant headlight */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(196, 161, 90, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(196, 161, 90, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  translate: 0 -50%;
  height: min(92%, 42rem);
  width: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: 4rem 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.section .eyebrow,
.why-num {
  color: var(--gold-ink);
}

.hero h1 {
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.15rem, 6.4vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
  color: var(--white);
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--mist);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.5rem;
}

.hero-note {
  margin: 0;
  color: var(--mist);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

/* ----- Shared sections ----- */

.section {
  padding-block: 4.25rem;
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.hero,
.cta-band {
  scroll-margin-top: var(--header-h);
}

.contact-form .btn {
  scroll-margin-bottom: calc(var(--mobile-bar-h) + 0.75rem);
}

@media (min-width: 720px) {
  .section {
    padding-block: 6rem;
  }
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .section-head {
    margin-bottom: 3.25rem;
  }
}

.section-head h2 {
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--stone);
  font-size: 1.0625rem;
}

/* ----- Services ----- */

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

@media (min-width: 800px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.service-card {
  background: var(--paper-elevated);
  border: 1px solid var(--rule);
  border-radius: 0.625rem;
  padding: 1rem 1rem 1.05rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.15rem;
  align-items: start;
  min-height: 100%;
}

.service-icon {
  grid-row: 1 / span 2;
  align-self: center;
}

.service-card h3,
.service-card p {
  grid-column: 2;
}

@media (min-width: 600px) {
  .service-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem 1rem 1.25rem;
  }

  .service-icon {
    grid-row: auto;
    align-self: auto;
  }

  .service-card h3,
  .service-card p {
    grid-column: auto;
  }
}

@media (min-width: 800px) {
  .service-card {
    padding: 1.5rem 1.35rem 1.55rem;
    gap: 0.85rem;
  }
}

.service-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.55rem;
  background: var(--gold-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.service-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.service-card h3 {
  margin: 0;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.service-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--stone);
}

@media (min-width: 800px) {
  .service-card h3 {
    font-size: 1.05rem;
  }

  .service-card p {
    font-size: 0.9375rem;
  }
}

/* ----- Why ----- */

.why {
  background: var(--paper-elevated);
  border-block: 1px solid var(--rule);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

@media (min-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.75rem;
  }
}

.why-item {
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.why-num {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}

.why-item p {
  margin: 0;
  color: var(--stone);
  font-size: 0.975rem;
  line-height: 1.55;
}

/* ----- Area ----- */

.area {
  background: var(--paper);
}

.towns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.towns li {
  background: var(--paper-elevated);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
}


/* ----- Contact ----- */

.contact {
  background: var(--paper-elevated);
  border-top: 1px solid var(--rule);
}

.contact-layout {
  display: grid;
  gap: 2.25rem;
}

.contact .section-head p a,
.form-note a {
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.18em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact .section-head p a:hover {
  color: var(--gold-press);
}

@media (min-width: 880px) {
  .contact-layout {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.15fr);
    gap: 4rem;
    align-items: start;
  }

  .contact .section-head {
    margin-bottom: 0;
    max-width: 28rem;
    padding-top: 0.35rem;
  }
}

.contact-form {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 1.25rem 1.15rem 1.35rem;
}

@media (min-width: 720px) {
  .contact-form {
    padding: 1.75rem 1.75rem 1.85rem;
  }
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-elevated);
  border: 1px solid #D4CFC6;
  border-radius: 0.375rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:hover,
.field textarea:hover {
  border-color: #C1B9AC;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 161, 90, 0.28);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8A857C;
}

.contact-form .btn {
  margin-top: 0.25rem;
  width: 100%;
}

@media (min-width: 600px) {
  .contact-form .btn {
    width: auto;
  }
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  color: var(--stone);
}

.form-note a {
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--gold);
}

.form-note a:hover {
  color: var(--gold-press);
}

/* Honeypot: visually hidden, but not display:none */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.form-errors {
  background: #F8EBE7;
  border: 1px solid #E4C4BB;
  color: #6F2A1E;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1.15rem;
  font-size: 0.9375rem;
}

.form-errors ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.form-errors li {
  margin: 0.15rem 0;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #B55242;
}

.thanks-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
}

.thanks-card h1 {
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.thanks-card p {
  margin: 0 0 1.5rem;
  color: var(--stone);
  font-size: 1.0625rem;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.thanks-actions a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--gold);
}

/* ----- CTA band ----- */


.cta-band {
  background: var(--night);
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(196, 161, 90, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cta-band .wrap {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .cta-band .wrap {
    padding-block: 5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}

.cta-copy h2 {
  font-family: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  text-wrap: balance;
  color: var(--white);
}

.cta-copy p {
  margin: 0;
  color: var(--mist);
  font-size: 1.0625rem;
}

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

.site-footer {
  background: var(--night-deep);
  color: var(--mist);
  padding: 2.5rem 0 calc(2.25rem + var(--mobile-bar-h));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 800px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand img {
  height: 2.5rem;
  width: auto;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.footer-meta a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-meta a:hover {
  color: var(--gold);
}

.copyright {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #A8A39A;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .footer-meta {
    text-align: right;
  }

  .copyright {
    margin: 0;
  }
}

/* ----- Mobile call bar ----- */

.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
}

.mobile-call-bar .btn {
  width: 100%;
}

@media (min-width: 800px) {
  :root {
    --header-h: 4.5rem;
  }

  .site-header .logo-link {
    margin-right: 0;
  }

  .site-header .wrap {
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding-top: 0;
    height: var(--header-h);
  }

  .site-header nav {
    flex: 0 0 auto;
    order: 0;
    border-top: 0;
    margin-top: 0;
  }

  .nav-links {
    gap: 1.75rem;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-links a {
    font-size: 0.9375rem;
    width: auto;
    padding: 0.25rem 0;
  }

  .nav-short { display: none; }
  .nav-full { display: inline; }

  .header-call {
    order: 2;
    margin-left: auto;
  }

  .logo-link img {
    height: 3rem;
  }

  .hero .wrap {
    padding-block: 5.5rem 6.5rem;
  }

  .mobile-call-bar {
    display: none;
  }
}

/* ----- Reduced motion / print ----- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

@media print {
  .site-header,
  .mobile-call-bar,
  .cta-band,
  .hero-actions,
  .hero-mark,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .why,
  .cta-band,
  .site-footer {
    background: #fff;
    color: #000;
    border: 0;
  }

  .hero h1,
  .cta-copy h2,
  .section-head h2 {
    color: #000;
  }

  a[href^="tel:"]::after {
    content: " " attr(href);
    font-size: 0.85em;
  }

  .site-footer {
    padding-bottom: 1rem;
  }
}
