/* Stoner's Resort landing page
   Brand: magenta #A72B9D, deep teal #093F49, cream #fff7f0
   Fonts: Montserrat (titles), Nunito Sans (text) */

:root {
    --teal: #093F49;
    --teal-deep: #062c34;
    --teal-ink: #03191e;
    --teal-lift: #0f5562;
    --magenta: #A72B9D;
    --magenta-hi: #c23cb6;
    --magenta-glow: rgba(167, 43, 157, .45);
    --cream: #fff7f0;
    --cream-80: rgba(255, 247, 240, .8);
    --cream-60: rgba(255, 247, 240, .6);
    --cream-40: rgba(255, 247, 240, .4);
    --line: rgba(255, 247, 240, .14);
    --line-strong: rgba(255, 247, 240, .26);
    --glass: rgba(255, 247, 240, .06);
    --input: rgba(3, 25, 30, .42);
    --danger: #ff8fa3;

    --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 28px;
    --radius-sm: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--teal);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-gated { overflow: hidden; }

a { color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--magenta-hi);
    outline-offset: 3px;
}

::selection { background: var(--magenta); color: var(--cream); }

.label {
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cream-60);
}

/* ---------- Backdrop: drifting smoke + grain ---------- */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 85% -10%, rgba(15, 85, 98, .9), transparent 60%),
        radial-gradient(ellipse 70% 60% at -10% 110%, rgba(3, 25, 30, .9), transparent 60%),
        var(--teal);
}

/* WebGL liquid from liquid.js (low-res buffer, stretched and softened). */
.liquid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: blur(2px);
    animation: fade 2s var(--ease) both;
}

/* Lava-lamp blobs: fallback when WebGL is unavailable or motion is reduced. */
.backdrop.has-liquid .blob-wrap { display: none; }

.blob-wrap { position: absolute; }

.blob {
    position: absolute;
    inset: 0;
    filter: blur(38px);
    animation: morph 18s ease-in-out infinite alternate, float 26s ease-in-out infinite alternate;
}

.blob-1 { width: 44vmax; height: 40vmax; top: -16vmax; right: -12vmax; }
.blob-1 .blob { background: var(--magenta); opacity: .5; }

.blob-2 { width: 34vmax; height: 38vmax; bottom: -10vmax; left: -14vmax; }
.blob-2 .blob { background: #6d1f67; opacity: .55; animation-duration: 22s, 30s; animation-delay: -6s, -4s; }

.blob-3 { width: 18vmax; height: 20vmax; top: 44%; left: 34%; }
.blob-3 .blob { background: var(--teal-lift); opacity: .9; animation-duration: 15s, 20s; animation-delay: -3s, -9s; }

.blob-4 { width: 22vmax; height: 18vmax; top: 6%; left: -6vmax; }
.blob-4 .blob { background: var(--magenta); opacity: .28; animation-duration: 20s, 24s; animation-delay: -11s, -2s; }

@keyframes morph {
    0%   { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    33%  { border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%; }
    66%  { border-radius: 28% 72% 38% 62% / 62% 41% 59% 38%; }
    100% { border-radius: 55% 45% 30% 70% / 40% 62% 38% 60%; }
}

@keyframes float {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(-4vmax, 5vmax) rotate(25deg); }
    100% { transform: translate(3vmax, -3vmax) rotate(-15deg); }
}

.grain {
    position: absolute;
    inset: -50%;
    opacity: .09;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */

.page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.hero,
.footer {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
}

/* ES / EN switch (in the footer) */
.lang {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.lang a {
    padding: 5px 10px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    color: var(--cream-60);
    transition: background .2s var(--ease), color .2s var(--ease);
}

.lang a:hover { color: var(--cream); }

.lang a.is-active {
    background: var(--magenta);
    color: var(--cream);
}

.hero {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    padding-top: clamp(40px, 8vh, 96px);
    padding-bottom: clamp(40px, 6vh, 72px);
}

/* ---------- Intro ---------- */

.intro {
    text-align: center;
    animation: rise .9s var(--ease) both;
}

.hero-logo {
    margin: 0 0 clamp(28px, 4vh, 44px);
    line-height: 0;
}

.logo {
    display: block;
    margin: 0 auto;
    width: min(100%, 440px);
    height: auto;
    color: var(--cream);
    filter: drop-shadow(0 0 28px rgba(167, 43, 157, .45));
}

.headline {
    margin: 0 0 28px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 5.4vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.headline em {
    font-style: normal;
    background: linear-gradient(100deg, #e05ad3, var(--magenta) 55%, #e6a1de);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    max-width: 34rem;
    margin: 0 auto 40px;
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    color: var(--cream-80);
}

.socials ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.socials a {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--glass);
    transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.socials a:hover {
    background: var(--magenta);
    border-color: var(--magenta);
    transform: translateY(-3px);
}

.socials .icon { width: 26px; height: 26px; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Card + form ---------- */

.card {
    position: relative;
    padding: clamp(24px, 3.4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 247, 240, .1), rgba(255, 247, 240, .03));
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 40px 80px -30px rgba(3, 25, 30, .8), inset 0 1px 0 rgba(255, 247, 240, .12);
    animation: rise .9s .12s var(--ease) both;
    scroll-margin-top: 24px;
}

.card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--magenta-hi), transparent);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.form-head { margin-bottom: 24px; }

.form-title {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.45rem, 2.2vw, 1.8rem);
    letter-spacing: -.02em;
}

.form-sub {
    margin: 0;
    color: var(--cream-60);
    font-size: .95rem;
}

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 143, 163, .4);
    border-radius: var(--radius-sm);
    background: rgba(255, 143, 163, .1);
    color: #ffd6de;
    font-size: .92rem;
    line-height: 1.5;
}

