/* Enhanced Auto Lab — Pure-inspired design system */

:root {
  --bg: #0c0c0c;
  --bg-elevated: #141414;
  --bg-muted: #1a1a1a;
  --bg-card: #181818;
  --border: #2e2e2e;
  --text: #f0f0f0;
  --text-muted: #9a9a9a;
  --text-subtle: #6e6e6e;
  --mid-gray: #888888;
  --charcoal: #d4d4d4;
  --accent: #f5a623;
  --accent-dark: #e09515;
  --deep: #000000;
  --on-media: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 72px;
  --nav-h-hero: 100px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: clip;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---- Layout ---- */
.container {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.section { padding: 5rem 0; }
.section--gray { background: var(--bg-muted); }
.section--dark { background: var(--deep); color: var(--on-media); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.eyebrow--light { color: rgba(255,255,255,0.6); }

.title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.title--lg {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
}

.lead--light { color: rgba(255,255,255,0.72); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn--black {
  background: var(--accent);
  color: var(--deep);
}

.btn--black:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--glass {
  background: rgba(0,0,0,0.45);
  color: var(--on-media);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn--glass:hover {
  background: rgba(0,0,0,0.65);
  border-color: rgba(255,255,255,0.45);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--outline-light {
  background: transparent;
  color: var(--on-media);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn--outline-light:hover {
  background: var(--on-media);
  color: var(--deep);
}

.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  font-size: 0.65rem;
}

.btn--black .btn__arrow { background: rgba(0,0,0,0.15); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav--solid {
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.nav--solid .nav__link { color: var(--text); opacity: 0.7; }
.nav--solid .nav__link:hover,
.nav--solid .nav__link.active { opacity: 1; }
.nav--solid .nav__toggle span { background: var(--text); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.nav--hero {
  height: auto;
  min-height: var(--nav-h-hero);
  padding: 1.25rem 0;
}

.nav--hero .nav__inner {
  align-items: center;
}

.nav__logo img {
  height: 48px;
  width: auto;
  transition: height 0.35s var(--ease);
}

.nav--hero .nav__logo img {
  height: clamp(64px, 10vw, 80px);
  filter: none;
}

.nav--solid .nav__logo img {
  height: 48px;
}

.nav__logo--dark { filter: none; }

.nav--hero .nav__logo--dark { filter: none; }

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

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-media);
  opacity: 0.85;
  transition: opacity 0.25s;
}

.nav__link:hover,
.nav__link.active { opacity: 1; }

.nav__link.active { text-decoration: underline; text-underline-offset: 6px; }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  overflow: visible;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--on-media);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center center;
}

.nav--solid .nav__toggle { background: rgba(255,255,255,0.1); }

.nav__toggle.open {
  gap: 0;
}

.nav__toggle.open span:nth-child(1),
.nav__toggle.open span:nth-child(3) {
  position: absolute;
  top: 50%;
  left: 50%;
}

.nav__toggle.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav .nav__toggle {
  z-index: 1001;
}

.nav .nav__toggle.open {
  background: var(--bg-muted);
}

.nav .nav__toggle.open span {
  background: var(--text);
}

body.nav-open .nav--hero {
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.nav-open .nav {
  overflow: visible;
}

.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 100%;
  max-width: 100%;
  z-index: 999;
  background: var(--bg-elevated);
  padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
  pointer-events: none;
}

.nav__drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.nav__drawer a:not(.btn) {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.nav__drawer a.btn {
  margin-top: 1.5rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border-bottom: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

/* ---- Hero (Pure-style) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  pointer-events: none;
  filter: brightness(0.72);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.6) 0%,
      rgba(0,0,0,0.5) 40%,
      rgba(0,0,0,0.72) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 8rem;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
}

.hero__headline {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--on-media);
  max-width: 900px;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.hero__or {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--on-media);
}

.hero-bar {
  position: relative;
  z-index: 2;
  background: var(--deep);
  color: var(--on-media);
  padding: 0.85rem 0;
  overflow: hidden;
}

.hero-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-bar__inner > span {
  max-width: 100%;
  text-wrap: balance;
}

.hero-bar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.25s;
  white-space: nowrap;
}

.hero-bar__link:hover { opacity: 1; }

/* ---- Marquee ---- */
.marquee {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
  padding: 0.75rem 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  animation: scroll 35s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee__track span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---- Showcase panels (Pure product style) ---- */
.showcase { background: var(--bg); }

.showcase-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 1000px;
}

.showcase-panel:nth-child(even) .showcase-panel__media { order: 2; }
.showcase-panel:nth-child(even) .showcase-panel__body { order: 1; }

.showcase-panel__media {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.showcase-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.showcase-panel:hover .showcase-panel__media img {
  transform: scale(1.04);
}

.showcase-panel__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bg-card);
}

.showcase-panel__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.showcase-panel__body h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.showcase-panel__subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1rem;
}

.showcase-panel__body p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 440px;
}

.showcase-panel__link {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap 0.25s;
}

.showcase-panel__link:hover { gap: 0.85rem; }

.showcase-panel__list {
  margin: 0;
  max-width: 440px;
}

.showcase-panel__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.showcase-panel__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--mid-gray);
}

.showcase-panel[id] {
  scroll-margin-top: 5rem;
}

.showcase--services .showcase-panel {
  height: 750px;
  min-height: 750px;
}

.showcase--services .showcase-panel__body {
  overflow-y: auto;
}

/* ---- Full bleed image cards ---- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--border);
}

.feature-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.feature-card:hover img { transform: scale(1.06); }

.feature-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  color: var(--on-media);
}

.feature-card__overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.feature-card__overlay p {
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* ---- Benefits ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.benefit {
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent);
}

.benefit h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.benefit p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.page-hero--service {
  position: relative;
  min-height: 420px;
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: none;
  background: var(--deep);
}

.page-hero--service::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 12, 12, 0.92) 0%, rgba(12, 12, 12, 0.45) 100%),
    var(--hero-poster, url("/images/gallery-1.jpg")) center center / cover no-repeat;
}

.page-hero--service .page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero--service .title,
.page-hero--service .lead,
.page-hero--service .eyebrow {
  color: var(--on-media);
}

a.feature-card {
  display: block;
  color: inherit;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.area-card {
  display: block;
  background: var(--bg-card);
  padding: 1.75rem 1.5rem;
  color: inherit;
  transition: background 0.2s var(--ease);
}

.area-card:hover {
  background: var(--bg-muted);
}

.area-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.area-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.area-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.area-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.area-link {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.area-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

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

/* ---- Page header ---- */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.page-hero .title { max-width: 800px; }
.page-hero .lead { margin-top: 1rem; }

.page-hero--cinematic {
  position: relative;
  min-height: min(88vh, 820px);
  padding: calc(var(--nav-h) + 2.5rem) 1.5rem 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-bottom: none;
  background: var(--deep);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  background: var(--deep);
}

.page-hero__media img,
.page-hero__media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-hero__media img {
  transform: scale(1);
  animation: page-hero-ken-burns 20s ease-out forwards;
}

.page-hero__video {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.page-hero__video--ready {
  opacity: 1;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.4) 45%,
      rgba(0, 0, 0, 0.82) 100%
    );
}

@keyframes page-hero-ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.page-hero--cinematic .page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.page-hero--cinematic .title {
  max-width: 900px;
  color: var(--on-media);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.page-hero--cinematic .lead {
  max-width: 560px;
  margin-top: 1rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.page-hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.page-hero__services a {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-media);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.page-hero__services a:hover {
  border-color: var(--accent);
  background: rgba(245, 166, 35, 0.18);
  color: var(--accent);
}

@media (max-width: 768px) {
  .page-hero--cinematic {
    min-height: min(92vh, 720px);
    padding-bottom: 2.5rem;
  }

  .page-hero__media img {
    object-position: center center;
  }

  .page-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero__actions .btn {
    width: 100%;
  }

  .page-hero__services {
    gap: 0.4rem;
  }

  .page-hero__services a {
    flex: 1 1 calc(50% - 0.4rem);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__media img {
    animation: none;
  }

  .page-hero__video {
    display: none;
  }

  .page-hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-poster, url("/images/gallery-1.jpg")) center center / cover no-repeat;
  }
}

/* ---- Services page grid ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--border);
}

.service-tile {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: block;
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}

.service-tile:hover img { transform: scale(1.05); }

.service-tile__content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 60%);
  color: var(--on-media);
}

.service-tile__content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.service-tile__content p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 1rem;
}

.service-tile__cta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 3px;
  background: var(--border);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-media);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s var(--ease);
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item--expandable {
  cursor: zoom-in;
}

.gallery-item--expandable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-lightbox__figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.gallery-lightbox__caption {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--on-media);
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  border-color: var(--accent);
  background: rgba(245, 166, 35, 0.2);
  color: var(--accent);
}

.gallery-lightbox__close {
  top: 0;
  right: 0;
  font-size: 1.5rem;
}

.gallery-lightbox__nav--prev {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__nav--next {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .gallery-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }

  .gallery-lightbox__nav--prev {
    left: 0.25rem;
  }

  .gallery-lightbox__nav--next {
    right: 0.25rem;
  }

  .gallery-lightbox__close {
    top: -0.25rem;
    right: 0;
  }
}

/* ---- Social feeds ---- */
.social-header,
.instagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.social-header__text,
.social-header__profile,
.instagram-profile {
  flex: 1;
  min-width: min(100%, 280px);
}

.social-header__profile,
.instagram-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-header__avatar,
.instagram-profile__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.social-header__avatar img,
.instagram-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-header h2,
.instagram-profile h2,
.social-header__text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.social-header p,
.instagram-profile p,
.social-header__text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.social-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  background: var(--border);
}

.instagram-post {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  display: block;
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.5s var(--ease);
}

.instagram-post:hover img { transform: scale(1.08); }

.instagram-post__hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--on-media);
}

