/* Almar site (views/*.php). Same family look as temp.xopi and temp.casalambar: one brand-color
   page with soft glows on a fixed layer and floating rounded cards. Colors from the logo and the printed
   menus; menu vocabulary (eyebrows, arched figure, seal, menu categories) from Simple Series' restaurant theme. */

:root {
    --blue: #162a74;
    --cream: #e6dfd2;
    --paper: #f8f7f3;
    --paper-deep: #efece4;
    --ink: #1d2233;
    --ink-soft: #4a4f60;
    --coral: #d04535;
    /* Coral for text on paper: the brand coral reaches only 4.3:1 there. */
    --coral-ink: #b83a2c;
    --line: rgba(22, 42, 116, 0.16);
    --line-cream: rgba(230, 223, 210, 0.32);
    --card: rgba(255, 255, 255, 0.06);
    --shadow: 0 2rem 4rem -1.5rem rgba(4, 10, 36, 0.6);
    --glow-top-left: rgba(208, 69, 53, 0.22);
    --glow-bottom-right: rgba(230, 223, 210, 0.08);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 72rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: light;
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cream);
    background: var(--blue);
    -webkit-font-smoothing: antialiased;
}

/* Soft glows behind the whole page, fixed to the screen like on the sister sites. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 8%, var(--glow-top-left), transparent 38%),
        radial-gradient(circle at 88% 92%, var(--glow-bottom-right), transparent 42%);
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
figure {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

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

.carte :focus-visible {
    outline-color: var(--blue);
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Small caps label with a rule on each side ("Nuestra carta"). */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--coral);
}

/* Placeholder for a photo that hasn't been uploaded yet (imagenes/<slot>.jpg). */
.ph {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--paper-deep) repeating-linear-gradient(-45deg, transparent 0 15px, rgba(22, 42, 116, 0.06) 15px 16px);
    border: 1px solid var(--line);
}

/* On the blue page (hero, gallery) the placeholder is a translucent tint instead of paper. */
.hero .ph,
.gallery .ph {
    background: var(--card) repeating-linear-gradient(-45deg, transparent 0 15px, rgba(230, 223, 210, 0.06) 15px 16px);
    border-color: var(--line-cream);
}

.hero .ph span,
.gallery .ph span {
    border-color: var(--line-cream);
    background: var(--blue);
    color: var(--cream);
}

.ph span {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.skip-link {
    position: absolute;
    top: -10rem;
    left: var(--gutter);
    z-index: 10;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--cream);
    color: var(--blue);
}

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

/* ---------- Site header ---------- */

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 1rem var(--gutter);
}

.brand img {
    width: auto;
    height: 2.75rem;
}

.site-nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s var(--ease);
}

.nav-links a:hover {
    background: var(--card);
}

.nav-links [aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--coral);
    border-radius: 0;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--line-cream);
    border-radius: 999px;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-toggle[hidden] {
    display: none;
}

/* Three bars that turn into an X while the menu is open. */
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-toggle-bars {
    position: relative;
}

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

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Phones: with JavaScript the links fold behind the toggle and open as a full-width list. */
@media (max-width: 47.99rem) {
    .js .nav-toggle[aria-expanded="false"] + .nav-links {
        display: none;
    }

    .js .nav-links {
        position: absolute;
        left: var(--gutter);
        right: var(--gutter);
        top: calc(100% - 0.25rem);
        flex-direction: column;
        padding: 0.5rem;
        border: 1px solid var(--line-cream);
        border-radius: 1.25rem;
        background: var(--blue);
        box-shadow: var(--shadow);
    }

    .js .nav-links a {
        width: 100%;
        padding: 0 1rem;
    }

    .js .nav-links [aria-current="page"] {
        box-shadow: inset 3px 0 0 var(--coral);
    }
}

@media (min-width: 48rem) {
    .nav-toggle,
    .nav-toggle[hidden] {
        display: none;
    }
}

/* ---------- Hero ---------- */

