:root {
    /* Brand palette */
    --brand-forest: #32463c;
    --brand-forest-dark: #22332b;
    --brand-terracotta: #aa5a32;
    --brand-terracotta-dark: #8a4626;
    --brand-cream: #fbf7f1;
    --brand-sand: #f3ece1;
    --brand-white: #ffffff;

    /* Semantic tokens */
    --color-text: var(--brand-forest);
    --color-text-muted: #6b675c;
    --color-card-border: rgba(50, 70, 60, 0.08);
    --color-highlight: #eac96e;

    /* Fonts */
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Caveat', cursive;

    /* Layout */
    --container-max: 1280px;
    --container-padding: clamp(1.5rem, 4vw, 3rem);

    --section-padding-y: 5rem;
    --hero-padding-top: 7rem;
    --hero-padding-bottom: 3rem;
    --footer-padding-y: 3.5rem;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--brand-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section[id] {
    scroll-margin-top: 96px;
}

/* ============ NAV ============ */
.nav-wrap {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 999px;
    padding: 8px 8px 8px 28px;
    box-shadow: 0 8px 28px rgba(50, 70, 60, 0.08),
                0 2px 6px rgba(50, 70, 60, 0.04);
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    height: 36px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--brand-forest);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-terracotta);
}

.btn-nav-cta {
    background: var(--brand-forest);
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.btn-nav-cta:hover {
    background: var(--brand-terracotta);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand-forest);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu drawer */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--brand-cream);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 80px 24px 40px;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu.is-open {
    opacity: 1;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.mobile-menu-links a {
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-forest);
    text-decoration: none;
    transition: color 0.15s ease;
}

.mobile-menu-links a:hover {
    color: var(--brand-terracotta);
}

.mobile-menu-cta {
    margin-top: 12px;
}

/* ============ SHARED LAYOUT ============ */
.section,
.footer {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.section.is-visible,
.footer.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .section, .footer { opacity: 1; transform: none; transition: none; }
}

.section {
    padding: var(--section-padding-y) 0;
    background: var(--brand-cream);
    position: relative;
    overflow: hidden;
}