.instagram-post:hover .instagram-post__hover { opacity: 1; }

/* ---- About ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-split__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-muted);
}

.about-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split__text p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.about-gallery__item {
  overflow: hidden;
  background: var(--bg-muted);
}

.about-gallery__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.about-gallery__item:hover img {
  transform: scale(1.04);
}

.about-gallery__item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-gallery--compact {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Reviews ---- */
.reviews { text-align: center; }

.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reviews__rating strong {
  color: var(--text);
  font-size: 1.1rem;
}

.reviews__stars {
  color: var(--accent);
  letter-spacing: 0.05em;
}

.reviews__google {
  margin: 0.5rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.reviews__cta {
  margin-top: 2rem;
}

.review-slider {
  position: relative;
  min-height: 280px;
  max-width: 720px;
  margin: 2.5rem auto 1.5rem;
}

.review {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease);
  pointer-events: none;
}

.review.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.review p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.review footer {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.review-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.map-embed {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-muted);
}

.map-embed iframe {
  display: block;
  width: 100%;
}

.map-embed--dark {
  height: 420px;
  background: var(--deep);
}

.map-embed--dark .leaflet-container {
  background: var(--deep);
  font-family: var(--font);
}

.map-embed--dark .leaflet-popup-content-wrapper {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.map-embed--dark .leaflet-popup-tip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: none;
}

