/* ==========================================================================
   Rapid Recovery & Towing — styles.css
   Mobile-first. Plain CSS. Premium, calm, near-black luxury with warm accent.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --bg:        #0e0f10;        /* near-black ink */
  --bg-2:      #141517;        /* elevated surface */
  --bg-3:      #181a1d;        /* card surface */
  --text:      #ececea;        /* primary text */
  --text-mute: #9a9a93;        /* secondary text */
  --accent:    #c9a46a;        /* warm muted gold */
  --accent-2:  #dcbc88;        /* light gold */
  --line:      rgba(236, 236, 234, 0.08); /* ~8% borders */
  --line-2:    rgba(236, 236, 234, 0.14);
  --danger:    #c46b5a;

  /* Spacing (8px system) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows (subtle only) */
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;

  /* Layout */
  --container: 1200px;
  --container-wide: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: clamp(15px, 0.95rem + 0.2vw, 17px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

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

::selection { background: var(--accent); color: #111; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

h1 { line-height: 1.08; }
h2 { line-height: 1.15; }
h3 { line-height: 1.3; }

p { margin: 0; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 var(--s-3);
  font-weight: 500;
}

em { font-style: italic; color: var(--accent-2); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

.section {
  padding: var(--s-8) 0;
}

.section--about,
.section--testimonials {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 680px;
  margin: 0 0 var(--s-7);
}

.section__title {
  font-size: clamp(28px, 4vw + 0.5rem, 48px);
  margin-bottom: var(--s-3);
}

.section__lede {
  color: var(--text-mute);
  font-size: clamp(15px, 0.95rem + 0.2vw, 17px);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #141413;
}
.btn--primary:hover { background: var(--accent-2); }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent-2); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  padding: 0 var(--s-3);
}
.btn--ghost:hover { color: var(--accent-2); }

.btn--block { width: 100%; }

.btn .icon { width: 18px; height: 18px; }

/* ---------- Icons ---------- */
.icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Top bar ---------- */
.topbar {
  background: #0a0b0c;
  border-bottom: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 12.5px;
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-2) var(--s-4);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.topbar__link { color: var(--text); }
.topbar__link:hover { color: var(--accent-2); }
.topbar__sep {
  width: 1px; height: 12px;
  background: var(--line-2);
  display: none;
}

@media (min-width: 768px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__sep { display: inline-block; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 16, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 72px;
  padding-top: var(--s-2);
  padding-bottom: var(--s-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  min-width: 0;
  flex: 1 1 auto;
}
.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: #fff;
  padding: 3px;
}
.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Mobile nav (slide-down) */
.nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) var(--s-4) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  z-index: 40;
  overflow-x: hidden;
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 240ms var(--ease),
    opacity 240ms var(--ease),
    visibility 0s linear 240ms;
}
.nav.is-open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 240ms var(--ease),
    opacity 240ms var(--ease),
    visibility 0s linear 0s;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.nav__link {
  display: block;
  padding: var(--s-3) 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}
.nav__link:hover { color: var(--accent-2); }

.nav__cta {
  display: none;
  align-self: flex-start;
  margin-top: var(--s-2);
}

.menu-toggle {
  display: inline-flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 0 10px;
  transition: border-color var(--dur) var(--ease);
}
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle__bar {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1023px) {
  html {
    overflow-x: hidden;
  }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
    transition: none;
    background: transparent;
    border: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--s-5);
    flex: 0 0 auto;
  }
  .nav__list { flex-direction: row; gap: var(--s-5); }
  .nav__link {
    padding: 0;
    border: 0;
    font-size: 14.5px;
    color: var(--text-mute);
    min-height: 0;
  }
  .nav__link:hover { color: var(--text); }
  .nav__cta {
    display: inline-flex;
    margin-top: 0;
  }
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 15, 16, 0.55) 0%, rgba(14, 15, 16, 0.4) 40%, rgba(14, 15, 16, 0.95) 100%),
    linear-gradient(90deg, rgba(14, 15, 16, 0.7) 0%, rgba(14, 15, 16, 0.2) 60%);
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
}

/* Mobile: slightly above center (tuned from user feedback) */
@media (max-width: 767px) {
  .hero__inner {
    transform: translateY(calc(-1 * min(11vh, 88px)));
  }
}

