/* ---------- Design tokens (earth tones) ---------- */
:root {
  --navy: #14213d;
  --navy-deep: #0b1426;
  --light-brown: #c8a27a;
  --light-brown-hover: #d9b790;
  --cream: #f6efe4;

  --font-logo: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
  --brown-earth: #8b5e34;
  --charcoal: #4a4a4a;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  /* Fallback shown until the video loads */
  background: linear-gradient(135deg, var(--navy) 0%, #3a3a52 55%, #8a6d4e 100%);
}

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

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

/* Navy + brown overlay keeps text readable over bright footage */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 20, 38, 0.55) 0%, rgba(20, 33, 61, 0.62) 55%, rgba(11, 20, 38, 0.88) 100%),
    radial-gradient(ellipse at center, rgba(200, 162, 122, 0.12) 0%, transparent 65%);
}

.hero__content {
  width: min(94%, 1100px);
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 1s ease 0.2s both;
}

.hero__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--light-brown);
}

.hero__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

/* Shield logo sits to the left of the wordmark, same off-white as "Home" */
.hero__logo {
  display: block;
  height: 1.05em;
  width: auto;
  flex: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.hero__wordmark {
  display: inline-block;
  white-space: nowrap;
}

/* Two-tone earth-tone wordmark: warm sand "Home" + caramel "Base." */
.wordmark__home { color: #ecdcc3; }
.wordmark__base { color: #d29b5f; }

.hero__tagline {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(246, 239, 228, 0.92);
}

/* ---------- Buttons ---------- */
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--light-brown);
  color: var(--navy);
  border-color: var(--light-brown);
}

.btn--primary:hover {
  background: var(--light-brown-hover);
  border-color: var(--light-brown-hover);
}

.btn--secondary {
  background: rgba(20, 33, 61, 0.35);
  color: var(--cream);
  border-color: var(--cream);
  backdrop-filter: blur(4px);
}

.btn--secondary:hover {
  background: var(--cream);
  color: var(--navy);
}

/* ---------- Animation ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__content {
    animation: none;
  }
  .btn {
    transition: none;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .hero__actions,
  .hero__actions-row {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }
}

/* ===================== Services ===================== */
.services {
  background: var(--cream);
  color: var(--navy);
  padding: clamp(4rem, 9vw, 7rem) 0;
  scroll-margin-top: 0;
}

.services__inner {
  width: min(92%, 1180px);
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a6d4e;
}

.section-title {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: var(--navy);
}

.section-intro {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(20, 33, 61, 0.78);
}

.service-group + .service-group {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.service-group__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
}

.service-group__title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--light-brown);
  opacity: 0.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(20, 33, 61, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20, 33, 61, 0.18);
}

.service-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8d9c3;
}

.service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  border-top: 4px solid var(--light-brown);
}

.service-card__body h4 {
  margin: 0 0 0.6rem;
  text-align: center;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.service-card__body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(20, 33, 61, 0.78);
}

/* Scroll reveal (class added by script.js) */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card,
  .service-card__media img {
    transition: none;
  }
}

/* ===================== Why choose us ===================== */
.why {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.why__inner {
  width: min(92%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.why__media {
  position: relative;
}

.why__media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.why__badge {
  position: absolute;
  right: -1rem;
  bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.4rem;
  background: var(--light-brown);
  color: var(--navy);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.why__badge strong {
  font-family: var(--font-logo);
  font-size: 1.2rem;
  font-weight: 800;
}

.why__badge span:last-child {
  font-size: 0.85rem;
  font-weight: 500;
}

.why__stars {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.section-eyebrow--light {
  color: var(--light-brown);
}

.section-title--light {
  color: var(--cream);
}

.why__content .section-title {
  text-align: left;
}

.why__lead {
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--cream);
}

.why__text {
  margin: 1rem 0 0;
  line-height: 1.7;
  color: rgba(246, 239, 228, 0.78);
}

.why__points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.why__points li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why__icon {
  flex: none;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--light-brown);
}

.why__points h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cream);
}

.why__points p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(246, 239, 228, 0.75);
}

@media (max-width: 860px) {
  .why__inner {
    grid-template-columns: 1fr;
  }
  .why__badge {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ===================== Reviews ===================== */
.reviews {
  background: var(--cream);
  color: var(--navy);
  padding: clamp(4rem, 9vw, 7rem) 0;
  overflow: hidden;
}

.reviews__header {
  width: min(92%, 1180px);
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

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

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation-duration: 90s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Top row drifts right, bottom row drifts left */
.marquee--right .marquee__track { animation-name: scroll-right; }
.marquee--left .marquee__track { animation-name: scroll-left; animation-duration: 100s; }

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

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

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

.review-card {
  flex: none;
  width: 340px;
  margin-right: 1.5rem;
  padding: 1.6rem;
  background: #fff;
  border-radius: 18px;
  border-top: 4px solid var(--light-brown);
  box-shadow: 0 6px 22px rgba(20, 33, 61, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card__stars {
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: #b8895a;
}

.review-card__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(20, 33, 61, 0.85);
}

.review-card__author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
}

.review-card__name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.review-card__area {
  display: block;
  font-size: 0.8rem;
  color: rgba(20, 33, 61, 0.6);
}

@media (max-width: 600px) {
  .review-card {
    width: 290px;
  }
}

/* Reduced motion: stop the drift, let people scroll the rows by hand */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__track {
    animation: none !important;
  }
}

/* ===================== Footer ===================== */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
  border-top: 4px solid var(--light-brown);
  text-align: center;
}

.footer__inner {
  width: min(92%, 720px);
  margin: 0 auto;
}

.footer__name {
  display: inline-block;
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.footer__tagline {
  margin: 1.1rem auto 0;
  max-width: 30rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(246, 239, 228, 0.8);
}

.footer__area {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--light-brown);
}

.footer__copy {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 239, 228, 0.15);
  font-size: 0.82rem;
  color: rgba(246, 239, 228, 0.55);
}

