/* Desert Medical Transport — modern homepage (from Divi export) */

:root {
  --color-bg: #f6f3ef;
  --color-surface: #ffffff;
  --color-ink: #1c2a30;
  --color-muted: #5c6d74;
  --color-accent: #88c4dd;
  --color-accent-deep: #4a8fb0;
  --color-cta: #c94a3c;
  --color-cta-hover: #b03d31;
  --color-border: rgba(28, 42, 48, 0.12);
  --color-field-border: rgba(28, 42, 48, 0.42);
  --color-field-border-hover: rgba(28, 42, 48, 0.55);
  --shadow-sm: 0 1px 2px rgba(28, 42, 48, 0.06);
  --shadow-md: 0 12px 40px rgba(28, 42, 48, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  /* System condensed sans — matches logo “MEDICAL TRANSPORT” feel; webfonts rarely ship Franklin. */
  --font-hero-title:
    "Franklin Gothic Demi Condensed", "Franklin Gothic Demi Cond", "Franklin Gothic Medium Condensed",
    "Franklin Gothic Medium Cond", "Roboto Condensed", "Arial Narrow", "Helvetica Neue Condensed Bold",
    "Nimbus Sans Narrow", Impact, "Helvetica Neue", system-ui, sans-serif;
  --space-section: clamp(1.35rem, 3vw, 2.35rem);
  --container: min(1120px, 100% - 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--color-ink);
  color: var(--color-surface);
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.tm {
  font-size: 0.45em;
  font-weight: 600;
  vertical-align: super;
  margin-left: 0.06em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--color-accent-deep);
}

.logo-mark {
  flex-shrink: 0;
  width: auto;
  height: clamp(48px, 10vw, 62px);
  max-height: 64px;
  max-width: min(280px, 56vw);
  border-radius: 6px;
  object-fit: contain;
  object-position: left center;
  box-shadow: 0 1px 3px rgba(28, 42, 48, 0.1);
}

.logo-text {
  min-width: 0;
  line-height: 1.15;
}

@media (max-width: 26rem) {
  .logo-mark {
    height: 44px;
    max-height: 50px;
    max-width: min(220px, 50vw);
  }

  .logo {
    font-size: 1.02rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav a {
  color: var(--color-muted);
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .btn:active {
    transform: translateY(0);
    transition-duration: 0.08s;
  }
}

.btn-header {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-header:hover {
  border-color: var(--color-accent-deep);
  color: var(--color-accent-deep);
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
  box-shadow: 0 4px 14px rgba(201, 74, 60, 0.35);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #fff;
  box-shadow: 0 6px 22px rgba(201, 74, 60, 0.45);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn-ghost-muted {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.btn-ghost-muted:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-quote {
  background: linear-gradient(165deg, #fffef9 0%, #f2e8d4 55%, #e8dcc4 100%);
  color: var(--color-ink);
  border: 2px solid var(--color-accent);
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 4px 18px rgba(0, 0, 0, 0.22),
    0 0 32px rgba(136, 196, 221, 0.45);
}

.btn-quote:hover {
  background: #fffef9;
  color: var(--color-ink);
  border-color: #b0daf0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 0 40px rgba(136, 196, 221, 0.55);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

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

@media (max-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo phone"
      "nav nav";
  }

  .logo {
    grid-area: logo;
  }

  .btn-header {
    grid-area: phone;
    font-size: 0.85rem;
    padding-inline: 0.9rem;
  }

  .nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.2rem;
    margin-inline: calc(-0.5 * (100vw - 100%));
    padding-inline: calc(0.5 * (100vw - 100%));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }

  .nav a {
    flex-shrink: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(280px, 48svh, 460px);
  display: flex;
  align-items: center;
  background-color: #6b7c82;
  background-image: linear-gradient(
      105deg,
      rgba(28, 42, 48, 0.75) 0%,
      rgba(28, 42, 48, 0.45) 45%,
      rgba(28, 42, 48, 0.35) 100%
    ),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(46rem, 100%);
  padding-block: clamp(1.75rem, 5vw, 2.75rem);
}

.page-home .hero-content {
  max-width: min(68rem, 100%);
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-hero-title);
  font-size: clamp(2.05rem, 3.85vw + 0.9rem, 4.7rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.028em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: proportional-nums;
  color: #fff;
  -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.3);
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.5);
}

.hero-title-text {
  display: inline;
  white-space: nowrap;
  max-width: none;
}

.hero-title .tm {
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
}

@media (max-width: 26rem) {
  .hero-title {
    font-size: clamp(1.18rem, 4.15vw + 0.26rem, 1.52rem);
    line-height: 1.06;
    letter-spacing: 0.015em;
  }
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-accent);
  max-width: 36ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Subpage hero (vehicles, etc.) */
.subpage-hero {
  position: relative;
  min-height: clamp(240px, 42svh, 400px);
  display: flex;
  align-items: center;
  background-color: #5a656b;
  background-image: linear-gradient(
      105deg,
      rgba(28, 42, 48, 0.78) 0%,
      rgba(28, 42, 48, 0.5) 50%,
      rgba(28, 42, 48, 0.4) 100%
    ),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.subpage-hero__inner {
  position: relative;
  z-index: 1;
  max-width: min(48rem, 100%);
  padding-block: clamp(1.75rem, 5vw, 2.5rem);
}

.subpage-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.subpage-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-hero-title);
  font-size: clamp(1.95rem, 3.8vw + 0.65rem, 3.35rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.032em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.subpage-hero__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.subpage-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav a[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 0 0 var(--color-accent-deep);
}

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

/* Trust strip */
.trust {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: 0.65rem;
}

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
}

.trust-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(136, 196, 221, 0.2);
  color: var(--color-accent-deep);
}

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

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

/* Sections */
.section {
  padding-block: var(--space-section);
}

.section-alt {
  background: var(--color-surface);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.section-more {
  margin: 0.9rem 0 0;
  font-size: 0.98rem;
  color: var(--color-muted);
  max-width: 42rem;
}

.section-more a {
  font-weight: 600;
}

.section-more--tight {
  margin-top: 0.75rem !important;
}

.services-bridge {
  margin-top: 1.1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.services-bridge img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(150px, 22vw, 260px);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 480px) {
  .services-bridge img {
    max-height: min(140px, 38vw);
  }
}

@media (min-width: 1024px) {
  .services-bridge img {
    max-height: min(340px, 38vh);
  }
}

.phone-callout {
  text-align: center;
  padding: clamp(1.35rem, 4vw, 2rem) 1.25rem;
  background: linear-gradient(135deg, rgba(136, 196, 221, 0.22), rgba(74, 143, 176, 0.12));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.phone-callout-label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
}

.phone-callout-number {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.phone-callout-number:hover {
  color: var(--color-accent-deep);
}

.media-band {
  margin: 0 auto;
  max-width: 56rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.media-band img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: cover;
  object-position: center;
}

#top,
#trust,
#services,
#about,
#vehicles,
#testimonials,
#pricing,
#contact,
#overview,
#capability,
#comfort,
#safety,
#mission,
#callout,
#why-dmt,
#drivers,
#fleet-note,
#quotes {
  scroll-margin-top: 5.5rem;
}

.narrow-prose {
  max-width: 40rem;
  margin-inline: auto;
}

.narrow-prose p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.prose-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-ink);
}

.prose-lead {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  color: var(--color-ink);
  line-height: 1.55;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .service-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(136, 196, 221, 0.45);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(136, 196, 221, 0.18);
  color: var(--color-accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Service strip from provided artwork (4 icons in one PNG) */
.card-icon--sprite {
  flex-shrink: 0;
  padding: 0;
  background-color: #dbeafe;
  background-image: url("assets/service-icons.png");
  background-repeat: no-repeat;
  background-size: 400% 100%;
  background-position-y: 50%;
}

.card-icon--sprite.card-icon--wheelchair {
  background-position-x: 0%;
}

.card-icon--sprite.card-icon--ambulatory {
  background-position-x: 33.333%;
}

.card-icon--sprite.card-icon--stretcher {
  background-position-x: 66.666%;
}

.card-icon--sprite.card-icon--distance {
  background-position-x: 100%;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card-text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Homepage: center service cards + clean icon presentation */
#services .card {
  text-align: center;
}

#services .card-icon {
  margin-inline: auto;
}

#services .card-text {
  margin-inline: auto;
}

.card-icon-img {
  display: block;
  margin: 0 auto 0.7rem;
  width: auto;
  height: auto;
  max-width: none;
}

/* Split */
.split-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .split-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.split-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.split-copy p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(136, 196, 221, 0.35);
}

.split-media {
  order: -1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.split-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.vehicle-comfort-media {
  order: 0;
  grid-column: 1 / -1;
  max-width: min(43.5rem, 100%);
  margin-inline: auto;
}

.vehicle-comfort-media__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.vehicle-comfort-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Vehicles excerpt */
.vehicles-list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  max-width: 42rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.vehicles-list li {
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.testimonial {
  margin: 0;
  padding: 1.35rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid rgba(74, 143, 176, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .testimonial:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 143, 176, 0.6);
    box-shadow: 0 14px 32px rgba(28, 42, 48, 0.16);
  }
}

.testimonial blockquote {
  margin: 0 0 1rem;
  padding: 0;
}

.testimonial blockquote p {
  margin: 0;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--color-ink);
  line-height: 1.55;
}

.testimonial blockquote p::before {
  content: "“";
  color: var(--color-accent-deep);
  font-size: 1.5rem;
  line-height: 0;
  margin-right: 0.1em;
  font-style: normal;
}

.testimonial figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* Pricing strip */
.pricing-inner {
  max-width: 44rem;
}

.pricing-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pricing-copy p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* CTA band */
.cta-band {
  padding-block: clamp(2.75rem, 6vw, 4rem);
  background: linear-gradient(135deg, #2d3e45 0%, #1c2a30 100%);
  color: #e8eef0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: #fff;
}

.cta-lead {
  margin: 0;
  max-width: 36rem;
  opacity: 0.92;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Contact — split layout (hybrid: form here, pricing form on WP) */
.contact-shell {
  max-width: 1080px;
  margin-inline: auto;
}

.contact-layout {
  display: grid;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .contact-layout {
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 1.35fr);
    gap: 3rem;
  }
}

.contact-aside h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-lead {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.contact-phone {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.45rem 0.85rem;
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  text-decoration: none;
  background: linear-gradient(180deg, #fff 0%, #f4f1ec 100%);
  border: 2px solid var(--color-field-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-phone:hover {
  color: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
}

.contact-email {
  font-weight: 600;
  text-decoration: none;
}

.contact-form-wrap {
  min-width: 0;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-md);
}

.form-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hp-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-grid {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: 1fr 1fr;
}

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

  .field-span-2 {
    grid-column: auto;
  }
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}

.req {
  color: var(--color-cta);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--color-field-border);
  border-radius: 10px;
  background: #faf9f7;
  color: var(--color-ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field select {
  cursor: pointer;
  appearance: auto;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-accent-deep);
  box-shadow: 0 0 0 3px rgba(74, 143, 176, 0.35);
  background: var(--color-surface);
}

.field input:hover:not(:focus),
.field textarea:hover:not(:focus),
.field select:hover:not(:focus) {
  border-color: var(--color-field-border-hover);
}

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

.field-checkbox {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--color-accent-deep);
}

.checkbox-label a {
  font-weight: 600;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-actions .btn {
  min-width: 10rem;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status--success {
  color: #1d6b45;
}

.form-status--error {
  color: var(--color-cta);
}

.form-status--pending {
  color: var(--color-muted);
}

.submit-success-modal[hidden] {
  display: none;
}

.submit-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.submit-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.submit-success-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(34rem, calc(100% - 2rem));
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
}

.submit-success-modal__dialog h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--color-ink);
}

.submit-success-modal__message {
  margin: 0 0 1rem;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  font-weight: 600;
  color: #1d6b45;
}

.submit-success-modal__close {
  min-width: 8rem;
}

/* Footer */
.site-footer {
  padding-block: 2.5rem 1.5rem;
  background: #eae6e0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .footer-inner {
    grid-template-columns: minmax(11rem, 1fr) minmax(16rem, 2fr) auto;
    align-items: start;
  }
}

.footer-nav-wrap {
  min-width: 0;
}

.footer-nav-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.footer-nav-label:not(:first-child) {
  margin-top: 1rem;
}

.footer-nav,
.footer-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-pages {
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a,
.footer-pages a {
  color: var(--color-ink);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-pages a:hover {
  color: var(--color-accent-deep);
}

.footer-note {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.footer-note a {
  font-weight: 600;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
}

.footer-contact a {
  text-decoration: none;
  color: var(--color-ink);
}

.footer-contact a:hover {
  color: var(--color-accent-deep);
}

.footer-phone {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.15rem;
  padding: 0.5rem 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 2px solid var(--color-field-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.footer-phone:hover {
  color: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
}

.footer-legal {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.footer-legal p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-policies {
  margin-bottom: 0.5rem !important;
}

.footer-policies a {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
}