.hero__layout {
  display: grid;
  gap: var(--s-5);
}

.hero__copy {
  min-width: 0;
}

.hero__card {
  display: none;
  align-self: stretch;
  background: rgba(24, 26, 29, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: var(--s-3);
}

@media (min-width: 768px) {
  .hero__card {
    display: flex;
  }
}
.hero__card-kicker {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
}
.hero__card-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 1rem + 1vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}
.hero__card-phone {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 2vw + 1rem, 32px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  margin-top: var(--s-1);
}
.hero__card-phone:hover { color: var(--text); }
.hero__card-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
}
.hero__card-list {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--text-mute);
}
.hero__card-list li {
  position: relative;
  padding-left: var(--s-4);
}
.hero__card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.65;
}

@media (min-width: 768px) {
  .hero {
    min-height: 88vh;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .hero__inner {
    padding-top: var(--s-8);
    padding-bottom: var(--s-7);
    transform: none;
  }
}

@media (min-width: 1024px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    align-items: end;
    column-gap: var(--s-7);
    row-gap: var(--s-6);
  }
  .hero__card {
    align-self: end;
  }
  .hero__trust {
    grid-column: 1 / -1;
  }
}

.hero__title {
  font-size: clamp(36px, 6vw + 0.5rem, 72px);
  max-width: 16ch;
  margin-bottom: var(--s-4);
}

.hero__lede {
  color: var(--text-mute);
  font-size: clamp(16px, 0.95rem + 0.3vw, 18px);
  max-width: 52ch;
  margin-bottom: var(--s-5);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.hero__trust {
  list-style: none;
  margin: 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.hero__trust li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__trust-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2vw + 1rem, 28px);
  color: var(--text);
}
.hero__trust-value span { color: var(--accent); margin-left: 4px; }
.hero__trust-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Carousel (shared mobile behavior) ---------- */
.carousel {
  position: relative;
}

.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0 var(--s-4) var(--s-3);
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--s-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(var(--s-4) * -1); /* bleed to edges on mobile */
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track > * {
  flex: 0 0 86vw;
  max-width: 420px;
  scroll-snap-align: start;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line-2);
  border: 0;
  padding: 0;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}
.carousel__dot:focus-visible { outline-offset: 4px; }

/* ---------- Services ---------- */
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(201, 164, 106, 0.08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card__title {
  font-size: 20px;
}
.service-card__text {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
    overflow: visible;
    padding: 0;
    margin: 0;
    scroll-snap-type: none;
  }
  .services__grid > * { flex: initial; max-width: none; }
  .section--services .carousel__dots { display: none; }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-4);
  }
}

/* ---------- About ---------- */
.about {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.about__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__text { display: flex; flex-direction: column; gap: var(--s-3); }
.about__para {
  color: var(--text-mute);
  max-width: 58ch;
  margin-bottom: var(--s-2);
}

.stats {
  list-style: none;
  margin: var(--s-4) 0 var(--s-4);
  padding: var(--s-4) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 1rem + 1vw, 26px);
}
.stat__value span { color: var(--accent); margin-left: 3px; }
.stat__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.about__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

@media (min-width: 1024px) {
  .about {
    flex-direction: row;
    align-items: center;
    gap: var(--s-8);
  }
  .about__media { flex: 0 0 44%; aspect-ratio: 4 / 5; }
  .about__text { flex: 1; }
}

/* ---------- Work / Gallery (uniform grid — organized rows) ---------- */
.section--work .section__head {
  margin-bottom: var(--s-6);
}

.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  align-items: stretch;
}

.work-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  position: relative;
  background: var(--bg-3);
  min-height: 0;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.work-card:hover img { transform: scale(1.03); }

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-4);
  }

  .work-card {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  .work-grid {
    gap: var(--s-5);
  }
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 100%;
}
.quote-card__stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 15px;
}
.quote-card__text {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(17px, 0.9rem + 0.4vw, 20px);
  line-height: 1.5;
  margin: 0;
  color: var(--text);
}
.quote-card__meta {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quote-card__name { font-weight: 500; }
.quote-card__source {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

@media (min-width: 768px) {
  .testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-4);
    overflow: visible;
    padding: 0;
    margin: 0;
    scroll-snap-type: none;
  }
  .testimonials__grid > * { flex: initial; max-width: none; }
  .section--testimonials .carousel__dots { display: none; }
}