/* ===================== Quote pop-up ===================== */
body.modal-open {
  overflow: hidden;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.25rem 1rem 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.quote-modal.is-open {
  opacity: 1;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 38, 0.72);
  backdrop-filter: blur(4px);
}

.quote-modal__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: 100%;
  display: flex;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}

.quote-modal.is-open .quote-modal__panel {
  transform: none;
}

/* Offset plate behind the card, like the reference design */
.quote-modal__panel::before {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  background: #e8d9c3;
  border-radius: 28px;
  transform: rotate(1.2deg);
  z-index: 0;
}

.quote-pill {
  position: absolute;
  top: -1.9rem;
  z-index: 2;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid var(--navy);
  box-shadow: 3px 3px 0 rgba(20, 33, 61, 0.35);
}

.quote-pill--gold {
  left: 1.25rem;
  background: var(--light-brown);
  color: var(--navy);
  transform: rotate(-3deg);
}

.quote-pill--navy {
  left: 14.5rem;
  background: var(--navy);
  color: var(--cream);
  transform: rotate(2deg);
}

.quote-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
  padding: 2rem 2rem 1.75rem;
  background: var(--cream);
  color: var(--navy);
  border: 2px solid #e4d8c4;
  border-radius: 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.quote-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(20, 33, 61, 0.55);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.quote-modal__close:hover {
  background: rgba(20, 33, 61, 0.08);
  color: var(--navy);
}

.quote-modal__close:focus-visible,
.quote-form__submit:focus-visible,
.quote-field input:focus-visible,
.quote-field select:focus-visible {
  outline: 3px solid var(--light-brown);
  outline-offset: 2px;
}

.quote-modal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.75rem 1.5rem 1.5rem 0;
}

.quote-modal__head h2 {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.1;
  color: var(--navy);
}

.quote-modal__time {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(20, 33, 61, 0.6);
}

.quote-form {
  display: grid;
  gap: 1.1rem;
}

.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.quote-field label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 33, 61, 0.6);
}

.quote-field input,
.quote-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: #fbf7ef;
  border: 2px solid #ded3c1;
  border-radius: 14px;
}

.quote-field input::placeholder {
  color: rgba(20, 33, 61, 0.35);
}

.quote-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1.5l6 6 6-6' fill='none' stroke='%2314213d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.quote-field input:hover,
.quote-field select:hover {
  border-color: var(--light-brown);
}

.quote-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 1.05rem 1.5rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.quote-form__submit:hover {
  background: #1d3157;
  transform: translateY(-2px);
}

.quote-form__note {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(20, 33, 61, 0.6);
}