/* Fills the first screen under the site header. */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 4.75rem);
    min-height: calc(100svh - 4.75rem);
    padding: 1.5rem var(--gutter) 3.5rem;
}

.hero-inner {
    display: grid;
    gap: 3rem;
    justify-items: center;
    width: 100%;
    max-width: var(--wrap);
}

.hero-copy {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
}

.hero-logo img {
    width: min(48vw, 13rem);
}

.tagline {
    max-width: 30ch;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    line-height: 1.45;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    background: var(--cream);
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.button:hover {
    transform: translateY(-2px);
    background: #fff;
}

.button svg {
    width: 0.95em;
    height: 0.95em;
    fill: currentColor;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.link-arrow svg {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}

.link-arrow span {
    transition: transform 0.35s var(--ease);
}

.link-arrow:hover span {
    transform: translateX(6px);
}

/* The entrance photo in an arch, with a round seal over its corner. */
.hero-figure {
    position: relative;
    width: min(100%, 19rem);
}

.hero-figure img,
.hero-figure .ph {
    aspect-ratio: 0.82;
    object-fit: cover;
    border-radius: 300px 300px 14px 14px;
}

.seal {
    position: absolute;
    bottom: -1.4rem;
    left: -1.4rem;
    display: grid;
    place-items: center;
    width: 6.5rem;
    height: 6.5rem;
    border: 2px solid var(--coral);
    border-radius: 50%;
    background: var(--cream);
    color: var(--blue);
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.15;
    text-align: center;
}

.lang-switch {
    display: flex;
    gap: 0.35rem;
}

.lang-switch a {
    display: inline-grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid var(--line-cream);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.lang-switch [aria-current="true"] {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--blue);
}

@media (min-width: 56rem) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: center;
    }

    .hero-copy {
        justify-items: start;
        text-align: left;
    }

    .hero-logo img {
        width: 15rem;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-figure {
        justify-self: center;
        width: min(100%, 24rem);
    }
}

/* ---------- Section heads ---------- */

.sec-head {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.sec-head h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 6.4vw, 4.5rem);
    line-height: 1;
}

/* ---------- Menus ---------- */

.menu {
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.menu-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--line-cream);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.menu-tabs a:hover,
.menu-tabs a[aria-selected="true"] {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--blue);
}

/* Each menu is a sheet of paper on the blue table, like the printed menus. */
.carte {
    display: grid;
    gap: 2rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--paper);
    box-shadow: var(--shadow);
    color: var(--ink);
    scroll-margin-top: 1.5rem;
}

.carte[hidden] {
    display: none;
}

.carte + .carte {
    margin-top: 2.5rem;
}

.has-tabs .carte + .carte {
    margin-top: 0;
}

.carte-cover img,
.carte-cover .ph {
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
    border-radius: 14px;
}

.carte-cover .ph {
    aspect-ratio: 4 / 3;
}

.carte-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.1;
    color: var(--blue);
}

.carte-soon {
    margin-top: 1rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

@media (min-width: 60rem) {
    .carte {
        grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
        align-items: start;
        gap: 3.5rem;
    }

    .carte-cover {
        position: sticky;
        top: 1.5rem;
    }

    .carte-cover img,
    .carte-cover .ph {
        max-height: none;
    }

    .carte-cover .ph {
        aspect-ratio: 0.65;
    }
}

.mcat {
    margin-top: 2.5rem;
}

.carte-title + .mcat {
    margin-top: 1.5rem;
}

.mcat-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.mcat-head h4 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue);
}

.mcat-head .rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.mcat-head .ct {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
}

.mcat-note,
.mcat-cols {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--ink-soft);
}

.mcat-cols {
    text-align: right;
    font-style: normal;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dish {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 1.25rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}

.dish h5 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--coral-ink);
}

.dish .price {
    font-family: var(--serif);
    font-weight: 600;
    white-space: nowrap;
}

.dish .desc,
.dish .extra {
    grid-column: 1 / -1;
    max-width: 62ch;
    color: var(--ink-soft);
}

.dish .extra {
    font-size: 0.9rem;
    font-style: italic;
}

