/* Sea Spa Cabo — calm luxury spa aesthetic */

:root {
    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-ui: "Figtree", system-ui, sans-serif;
    --color-ink: #162228;
    --color-ink-soft: #3d4f5c;
    --color-mist: #f3f0e8;
    --color-mist-deep: #e8e4d9;
    --color-sea: #2a4d52;
    --color-sea-light: #3d6b72;
    --color-deep: #12202a;
    --color-sand: #c9b896;
    --color-sand-dim: #a89472;
    --color-white: #faf9f6;
    --shadow-soft: 0 22px 50px rgba(18, 32, 42, 0.14);
    --shadow-card: 0 12px 32px rgba(18, 32, 42, 0.08);
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --space-section: clamp(3.5rem, 8vw, 7rem);
    --max-readable: 38rem;
    --header-h: 4.25rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-ink);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-sea-light);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-sea);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    background: var(--color-deep);
    color: var(--color-white);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 500;
}

.skip-link:focus {
    top: 1rem;
}

/* —— Header —— */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 34, 40, 0.06);
}

.site-header__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.site-header__logo {
    height: 2.35rem;
    width: auto;
}

.site-header__logo--dark {
    display: none;
}

.site-header.is-scrolled .site-header__logo--light {
    display: none;
}

.site-header.is-scrolled .site-header__logo--dark {
    display: block;
}

.site-nav__toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    color: inherit;
}

.site-header:not(.is-scrolled) .site-nav__toggle {
    color: var(--color-white);
}

.site-nav__toggle-bars,
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
}

.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-nav__toggle-bars::before {
    top: -7px;
}

.site-nav__toggle-bars::after {
    top: 7px;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    align-items: center;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-header:not(.is-scrolled) .site-nav__list a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.site-header:not(.is-scrolled) .site-nav__list a:hover {
    color: #fff;
}

.site-header.is-scrolled .site-nav__list a {
    color: var(--color-ink-soft);
    text-decoration: none;
}

.site-header__cta {
    flex-shrink: 0;
}

@media (max-width: 880px) {
    .site-nav__toggle {
        display: block;
        margin-left: 0.5rem;
    }

    .site-header__cta {
        display: none;
    }

    .site-nav__list {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 1.25rem;
        gap: 0;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease;
        box-shadow: var(--shadow-soft);
    }

    .site-nav__list.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav__list a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-mist-deep);
        color: var(--color-ink) !important;
    }
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.35rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
    background: var(--color-sea);
    color: var(--color-white);
    box-shadow: 0 4px 18px rgba(42, 77, 82, 0.35);
}

.btn--primary:hover {
    background: var(--color-sea-light);
    color: #fff;
}

.btn--secondary {
    background: transparent;
    color: var(--color-sea);
    border: 1px solid rgba(42, 77, 82, 0.35);
}