@media (max-width: 520px) {
  .quote-modal__card {
    padding: 1.5rem 1.25rem 1.5rem;
  }
  .quote-form__row {
    grid-template-columns: 1fr;
  }
  .quote-pill {
    font-size: 0.66rem;
    padding: 0.45rem 0.8rem;
  }
  .quote-pill--navy {
    left: auto;
    right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-modal,
  .quote-modal__panel,
  .quote-form__submit {
    transition: none;
  }
}

/* ===================== Sticky navigation ===================== */
:root {
  --nav-height: 4.25rem;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-height);
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.55), rgba(11, 20, 38, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(11, 20, 38, 0.93);
  border-bottom-color: rgba(200, 162, 122, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav__inner {
  width: min(94%, 1180px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.nav__link {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  transition: color 0.25s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--light-brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--light-brown);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link:focus-visible {
  outline: 3px solid var(--light-brown);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ----- "Get a quote" pop-in button ----- */
.nav__cta {
  position: relative;
  padding: 0.65rem 1.35rem;
  font-size: 0.78rem;
  visibility: hidden;
  pointer-events: none;
}

.nav__cta.is-in {
  visibility: visible;
  pointer-events: auto;
  animation: cta-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.nav__cta.is-out {
  visibility: visible;
  pointer-events: none;
  animation: cta-out 0.28s ease-in both;
}

/* little sparkle that twinkles as the button lands */
.nav__cta::after {
  content: "\2726";
  position: absolute;
  top: -0.55rem;
  right: -0.35rem;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
}

.nav__cta.is-in::after {
  animation: cta-sparkle 0.9s 0.35s ease-out both;
}

@keyframes cta-in {
  0%   { opacity: 0; transform: translateX(-28px) scale(0.5) rotate(-12deg); }
  55%  { opacity: 1; transform: translateX(5px) scale(1.14) rotate(4deg); }
  75%  { transform: translateX(0) scale(0.95) rotate(-2deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
}

@keyframes cta-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: translateX(-16px) scale(0.6) rotate(-8deg); }
}

@keyframes cta-sparkle {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  40%  { opacity: 1; transform: scale(1.35) rotate(25deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(70deg); }
}

@keyframes fade-simple-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-simple-out { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 640px) {
  .nav__inner {
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
  }
  .nav__right {
    display: none;
  }
  .nav__links {
    justify-content: flex-end;
    gap: 0.8rem;
  }
  .nav__link {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }
  .nav__cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__cta.is-in  { animation: fade-simple-in 0.2s both; }
  .nav__cta.is-out { animation: fade-simple-out 0.2s both; }
  .nav__cta::after { display: none; }
  .nav,
  .nav__link,
  .nav__link::after { transition: none; }
}

/* ===================== Clickable Standard Clean card ===================== */
.service-card--action {
  cursor: pointer;
}

.service-card--action:focus-visible {
  outline: 3px solid var(--light-brown);
  outline-offset: 4px;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6d4e;
  transition: gap 0.25s ease, color 0.25s ease;
}

.service-card--action:hover .service-card__cta {
  gap: 0.8rem;
  color: var(--navy);
}

/* ===================== Checklist drawer ===================== */
.checklist {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.checklist[hidden] {
  display: none;
}

.checklist__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 38, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.checklist.is-open .checklist__backdrop {
  opacity: 1;
}

.checklist__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(94vw, 460px);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  border-right: 4px solid var(--light-brown);
  border-radius: 0 28px 28px 0;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.4);
  transform: translateX(-110%) rotate(-2deg);
  transform-origin: left bottom;
  overflow: hidden;
}

.checklist.is-open .checklist__panel {
  animation: drawer-in 0.75s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

.checklist.is-closing .checklist__panel {
  animation: drawer-out 0.3s ease-in both;
}

.checklist.is-closing .checklist__backdrop {
  opacity: 0;
}

@keyframes drawer-in {
  0%   { transform: translateX(-110%) rotate(-3deg); }
  60%  { transform: translateX(14px) rotate(0.8deg); }
  80%  { transform: translateX(-5px) rotate(-0.3deg); }
  100% { transform: translateX(0) rotate(0); }
}

@keyframes drawer-out {
  from { transform: translateX(0) rotate(0); }
  to   { transform: translateX(-110%) rotate(-2deg); }
}

.checklist__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.25s ease;
}

.checklist__close:hover {
  background: #1d3157;
  transform: rotate(90deg);
}

.checklist__close:focus-visible,
.checklist__foot .btn:focus-visible {
  outline: 3px solid var(--light-brown);
  outline-offset: 3px;
}

.checklist__head {
  padding: 2rem 4rem 1.25rem 1.75rem;
  background: var(--navy);
  color: var(--cream);
  border-bottom: 4px solid var(--light-brown);
}

.checklist__pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--light-brown);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.checklist__head h2 {
  margin: 0.9rem 0 0.35rem;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.05;
  color: var(--cream);
}

.checklist__head p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(246, 239, 228, 0.8);
}

.checklist__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem 1rem;
  display: grid;
  gap: 1.5rem;
  align-content: start;
  overscroll-behavior: contain;
}

.checklist__group h3 {
  margin: 0 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
}

.checklist__group h3::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--light-brown);
  opacity: 0.55;
}

.checklist__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.checklist__group li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.97rem;
  line-height: 1.45;
  color: rgba(20, 33, 61, 0.88);
}

/* brown tick badge */
.checklist__group li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--light-brown);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
}

/* items hop in one after another once the drawer lands */
.checklist.is-open .checklist__group h3,
.checklist.is-open .checklist__group li {
  animation: item-pop 0.45s ease both;
  animation-delay: calc(0.35s + var(--i, 0) * 0.035s);
}

@keyframes item-pop {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.checklist__foot {
  padding: 1rem 1.75rem 1.4rem;
  border-top: 1px solid rgba(20, 33, 61, 0.12);
  background: #f1e7d6;
}

.checklist__foot .btn {
  width: 100%;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .checklist__backdrop { transition: none; }
  .checklist.is-open .checklist__panel {
    animation: none;
    transform: none;
  }
  .checklist.is-closing .checklist__panel {
    animation: none;
  }
  .checklist.is-open .checklist__group h3,
  .checklist.is-open .checklist__group li {
    animation: none;
  }
  .checklist__close,
  .service-card__cta { transition: none; }
}

/* ===================== Deep Clean extras (gold highlight) ===================== */
:root {
  --gold: #d9a21b;
  --gold-deep: #8a5a00;
}

.checklist__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.85rem 1.75rem;
  background: #f1e7d6;
  border-bottom: 1px solid rgba(20, 33, 61, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(20, 33, 61, 0.75);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-item--extra {
  color: var(--gold-deep);
  font-weight: 700;
}

.legend-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--light-brown);
}

.legend-dot--extra {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 162, 27, 0.28);
}

/* extra items: gold tick, bolder darker-gold text, soft highlight and an "Extra" tag */
.checklist__group li.is-extra {
  margin-left: -0.5rem;
  padding: 0.35rem 0.6rem 0.35rem 2.5rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(217, 162, 27, 0.2), rgba(217, 162, 27, 0.04));
  font-weight: 700;
  color: var(--gold-deep);
}