@media (min-width: 1024px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.contact__lede { color: var(--text-mute); margin-bottom: var(--s-3); max-width: 52ch; }

.contact__list {
  list-style: none;
  margin: var(--s-3) 0 var(--s-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.contact__item {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact__item:last-child { border-bottom: 1px solid var(--line); }
.contact__label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact__value { color: var(--text); font-size: 16px; }
a.contact__value:hover { color: var(--accent-2); }

.contact__cta { align-self: flex-start; }

.contact__form {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.contact__form-title {
  font-size: 22px;
  margin-bottom: var(--s-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input,
.field select,
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--text);
  padding: 14px 14px;
  font: inherit;
  min-height: 48px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #1c1e21;
}
.field-row { display: flex; flex-direction: column; gap: var(--s-3); }
.field__note {
  font-size: 12.5px;
  color: var(--text-mute);
  margin-top: var(--s-1);
}

@media (min-width: 768px) {
  .field-row { flex-direction: row; }
  .field-row .field { flex: 1; }
}

@media (min-width: 1024px) {
  .contact {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--s-8);
  }
  .contact__info { flex: 1; }
  .contact__form { flex: 1; padding: var(--s-6); }
}

/* ---------- Footer ---------- */
.footer {
  background: #080808;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  padding-top: var(--s-8);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-bottom: var(--s-7);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  max-width: 38ch;
  padding-bottom: var(--s-6);
}

.footer__brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.footer__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 4px;
}

.footer__brand-name {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 2vw + 0.5rem, 22px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
}

.footer__tagline {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mute);
  max-width: 36ch;
  margin-inline: auto;
}

.footer__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__section-label {
  margin: 0 0 var(--s-4);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a7a74;
}

.footer__nav {
  width: 100%;
  max-width: 20rem;
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
}

.footer__nav li {
  text-align: center;
  width: 100%;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--s-2) var(--s-3);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.footer__nav a:hover { color: var(--accent-2); }

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  max-width: 22rem;
}

.footer__phone {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.footer__phone:hover { color: var(--accent-2); }

.footer__address {
  font-style: normal;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.footer__address-line {
  display: block;
}

.footer__base {
  border-top: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.footer__base-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
  font-size: 12.5px;
  color: var(--text-mute);
}

@media (min-width: 768px) {
  .footer {
    background: #0a0b0c;
    padding-top: var(--s-7);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: var(--s-6);
    padding-bottom: var(--s-6);
  }

  .footer__brand {
    align-items: flex-start;
    text-align: left;
    max-width: none;
    flex: 1 1 34%;
    min-width: 0;
    padding-bottom: 0;
  }

  .footer__brand-row {
    justify-content: flex-start;
  }

  .footer__brand-name {
    text-align: left;
  }

  .footer__tagline {
    margin-inline: 0;
    max-width: 42ch;
    font-size: 14px;
  }

  .footer__block {
    align-items: flex-start;
    width: auto;
    padding-top: 0;
    border-top: 0;
    flex: 0 0 auto;
  }

  .footer__block--links {
    flex: 0 0 auto;
  }

  .footer__block--contact {
    flex: 0 0 auto;
    max-width: 16rem;
  }

  .footer__section-label {
    margin-bottom: var(--s-3);
    letter-spacing: 0.18em;
  }

  .footer__nav {
    max-width: none;
  }

  .footer__nav ul {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0;
  }

  .footer__nav li {
    text-align: left;
    width: auto;
  }

  .footer__nav a {
    display: inline-block;
    min-height: 44px;
    padding: var(--s-2) 0;
    font-size: 14px;
    font-weight: 500;
  }

  .footer__contact {
    align-items: flex-start;
    text-align: left;
    max-width: none;
  }

  .footer__phone {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .footer__address {
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-mute);
  }

  .footer__base {
    padding: var(--s-4) 0;
  }

  .footer__base-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: var(--s-2);
  }
}

/* ---------- Reveal on scroll (subtle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