/* ---------- La casa ---------- */

.house {
    padding: 0 0 clamp(4rem, 9vw, 7rem);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.5rem;
}

.gallery img,
.gallery .ph {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
}

.gallery figcaption {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---------- Inner pages: opening block ---------- */

.page-head {
    padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
}

.page-head-inner {
    display: grid;
    gap: 2.5rem;
    max-width: var(--wrap);
    margin: 0 auto;
}

.page-head-copy {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    text-align: center;
}

.page-head h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 1;
    text-wrap: balance;
}

.lead {
    max-width: 38rem;
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    line-height: 1.5;
    text-wrap: pretty;
}

.page-head-figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 200px 200px 14px 14px;
}

@media (min-width: 56rem) {
    .page-head.has-photo .page-head-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: center;
    }

    .page-head.has-photo .page-head-copy {
        justify-items: start;
        text-align: left;
    }

    .page-head.has-photo .hero-actions {
        justify-content: flex-start;
    }
}

/* ---------- Home: one card per page ---------- */

.teasers {
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem);
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1.5rem;
}

.teaser {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line-cream);
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(var(--card), var(--card)), var(--blue);
    box-shadow: var(--shadow);
}

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

.teaser-body {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1rem;
}

.teaser h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.15;
}

.teaser .link-arrow {
    justify-self: start;
}

/* ---------- Paper cards: Day Pass, booking options, legal text ---------- */

.paper-card {
    display: grid;
    overflow: hidden;
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--paper);
    box-shadow: var(--shadow);
    color: var(--ink);
    scroll-margin-top: 1.5rem;
}

.paper-card > img {
    width: 100%;
    height: 100%;
    max-height: 26rem;
    object-fit: cover;
}

.paper-card-body {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.paper-card h2,
.paper-card .offer-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.1;
    color: var(--blue);
}