.checklist__group li.is-extra::before {
  left: 0.5rem;
  top: 0.4rem;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(217, 162, 27, 0.28);
}

.extra-tag {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

/* ===================== Premium Extras drawer (bigger type + icons) ===================== */
.checklist--extras .checklist__body {
  padding-top: 1.75rem;
}

.checklist--extras .checklist__group h3 {
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.checklist--extras .checklist__group ul {
  gap: 1rem;
}

.checklist--extras .checklist__group li.extras-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.9rem 1.1rem 0.9rem 0.9rem;
  background: #fff;
  border: 2px solid #e8d9c3;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.checklist--extras .checklist__group li.extras-item::before {
  display: none;
}

.checklist--extras .checklist__group li.extras-item:hover {
  transform: translateX(6px);
  border-color: var(--light-brown);
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.14);
}

.extras-item__icon {
  flex: none;
  width: 4.75rem;
  height: 4.75rem;
  display: grid;
  place-items: center;
  background: #e8d9c3;
  border-radius: 16px;
}

.extras-item__icon svg {
  width: 3.4rem;
  height: 3.4rem;
}

.extras-item__name {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  line-height: 1.1;
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .checklist--extras .checklist__group li.extras-item {
    transition: none;
  }
}

/* ===================== Quote form: Premium Extras checkboxes ===================== */
.quote-extras {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.quote-extras legend {
  padding: 0;
  margin-bottom: 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 33, 61, 0.6);
}

.quote-extras legend span {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(20, 33, 61, 0.45);
}

.quote-extras__hint {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: rgba(20, 33, 61, 0.6);
}

.quote-extras__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quote-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  background: #fbf7ef;
  border: 2px solid #ded3c1;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.quote-check:hover {
  border-color: var(--light-brown);
  transform: translateY(-1px);
}

/* real checkbox stays in the page for keyboard + screen readers, just not visible */
.quote-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.quote-check__box {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--light-brown);
  border-radius: 7px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quote-check__box::after {
  content: "";
  width: 0.38rem;
  height: 0.72rem;
  margin-top: -0.12rem;
  border: solid var(--cream);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quote-check__label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.quote-check input:checked + .quote-check__box {
  background: var(--navy);
  border-color: var(--navy);
  transform: scale(1.08);
}

.quote-check input:checked + .quote-check__box::after {
  transform: rotate(45deg) scale(1);
}

.quote-check:has(input:checked) {
  background: rgba(200, 162, 122, 0.22);
  border-color: var(--light-brown);
}

.quote-check:has(input:focus-visible) {
  outline: 3px solid var(--light-brown);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .quote-extras__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-check,
  .quote-check__box,
  .quote-check__box::after {
    transition: none;
  }
}

/* ===================== Specialty service pop-up ===================== */
.specialty .quote-pill--navy {
  left: 1.25rem;
  right: auto;
}

.specialty__title {
  margin: 0.5rem 1.5rem 1.5rem 0;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  line-height: 1.1;
  color: var(--navy);
}

.specialty__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.1rem 1rem;
  background: var(--navy);
  border-radius: 20px;
}

.specialty__phone {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.25s ease;
}

.specialty__phone:hover {
  color: var(--light-brown);
}

.specialty__phone:focus-visible {
  outline: 3px solid var(--light-brown);
  outline-offset: 4px;
  border-radius: 6px;
}

.specialty__call-label {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6d4e;
}

.specialty__or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(20, 33, 61, 0.7);
}

.specialty__or::before,
.specialty__or::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--light-brown);
  opacity: 0.5;
}

/* service name at the top of the form */
.specialty__service {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 2px dashed rgba(200, 162, 122, 0.7);
}

.specialty__service-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 33, 61, 0.6);
}

.specialty__service-name {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--navy);
}

/* ----- pulsing phone ----- */
.phone-pulse {
  position: relative;
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  display: grid;
  place-items: center;
}

.phone-pulse__icon {
  position: relative;
  z-index: 1;
  width: 3.75rem;
  height: 3.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--light-brown);
  color: var(--navy);
  animation: phone-wiggle 2.4s ease-in-out infinite;
}

.phone-pulse__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--light-brown);
  opacity: 0;
  animation: phone-ring 2.4s ease-out infinite;
}

.phone-pulse__ring--late {
  animation-delay: 1.2s;
}

@keyframes phone-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes phone-wiggle {
  0%, 60%, 100% { transform: rotate(0); }
  66%  { transform: rotate(-14deg); }
  72%  { transform: rotate(12deg); }
  78%  { transform: rotate(-10deg); }
  84%  { transform: rotate(8deg); }
  90%  { transform: rotate(0); }
}