.map-embed--dark .leaflet-popup-content {
  margin: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.map-embed--dark .leaflet-popup-content a {
  color: var(--accent);
  font-weight: 600;
}

.map-embed--dark .leaflet-control-zoom a {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.map-embed--dark .leaflet-control-zoom a:hover {
  background: var(--bg-muted);
  color: var(--accent);
}

.map-embed--dark .leaflet-control-attribution {
  background: rgba(12, 12, 12, 0.85);
  color: var(--text-muted);
  font-size: 0.62rem;
}

.map-embed--dark .leaflet-control-attribution a {
  color: var(--text-muted);
}

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--bg-muted);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.contact-form-success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.contact-form-success--visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.12);
  border: 2px solid var(--accent);
  color: var(--accent);
}

.contact-form-success__title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.contact-form-success__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 1rem;
}

.contact-form-success__help {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-form-success__help a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.form-group { margin-bottom: 1.15rem; }

.form-required-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.form-required {
  color: var(--accent);
}

.form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s;
  color-scheme: dark;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text);
}

.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid {
  border-color: #c0392b;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-note--error {
  color: #c0392b;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--deep);
  color: var(--on-media);
  padding: 4rem 0;
  text-align: center;
}

.cta-band .title { margin-bottom: 1rem; }
.cta-band .lead--light { margin: 0 auto 2rem; text-align: center; }
.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  background: var(--deep);
  color: var(--on-media);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand img {
  height: 32px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 280px;
}

.footer__col h5 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}

.footer__col a,
.footer__col span {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.55rem;
  transition: color 0.25s;
}

.footer__col a:hover { color: var(--on-media); }

.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .showcase-panel,
  .about-split,
  .contact-layout { grid-template-columns: 1fr; }

  .showcase-panel:nth-child(even) .showcase-panel__media,
  .showcase-panel:nth-child(even) .showcase-panel__body { order: unset; }

  .showcase-panel {
    height: auto;
  }

  .showcase-panel__media {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 400px;
  }

  .showcase--services .showcase-panel {
    height: auto;
    min-height: 0;
  }

  .showcase--services .showcase-panel__media {
    min-height: 300px;
  }

  .feature-cards { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__right .btn { display: none; }
  .nav__toggle { display: flex; }

  .nav {
    padding-right: env(safe-area-inset-right, 0);
  }

  .nav__inner {
    width: min(var(--max), calc(100% - 2rem - env(safe-area-inset-right, 0px)));
  }

  .nav--hero .nav__logo img {
    height: clamp(56px, 16vw, 72px);
  }

  .nav--hero {
    min-height: 88px;
    padding: 1rem 0;
  }

  .hero__content { padding-bottom: 5rem; }
  .hero-bar__inner { flex-direction: column; text-align: center; gap: 0.5rem; }
  .hero-bar__inner > span { text-align: center; }

  .social-header__actions {
    width: 100%;
    flex-direction: column;
  }

  .social-header__actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .feature-cards { grid-template-columns: 1fr; }
  .feature-card { aspect-ratio: 16/10; }
  .benefits-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gallery-item--wide, .gallery-item--tall { grid-column: span 1; grid-row: span 1; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .about-gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; gap: 2rem; }
}