.section--cream { background: var(--brand-cream); }
.section--white { background: var(--brand-white); }
.section--yellow { background: #f4ba36; }

/* Scattered paw watermarks (injected by JS into each section) */
.paw-scatter {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.paw {
    position: absolute;
    top: var(--paw-top);
    left: var(--paw-left);
    width: var(--paw-size);
    height: var(--paw-size);
    background-color: var(--paw-color);
    -webkit-mask-image: url("favicon.png");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url("favicon.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transform: rotate(var(--paw-rot));
    opacity: var(--paw-opacity, 0.07);
}

/* Push real content above the paw layer */
.section > * { position: relative; z-index: 1; }
.section > .paw-scatter { z-index: 0; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Section intros (heading + subhead) constrained to ~half width */
.section-intro {
    max-width: 640px;
    margin: 0 auto var(--section-padding-y);
    text-align: center;
}

/* Card primitives — cream-on-white, white-on-cream */
.card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--color-card-border);
    padding: 32px;
    background: var(--brand-white);
    transition: transform 0.5s ease-out,
                box-shadow 0.5s ease-out,
                border-color 0.5s ease-out;
}

.section--white .card {
    background: var(--brand-cream);
}

/* Layered hover cascade: fast color flood, slower tilt */
.card-fill {
    position: absolute;
    inset: 0;
    background: var(--brand-forest);
    opacity: 0;
    transition: opacity 0.15s ease-out;
    z-index: 0;
    pointer-events: none;
}

.card > *:not(.card-fill) {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: rotate(-2deg);
    border-color: var(--brand-forest);
    box-shadow: 0 22px 50px -18px rgba(50, 70, 60, 0.35),
                0 8px 16px -8px rgba(50, 70, 60, 0.2);
}

.card:hover .card-fill {
    opacity: 1;
}

/* Inner element recolor — 200ms, ease-out */
.card .service-icon,
.card .card-title,
.card .card-body,
.card .quote-mark,
.card .testimonial-quote,
.card .author-name,
.card .author-role,
.card .testimonial-author {
    transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.card:hover .service-icon {
    background: var(--brand-terracotta);
    color: #fff;
}

.card:hover .card-title,
.card:hover .quote-mark,
.card:hover .testimonial-quote,
.card:hover .author-name {
    color: #fff;
}

.card:hover .card-body,
.card:hover .author-role {
    color: rgba(255, 255, 255, 0.85);
}

.card:hover .testimonial-author {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Image placeholder / icon chip inside cards */
.chip {
    background: var(--brand-sand);
    border-radius: 16px;
}

/* Handwritten accent text */
.accent {
    font-family: var(--font-accent);
    color: var(--brand-terracotta);
    font-weight: 600;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--hero-padding-top);
    padding-bottom: var(--hero-padding-bottom);
}

.hero-stage {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    text-align: center;
}

.hero-title {
    font-size: 76px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 28px;
}

.highlighted {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlighted::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: -2px;
    height: 38px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 38' fill='none' preserveAspectRatio='none'><path d='M4 12 C 80 2, 200 18, 316 6 L 316 32 C 200 38, 80 24, 4 34 Z' fill='%23eac96e'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    transform-origin: left center;
    animation: highlight-sweep 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
}

@keyframes highlight-sweep {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 auto 40px;
    max-width: 640px;
}

.hero-actions {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--brand-terracotta);
    color: #fff;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 20px rgba(170, 90, 50, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--brand-forest);
    box-shadow: 0 6px 20px rgba(50, 70, 60, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--brand-forest);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid var(--brand-forest);
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
    background: var(--brand-terracotta);
    color: #fff;
    border-color: var(--brand-terracotta);
}

/* ---------- Avatars ---------- */
.avatar {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(50, 70, 60, 0.1);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    cursor: pointer;
    /* `backwards` fill applies the 0% keyframe during animation-delay so the avatar is
       hidden before pop-in. No `forwards` so hover transform isn't blocked by the
       animation's lingering scale(1) value once it completes. */
    animation: avatarPopIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.avatar-1 { animation-delay: 0.10s; }
.avatar-5 { animation-delay: 0.18s; }
.avatar-2 { animation-delay: 0.26s; }
.avatar-6 { animation-delay: 0.34s; }
.avatar-4 { animation-delay: 0.42s; }
.avatar-8 { animation-delay: 0.50s; }
.avatar-3 { animation-delay: 0.58s; }
.avatar-7 { animation-delay: 0.66s; }

@keyframes avatarPopIn {
    0%   { opacity: 0; transform: scale(0.3); }
    70%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

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

.avatar:hover {
    transform: scale(1.12);
    z-index: 5;
    box-shadow: 0 14px 32px rgba(50, 70, 60, 0.2);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Positioned via calc(50% + Npx) so avatars stay outside the 760px-wide centered text on any viewport.
   Each side has 4 avatars distributed across distinct vertical zones, with horizontal staggering
   so avatars in adjacent vertical positions don't overlap. */

/* Left side: right edge sits N px to the left of viewport center */
.avatar-1 { top: 30px;     right: calc(50% + 400px); width: 140px; height: 140px; }
.avatar-2 { top: 220px;    right: calc(50% + 410px); width: 160px; height: 160px; }
.avatar-3 { bottom: 220px; right: calc(50% + 540px); width: 90px;  height: 90px;  }
.avatar-4 { bottom: 30px;  right: calc(50% + 390px); width: 125px; height: 125px; }

/* Right side: left edge sits N px to the right of viewport center */
.avatar-5 { top: 30px;     left: calc(50% + 400px); width: 140px; height: 140px; }
.avatar-6 { top: 220px;    left: calc(50% + 410px); width: 160px; height: 160px; }
.avatar-7 { bottom: 220px; left: calc(50% + 540px); width: 90px;  height: 90px;  }
.avatar-8 { bottom: 30px;  left: calc(50% + 390px); width: 125px; height: 125px; }

/* ============ SERVICES / CAROUSEL ============ */
.services-grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 56px;
    align-items: stretch;
}

.services-content {
    display: flex;
    flex-direction: column;
    min-width: 0; /* allow inner carousel to shrink properly */
}

.services-image {
    border-radius: 28px;
    overflow: hidden;
    background: var(--brand-sand);
    min-height: 600px;
}

.services-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Photo collage variant ---------- */
.services-collage {
    position: relative;
    background: transparent;
    overflow: visible;
    border-radius: 0;
}

.collage-tile {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease-out;
    box-shadow: 0 22px 40px -18px rgba(50, 70, 60, 0.3),
                0 8px 16px -8px rgba(50, 70, 60, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.collage-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-anchor {
    top: 12%;
    right: 0;
    width: 66%;
    aspect-ratio: 1 / 1;
    z-index: 1;
}

.collage-side-a {
    top: 0;
    left: 0;
    width: 48%;
    aspect-ratio: 1 / 1;
    z-index: 2;
}

.collage-side-b {
    top: 48%;
    left: 4%;
    width: 46%;
    aspect-ratio: 1 / 1;
    z-index: 2;
}

.collage-tile {
    cursor: pointer;
}

.collage-anchor:hover {
    transform: rotate(-1deg) scale(1.04);
}

.collage-side-a:hover {
    transform: rotate(-4deg) scale(1.08);
}

.collage-side-b:hover {
    transform: rotate(4deg) scale(1.08);
}

.services-intro {
    max-width: 640px;
    margin-bottom: 48px;
}

.eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-terracotta);
    margin-bottom: 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 640px;
}

.carousel {
    position: relative;
}

.carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: -32px -16px;
    padding: 32px 16px;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.service-card {
    flex: 0 0 calc((100% - 24px) / 2);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 32px 36px;
}

.section .service-card,
.section--white .service-card,
.section--cream .service-card {
    background: var(--brand-white);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-sand);
    color: var(--brand-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    flex-shrink: 0;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    line-height: 1.25;
}

.card-body {
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-dot {
    appearance: none;
    background: rgba(50, 70, 60, 0.18);
    border: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, width 0.25s ease;
}

.carousel-dot.is-active {
    background: var(--brand-forest);
    width: 28px;
}

.carousel-arrows {
    display: flex;
    gap: 12px;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(50, 70, 60, 0.2);
    background: transparent;
    color: var(--brand-forest);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.carousel-arrow svg {
    width: 18px;
    height: 18px;
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--brand-forest);
    color: #fff;
    border-color: var(--brand-forest);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 24, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

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

.modal-overlay[hidden] {
    display: none !important;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: min(640px, calc(100vh - 48px));
    aspect-ratio: 1 / 1;
    background: var(--brand-cream);
    border-radius: 24px;
    padding: 36px 40px 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.3s ease-out;
}

.is-open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--brand-forest);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.modal-close:hover {
    background: rgba(50, 70, 60, 0.08);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    margin-right: 48px;
}

.progress-step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(50, 70, 60, 0.15);
    transition: background 0.25s ease;
}

.progress-step.is-active {
    background: var(--brand-forest);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 4px 8px;
    margin: 0 -4px;
    min-height: 0;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(50, 70, 60, 0.18);
    border-radius: 3px;
}

.modal-page {
    display: none;
    animation: modal-page-in 0.25s ease-out;
}

.modal-page.is-active {
    display: block;
}

@keyframes modal-page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-terracotta);
    margin-bottom: 10px;
}

.modal-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-bottom: 22px;
}

/* ----- Form fields ----- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.field input,
.field textarea {
    width: 100%;
    background: #fff;
    border: 1.5px solid rgba(50, 70, 60, 0.15);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(50, 70, 60, 0.4);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-forest);
    box-shadow: 0 0 0 3px rgba(50, 70, 60, 0.1);
}

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

.field.has-error input,
.field.has-error textarea {
    border-color: #c14a4a;
    background: #fdf2f2;
}

/* Field groups (radio sets) */
.field-group {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group .field-label {
    margin-bottom: 4px;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-list--inline {
    flex-direction: row;
    flex-wrap: wrap;
}

.option-list--inline .option-card {
    flex: 1 1 auto;
    min-width: 0;
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid rgba(50, 70, 60, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card:hover {
    border-color: rgba(50, 70, 60, 0.45);
}

.option-card:has(input:checked) {
    border-color: var(--brand-forest);
    background: rgba(50, 70, 60, 0.04);
}

.option-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.option-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(50, 70, 60, 0.25);
    border-radius: 50%;
    margin-left: 12px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-card:has(input:checked) .option-check {
    background: var(--brand-forest);
    border-color: var(--brand-forest);
}

.option-card:has(input:checked) .option-check::after {
    content: "";
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3 7.2 L6 10 L11 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.option-list.has-error .option-card {
    border-color: #c14a4a;
}

.field-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: -2px 0 8px;
}

/* Square check-box variant for multi-select option cards */
.option-check--square {
    border-radius: 6px;
}

.option-card:has(input[type=checkbox]:checked) {
    border-color: var(--brand-forest);
    background: rgba(50, 70, 60, 0.04);
}

.option-card:has(input[type=checkbox]:checked) .option-check--square {
    background: var(--brand-forest);
    border-color: var(--brand-forest);
}

.option-card:has(input[type=checkbox]:checked) .option-check--square::after {
    content: "";
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3 7.2 L6 10 L11 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Number stepper inside option card */
.option-card--stepper {
    padding: 8px 12px;
}

.number-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid rgba(50, 70, 60, 0.18);
    background: #fff;
    color: var(--brand-forest);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.stepper-btn:hover {
    background: rgba(50, 70, 60, 0.06);
    border-color: var(--brand-forest);
}

.number-stepper input[type=number] {
    width: 48px;
    height: 32px;
    border: 1.5px solid rgba(50, 70, 60, 0.18);
    border-radius: 8px;
    padding: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    font-family: inherit;
    background: #fff;
    /* Hide native spinners */
    -moz-appearance: textfield;
}

.number-stepper input[type=number]::-webkit-outer-spin-button,
.number-stepper input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-stepper input[type=number]:focus {
    outline: none;
    border-color: var(--brand-forest);
}

/* Standalone stepper (used in modal "Images per pet") */
.number-stepper--standalone {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1.5px solid var(--color-card-border);
    border-radius: 14px;
    background: var(--brand-white);
    margin-top: 4px;
}

.number-stepper--standalone .stepper-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
}

.number-stepper--standalone input[type=number] {
    width: 56px;
    height: 36px;
    font-size: 16px;
}

/* Checkbox */
.checkbox-field {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    cursor: pointer;
}

.checkbox-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(50, 70, 60, 0.3);
    border-radius: 6px;
    margin-top: 1px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-field:has(input:checked) .checkbox-box {
    background: var(--brand-forest);
    border-color: var(--brand-forest);
}

.checkbox-field:has(input:checked) .checkbox-box::after {
    content: "";
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3 7.2 L6 10 L11 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.checkbox-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.checkbox-field.has-error .checkbox-box {
    border-color: #c14a4a;
}

/* ----- Footer with buttons ----- */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(50, 70, 60, 0.08);
}

.btn-modal-back,
.btn-modal-next {
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.btn-modal-back {
    background: transparent;
    color: var(--brand-forest);
    border: 1.5px solid rgba(50, 70, 60, 0.2);
}

.btn-modal-back:hover {
    background: rgba(50, 70, 60, 0.06);
}

.btn-modal-next {
    background: var(--brand-terracotta);
    color: #fff;
    box-shadow: 0 6px 16px rgba(170, 90, 50, 0.25);
}

.btn-modal-next:hover {
    background: var(--brand-terracotta-dark);
    transform: translateY(-1px);
}

/* Success state */
.modal-success {
    text-align: center;
    padding-top: 24px;
}

.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    color: var(--brand-forest);
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-illustration {
    width: 180px;
    margin: 0 auto 18px;
}

.success-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Responsive modal */
@media (max-width: 640px) {
    .modal-overlay { padding: 12px; }
    .modal-card {
        aspect-ratio: auto;
        max-height: calc(100vh - 24px);
        height: 100%;
        padding: 28px 22px 18px;
    }
    .modal-title { font-size: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .option-list--inline { flex-direction: column; }
}

/* ============ FAQ ============ */
.faq-intro {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-item {
    border-radius: 14px;
    transition: background 0.25s ease;
    overflow: hidden;
}

.faq-item[open] {
    background: var(--brand-cream);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    fill: none;
}

.faq-item[open] .faq-icon {
    color: var(--brand-forest);
}

/* Rotate the vertical bar of the + so it becomes a − */
.faq-icon svg line:nth-child(2) {
    transform-origin: center;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon svg line:nth-child(2) {
    transform: rotate(90deg);
}

/* Smooth height animation for the answer */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-answer > div {
    overflow: hidden;
}

.faq-item[open] .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer p {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.faq-image-pair {
    display: flex;
    gap: 16px;
    padding: 0 24px 22px;
    flex-wrap: wrap;
}

.faq-image {
    margin: 0;
    flex: 1 1 200px;
    max-width: 240px;
    text-align: center;
}

.faq-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: 0 8px 20px -8px rgba(50, 70, 60, 0.25);
}

.faq-image figcaption {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.faq-contact {
    max-width: 640px;
    margin: 64px auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.faq-contact-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.faq-contact-email {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0;
}

.faq-contact-email a {
    color: var(--brand-terracotta);
    font-weight: 600;
    text-decoration: none;
}

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

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .eyebrow {
    margin-bottom: 16px;
}

.about-content .section-title {
    font-size: 44px;
    text-align: left;
    margin-bottom: 24px;
}

.about-body {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

.about-body:last-child {
    margin-bottom: 0;
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: 92%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    transform: rotate(-3deg);
    box-shadow: 0 24px 50px -14px rgba(50, 70, 60, 0.32),
                0 8px 18px rgba(50, 70, 60, 0.14),
                inset 0 0 0 6px #fff;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about-img:hover {
    transform: rotate(-1deg) scale(1.02);
    box-shadow: 0 32px 64px -16px rgba(50, 70, 60, 0.4),
                0 10px 22px rgba(50, 70, 60, 0.18),
                inset 0 0 0 6px #fff;
}

/* Handwritten "meet lassie!" cue — sits at the bottom-right corner of the photo.
   Arrow points up-left toward Lassie, text below. No background — just terracotta marks. */
.about-cue {
    position: absolute;
    bottom: 6%;
    right: -40px;
    width: 130px;
    transform: rotate(7deg);
    pointer-events: none;
    color: var(--brand-terracotta);
    z-index: 11;
    text-align: center;
}

.about-cue-arrow {
    display: block;
    width: 100%;
    height: 50px;
    color: var(--brand-terracotta);
    margin-bottom: 4px;
}

.about-cue-text {
    display: block;
    font-family: var(--font-accent);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-terracotta);
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-content .section-title { font-size: 34px; }
    .about-img { max-width: 360px; }
    .about-cue { bottom: 4%; right: -28px; width: 110px; }
    .about-cue-text { font-size: 22px; }
    .about-cue-arrow { height: 42px; }
}

/* ============ FOOTER ============ */
.footer {
    background: var(--brand-forest);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--footer-padding-y) 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
    height: 48px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-cta {
    display: inline-flex;
    margin-top: 22px;
}

.footer-cta:hover {
    background: var(--brand-terracotta-dark);
    box-shadow: 0 6px 20px rgba(138, 70, 38, 0.35);
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-info p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
}

.footer-bottom {
    padding-top: 1.5rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

/* ============ PRICING ============ */
.pricing-intro {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.pricing-intro .section-subtitle {
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.pricing-card:focus-visible {
    outline: 2px solid var(--brand-forest);
    outline-offset: 4px;
}

.section .pricing-card,
.section--white .pricing-card,
.section--cream .pricing-card {
    background: var(--brand-white);
}

.pricing-illustration {
    width: 100%;
    height: 220px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--brand-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.pricing-illustration img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
}

.pricing-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    transition: color 0.2s ease-out;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.2s ease-out;
}

.price-amount-prefix {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease-out;
}

.price-period {
    font-size: 15px;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.2s ease-out;
}

.pricing-tagline {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 22px;
    transition: color 0.2s ease-out;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.pricing-list li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.5;
    transition: color 0.2s ease-out;
}

.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-sand);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3 7.2 L6 10 L11 4.5' stroke='%2332463c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    transition: background-color 0.2s ease-out;
}

.pricing-footer {
    text-align: center;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pricing-footer-note {
    font-size: 15px;
    color: var(--color-text-muted);
}

.pricing-footer-note a {
    color: var(--brand-terracotta);
    font-weight: 600;
    text-decoration: none;
}

.pricing-footer-note a:hover {
    text-decoration: underline;
}

.card:hover .pricing-name,
.card:hover .price-amount,
.card:hover .pricing-list li {
    color: #fff;
}

.card:hover .price-amount-prefix,
.card:hover .price-period,
.card:hover .pricing-tagline {
    color: rgba(255, 255, 255, 0.8);
}

.card:hover .pricing-list li::before {
    background-color: rgba(255, 255, 255, 0.15);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3 7.2 L6 10 L11 4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* ============ HOW IT WORKS ============ */
/* Disable section-level fade so individual elements can stagger */
.section.how-it-works {
    opacity: 1;
    transform: none;
    transition: none;
}

.how-it-works .how-intro,
.how-it-works .how-step,
.how-it-works .how-line {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.how-it-works.is-visible .how-intro {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.how-it-works.is-visible .how-step:nth-of-type(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.how-it-works.is-visible .how-step:nth-of-type(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.36s;
}

.how-it-works.is-visible .how-step:nth-of-type(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.52s;
}

.how-it-works.is-visible .how-line {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
    transition-duration: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .how-it-works .how-intro,
    .how-it-works .how-step,
    .how-it-works .how-line {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.how-intro {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.eyebrow--on-yellow {
    color: var(--brand-forest);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.how-line {
    position: absolute;
    top: 312px; /* visual height (280) + visual margin-bottom (32) */
    left: 16.67%;
    right: 16.67%;
    height: 48px; /* match number height */
    pointer-events: none;
    z-index: 0;
}

.how-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px dashed rgba(50, 70, 60, 0.4);
}

.how-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.how-visual {
    width: 100%;
    height: 280px;
    margin-bottom: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Polaroid pair — two photos stacked with opposite tilts */
.how-visual--pair {
    perspective: 1000px;
}

.pair-img {
    position: absolute;
    width: 62%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 16px 36px -10px rgba(50, 70, 60, 0.3),
                0 4px 10px rgba(50, 70, 60, 0.12),
                inset 0 0 0 4px #fff;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.22s ease-out;
}

.pair-img:hover {
    box-shadow: 0 28px 56px -12px rgba(50, 70, 60, 0.4),
                0 8px 18px rgba(50, 70, 60, 0.18),
                inset 0 0 0 4px #fff;
}

.pair-img--back {
    top: 4%;
    left: 4%;
    transform: rotate(-8deg);
    z-index: 1;
}

.pair-img--front {
    bottom: 4%;
    right: 4%;
    transform: rotate(7deg);
    z-index: 2;
}

.pair-img:hover {
    z-index: 10;
}

.pair-img--back:hover {
    transform: rotate(-10deg) translate(-4px, -2px) scale(1.05);
}

.pair-img--front:hover {
    transform: rotate(9deg) translate(4px, 2px) scale(1.05);
}

/* Background color picker — three stacked cards.
   Wrapper is transparent (like .how-visual--pair) so cards position relative to .how-visual (280px). */
.how-visual--swatches {
    perspective: 1000px;
}

.swatch-option {
    position: absolute;
    left: 50%;
    width: 48%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 18px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 14px 30px -10px rgba(50, 70, 60, 0.3),
                0 4px 10px rgba(50, 70, 60, 0.12),
                inset 0 0 0 4px #fff;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                top 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.swatch-option[data-bg="yellow"] { background-color: #f4ba36; }
.swatch-option[data-bg="white"]  { background-color: #ffffff; }
.swatch-option[data-bg="park"]   { background-image: url("bg_park.png"); }

/* Position is driven by data-slot (set in JS based on which card is active),
   so the active card always sits in the front slot regardless of color */
.swatch-option[data-slot="1"] { top: 16px; --rot: -8deg; z-index: 1; }
.swatch-option[data-slot="2"] { top: 50px; --rot: 5deg;  z-index: 2; }
.swatch-option[data-slot="3"] { top: 84px; --rot: -3deg; z-index: 3; }

.swatch-option { transform: translateX(-50%) rotate(var(--rot)); }

.swatch-option:hover {
    transform: translateX(-50%) rotate(var(--rot)) translateY(-3px) scale(1.03);
}

.swatch-option.is-active {
    z-index: 10;
    transform: translateX(-50%) rotate(var(--rot)) scale(1.05);
    box-shadow: 0 18px 36px -10px rgba(50, 70, 60, 0.4),
                0 4px 10px rgba(50, 70, 60, 0.14),
                inset 0 0 0 4px #fff,
                0 0 0 3px var(--brand-forest);
}

/* While cards are shuffling slots, lock pointer events on inactive cards
   so the cursor passing over a moving card doesn't trigger another swap */
.how-visual--swatches.is-shuffling .swatch-option:not(.is-active) {
    pointer-events: none;
}

/* Handwritten cue — top-right corner, arrow curves down-left toward cards */
.swatch-cue {
    position: absolute;
    top: 8px;
    right: 0;
    width: 100px;
    pointer-events: none;
    color: var(--brand-terracotta);
    z-index: 11;
}

.swatch-cue-text {
    display: block;
    font-family: var(--font-accent);
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
    transform: rotate(-4deg);
    transform-origin: right center;
    line-height: 1;
    text-align: right;
}

.swatch-cue-arrow {
    display: block;
    width: 56px;
    height: 56px;
    color: var(--brand-terracotta);
    margin-top: 4px;
    margin-left: 12px;
}

.how-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-forest);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(50, 70, 60, 0.18);
}

.how-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-forest);
    margin-bottom: 10px;
    line-height: 1.25;
}

.how-body {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(34, 51, 43, 0.78);
    max-width: 320px;
    margin: 0 auto;
}

/* On the yellow section, force the section title color */
.section--yellow .section-title {
    color: var(--brand-forest);
}

/* ============ IN ACTION ============ */
.in-action-intro {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.in-action-intro .section-title {
    margin-bottom: 16px;
}

.in-action-frame {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 60px -16px rgba(50, 70, 60, 0.28),
                0 8px 22px rgba(50, 70, 60, 0.10);
    background: #fff;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.in-action-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 72px -18px rgba(50, 70, 60, 0.34),
                0 12px 28px rgba(50, 70, 60, 0.12);
}

.in-action-image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 860px) {
    .in-action-frame { border-radius: 16px; }
}

/* ============ TESTIMONIALS ============ */
.testimonials-intro {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.testimonials-intro .section-title {
    font-size: 48px;
    margin-bottom: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}

.testimonial-card {
    padding: 32px 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card .testimonial-quote {
    flex-grow: 1;
}

.quote-mark {
    display: block;
    color: var(--brand-forest);
    margin-bottom: 14px;
}

.quote-mark svg {
    width: 36px;
    height: 26px;
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 24px;
}

.testimonial-author {
    border-top: 1px solid var(--color-card-border);
    padding-top: 18px;
}

.author-name {
    font-weight: 700;
    color: var(--color-text);
    font-size: 16px;
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .nav-links { gap: 24px; }
    .nav-links a { font-size: 14px; }

    .hero-title { font-size: 60px; }
    .avatar-1 { width: 110px; height: 110px; }
    .avatar-2 { width: 130px; height: 130px; }
    .avatar-3 { width: 75px; height: 75px; }
    .avatar-4 { width: 100px; height: 100px; }
    .avatar-5 { width: 110px; height: 110px; }
    .avatar-6 { width: 130px; height: 130px; }
    .avatar-7 { width: 75px; height: 75px; }
    .avatar-8 { width: 110px; height: 110px; }
    .section-title { font-size: 40px; }
    .services-grid { gap: 40px; }
    .service-card { flex-basis: 100%; }
    .testimonials-intro .section-title { font-size: 40px; }
    .testimonials-grid { gap: 20px; }

    .how-grid { gap: 32px; }
    .how-line { left: 16.67%; right: 16.67%; }
}

@media (max-width: 860px) {
    :root {
        --section-padding-y: 4rem;
        --hero-padding-top: 6rem;
        --hero-padding-bottom: 2.5rem;
    }
    .nav-links { display: none; }
    .btn-nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .nav { padding: 6px 12px 6px 20px; gap: 12px; }
    .nav-logo img { height: 30px; }
    .hero-title { font-size: 44px; }
    .hero-description { font-size: 16px; }

    /* Show avatars as a small row above the hero text */
    .hero-stage {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: auto;
        padding-top: 0;
    }
    .avatar {
        position: static;
        width: 48px !important;
        height: 48px !important;
        inset: auto !important;
        flex-shrink: 0;
    }
    .avatar-3, .avatar-4, .avatar-7 { display: none; }
    .hero-content {
        flex-basis: 100%;
        margin-top: 18px;
    }

    .section-title { font-size: 34px; }
    .services-intro { margin-bottom: 32px; }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .services-image {
        display: none;
    }
    .service-card {
        flex-basis: 88%;
        padding: 28px;
        min-height: 280px;
    }
    .service-icon { margin-bottom: 32px; }
    .carousel-controls { margin-top: 28px; }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pricing-card { padding: 28px 24px; }
    .price-amount { font-size: 40px; }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 420px;
        margin: 0 auto;
    }
    .how-line { display: none; }
    .how-intro { margin-bottom: 40px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 2rem;
    }
    .footer-logo { height: 40px; }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .testimonials-intro .section-title { font-size: 32px; }
    .testimonials-intro { margin-bottom: 36px; }
    .testimonial-card { padding: 24px; }

    .faq-intro { margin-bottom: 36px; }
    .faq-question { padding: 18px 18px; font-size: 15px; gap: 16px; }
    .faq-answer p { padding: 0 18px 18px; font-size: 14px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 34px; }
    .btn-primary {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ============ SERVICES FLAT (Essentially) ============ */
/* Note: padding-top intentionally normal. If you re-show #services above,
   set this to 0 to make the white sections flow as one. */

.services-flat-header {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 64px;
}

.services-flat-intro {
    text-align: left;
}

.services-flat-intro .section-title {
    font-size: 44px;
    margin-bottom: 16px;
}

.services-flat-intro .section-subtitle {
    max-width: 100%;
    margin: 0;
}

.services-flat-images {
    position: relative;
    aspect-ratio: 5 / 4;
}

.services-flat-img {
    position: absolute;
    width: 62%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 22px 48px -16px rgba(50, 70, 60, 0.35),
                0 6px 14px rgba(50, 70, 60, 0.12),
                inset 0 0 0 6px #fff;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.services-flat-img--a {
    top: 0;
    left: 0;
    transform: rotate(-4deg);
    z-index: 1;
}

.services-flat-img--b {
    bottom: 0;
    right: 0;
    transform: rotate(3deg);
    z-index: 2;
}

.services-flat-img--a:hover { transform: rotate(-2deg) scale(1.02); }
.services-flat-img--b:hover { transform: rotate(1deg) scale(1.02); }

.services-flat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 56px;
}

.services-flat-grid .service-card {
    flex: none;
    padding: 28px 24px;
}

.services-flat-grid .service-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
}

.services-flat-grid .service-icon svg {
    width: 22px;
    height: 22px;
}

.services-flat-grid .card-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.25;
}

.services-flat-grid .card-body {
    font-size: 14px;
    line-height: 1.55;
}

.testimonials-flat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* Inverted testimonial cards: green by default, cream on hover */
.section--white .testimonial-card--inverted,
.testimonial-card--inverted {
    background: var(--brand-forest);
    border-color: var(--brand-forest);
}

.testimonial-card--inverted .card-fill {
    background: var(--brand-cream);
}

.testimonial-card--inverted .quote-mark,
.testimonial-card--inverted .testimonial-quote,
.testimonial-card--inverted .author-name {
    color: #fff;
}

.testimonial-card--inverted .author-role {
    color: rgba(255, 255, 255, 0.85);
}

.testimonial-card--inverted .testimonial-author {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.testimonial-card--inverted:hover {
    border-color: var(--brand-forest);
}

.testimonial-card--inverted:hover .quote-mark,
.testimonial-card--inverted:hover .testimonial-quote,
.testimonial-card--inverted:hover .author-name {
    color: var(--brand-forest);
}

.testimonial-card--inverted:hover .author-role {
    color: var(--color-text-muted);
}

.testimonial-card--inverted:hover .testimonial-author {
    border-top-color: var(--color-card-border);
}

@media (max-width: 1100px) {
    .services-flat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-flat-header {
        gap: 48px;
    }
    .services-flat-intro .section-title { font-size: 38px; }
}

@media (max-width: 860px) {
    .services-flat-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-flat-images {
        max-width: 460px;
        height: 360px;
        margin: 0 auto;
    }
    .services-flat-img {
        height: 75%;
    }
}

@media (max-width: 760px) {
    /* Services cards become a horizontal scroll-snap carousel */
    .services-flat-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 16px;
        margin-bottom: 48px;
        scrollbar-width: none;
    }
    .services-flat-grid::-webkit-scrollbar { display: none; }
    .services-flat-grid .service-card {
        flex: 0 0 78%;
        scroll-snap-align: center;
    }

    /* Testimonials become their own carousel */
    .testimonials-flat-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        align-items: stretch;
        gap: 16px;
        padding-bottom: 16px;
        scrollbar-width: none;
    }
    .testimonials-flat-grid::-webkit-scrollbar { display: none; }
    .testimonials-flat-grid .testimonial-card {
        flex: 0 0 88%;
        scroll-snap-align: center;
        height: auto;
        min-height: 100%;
    }

    .services-flat-intro .section-title { font-size: 32px; }

    /* How it works: number → title → body → visual */
    .how-step {
        display: flex;
        flex-direction: column;
    }
    .how-step .how-number { order: 1; }
    .how-step .how-title  { order: 2; }
    .how-step .how-body   { order: 3; }
    .how-step .how-visual {
        order: 4;
        margin-top: 28px;
        margin-bottom: 0;
    }
}