@media (max-width: 420px) {
  .specialty__call {
    gap: 0.9rem;
    padding: 0.9rem 0.75rem;
  }
  .phone-pulse,
  .phone-pulse__icon {
    width: 3rem;
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-pulse__icon,
  .phone-pulse__ring {
    animation: none;
  }
  .phone-pulse__ring {
    opacity: 0.35;
    transform: scale(1.35);
  }
}

/* ===================== Compact call block (inside the quote form) ===================== */
.quote-modal__head {
  margin-bottom: 1rem;
}

.specialty__call--compact {
  gap: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
}

.specialty__call--compact .phone-pulse,
.specialty__call--compact .phone-pulse__icon {
  width: 2.5rem;
  height: 2.5rem;
}

.specialty__call--compact .phone-pulse svg {
  width: 1.3rem;
  height: 1.3rem;
}

.specialty__call--compact .phone-pulse__ring {
  border-width: 2px;
}

.specialty__call--compact .specialty__phone {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}

.specialty__call-label--compact {
  margin-top: 0.55rem;
  font-size: 0.7rem;
}

.specialty__or--compact {
  margin: 1rem 0 1.1rem;
  font-size: 0.88rem;
}


/* ===================== Logo in the navigation bar ===================== */
.nav__left {
  gap: 1.1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 3rem;
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__logo img {
  display: block;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.nav__logo:hover {
  transform: scale(1.08) rotate(-3deg);
}

.nav__logo:focus-visible {
  outline: 3px solid var(--light-brown);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .nav__logo {
    height: 2.5rem;
  }
  .nav__left {
    gap: 0.7rem;
  }
  /* the logo already takes people home, so free up room on small screens */
  .nav__link[href="#home"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__logo {
    transition: none;
  }
}

/* ===================== Nav "Get a quote": sparkle every 3 seconds ===================== */
/* soft light sweep that glides across the button */
.nav__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 160% 0;
  opacity: 0;
}

.cta-spark {
  position: absolute;
  pointer-events: none;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 14px rgba(217, 183, 144, 0.9);
  opacity: 0;
}

.cta-spark--1 { top: -0.5rem;  left: 16%;   font-size: 0.8rem; }
.cta-spark--2 { bottom: -0.45rem; right: 24%; font-size: 0.65rem; }
.cta-spark--3 { top: 18%; right: -0.55rem; font-size: 0.55rem; }

/* only runs while the button is showing; first play waits for the pop-in to finish */
.nav__cta.is-in::before {
  animation: cta-shimmer 3s ease-in-out 1.4s infinite;
}

.nav__cta.is-in .cta-spark {
  animation: cta-twinkle 3s ease-in-out infinite;
}

.nav__cta.is-in .cta-spark--1 { animation-delay: 1.5s; }
.nav__cta.is-in .cta-spark--2 { animation-delay: 1.7s; }
.nav__cta.is-in .cta-spark--3 { animation-delay: 1.9s; }

@keyframes cta-shimmer {
  0%   { background-position: 160% 0; opacity: 0; }
  6%   { opacity: 1; }
  26%  { background-position: -60% 0; opacity: 1; }
  30%  { opacity: 0; }
  100% { background-position: -60% 0; opacity: 0; }
}

@keyframes cta-twinkle {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  9%   { opacity: 1; transform: scale(1.25) rotate(35deg); }
  22%  { opacity: 0; transform: scale(0.4) rotate(80deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(80deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nav__cta.is-in::before,
  .nav__cta.is-in .cta-spark {
    animation: none;
  }
}

/* ===================== Live price estimate ===================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* radio tiles reuse the checkbox tile look */
.quote-check--radio .quote-check__box {
  border-radius: 50%;
}

.quote-check--radio .quote-check__box::after {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  transform: scale(0);
}

.quote-check--radio input:checked + .quote-check__box::after {
  transform: scale(1);
}

.quote-check__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.quote-check__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}

.quote-check__tag--muted {
  font-weight: 500;
  color: rgba(20, 33, 61, 0.5);
}

/* price bar: sticks to the bottom of the pop-up so the total is always in view */
.quote-estimate {
  position: sticky;
  bottom: 0.25rem;
  z-index: 3;
  padding: 0.9rem 1.1rem 0.8rem;
  background: var(--navy);
  color: var(--cream);
  border: 2px solid var(--light-brown);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(11, 20, 38, 0.35);
}

.quote-estimate__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.quote-estimate__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-brown);
}

.quote-estimate__price {
  display: inline-block;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--cream);
  transform-origin: right center;
}

.quote-estimate__price.is-bump {
  animation: price-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes price-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.quote-estimate__msg {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(246, 239, 228, 0.78);
}

.quote-estimate__more {
  margin-top: 0.55rem;
  border-top: 1px solid rgba(246, 239, 228, 0.18);
  padding-top: 0.5rem;
}

.quote-estimate__more[hidden] {
  display: none;
}

.quote-estimate__more summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-brown);
}

.quote-estimate__more summary:focus-visible {
  outline: 3px solid var(--light-brown);
  outline-offset: 3px;
  border-radius: 4px;
}

.quote-estimate__lines {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 9.5rem;
  overflow-y: auto;
}

.quote-estimate__lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(246, 239, 228, 0.9);
}

.quote-estimate__lines li.is-save {
  font-weight: 700;
  color: #f0c660;
}

@media (prefers-reduced-motion: reduce) {
  .quote-estimate__price.is-bump {
    animation: none;
  }
}