.alert .icon { margin-top: 1px; color: var(--danger); }

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.topics {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.topics legend {
    margin-bottom: 10px;
    padding: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip { position: relative; cursor: pointer; }

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

.chip span {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: .86rem;
    font-weight: 600;
    color: var(--cream-80);
    transition: all .2s var(--ease);
}

.chip:hover span { border-color: var(--cream-60); color: var(--cream); }

.chip input:checked + span {
    background: var(--magenta);
    border-color: var(--magenta);
    color: var(--cream);
    box-shadow: 0 8px 24px -8px var(--magenta-glow);
}

.chip input:focus-visible + span {
    outline: 2px solid var(--magenta-hi);
    outline-offset: 3px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.field {
    position: relative;
    margin-bottom: 14px;
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    padding: 24px 16px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--input);
    color: var(--cream);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.field textarea {
    min-height: 140px;
    padding-bottom: 28px;
    resize: vertical;
}

.field input:hover,
.field textarea:hover { border-color: var(--line-strong); }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--magenta-hi);
    background: rgba(3, 25, 30, .6);
    box-shadow: 0 0 0 4px rgba(167, 43, 157, .22);
}

.field label {
    position: absolute;
    top: 16px;
    left: 17px;
    right: 17px;
    color: var(--cream-60);
    font-size: 1rem;
    pointer-events: none;
    transform-origin: left top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform .2s var(--ease), color .2s var(--ease);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    transform: translateY(-9px) scale(.74);
    color: var(--cream-80);
}

.field input:focus + label,
.field textarea:focus + label { color: #f0a9e8; }

.optional { color: var(--cream-40); }

.counter {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: .74rem;
    color: var(--cream-40);
    pointer-events: none;
}

.field-error {
    margin: 6px 2px 0;
    color: var(--danger);
    font-size: .82rem;
    line-height: 1.4;
}

.field-error:empty { display: none; }

.has-error input,
.has-error textarea { border-color: rgba(255, 143, 163, .7); }

.consent { margin: 6px 0 24px; }

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--cream-80);
}

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

.check .box {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--input);
    transition: all .2s var(--ease);
}

.check .box .icon {
    width: 14px;
    height: 14px;
    stroke-width: 3;
    opacity: 0;
    transform: scale(.5);
    transition: all .2s var(--ease);
}

