/* AutoPrime — premium STO */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --bg-card: #161618;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f2ef;
  --text-muted: #9a9690;
  --accent: #c9a962;
  --accent-light: #e8d5a3;
  --accent-glow: rgba(201, 169, 98, 0.25);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container-pad: clamp(1rem, 4vw, 1.5rem);
  --section-pad-y: clamp(3.5rem, 8vw, 6rem);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --nav-height: 4.5rem;
  --touch-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--safe-top) + 0.5rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, calc(100% - 2 * var(--container-pad)));
  max-width: 100%;
  margin-inline: auto;
  padding-left: max(var(--container-pad), var(--safe-left));
  padding-right: max(var(--container-pad), var(--safe-right));
}

.nav.container {
  width: min(1140px, 100%);
  max-width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #a88b4a 100%);
  color: #0a0a0b;
  border-color: var(--accent);
}

@media (hover: hover) {
  .btn-primary:hover {
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-2px);
  }
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-full {
  width: 100%;
}

/* Header & Nav */
.header {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: calc(0.75rem + var(--safe-top));
  padding-bottom: 0.75rem;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-block: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 101;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 4px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent-light);
}

.nav-cta {
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.nav-links-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: var(--touch-min);
  height: var(--touch-min);
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a0a0b;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: none;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.75) 50%, rgba(10, 10, 11, 0.95) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.7) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--nav-height) + 4rem + var(--safe-top)) 0 calc(6.5rem + var(--safe-bottom));
  max-width: 820px;
}


.hero-label {
  display: inline-block;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--accent);
  max-width: 100%;
  line-height: 1.4;
}