.btn--secondary:hover {
    border-color: var(--color-sea);
    background: rgba(42, 77, 82, 0.06);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.btn--lg {
    padding: 0.9rem 1.65rem;
    font-size: 0.9rem;
}

.btn--block {
    width: 100%;
    margin-top: 0.5rem;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--color-sea-light);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.link-button:hover {
    color: var(--color-sea);
}

/* —— Hero carousel + Ken Burns —— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 2rem) 1.5rem 6rem;
    background-color: var(--color-deep);
    overflow: hidden;
}

.hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.65s ease-out;
    pointer-events: none;
}

.hero__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero__slide-media {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.08);
    will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
    .hero[data-hero-carousel] .hero__slide.is-active .hero__slide-media.is-kb {
        animation: heroKenBurns var(--hero-kb-dur, 16s) ease-in-out forwards;
    }
}

@keyframes heroKenBurns {
    from {
        transform: scale(var(--kb-s0, 1.06)) translate(var(--kb-x0, 0%), var(--kb-y0, 0%));
    }
    to {
        transform: scale(var(--kb-s1, 1.15)) translate(var(--kb-x1, -2%), var(--kb-y1, 1%));
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(10, 22, 28, 0.12) 0%,
        rgba(10, 22, 28, 0.55) 45%,
        rgba(10, 22, 28, 0.82) 100%
    );
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 40rem;
}

.hero__dots {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 5rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 22, 28, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero__dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.hero__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 639px) {
    .hero__dots {
        bottom: 3.9rem;
        padding: 0.4rem 0.75rem;
    }

    .hero__dot {
        width: 10px;
        height: 10px;
    }
}

.hero__kicker {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem;
    font-weight: 500;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 1.08;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero__sub {
    font-size: 1.15rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 2rem;
    max-width: 32rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 28px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    text-decoration: none;
}

.hero__scroll-line {
    width: 3px;
    height: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    animation: scrollNudge 2.4s ease-in-out infinite;
}

@keyframes scrollNudge {
    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(6px);
    }
}

/* —— Layout bands —— */
.band {
    padding: var(--space-section) 0;
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.band--mist {
    background: var(--color-mist);
}

.band--deep {
    background: linear-gradient(160deg, #15252e 0%, #1a3340 50%, #15252e 100%);
    color: rgba(255, 255, 255, 0.92);
}

.band--deep a {
    color: #c5e8e4;
}

.band--sand {
    background: linear-gradient(180deg, #efe8db 0%, #e3d9c8 100%);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.container.narrow {
    max-width: 720px;
}

.eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-sand-dim);
    margin: 0 0 0.6rem;
    font-weight: 600;
}

.band--deep .eyebrow {
    color: var(--color-sand);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4.2vw, 2.85rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--color-ink);
}

.band--deep .section-title,
.section-head--on-dark .section-title {
    color: #fff;
}

.section-lead {
    margin: 0;
    max-width: var(--max-readable);
    color: var(--color-ink-soft);
    font-size: 1.08rem;
}

.band--deep .section-lead,
.section-head--on-dark .section-lead {
    color: rgba(255, 255, 255, 0.78);
}

.section-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 40rem;
}

.prose p {
    margin: 0 0 1rem;
    color: var(--color-ink-soft);
}

.prose--compact p,
.prose--compact ul {
    font-size: 0.98rem;
}

.prose--compact h3 {
    font-family: var(--font-display);
    margin-top: 1.5rem;
}

/* —— Subnav —— */
.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.subnav a {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: var(--color-mist);
    color: var(--color-ink);
    text-decoration: none;
    border: 1px solid transparent;
}

.subnav a:hover {
    border-color: rgba(42, 77, 82, 0.35);
    background: #fff;
}

/* —— Service panels —— */
.service-panels {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 5rem);
}

.service-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.service-panel--reverse .service-panel__media {
    order: 2;
}

.service-panel--reverse .service-panel__body {
    order: 1;
}

.service-panel__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.service-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.service-panel__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 500;
    margin: 0 0 1.25rem;
}

.treatment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.treatment-list__item {
    padding: 1.15rem 0;
    border-top: 1px solid rgba(22, 34, 40, 0.1);
}

.treatment-list__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.treatment-list__name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.treatment-list__price {
    font-size: 0.92rem;
    color: var(--color-sea);
    font-weight: 600;
}

.treatment-list__desc {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: var(--color-ink-soft);
    white-space: pre-line;
}

.treatment-list__hint {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--color-sand-dim);
    font-style: italic;
    text-decoration: none;
    display: inline-block;
}

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

    .service-panel--reverse .service-panel__media,
    .service-panel--reverse .service-panel__body {
        order: unset;
    }

    .service-panel__media {
        position: relative;
        top: auto;
    }
}

/* —— Testimonials —— */
.testimonial-scroll {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.testimonial-track {
    display: flex;
    gap: 1.25rem;
    padding-right: 1rem;
}

.testimonial-card {
    flex: 0 0 min(340px, 85vw);
    scroll-snap-align: start;
    margin: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.testimonial-card__quote {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.45;
}

.testimonial-card__meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* —— Gallery —— */
.gallery__main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
    touch-action: pan-y;
}

.gallery__hero-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    user-select: none;
}

.gallery__thumbs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -1rem;
    padding: 0 1rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (hover: hover) and (pointer: fine) {
    .gallery__thumbs-scroll {
        scrollbar-color: rgba(42, 77, 82, 0.35) transparent;
    }
}

.gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    width: max-content;
    min-width: 100%;
    padding-bottom: 0.2rem;
    scroll-snap-type: x mandatory;
}

.gallery__thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: none;
    opacity: 0.78;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    min-width: 3.25rem;
    min-height: 3rem;
}

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

.gallery__thumb:hover,
.gallery__thumb.is-active {
    opacity: 1;
    border-color: var(--color-sea);
}