.paper-card .hero-actions {
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.paper-card .button {
    background: var(--blue);
    color: var(--cream);
}

.paper-card .button:hover {
    background: var(--ink);
}

.paper-card .link-arrow {
    color: var(--blue);
}

.paper-card :focus-visible {
    outline-color: var(--blue);
}

@media (min-width: 56rem) {
    .paper-card.has-photo {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .paper-card.has-photo > img {
        max-height: none;
    }
}

.badge {
    justify-self: start;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--coral-ink);
    border-radius: 999px;
    color: var(--coral-ink);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.daypass,
.book,
.legal {
    padding: 0 0 clamp(4rem, 9vw, 7rem);
}

.legal-text {
    max-width: 48rem;
    margin: 0 auto;
}

/* ---------- Day pass page ---------- */

.daypass-offer {
    padding: 0 0 clamp(4rem, 9vw, 6rem);
}

.offer-notes {
    display: grid;
    gap: 0.35rem;
    max-width: 48rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.offer-block {
    margin: 2.5rem 0;
}

.offer-block .offer-title,
.legal-subtitle {
    margin-bottom: 1rem;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    text-align: center;
}

.legal-subtitle {
    margin-top: 1rem;
    text-align: left;
    color: var(--blue);
}

.tier-extras,
.term-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.tier-extras div,
.term-list div {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
}

.tier-extras dt,
.term-list dt {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.tier-extras dd,
.term-list dd {
    margin: 0.15rem 0 0;
}

.offer-terms {
    max-width: 48rem;
    margin: 2.5rem auto 0;
}

.request-card {
    max-width: 52rem;
    margin: 0 auto;
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.check-field input {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: var(--blue);
}

.check-field[aria-invalid="true"],
.check-field input[aria-invalid="true"] {
    outline: 2px solid var(--coral-ink);
    outline-offset: 2px;
}

/* ---------- Day pass section (Beach Club) ---------- */

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Each pass's card: its photo (or the placeholder) on top, the same shape for every pass. */
.tier > img,
.tier > .ph {
    height: auto;
    aspect-ratio: 4 / 3;
    border: 0;
}

.tier h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    line-height: 1.15;
    color: var(--blue);
}

.tier-price {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

.tier-price span,
.tier-includes-title {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.tier-price-child {
    margin-top: -0.6rem;
    font-size: 1.2rem;
}

.tier-includes li {
    display: flex;
    gap: 0.7rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
}

.tier-includes li::before {
    content: "";
    flex: none;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.6em;
    border-radius: 50%;
    background: var(--coral);
}


/* ---------- Booking forms (on paper cards) ---------- */

.booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem 1.25rem;
}

.field {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(22, 42, 116, 0.35);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.field [aria-invalid="true"] {
    border-color: var(--coral-ink);
    box-shadow: 0 0 0 1px var(--coral-ink);
}

.field-help,
.form-hint,
.form-or {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.field-error {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--coral-ink);
}

.form-success,
.form-notice {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-weight: 500;
}

.form-success {
    background: rgba(22, 42, 116, 0.08);
    color: var(--blue);
}

.form-notice {
    background: rgba(184, 58, 44, 0.08);
    color: var(--coral-ink);
}

.form-or {
    margin-top: 0.5rem;
}

button.button {
    border: 0;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

/* The honeypot: off screen for people, still in the form for bots. */
.hp {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Beach Club: amenities ---------- */

.amenities {
    padding: 0 0 clamp(4rem, 9vw, 6rem);
}

.amenity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 0.75rem 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

.amenity-list li {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-cream);
    font-size: 1.05rem;
}

.amenity-list li::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.6em;
    border-radius: 50%;
    background: var(--coral);
}

/* ---------- Reservations: how to get here ---------- */

.getting-here {
    padding: 0 0 clamp(4rem, 9vw, 6rem);
    scroll-margin-top: 1.5rem;
}

.getting-here-grid {
    display: grid;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 56rem) {
    .getting-here-grid.has-map {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        max-width: none;
    }
}

.directions {
    margin-top: 1.5rem;
    counter-reset: step;
}

.directions li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    border-bottom: 1px solid var(--line-cream);
    counter-increment: step;
}

.directions li::before {
    content: counter(step);
    position: absolute;
    top: 0.7rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--cream);
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 500;
}

.map {
    width: 100%;
    min-height: 22rem;
    height: 100%;
    border: 0;
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow);
}

/* ---------- Info card: hours, location, contact ---------- */

.info {
    padding: 0 var(--gutter) clamp(3.5rem, 8vw, 6rem);
}

.info-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 2.5rem 3rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem);
    border: 1px solid var(--line-cream);
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    /* The card tint over a solid page color, so the fixed glows never sit behind its text. */
    background: linear-gradient(var(--card), var(--card)), var(--blue);
    box-shadow: var(--shadow);
}

.block h2 {
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.hours-row + .hours-row {
    margin-top: 1rem;
}

.days {
    font-size: 1.05rem;
}

.time {
    margin-top: 0.25rem;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.1;
}

.time time {
    white-space: nowrap;
}

.location + .location {
    margin-top: 1.75rem;
}

.location h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 500;
}

address {
    margin-bottom: 1.25rem;
    font-style: normal;
    font-size: 1.05rem;
}

.contact-list li + li {
    margin-top: 0.5rem;
}

.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    font-size: 1.05rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-list a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-list svg {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social a {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line-cream);
    border-radius: 50%;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.social a:hover {
    background: var(--cream);
    color: var(--blue);
}

.social svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

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

.site-footer {
    padding: 1.5rem var(--gutter) 2rem;
    text-align: center;
}

.site-footer p {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: 0.85rem;
    text-underline-offset: 0.2em;
}

/* ---------- Beach Club amenities: photo tiles (Beach Club: a mosaic; home: a row of four) ---------- */

.amenity-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    grid-auto-rows: minmax(20rem, auto);
    gap: 1rem;
}

@media (min-width: 60rem) {
    .amenity-tiles:not(.is-row) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 17rem;
    }

    .amenity-tiles:not(.is-row) .amenity-tile:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .amenity-tiles.is-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 28rem;
    }
}