@media (min-width: 480px) {
  .hero-label {
    letter-spacing: 0.2em;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.8vw, 4.7rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-desc {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: calc(1.5rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Stats */
.stats {
  position: relative;
  z-index: 3;
  margin-top: clamp(-2rem, -4vw, -3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.stat {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-elevated);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--accent-light);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sections */
.section {
  padding-block: var(--section-pad-y);
}


.section-dark {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 520px;
  font-weight: 300;
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head-center {
  text-align: center;
  margin-inline: auto;
}

.section-head-center .section-desc,
.contacts-disclaimer {
  margin-inline: auto;
}

/* Services */
#services .section-head {
  display: none;
}

.services-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  align-items: stretch;
}

.service-feature,
.service-direction {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-feature {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.12) 0%, rgba(10, 10, 11, 0.84) 72%),
    linear-gradient(135deg, rgba(201, 169, 98, 0.2), transparent 48%),
    url("after-repair.jpeg") center / cover;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.service-feature::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.service-feature-top {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1;
}

.service-kicker,
.service-number {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.service-feature h3 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.45rem);
  font-weight: 600;
  line-height: 0.98;
}

.service-feature p {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
}

.service-process {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-process span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding-inline: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 11, 0.54);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.service-feature-btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

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

.service-direction {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.45rem;
  border-radius: var(--radius);
}

.service-direction::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(201, 169, 98, 0.16);
  border-radius: 50%;
}

.service-direction h3 {
  margin-top: 1.15rem;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.service-direction p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.services-grid-legacy {
  display: none;
}

@media (hover: hover) {
  .service-feature:hover,
  .service-direction:hover {
    border-color: rgba(201, 169, 98, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.services-grid.services-grid-legacy {
  display: none;
}

.service-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

@media (hover: hover) {
  .service-card:hover {
    border-color: rgba(201, 169, 98, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

  .contact-card:hover {
    border-color: rgba(201, 169, 98, 0.25);
  }
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.service-price {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.about-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.about-frame {
  position: relative;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.about-accent {
  position: absolute;
  top: -1px;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.about-quote {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--accent-light);
}

/* Booking */
.booking-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.booking-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: var(--touch-min);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-row select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9690' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.booking-form .btn-primary {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.form-success {
  grid-column: 1 / -1;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--accent-light);
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 6px;
}

/* Before / After */
.before-after-section {
  background:
    radial-gradient(circle at 18% 10%, rgba(201, 169, 98, 0.12), transparent 34%),
    linear-gradient(180deg, #0d0d0f 0%, var(--bg) 100%);
}

.before-after {
  --split: 50%;
  --split-num: 0.5;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #09090a;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}

.before-after::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.12), transparent 35%, rgba(10, 10, 11, 0.18)),
    linear-gradient(90deg, rgba(10, 10, 11, 0.28), transparent 28%, transparent 72%, rgba(10, 10, 11, 0.26));
}

.before-after-img,
.before-after-before {
  position: absolute;
  inset: 0;
}

.before-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.before-after-before {
  z-index: 2;
  width: var(--split);
  overflow: hidden;
}

.before-after-before .before-after-img {
  width: calc(100% / var(--split-num));
  max-width: none;
}

.before-after-badge {
  position: absolute;
  top: 1rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.68);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.before-badge {
  left: 1rem;
}

.after-badge {
  right: 1rem;
}

.before-after-range {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 7;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(10, 10, 11, 0.18), 0 0 28px rgba(232, 213, 163, 0.35);
  pointer-events: none;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--bg);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
}

.before-after-handle svg {
  width: 28px;
  height: 28px;
}

/* Contacts */
.section-contacts {
  padding-bottom: 5rem;
}

.contacts-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 0.75rem;
  font-style: italic;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.contact-card a {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
  .contact-card a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding-block: 0.2rem;
  }
}

@media (hover: hover) {
  .contact-card a:hover {
    color: var(--accent-light);
  }
}

/* Footer */
.footer {
  padding: 2rem 0 calc(2rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-footer .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ——— Tablet landscape / small laptop ——— */
@media (max-width: 1100px) {
  .nav-links {
    gap: 1.5rem;
  }

  .hero-content {
    max-width: 760px;
    padding-top: calc(var(--nav-height) + 3.5rem + var(--safe-top));
    padding-bottom: calc(5.5rem + var(--safe-bottom));
  }

  .hero-title {
    font-size: clamp(3.1rem, 7vw, 4.25rem);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* ——— Tablet ——— */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links-cta {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .nav-links-cta .btn {
    width: 100%;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, calc(100vw - var(--safe-left) - 3rem));
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(4.5rem + var(--safe-top)) calc(1.5rem + var(--safe-right)) calc(1.5rem + var(--safe-bottom)) calc(1.5rem + var(--safe-left));
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: var(--touch-min);
    width: 100%;
    font-size: 0.9rem;
    padding-block: 0.25rem;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0.85) 55%, rgba(10, 10, 11, 0.97) 100%);
  }

  .hero-content {
    max-width: 680px;
    padding-top: calc(var(--nav-height) + 3rem + var(--safe-top));
    padding-bottom: calc(5rem + var(--safe-bottom));
  }

  .hero-title {
    font-size: clamp(2.75rem, 8vw, 3.8rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 1.5rem 1rem;
  }

  .services-showcase {
    grid-template-columns: 1fr;
  }

  .service-feature {
    min-height: 440px;
  }

  .about-grid,
  .booking-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual {
    order: -1;
  }

  .about-frame {
    padding: 2rem 1.5rem;
  }

  .about-quote {
    font-size: clamp(1.25rem, 4vw, 1.65rem);
  }

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    margin-bottom: 2.5rem;
  }
}

/* ——— Large phones ——— */
@media (max-width: 600px) {
  :root {
    --nav-height: 4rem;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .hero-scroll {
    display: none;
  }

  .hero {
    align-items: center;
  }

  .hero-content {
    width: min(100% - 1.5rem, 560px);
    padding: calc(var(--nav-height) + 2.25rem + var(--safe-top)) 1rem calc(3.5rem + var(--safe-bottom));
  }

  .hero-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
  }

  .hero-title {
    font-size: clamp(2.15rem, 12vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: 0;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.45rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.78rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.035em;
  }

  .stats {
    margin-top: -1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
  }

  .stat {
    padding: 1.25rem 0.75rem;
  }

  .stat-label {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .services-grid:not(.services-grid-legacy) {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  .service-feature {
    min-height: 430px;
    padding: 1.5rem;
    border-radius: var(--radius);
  }

  .service-feature::before {
    inset: 0.75rem;
  }

  .service-feature-top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .service-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-feature-btn {
    width: 100%;
  }

  .service-directions {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .service-direction {
    min-height: auto;
    padding: 1.25rem;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1rem;
  }

  .before-after {
    min-height: 260px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
  }

  .before-after-badge {
    top: 0.75rem;
    min-height: 30px;
    padding-inline: 0.7rem;
    font-size: 0.68rem;
  }

  .before-badge {
    left: 0.75rem;
  }

  .after-badge {
    right: 0.75rem;
  }

  .before-after-handle {
    width: 48px;
    height: 48px;
  }

  .before-after-handle svg {
    width: 24px;
    height: 24px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.5rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* ——— Small phones ——— */
@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title br {
    display: none;
  }
}

/* ——— Landscape phones ——— */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .header,
  .hero {
    min-height: auto;
  }

  .hero {
    padding-block: calc(var(--nav-height) + 1rem);
  }

  .hero-content {
    padding-top: calc(var(--nav-height) + 1rem);
    padding-bottom: 2rem;
  }

  .hero-scroll {
    display: none;
  }

  .stats {
    margin-top: 0;
  }
}

/* ——— Large desktops ——— */
@media (min-width: 1400px) {
  .container {
    width: min(1200px, 100% - var(--container-pad) * 2);
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-scroll-line {
    animation: none;
  }
}