/* ===================== "Book Online" buttons ===================== */
/* hero: solid cream, a third look next to the tan and outlined buttons */
.btn--book {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.btn--book:hover {
  background: #fff;
  border-color: #fff;
}

/* nav: outlined pill so it reads as a call to action among the text links */
.nav__link--cta {
  padding: 0.5rem 1.05rem;
  border: 2px solid var(--light-brown);
  border-radius: 999px;
  color: var(--cream);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--light-brown);
  color: var(--navy);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .nav__link--cta {
    padding: 0.35rem 0.6rem;
    border-width: 1.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__link--cta {
    transition: none;
  }
}

/* ===================== Phone nav: keep everything on one line ===================== */
@media (max-width: 640px) {
  .nav__inner {
    width: min(96%, 1180px);
    gap: 0.5rem;
  }
  .nav__left {
    gap: 0.5rem;
  }
  .nav__logo {
    height: 2.3rem;
  }
  .nav__cta {
    white-space: nowrap;
    padding: 0.45rem 0.7rem;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }
  .nav__links {
    min-width: 0;
    gap: 0.55rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav__links::-webkit-scrollbar {
    display: none;
  }
  .nav__link {
    flex: none;
    white-space: nowrap;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
  .nav__link--cta {
    padding: 0.3rem 0.55rem;
  }
}

/* Phone nav, second pass: never clip a link. Right-align when everything fits;
   on very narrow screens the links start at the left and can be swiped. */
@media (max-width: 640px) {
  .nav__links {
    justify-content: flex-start;
    gap: 0.45rem;
  }
  .nav__links > :first-child {
    margin-left: auto;
  }
  .nav__link {
    font-size: 0.56rem;
    letter-spacing: 0.04em;
  }
  .nav__link--cta {
    padding: 0.28rem 0.45rem;
  }
  .nav__cta {
    padding: 0.42rem 0.6rem;
    font-size: 0.56rem;
  }
  .nav__logo {
    height: 2.2rem;
  }
}

@media (max-width: 400px) {
  .nav__inner {
    width: 98%;
    gap: 0.4rem;
  }
  .nav__left {
    gap: 0.4rem;
  }
  .nav__links {
    gap: 0.35rem;
  }
  .nav__link {
    font-size: 0.54rem;
    letter-spacing: 0.03em;
  }
  .nav__link--cta {
    padding: 0.26rem 0.4rem;
  }
  .nav__cta {
    padding: 0.4rem 0.5rem;
    font-size: 0.54rem;
  }
}

/* ===================== Book Online: horizontal step bar ===================== */
.book {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 162, 122, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #1a2d52 0%, #14213d 55%, #101b33 100%);
  overflow: hidden;
}

.book .section-title { color: var(--cream); }

.book__inner {
  width: min(94%, 1100px);
  margin: 0 auto;
}

.book__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.book__subtitle {
  margin: 0.6rem 0 0;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--light-brown);
}

.wiz__question {
  margin: 0 0 1.75rem;
  text-align: center;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wiz__question.is-swap { opacity: 0; transform: translateY(8px); }

/* ----- the bar: options on the upper level, Next at the end ----- */
.wiz__bar {
  display: flex;
  align-items: stretch;
  background: rgba(246, 239, 228, 0.07);
  border-radius: 6px 6px 0 0;
}

.wiz__panels { flex: 1; min-width: 0; }

.wiz-panel {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.wiz-panel[hidden] { display: none; }

.wiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  min-height: 9.75rem;
}

.wiz-options--input {
  grid-template-columns: 1fr;
}

.wiz-options--two,
.wiz-options--four {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.wiz-opt-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.wiz-opt-wrap .wiz-opt { flex: 1; }

.wiz-opt {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  background: transparent;
  transition: background-color 0.25s ease;
}

.wiz-opt + .wiz-opt::before,
.wiz-opt-wrap + .wiz-opt-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(200, 162, 122, 0.35);
}

.wiz-opt-wrap + .wiz-opt-wrap::before { top: 22%; bottom: 22%; }
.wiz-opt-wrap .wiz-opt::before { display: none; }

.wiz-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.wiz-opt__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.wiz-opt__label small {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-brown);
}

.wiz-opt:hover { background: rgba(246, 239, 228, 0.07); }

.wiz-opt:has(input:checked) { background: rgba(11, 20, 38, 0.45); }

.wiz-opt:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.wiz-opt__check {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.35rem;
  color: var(--gold);
  opacity: 0;
  transform: scale(0) rotate(-25deg);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wiz-opt input:checked ~ .wiz-opt__check {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.wiz-detail {
  padding: 0.55rem 0.5rem;
  border: 0;
  background: rgba(11, 20, 38, 0.25);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-brown);
  cursor: pointer;
}

.wiz-detail:hover { color: var(--gold); }
.wiz-detail:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* square feet */
.wiz-sqft {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.wiz-sqft input {
  width: min(22rem, 80%);
  padding: 0.7rem 3rem 0.7rem 1rem;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  color: var(--cream);
  background: rgba(11, 20, 38, 0.4);
  border: 0;
  border-bottom: 2px solid var(--light-brown);
  border-radius: 4px 4px 0 0;
}

.wiz-sqft input::placeholder { color: rgba(246, 239, 228, 0.35); }
.wiz-sqft input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wiz-sqft__unit {
  position: absolute;
  left: calc(50% + min(11rem, 40%) - 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--light-brown);
  pointer-events: none;
}

.wiz-hint {
  margin: 0;
  padding: 0.6rem 1rem 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(246, 239, 228, 0.7);
}

.wiz-hint a { color: var(--gold); font-weight: 700; }

/* options rise in, then slide out */
.wiz-panel.is-entering .wiz-opt,
.wiz-panel.is-entering .wiz-opt-wrap,
.wiz-panel.is-entering .wiz-sqft {
  animation: wiz-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.wiz-panel.is-leaving { animation: wiz-out 0.18s ease forwards; }

@keyframes wiz-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wiz-out {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ----- Next / Book Now cell ----- */
.wiz__next-cell {
  position: relative;
  flex: none;
  width: 9rem;
  display: flex;
  border-left: 1px solid rgba(200, 162, 122, 0.25);
}

.wiz__next,
.wiz__book {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  border: 0;
  background: rgba(11, 20, 38, 0.45);
  font: inherit;
  cursor: pointer;
  color: var(--gold);
}

.wiz__next-text {
  font-size: 1.35rem;
  font-weight: 500;
}

.wiz__book[hidden] { display: none; }

.wiz__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wiz__next:not(:disabled):hover svg,
.wiz__book:hover svg { transform: translateX(5px); }

.wiz__next svg,
.wiz__book svg { transition: transform 0.25s ease; }

.wiz__next:not(:disabled) svg { animation: wiz-nudge 1.6s ease-in-out infinite; }

.wiz__next:focus-visible,
.wiz__book:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

@keyframes wiz-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* Book Now: pops in once every option is complete */
.wiz__book {
  background: var(--light-brown);
  color: var(--navy);
}

.wiz__book:hover { background: var(--light-brown-hover); }

.wiz__book.is-in { animation: book-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.wiz__book.is-in:hover { animation: none; }
.wiz__book .cta-spark { color: #fff; }
.wiz__book.is-in .cta-spark { animation: cta-twinkle 3s ease-in-out infinite; }
.wiz__book.is-in .cta-spark--1 { animation-delay: 0.5s; }
.wiz__book.is-in .cta-spark--2 { animation-delay: 0.7s; }
.wiz__book.is-in .cta-spark--3 { animation-delay: 0.9s; }

@keyframes book-pop {
  0%   { opacity: 0; transform: translateY(26px) scale(0.6) rotate(-6deg); }
  55%  { opacity: 1; transform: translateY(-6px) scale(1.1) rotate(2deg); }
  75%  { transform: translateY(0) scale(0.96) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

/* ----- category tabs + progress line ----- */
.wiz__tabs-wrap {
  position: relative;
  background: rgba(246, 239, 228, 0.1);
  border-radius: 0 0 6px 6px;
}

.wiz__tabs {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.wiz__tabs::-webkit-scrollbar { display: none; }

.wiz__tabs li { flex: 1 0 auto; display: flex; }

.wiz-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.4rem 1.1rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(246, 239, 228, 0.75);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.wiz-tab:disabled { cursor: default; color: rgba(246, 239, 228, 0.55); }

.wiz-tab.is-current {
  background: rgba(11, 20, 38, 0.4);
  color: var(--cream);
}

.wiz-tab:not(:disabled):hover { color: var(--cream); }
.wiz-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

.wiz-tab__icon {
  width: 0;
  overflow: hidden;
  color: var(--gold);
  font-weight: 800;
  transition: width 0.25s ease;
}

.wiz-tab.is-done .wiz-tab__icon,
.wiz-tab.is-current .wiz-tab__icon { width: 1em; }
.wiz-tab.is-done .wiz-tab__icon::before { content: "\2714"; }
.wiz-tab.is-current:not(.is-done) .wiz-tab__icon::before { content: "\2192"; }

.wiz__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- live quote ----- */
.wiz__quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.wiz__quote-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wiz__quote-price {
  min-width: 15rem;
  padding: 1.5rem 2.5rem;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(11, 20, 38, 0.35);
  border: 2px solid rgba(246, 239, 228, 0.55);
  box-shadow: 0 0 18px rgba(200, 162, 122, 0.35), inset 0 0 18px rgba(200, 162, 122, 0.12);
}

.wiz__quote-price.is-bump { animation: price-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }

.wiz__quote-note {
  font-size: 0.8rem;
  color: rgba(246, 239, 228, 0.65);
}

/* ----- phones ----- */
@media (max-width: 760px) {
  .wiz__bar { flex-direction: column; }
  .wiz-options { grid-template-columns: repeat(3, 1fr); min-height: 0; }
  .wiz-options--input { grid-template-columns: 1fr; }
  .wiz-options--two,
  .wiz-options--four { grid-template-columns: repeat(2, 1fr); }
  .wiz-opt { min-height: 5rem; }
  .wiz-opt + .wiz-opt::before { display: none; }
  .wiz-opt { border-bottom: 1px solid rgba(200, 162, 122, 0.2); }
  .wiz__next-cell { width: 100%; border-left: 0; border-top: 1px solid rgba(200, 162, 122, 0.25); }
  .wiz__next, .wiz__book { flex-direction: row; gap: 0.75rem; padding: 0.9rem; }
  .wiz__next svg, .wiz__book svg { width: 28px; height: 28px; }
  .wiz-tab { padding: 1.1rem 0.9rem; font-size: 0.74rem; }
  .wiz__quote-price { min-width: 0; width: 100%; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-panel.is-entering .wiz-opt,
  .wiz-panel.is-entering .wiz-opt-wrap,
  .wiz-panel.is-entering .wiz-sqft,
  .wiz-panel.is-leaving,
  .wiz__next:not(:disabled) svg,
  .wiz__book.is-in,
  .wiz__book.is-in .cta-spark,
  .wiz__quote-price.is-bump { animation: none; }
  .wiz-opt, .wiz-opt__check, .wiz__progress, .wiz-tab, .wiz-tab__icon, .wiz__question { transition: none; }
}

.wiz__next[hidden] { display: none; }

/* postal code step */
.wiz-postal input {
  padding-right: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wiz-area {
  margin: 0;
  padding: 0 1rem 1rem;
  min-height: 2.6rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(246, 239, 228, 0.65);
  transition: color 0.25s ease;
}

.wiz-area.is-found {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  animation: area-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wiz-area.is-error { color: #f0b4a0; }
.wiz-area a { color: var(--gold); font-weight: 700; }

@keyframes area-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-area.is-found { animation: none; }
}


/* ===================== Phones: hamburger menu, comfortable tap targets ===================== */
.nav__toggle { display: none; }

@media (max-width: 700px) {
  .nav {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .nav__inner {
    grid-template-columns: 1fr auto;
    width: min(94%, 1180px);
    gap: 0.5rem;
  }
  .nav__right { display: none; }

  .nav__logo { height: 2.6rem; }
  .nav__cta {
    padding: 0.65rem 1.05rem;
    min-height: 2.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  /* menu button */
  .nav__toggle {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; }
  .nav__bars { position: relative; width: 1.55rem; height: 1.2rem; display: block; }
  .nav__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
  }
  .nav__bars span:nth-child(1) { top: 0; }
  .nav__bars span:nth-child(2) { top: calc(50% - 1.25px); }
  .nav__bars span:nth-child(3) { top: calc(100% - 2.5px); }
  .nav.is-open .nav__bars span:nth-child(1) { top: calc(50% - 1.25px); transform: rotate(45deg); }
  .nav.is-open .nav__bars span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__bars span:nth-child(3) { top: calc(50% - 1.25px); transform: rotate(-45deg); }

  .nav.is-open {
    background: rgba(11, 20, 38, 0.98);
    border-bottom-color: rgba(200, 162, 122, 0.45);
  }

  /* the links become a drop-down panel */
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 0;
    padding: 0.5rem max(1.25rem, env(safe-area-inset-left)) calc(1.25rem + env(safe-area-inset-bottom));
    background: rgba(11, 20, 38, 0.98);
    border-bottom: 1px solid rgba(200, 162, 122, 0.45);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    max-height: calc(100svh - var(--nav-height));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav.is-open .nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
  .nav__links > :first-child { margin-left: 0; }

  .nav__link,
  .nav__link[href="#home"] {
    display: flex;
    align-items: center;
    min-height: 3.4rem;
    padding: 0 0.25rem;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    white-space: normal;
    text-shadow: none;
    border-bottom: 1px solid rgba(246, 239, 228, 0.1);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--gold); }

  .nav__link--cta,
  .nav__link--cta[href] {
    justify-content: center;
    min-height: 3.4rem;
    margin-top: 0.9rem;
    padding: 0 1rem;
    border: 2px solid var(--light-brown);
    border-radius: 999px;
    background: var(--light-brown);
    color: var(--navy);
  }
  .nav__link--cta.is-active { color: var(--navy); }

  /* links stagger in */
  .nav.is-open .nav__link { animation: menu-in 0.35s ease both; }
  .nav.is-open .nav__link:nth-child(2) { animation-delay: 0.04s; }
  .nav.is-open .nav__link:nth-child(3) { animation-delay: 0.08s; }
  .nav.is-open .nav__link:nth-child(4) { animation-delay: 0.12s; }
  .nav.is-open .nav__link:nth-child(5) { animation-delay: 0.16s; }

  /* small tap targets elsewhere */
  .wiz-detail { min-height: 2.75rem; }
  footer, .footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__links, .nav__bars span { transition: none; }
  .nav.is-open .nav__link { animation: none; }
}

/* ===================== Phones: pop-up fit ===================== */
@supports (height: 100dvh) {
  .quote-modal__card { max-height: calc(100dvh - 5.5rem); }
}

@media (max-width: 520px) {
  .quote-pill {
    top: -1.7rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
  .quote-pill--gold { left: 0.6rem; }
  .quote-pill--navy { left: auto; right: 0.6rem; }
  .specialty .quote-pill--navy { left: 0.6rem; right: auto; }
}

@media (max-width: 380px) {
  .quote-pill { padding: 0.38rem 0.5rem; font-size: 0.53rem; letter-spacing: 0.04em; }
}

/* nav button must keep its own size (the hero's full-width phone rule is for hero buttons only) */
@media (max-width: 700px) {
  .nav__left { min-width: 0; gap: 0.6rem; }
  .nav .nav__cta { width: auto; flex: none; justify-content: center; white-space: nowrap; }
}