.amenity-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.amenity-tile > img,
.amenity-tile > .ph {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    transition: transform 0.9s var(--ease);
}

/* Dark at the bottom so the title reads on any photo. */
.amenity-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(4, 10, 36, 0.88), rgba(4, 10, 36, 0.2) 55%, transparent 80%);
}

.amenity-tile:hover > img {
    transform: scale(1.05);
}

.amenity-caption {
    display: grid;
    gap: 0.4rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.amenity-caption h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.05;
}

.amenity-tiles:not(.is-row) .amenity-tile:first-child h3 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.amenity-tiles.is-row h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.amenity-caption p {
    max-width: 32rem;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.88;
}

.amenities .hero-actions,
.daypass-band .hero-actions {
    margin-top: 2.5rem;
}

/* ---------- Restaurante: the menus with their hours, the featured menus, dishes and spaces ---------- */

.moments,
.dishes,
.spaces {
    padding: 0 0 clamp(4rem, 9vw, 7rem);
}

.moment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.5rem;
}

.moment-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line-cream);
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    background: linear-gradient(var(--card), var(--card)), var(--blue);
    box-shadow: var(--shadow);
}

.moment-card > img,
.moment-card > .ph {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 0;
}

.moment-body {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1.25rem;
}

.moment-body h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    line-height: 1.1;
}

.moment-body .link-arrow {
    justify-self: start;
}

/* Serving hours, with a short coral rule in front. */
.moment-hours {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.moment-hours::before {
    content: "";
    width: 1.4rem;
    height: 1px;
    background: var(--coral);
}

.feature-panel {
    display: grid;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    overflow: hidden;
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--paper);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.feature-panel > img,
.feature-panel > .ph {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 0;
}

.feature-body {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 1rem;
    padding: clamp(1.75rem, 5vw, 4rem);
}

.feature-body .eyebrow {
    color: var(--coral-ink);
}

.feature-body h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 7vw, 4.75rem);
    line-height: 0.95;
    color: var(--blue);
}

.feature-body .moment-hours {
    color: var(--ink-soft);
}

.feature-body .lead {
    color: var(--ink);
}

.feature-body .hero-actions {
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.feature-body .button {
    background: var(--blue);
    color: var(--cream);
}

.feature-body .button:hover {
    background: var(--ink);
}

@media (min-width: 56rem) {
    .feature-panel {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        min-height: 30rem;
    }

    .feature-panel > img,
    .feature-panel > .ph {
        aspect-ratio: auto;
    }

    /* Every other panel has its photo on the right. */
    .feature-panel:nth-of-type(even) > img,
    .feature-panel:nth-of-type(even) > .ph {
        order: 2;
    }
}

.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1.5rem;
}

.dish-card > img,
.dish-card > .ph {
    height: auto;
    aspect-ratio: 1;
    border: 0;
}

.dish-card .paper-card-body {
    gap: 0.6rem;
    padding: 1.5rem;
}

.dish-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.15;
    color: var(--blue);
}

.dish-carte {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--coral-ink);
}

.dish-price {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue);
}

.space-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 2.5rem 1.5rem;
}

.space-card img,
.space-card .ph {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
}

.space-card figcaption {
    display: grid;
    gap: 0.4rem;
    margin-top: 1rem;
}

.space-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.1;
}

/* ---------- Home: the Day Pass ---------- */

.daypass-band {
    padding: 0 0 clamp(4rem, 9vw, 7rem);
}

/* Text under a section title (the Day Pass on Home, Beach Club and Reservaciones). */
.sec-head .lead {
    max-width: 40rem;
}

.sec-head .hero-actions {
    margin-top: 0.5rem;
}

.daypass-soon {
    max-width: 40rem;
    margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Day pass booking page: the booking number and the deposit payment buttons. */
.booking-code {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}

.booking-code span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.booking-code strong {
    font-family: var(--serif);
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    color: var(--blue);
}

.pay-title {
    margin-top: 1.75rem;
    font-size: 1.25rem;
}

.pay-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0;
}