.gallery__thumb img {
    width: 6.75rem;
    height: 4.5rem;
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 639px) {
    .gallery__hero-img {
        aspect-ratio: 4 / 3;
    }

    .gallery__thumb img {
        width: 7.5rem;
        height: 5rem;
    }

    .gallery__thumb {
        min-height: 3.25rem;
    }
}

@media (min-width: 640px) {
    .gallery__thumbs-scroll {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .gallery__thumbs {
        flex-wrap: wrap;
        width: auto;
        min-width: 0;
        scroll-snap-type: none;
    }

    .gallery__thumb img {
        width: 96px;
        height: 64px;
    }
}

/* —— Downloads —— */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.35rem 1.25rem;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-ink);
    border: 1px solid rgba(22, 34, 40, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    color: var(--color-ink);
}

.download-card__icon {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-sea);
}

.download-card__label {
    font-weight: 600;
    font-size: 1.05rem;
    font-family: var(--font-display);
}

.download-card__hint {
    font-size: 0.78rem;
    color: var(--color-ink-soft);
}

/* —— Video —— */
.video-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* —— Newsletter —— */
.newsletter-band .newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-form__honeypot {
    position: absolute;
    left: -6000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* —— Visit —— */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.visit-details__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 1.5rem 0 0.35rem;
    color: var(--color-sand-dim);
}

.visit-details__label:first-child {
    margin-top: 0;
}

.visit-details .btn {
    margin-top: 1rem;
    margin-right: 0.5rem;
}

.visit-grid__map iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    pointer-events: none;
}

.visit-grid__map {
    position: relative;
}

.visit-grid__map.is-active iframe {
    pointer-events: auto;
}

.map-activate {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(120% 120% at 50% 20%, rgba(18, 32, 42, 0.06), rgba(18, 32, 42, 0.38));
    color: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 1rem;
    gap: 0.35rem;
}

.visit-grid__map.is-active .map-activate {
    display: none;
}

.map-activate__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.map-activate__hint {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 26rem;
    margin: 0 auto;
}

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

/* —— Footer —— */
.site-footer {
    background: var(--color-deep);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 2.5rem;
}

.site-footer a,
.site-footer .link-button {
    color: #c5e8e4;
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.2fr 1fr;
}

.site-footer__fine {
    grid-column: 1 / -1;
    opacity: 0.65;
    font-size: 0.85rem;
    text-align: center;
}

.site-footer__tagline {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.site-footer__heading {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 0.75rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links li {
    margin-bottom: 0.4rem;
}

.eco-modal__footnote {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* —— Dialog / sheet —— */
dialog.sheet {
    width: min(560px, 100vw - 2rem);
    max-height: 90vh;
    border: none;
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: var(--color-white);
}

dialog.sheet::backdrop {
    background: rgba(12, 22, 28, 0.55);
    backdrop-filter: blur(4px);
}

.sheet__inner {
    padding: 2rem 1.75rem 1.75rem;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.sheet__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: var(--color-mist);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-ink);
}

.sheet__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    padding-right: 2rem;
}

.sheet__intro {
    margin: 0 0 1.25rem;
    color: var(--color-ink-soft);
    font-size: 0.98rem;
}

.book-form .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.field__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.book-form input,
.book-form select,
.book-form textarea {
    font: inherit;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(22, 34, 40, 0.2);
    background: #fff;
}

.book-form textarea {
    resize: vertical;
    min-height: 88px;
}

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

@media (max-width: 520px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    margin: 0.5rem 0 1rem;
    cursor: pointer;
}

.checkbox-field input {
    margin-top: 0.2rem;
}

.honeypot {
    position: absolute;
    left: -8000px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* —— FAB —— */
.fab-book {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 900;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: none;
    background: var(--color-sea);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(42, 77, 82, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
}

@media (max-width: 880px) {
    .fab-book {
        display: flex;
    }
}

/* —— Toast —— */
.toast {
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    max-width: min(520px, 92vw);
    padding: 1rem 2.75rem 1rem 1.1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.toast--success {
    background: #e8f5f1;
    border: 1px solid #9ccbc0;
    color: #1a3d36;
}

.toast--error {
    background: #fcefed;
    border: 1px solid #e8b4a8;
    color: #5c2e26;
}

.toast p {
    margin: 0;
}

.toast__close {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    border: 0;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.toast--hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