/* ---- AI Chat Widget ---- */
.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  font-family: var(--font);
}

.chat-widget__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  background: var(--accent);
  color: var(--text);
  border-radius: 999px;
  box-shadow:
    0 8px 28px rgba(245, 166, 35, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.chat-widget__toggle:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(245, 166, 35, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.chat-widget__toggle-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

.chat-widget__toggle-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -5px;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-left-color: currentColor;
  transform: rotate(-45deg);
}

.chat-widget__toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 8rem));
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-widget__view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chat-widget__view[hidden] {
  display: none;
}

.chat-widget__panel[hidden] {
  display: none !important;
}

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--deep);
  color: var(--on-media);
  border-top: 3px solid var(--accent);
}

.chat-widget__header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.chat-widget__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.chat-widget__header-text {
  min-width: 0;
}

.chat-widget__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.chat-widget__subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  opacity: 0.85;
  line-height: 1.3;
}

.chat-widget__ai-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: var(--accent);
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.chat-widget__disclaimer {
  padding: 0.45rem 1rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.chat-widget__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-media);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-muted);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.chat-widget__message-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  max-width: 88%;
}

.chat-widget__message-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chat-widget__message {
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-widget__message--assistant {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.chat-widget__message--thinking {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
}

.chat-widget__typing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.chat-widget__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chat-typing-bounce 1.2s ease-in-out infinite;
}

.chat-widget__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-widget__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-widget__thinking-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@keyframes chat-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-widget__message--user {
  align-self: flex-end;
  max-width: 88%;
  background: var(--accent);
  color: var(--deep);
}

.chat-widget__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.chat-widget__quote-card {
  align-self: stretch;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}

.chat-widget__quote-card-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.chat-widget__quote-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.chat-widget__quote-required-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.chat-widget__field .req {
  color: var(--accent);
}

.chat-widget__quote-inline-btn {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-widget__quote-form--inline {
  padding: 0;
  gap: 0.75rem;
}

.chat-widget__quote-card--success {
  text-align: center;
}

.chat-widget__quote-success-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.chat-widget__quote-success-text a {
  color: var(--text);
  font-weight: 600;
}

.chat-widget__nowrap {
  white-space: nowrap;
}

.chat-widget__quote-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
}

.chat-widget__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chat-widget__field > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chat-widget__field input,
.chat-widget__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.chat-widget__field textarea {
  resize: vertical;
  min-height: 72px;
}

.chat-widget__field input:focus,
.chat-widget__field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.chat-widget__field input:user-invalid,
.chat-widget__field textarea:user-invalid {
  border-color: #c0392b;
}

.chat-widget__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-widget__quote-error {
  margin: 0;
  font-size: 0.82rem;
  color: #b42318;
}

.chat-widget__quote-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-widget__quote-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-widget__quote-success {
  padding: 0.25rem 0;
}

.chat-widget__quote-success-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.chat-widget__quote-success p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.chat-widget__quote-success a {
  color: var(--text);
  font-weight: 600;
}

.chat-widget__input {
  flex: 1;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg-muted);
}

.chat-widget__input:focus {
  outline: none;
  border-color: var(--text);
}

.chat-widget__send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-widget__send:disabled,
.chat-widget__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.chat-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

@media (max-width: 768px), (max-height: 520px) {
  .chat-widget {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  }

  .chat-widget.chat-widget--open {
    inset: 0;
    z-index: 1100;
  }

  .chat-widget.chat-widget--open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
  }

  .chat-widget.chat-widget--open .chat-widget__panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(92dvh, 92vh);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    border-radius: 16px 16px 0 0;
    z-index: 1;
  }

  .chat-widget.chat-widget--open .chat-widget__toggle {
    display: none;
  }

  .chat-widget__toggle-label {
    display: none;
  }

  .chat-widget__toggle {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .chat-widget__form {
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0));
  }

  .chat-widget__input {
    font-size: 16px;
  }

  .chat-widget__field input,
  .chat-widget__field textarea {
    font-size: 16px;
  }

}