.check input:checked + .box {
    background: var(--magenta);
    border-color: var(--magenta);
}

.check input:checked + .box .icon { opacity: 1; transform: none; }

.check input:focus-visible + .box {
    outline: 2px solid var(--magenta-hi);
    outline-offset: 3px;
}

.has-error .box { border-color: rgba(255, 143, 163, .7); }

/* ---------- Buttons ---------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.btn-primary {
    background: var(--magenta);
    color: var(--cream);
    box-shadow: 0 14px 34px -12px var(--magenta-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-primary:hover {
    background: var(--magenta-hi);
    transform: translateY(-2px);
    box-shadow: 0 20px 44px -12px var(--magenta-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--cream);
}

.btn-ghost:hover { border-color: var(--cream-60); background: var(--glass); }

.btn-submit {
    width: 100%;
    padding: 18px 28px;
    font-size: 1rem;
}

.btn-arrow { transition: transform .25s var(--ease); }

.btn-submit:hover .btn-arrow { transform: translateX(4px); }

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 247, 240, .35);
    border-top-color: var(--cream);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.is-sending .btn-submit { pointer-events: none; opacity: .85; }
.is-sending .btn-label::after { content: "…"; }
.is-sending .btn-arrow { display: none; }
.is-sending .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */

.success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 8px;
    text-align: center;
    animation: rise .7s var(--ease) both;
}

.success:focus { outline: none; }

.success-badge {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--magenta);
    color: var(--cream);
    box-shadow: 0 0 0 10px rgba(167, 43, 157, .16), 0 24px 60px -16px var(--magenta-glow);
}

.success-badge .icon { width: 40px; height: 40px; stroke-width: 2.4; }

.success-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -.02em;
}

.success-text {
    max-width: 24rem;
    margin: 0 0 28px;
    color: var(--cream-80);
}

/* ---------- Marquee ---------- */

.marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 8px 0 24px;
    border-top: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.marquee-track > div {
    display: flex;
    align-items: center;
    flex: none;
}

.marquee span,
.marquee i {
    padding: 0 .35em;
    font-family: var(--font-display);
    font-weight: 800;
    font-style: normal;
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.marquee span {
    background: linear-gradient(180deg, rgba(255, 247, 240, .16), rgba(255, 247, 240, .03));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.marquee i {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--magenta);
}

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

/* ---------- Footer ---------- */

.footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px 24px;
    padding-top: 20px;
    padding-bottom: 28px;
    font-size: .84rem;
    color: var(--cream-60);
}

.footer-adults { text-align: right; }

/* ---------- Age gate ---------- */

.gate {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(3, 25, 30, .72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: fade .5s var(--ease) both;
}

.gate.is-leaving { animation: fade-out .45s var(--ease) both; }

@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }

.gate-card {
    width: 100%;
    max-width: 440px;
    padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(15, 85, 98, .7), rgba(6, 44, 52, .85));
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7);
    text-align: center;
    animation: rise .7s .1s var(--ease) both;
}

.gate-lang {
    display: flex;
    justify-content: flex-end;
    margin: -14px -10px 6px 0;
}

.gate-logo {
    display: block;
    width: min(100%, 250px);
    height: auto;
    margin: 0 auto 24px;
    color: var(--magenta-hi);
    filter: drop-shadow(0 0 22px var(--magenta-glow));
}

.gate-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 4.6vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.gate-text {
    margin: 0 0 28px;
    color: var(--cream-80);
}

.gate-actions {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
}

.gate-note {
    margin: 20px 0 0;
    font-size: .8rem;
    color: var(--cream-40);
}

.gate-note a:hover { color: var(--cream); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .tagline { margin-bottom: 32px; }
}

@media (max-width: 560px) {
    .logo { width: min(100%, 300px); }
    .grid { grid-template-columns: minmax(0, 1fr); }
    .card { border-radius: 22px; }
    .gate-actions { grid-template-columns: 1fr; }
    .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer .lang { order: -1; }
    .footer-adults { text-align: center; }
}

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