:root {
  --bg: #f7f4ef;
  --bg-elevated: #fffefb;
  --ink: #14120f;
  --ink-muted: #5c574e;
  --accent: #0d4f4c;
  --accent-hover: #0a3d3b;
  --accent-soft: rgba(13, 79, 76, 0.12);
  --border: rgba(20, 18, 15, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --shadow: 0 24px 48px -24px rgba(20, 18, 15, 0.18);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

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

  .site-header {
    transition: none;
  }

  .site-nav a:not(.nav-cta)::after {
    transition: none;
  }

  .nav-cta,
  .nav-cta:hover,
  .nav-cta:focus-visible,
  .nav-cta:active {
    transform: none;
  }

  .btn {
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible,
  .btn-secondary:hover,
  .btn-secondary:focus-visible,
  .btn-ghost:hover,
  .btn-ghost:focus-visible {
    transform: none;
    box-shadow: none;
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px -20px rgba(20, 18, 15, 0.2);
  background: rgba(255, 254, 251, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.5rem 1.2rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 4px 12px -2px rgba(13, 79, 76, 0.45),
    0 10px 28px -10px rgba(20, 18, 15, 0.2);
  transform: translateY(-2px);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 20px -4px rgba(13, 79, 76, 0.5),
    0 18px 44px -14px rgba(20, 18, 15, 0.28);
}

.nav-cta:active {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
}

.nav-toggle-bar::before {
  top: 0.85rem;
}

.nav-toggle-bar::after {
  bottom: 0.85rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 50%;
  translate: -50% -50%;
  rotate: 45deg;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  bottom: auto;
  top: 50%;
  translate: -50% -50%;
  rotate: -45deg;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 4rem 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
    translate: 0 -120%;
    opacity: 0;
    visibility: hidden;
    transition: translate 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    translate: 0 0;
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav li:last-child {
    border-bottom: none;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
    align-self: center;
    display: inline-flex;
    width: auto;
    margin-inline: auto;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 1.2rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}

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

.hero-gradient {
  position: absolute;
  top: -20%;
  right: -15%;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 14s ease-in-out infinite;
}

@keyframes hero-glow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.06);
  }
}

.hero-entrance {
  opacity: 0;
  animation: hero-entrance 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--hero-d, 0) * 0.1s + 0.05s);
}

@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(1.15rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-driven reveals */
.reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

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

.package-grid > .reveal:nth-child(1) {
  --reveal-delay: 0.02s;
}

.package-grid > .reveal:nth-child(2) {
  --reveal-delay: 0.12s;
}

.package-grid > .reveal:nth-child(3) {
  --reveal-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-gradient {
    animation: none;
  }

  .hero-entrance {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .package-featured {
    animation: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(13, 79, 76, 0.55);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgba(20, 18, 15, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink-muted);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Quote form submit — processing → check → navigate */
.quote-submit {
  position: relative;
  min-height: 3rem;
}

.quote-submit-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.25em;
}

.quote-submit-check {
  line-height: 0;
}

.quote-submit-check svg {
  display: block;
}

.quote-submit.is-processing {
  cursor: wait;
  opacity: 0.95;
}

.quote-submit.is-success {
  cursor: default;
  background: var(--accent-hover);
}

.quote-submit:disabled {
  opacity: 1;
}

.quote-submit.is-success .quote-submit-check svg {
  animation: quote-check-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes quote-check-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-submit.is-success .quote-submit-check svg {
    animation: none;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

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

.section-head {
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

/* Packages */
.packages {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.package-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.package-card {
  position: relative;
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.package-card:not(.package-featured):hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -28px rgba(20, 18, 15, 0.2);
}

.package-featured:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .package-card:not(.package-featured):hover,
  .package-featured:hover {
    transform: none;
  }
}

.package-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0;
}

.package-for {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.package-price {
  margin: 0;
  font-size: 1.125rem;
}

.package-price strong {
  color: var(--accent);
}

.package-turnaround {
  margin: -0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.package-turnaround-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.package-turnaround-note {
  display: block;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

.package-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  flex: 1;
}

.package-card ul li {
  margin-bottom: 0.35rem;
}

.package-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.package-featured {
  background: var(--ink);
  color: #f0ebe3;
  border-color: var(--ink);
  box-shadow: var(--shadow);
  animation: featured-halo 5s ease-in-out infinite;
}

@keyframes featured-halo {
  0%,
  100% {
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(126, 207, 200, 0.12);
  }
  50% {
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(126, 207, 200, 0.28),
      0 0 40px -12px rgba(126, 207, 200, 0.25);
  }
}

.package-featured .package-for,
.package-featured ul {
  color: rgba(240, 235, 227, 0.75);
}

.package-featured .package-price strong {
  color: #7ecfc8;
}

.package-featured .package-turnaround {
  color: #f0ebe3;
}

.package-featured .package-turnaround-label {
  color: rgba(240, 235, 227, 0.55);
}

.package-featured .package-turnaround-note {
  color: rgba(240, 235, 227, 0.65);
}

.package-featured ul strong {
  color: #b8ebe4;
  font-weight: 600;
}

.package-featured .btn-primary {
  background: #7ecfc8;
  color: var(--ink);
}

.package-featured .btn-primary:hover,
.package-featured .btn-primary:focus-visible {
  background: #a8e4de;
  box-shadow: 0 12px 32px -10px rgba(126, 207, 200, 0.45);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(126, 207, 200, 0.25);
  color: #7ecfc8;
}

/* Projects — carousel (3-up desktop, 1-up small screens) */
.project-gallery {
  position: relative;
}

.project-gallery-frame {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .project-gallery-frame {
    gap: 1rem;
  }
}

.gallery-nav {
  flex-shrink: 0;
  align-self: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s ease,
    opacity 0.2s;
}

.gallery-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

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

.gallery-nav:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.project-gallery-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  outline: none;
}

.project-gallery-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .project-gallery-track {
    transition-duration: 0.01ms;
  }

  .gallery-nav:hover:not(:disabled) {
    transform: none;
  }
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.gallery-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(20, 18, 15, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-dot:hover,
.gallery-dot:focus-visible {
  background: rgba(13, 79, 76, 0.45);
}

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

.gallery-dot[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.35);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background: var(--ink-muted);
  overflow: hidden;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-thumb img,
.project-card:focus-within .project-thumb img {
  transform: scale(1.04);
}

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

  .project-card:hover .project-thumb img,
  .project-card:focus-within .project-thumb img {
    transform: none;
  }
}

.project-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.project-body p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.project-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
  text-decoration: underline;
}

/* Reviews */
.reviews {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.reviews-head {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reviews-head h2 {
  margin: 0;
}

.reviews-head-cta {
  margin: 0;
}

@media (max-width: 720px) {
  .reviews-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.reviews-carousel {
  position: relative;
  --reviews-marquee-duration: 150s;
  margin-block: 0.75rem;
}

.reviews-viewport {
  overflow: hidden;
  /* Room for card shadows so overflow doesn’t clip top/bottom */
  padding-block: clamp(1rem, 3vw, 1.85rem);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.reviews-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  will-change: transform;
  /* --reviews-loop-distance set in JS: first group width + gap (matches inner card gap) */
  --reviews-loop-distance: 0px;
  animation: reviews-marquee-smooth var(--reviews-marquee-duration) linear infinite;
}

.reviews-marquee-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.25rem;
  flex: 0 0 auto;
}

/* Same horizontal rhythm as between cards — avoids “stuck together” at the loop seam */
.reviews-marquee-group + .reviews-marquee-group {
  margin-inline-start: 1.25rem;
}

.reviews-viewport:hover .reviews-track,
.reviews-viewport:focus-within .reviews-track {
  animation-play-state: paused;
}

@keyframes reviews-marquee-smooth {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--reviews-loop-distance, 0px)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .reviews-track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    width: 100%;
    gap: 1.25rem;
  }

  .reviews-marquee-group[aria-hidden="true"] {
    display: none;
  }

  .reviews-marquee-group {
    flex-wrap: wrap;
    width: 100%;
  }

  .review-card {
    flex: 1 1 280px !important;
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .review-text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 16.5rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 4px 20px -8px rgba(20, 18, 15, 0.1);
}

.review-text {
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
  font-size: 1.0625rem;
  line-height: 1.58;
  color: var(--ink);
  align-self: stretch;
  /* Fallback if JS is off: cap height by lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
}

.review-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}

.review-author {
  margin: 0;
  font-weight: 700;
  font-size: 0.9375rem;
}

.review-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* Verified submitted reviews */
#verified-reviews {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

#verified-reviews[data-count="1"] {
  grid-template-columns: minmax(260px, 520px);
  justify-content: center;
}

#verified-reviews[data-count="2"] {
  grid-template-columns: repeat(2, minmax(250px, 430px));
  justify-content: space-evenly;
}

#verified-reviews[data-count="3"] {
  grid-template-columns: repeat(3, minmax(220px, 360px));
  justify-content: space-around;
}

#verified-reviews.is-carousel {
  display: block;
}

.verified-reviews-viewport {
  overflow: hidden;
  padding-block: 0.35rem;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.verified-reviews-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: verified-reviews-marquee 90s linear infinite;
}

.verified-reviews-group {
  display: flex;
  gap: 1rem;
  flex: 0 0 auto;
}

.verified-reviews-group + .verified-reviews-group {
  margin-inline-start: 1rem;
}

#verified-reviews.is-carousel .package-card {
  flex: 0 0 min(360px, 86vw);
}

.rating-stars {
  display: inline-flex;
  gap: 0.08rem;
  vertical-align: middle;
  color: rgba(20, 18, 15, 0.25);
}

.rating-star {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.rating-star.is-full {
  color: var(--accent);
}

.rating-star.is-half::before {
  content: "★";
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  color: var(--accent);
}

@keyframes verified-reviews-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 900px) {
  #verified-reviews[data-count="2"],
  #verified-reviews[data-count="3"] {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .verified-reviews-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .verified-reviews-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .verified-reviews-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .verified-reviews-group[aria-hidden="true"] {
    display: none;
  }
}

/* Quote */
.quote {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
}

.quote-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr minmax(0, 420px);
  align-items: start;
}

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

.quote-layout .quote-form.reveal {
  --reveal-delay: 0.12s;
}

.quote-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.quote-intro > p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  max-width: 28rem;
}

.quote-checklist {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.quote-checklist li {
  margin-bottom: 0.35rem;
}

.quote-form {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.field input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  accent-color: var(--accent);
}

.promo-optin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.promo-optin-text {
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.form-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.form-note-test {
  display: none;
}

.quote-form[data-test-mode="true"] .form-note-live {
  display: none;
}

.quote-form[data-test-mode="true"] .form-note-test {
  display: block;
  background: var(--accent-soft);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
}

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

.form-note code {
  font-size: 0.7rem;
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

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

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: rgba(247, 244, 239, 0.7);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: #f7f4ef;
  margin: 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
}

.footer-copy a {
  color: inherit;
  text-decoration: none;
}

.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: #7ecfc8;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: rgba(247, 244, 239, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #7ecfc8;
}
