/* ---------------------------------------------------------------------------
   Leisure Village - public site
   Hill-country palette: deep pine, warm stone, a single brass accent for
   anything that takes a booking. One file, no framework.
   --------------------------------------------------------------------------- */

:root {
    --pine-900: #10241a;
    --pine-800: #163020;
    --pine-600: #2c6a4c;
    --pine-100: #e3efe7;

    --stone-50: #faf9f6;
    --stone-100: #f2f0ea;
    --stone-200: #e4e1d8;
    --stone-400: #a8a498;
    --stone-600: #6c6a61;

    --brass: #a8762a;
    --brass-dark: #8d621f;

    --ink: #16201a;
    --ink-soft: #4c574f;

    --shell: 1180px;
    --radius: 4px;

    --shadow-sm: 0 1px 2px rgba(16, 36, 26, .06), 0 2px 8px rgba(16, 36, 26, .05);
    --shadow-md: 0 4px 12px rgba(16, 36, 26, .08), 0 12px 32px rgba(16, 36, 26, .07);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--ink);
    font-family: Karla, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

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

a {
    color: var(--pine-600);
}

h1,
h2,
h3,
h4 {
    font-family: Newsreader, Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
    margin: 0;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 clamp(1.15rem, 4vw, 2.5rem);
}

.muted {
    color: var(--ink-soft);
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 200;
    background: #fff;
    padding: .6rem 1rem;
    border-radius: var(--radius);
}

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

/* ----------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-solid {
    background: var(--brass);
    color: #fff;
}

.btn-solid:hover {
    background: var(--brass-dark);
    color: #fff;
}

.btn-outline {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

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

.btn-ghost {
    border-color: var(--stone-200);
    background: #fff;
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--pine-600);
    color: var(--pine-600);
}

.btn-block {
    width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Top info bar: contact, address, social, booking shortcut */
.topbar {
    background: var(--pine-900);
    color: rgba(255, 255, 255, .85);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    font-size: .84rem;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.topbar-info a,
.topbar-address {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-weight: 500;
}

.topbar-info a:hover {
    color: #fff;
}

.topbar-info svg {
    width: 14px;
    height: 14px;
    fill: var(--brass);
    flex: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.topbar-social a {
    display: flex;
    color: rgba(255, 255, 255, .85);
}

.topbar-social a:hover {
    color: var(--brass);
}

.topbar-social svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.topbar-cta {
    background: var(--pine-600);
    color: #fff;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: var(--radius);
}

.topbar-cta:hover {
    background: var(--brass);
}

/* Main nav: logo, links, account menu */
.header-main {
    background: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 96px;
    /* Vertical only - a `10px 0` shorthand wiped out .shell's side gutter. */
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: var(--ink);
}

.brand img {
    height: 76px;
    width: auto;
}

.brand-text {
    font-family: Newsreader, Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin-left: auto;
}

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

.site-nav a:hover {
    color: var(--brass);
}

.user-menu {
    position: relative;
    margin-left: 1.6rem;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--stone-200);
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.user-menu-toggle:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.user-menu-toggle svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.user-menu-drop {
    display: none;
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    min-width: 11rem;
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .4rem;
    flex-direction: column;
}

.user-menu.open .user-menu-drop {
    display: flex;
}

.user-menu-drop a,
.user-menu-drop button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    font: inherit;
    color: var(--ink);
    text-decoration: none;
    padding: .55rem .7rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.user-menu-drop a:hover,
.user-menu-drop button:hover {
    background: var(--stone-100);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}

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

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

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

/* Only shown inside the mobile menu (see the 940px block below) */
.site-nav-account {
    display: none;
}

@media (max-width: 780px) {
    .topbar-info {
        gap: 1rem;
    }

    .topbar-address {
        display: none;
    }
}

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

    .site-nav {
        position: absolute;
        inset: 100% 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        padding: .5rem 0;
        display: none;
        margin-left: 0;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        color: var(--ink);
        padding: .85rem clamp(1.15rem, 4vw, 2.5rem);
    }

    /* Account moves inside the hamburger menu on phone/tablet: the round icon
       goes away and the same links appear at the bottom of the open menu. */
    .user-menu {
        display: none;
    }

    .site-nav-account {
        display: flex;
        flex-direction: column;
        margin-top: .35rem;
        padding-top: .5rem;
        border-top: 1px solid var(--stone-200);
    }

    .site-nav-account-label {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: .35rem clamp(1.15rem, 4vw, 2.5rem) .15rem;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--stone-600);
    }

    .site-nav-account-label svg {
        width: 15px;
        height: 15px;
        fill: currentColor;
    }

    .site-nav-account a,
    .site-nav-account button {
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border: 0;
        font: inherit;
        font-size: .95rem;
        font-weight: 500;
        color: var(--ink);
        text-decoration: none;
        padding: .85rem clamp(1.15rem, 4vw, 2.5rem);
        cursor: pointer;
    }

    .site-nav-account a:hover,
    .site-nav-account button:hover {
        color: var(--brass);
    }
}

/* -------------------------------------------------------------------- hero */

.hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    background: var(--pine-900);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    /* Instant colour the moment the section paints, so a slow connection
       shows the brand tone rather than a flash of white while the photo
       decodes. */
    background: var(--pine-900);
}

.hero-media picture,
.hero-media img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-media img {
    object-fit: cover;
    /* Biases the crop toward the upper two-thirds of the photo (the
       architecture and roofline) and away from the foreground pavement,
       whatever the viewport's aspect ratio does to the crop. */
    object-position: 50% 30%;
    animation: heroDrift 22s ease-in-out infinite alternate;
    will-change: transform;
}

/* A slow, barely-there zoom - the kind of restrained motion large hotel
   sites use so a static photo reads as alive without being distracting. */
@keyframes heroDrift {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.055);
    }
}

/* Keeps the headline legible whatever photo is uploaded */
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 36, 26, .5) 0%, rgba(16, 36, 26, .22) 32%, rgba(16, 36, 26, .92) 100%);
}

/* Stand-in backdrop: misty ridges receding into the distance, drawn in CSS.
   Replaced the moment a photo is uploaded for the home carousel. */
.hero-nophoto .hero-media {
    background:
        radial-gradient(120% 80% at 70% 8%, #3a6a52 0%, transparent 60%),
        linear-gradient(180deg, #2b5642 0%, #1b3a2b 45%, #10241a 100%);
}

.hills {
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
}

.ridge {
    position: absolute;
    inset: auto 0 0 0;
    display: block;
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: 1600px 100%;
}

/* Three ridges, palest and highest at the back */
.ridge-3 {
    height: 100%;
    opacity: .30;
    background-image:
        radial-gradient(70% 100% at 12% 100%, #cfe3d6 0 70%, transparent 71%),
        radial-gradient(60% 86% at 52% 100%, #cfe3d6 0 70%, transparent 71%),
        radial-gradient(75% 96% at 88% 100%, #cfe3d6 0 70%, transparent 71%);
}

.ridge-2 {
    height: 74%;
    opacity: .42;
    background-image:
        radial-gradient(64% 100% at 28% 100%, #2f5c46 0 72%, transparent 73%),
        radial-gradient(70% 92% at 72% 100%, #2f5c46 0 72%, transparent 73%);
}

.ridge-1 {
    height: 46%;
    opacity: .9;
    background-image:
        radial-gradient(80% 100% at 18% 100%, #14291d 0 74%, transparent 75%),
        radial-gradient(72% 92% at 62% 100%, #14291d 0 74%, transparent 75%),
        radial-gradient(60% 84% at 96% 100%, #14291d 0 74%, transparent 75%);
}

.hero-body {
    position: relative;
    padding: 4rem 0;
    width: 100%;
}

.hero-eyebrow {
    font-size: .72rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    opacity: .85;
    margin: 0 0 1rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    max-width: 16ch;
    margin: 0 auto 1rem;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 46ch;
    opacity: .92;
    margin: 0 auto 2rem;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 0;
}

.hero-facts div {
    line-height: 1.2;
}

.hero-facts strong {
    display: block;
    font-family: Newsreader, Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
}

.hero-facts span {
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .8;
}

/* ------------------------------------------------------------ booking bar */

.booking-bar {
    position: relative;
    z-index: 20;
    margin-top: -3.5rem;
}

.booking-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.booking-card h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

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

    .booking-form .field-submit {
        grid-column: 1 / -1;
    }
}

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

.field label {
    display: block;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--stone-600);
    margin-bottom: .35rem;
}

.field input,
.field select {
    width: 100%;
    padding: .7rem .8rem;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
}

.field input:focus,
.field select:focus {
    border-color: var(--pine-600);
    outline: none;
}

/* The open list is drawn by the browser from each option's own font, and on a
   phone it comes out far larger than the field it belongs to. */
@media (max-width: 820px) {
    .field select option {
        font-size: .8rem;
        line-height: 1.3;
        padding: .3rem .6rem;
    }
}

.field .err {
    display: block;
    color: #93372f;
    font-size: .8rem;
    margin-top: .3rem;
}

/* ---------------------------------------------------------------- sections */

section.band {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.band-stone {
    background: var(--stone-100);
}

.band-pine {
    background: var(--pine-800);
    color: #fff;
}

.band-pine h2,
.band-pine h3 {
    color: #fff;
}

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

.section-head .eyebrow {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 .7rem;
}

.section-head h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: .8rem;
}

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

.band-pine .section-head p {
    color: rgba(255, 255, 255, .78);
}

/* ------------------------------------------------------------- unit cards */

/* Flex, not grid: a trailing card on its own row sits at its natural width
   instead of a CSS grid reserving empty column tracks beside it - that gap is
   what made a 4th card (3 rooms + 1 cottage) look like a layout mistake. */
.unit-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.unit {
    flex: 0 1 340px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

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

.unit-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--pine-100);
}

.unit-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No photograph yet: a quiet plaque - the unit's own number as the subject,
   not a broken-looking grey box. Room and cottage take different hill tones
   (pine vs brass) purely so four cards in a row read as distinct units
   rather than four copies of the same placeholder. */
.unit-photo .placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.placeholder-room {
    background: linear-gradient(150deg, var(--pine-100) 0%, #dbe9e0 100%);
}

.placeholder-cottage {
    background: linear-gradient(150deg, #f3e9d8 0%, #e8dabf 100%);
}

.unit-photo .placeholder::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
}

.placeholder-room::before {
    background:
        radial-gradient(70% 100% at 20% 100%, rgba(44, 106, 76, .20) 0 72%, transparent 73%),
        radial-gradient(64% 88% at 68% 100%, rgba(44, 106, 76, .26) 0 72%, transparent 73%);
}

.placeholder-cottage::before {
    background:
        radial-gradient(70% 100% at 22% 100%, rgba(141, 98, 31, .18) 0 72%, transparent 73%),
        radial-gradient(64% 88% at 70% 100%, rgba(141, 98, 31, .24) 0 72%, transparent 73%);
}

.placeholder-mark {
    position: relative;
    font-family: Newsreader, Georgia, serif;
    font-size: clamp(1.7rem, 5.5vw, 2.4rem);
    color: var(--ink);
    letter-spacing: .02em;
    line-height: 1;
}

.placeholder-caption {
    position: relative;
    margin-top: .55rem;
    font-family: Karla, sans-serif;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.placeholder-room .placeholder-caption {
    color: var(--pine-600);
}

.placeholder-cottage .placeholder-caption {
    color: var(--brass-dark);
}

/* A quiet glass pill rather than a flat solid tag - the coloured dot alone
   carries room-vs-cottage, so the badge sits lightly over any photo. */
.unit-tag {
    position: absolute;
    top: .8rem;
    left: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(4px);
    color: var(--ink);
    font-family: Karla, sans-serif;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .32rem .65rem .32rem .55rem;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(16, 36, 26, .18);
}

.unit-tag i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pine-600);
}

.unit-tag-cottage i {
    background: var(--brass);
}

.unit-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.25rem 1.35rem;
}

.unit-body h3 {
    font-size: 1.35rem;
    margin-bottom: .4rem;
}

.unit-spec {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.1rem;
}

.chip {
    font-size: .78rem;
    background: var(--stone-100);
    border: 1px solid var(--stone-200);
    color: var(--ink-soft);
    padding: .18rem .55rem;
    border-radius: 2px;
}

.unit-cta {
    width: 100%;
    margin-top: auto;
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.unit-whatsapp {
    display: block;
    text-align: center;
    margin-top: .6rem;
    font-family: Karla, sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: var(--pine-600);
    text-decoration: none;
}

.unit-whatsapp:hover,
.unit-whatsapp:focus-visible {
    text-decoration: underline;
}

/* --------------------------------------------------- text beside a photo */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

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

.split-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.split-photo img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
}

.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 2.5rem 0 0;
}

/* ----------------------------------------------------------- photo grid */

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

.photo-grid figure {
    margin: 0;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--pine-100);
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .4s ease;
}

.photo-grid figure:hover img {
    transform: scale(1.03);
}

.photo-grid figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem .9rem .8rem;
    color: #fff;
    font-size: .85rem;
    background: linear-gradient(180deg, transparent, rgba(16, 36, 26, .82));
}

/* --------------------------------------------------------------- features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.5rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.feature p {
    margin: 0;
    font-size: .95rem;
    color: var(--ink-soft);
}

.band-pine .feature p {
    color: rgba(255, 255, 255, .76);
}

.feature .num {
    font-family: Newsreader, Georgia, serif;
    font-size: .95rem;
    color: var(--brass);
    display: block;
    margin-bottom: .6rem;
    letter-spacing: .1em;
}

/* ------------------------------------------------------------------- flash */

.flash {
    margin: 6.5rem 0 0;
    padding: .85rem 1.1rem;
    border-radius: var(--radius);
    font-size: .95rem;
}

.flash-error {
    background: #f7e6e3;
    border-left: 3px solid #93372f;
}

.flash-ok {
    background: var(--pine-100);
    border-left: 3px solid var(--pine-600);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
    background: var(--pine-900);
    color: rgba(255, 255, 255, .78);
    padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
    font-size: .93rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

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

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

.footer-brand {
    font-family: Newsreader, Georgia, serif;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: .6rem;
}

.footer-logo {
    display: inline-block;
    background: #fff;
    border-radius: var(--radius);
    padding: .5rem .8rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.site-footer h4 {
    font-family: Karla, sans-serif;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: .8rem;
}

.site-footer p {
    margin: 0 0 .5rem;
}

.site-footer .muted {
    color: rgba(255, 255, 255, .7);
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brass);
    text-decoration: underline;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
}

.footer-base a {
    color: rgba(255, 255, 255, .55);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.footer-social a:hover {
    background: var(--brass);
}

.footer-social svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.footer-line {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.footer-line svg {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: .2rem;
    fill: var(--brass);
}

.footer-newsletter {
    display: flex;
    margin-top: .9rem;
}

.footer-newsletter input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: .75rem .9rem;
    font: inherit;
    font-size: .88rem;
}

.footer-newsletter button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    border: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--pine-600);
    color: #fff;
    cursor: pointer;
}

.footer-newsletter button:hover {
    background: var(--brass);
}

.footer-newsletter button svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.footer-payment {
    margin-top: .7rem;
    max-width: 220px;
    height: auto;
}

.back-to-top {
    position: fixed;
    right: clamp(1rem, 4vw, 1.75rem);
    bottom: calc(clamp(1rem, 4vw, 1.75rem) + 68px);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-md);
    transition: transform .15s ease;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* --------------------------------------------------------- whatsapp fab */

.whatsapp-fab {
    position: fixed;
    right: clamp(1rem, 4vw, 1.75rem);
    bottom: clamp(1rem, 4vw, 1.75rem);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 16px rgba(16, 36, 26, .28), 0 2px 6px rgba(16, 36, 26, .18);
    transition: transform .15s ease, box-shadow .15s ease;
    animation: fabIn .4s ease .3s backwards;
}

.whatsapp-fab svg {
    width: 30px;
    height: 30px;
}

.whatsapp-fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(16, 36, 26, .32), 0 3px 8px rgba(16, 36, 26, .2);
}

@keyframes fabIn {
    from {
        opacity: 0;
        transform: scale(.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .whatsapp-fab {
        width: 50px;
        height: 50px;
    }

    .whatsapp-fab svg {
        width: 26px;
        height: 26px;
    }
}

/* ------------------------------------------------------ sign in / register */

.auth-band {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}

.auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: stretch;
}

@media (max-width: 780px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }
}

.auth-card {
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.auth-card .eyebrow {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 .6rem;
}

.auth-card h1 {
    font-size: clamp(1.7rem, 4vw, 2.1rem);
}

.auth-lead {
    margin: .5rem 0 1.75rem;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-card .field {
    margin: 0;
}

.auth-help {
    margin: 1.1rem 0 0;
    font-size: .88rem;
    text-align: center;
    color: var(--ink-soft);
}

/* Two fields share a row on a wider card (first/last name) */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

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

/* The quiet companion panel - sits beside the card, explains the other path
   (sign in <-> create an account) without competing with the form itself. */
.auth-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(0, 2vw, 1rem);
}

.auth-side h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    margin-bottom: .7rem;
}

.auth-side p {
    margin: 0 0 1.5rem;
    max-width: 40ch;
}

.auth-side .btn {
    align-self: flex-start;
}

.auth-perks {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--stone-200);
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.auth-perks li {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    font-size: .92rem;
    color: var(--ink-soft);
}

.auth-perks li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: .5em;
    border-radius: 50%;
    background: var(--brass);
}

/* -------------------------------------------------------------- phone polish */
/* Finger-sized targets, no iOS zoom-on-focus, and nothing under 12px. */

@media (max-width: 940px) {
    .topbar-info a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        white-space: nowrap;
        font-size: 13px;
    }

    .topbar-social {
        gap: 0;
    }

    a[aria-label="Instagram"], a[title="Instagram"], .fa-instagram {
        display: none !important;
    }

    .topbar-social a {
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 44px;
    }

    .topbar-cta {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
    }

    /* 24px bars + 12px padding = a 48px tap area; the negative margin keeps the
       bars lined up with the page gutter instead of pushing them in. */
    .nav-toggle {
        padding: .75rem;
        margin-right: -.75rem;
    }
}

@media (max-width: 820px) {
    /* iOS Safari zooms the whole page when a field under 16px takes focus */
    .field input,
    .field select,
    .field textarea,
    .footer-newsletter input {
        font-size: 16px;
    }

    .hero-eyebrow,
    .hero-facts span,
    .field label,
    .section-head .eyebrow,
    .auth-card .eyebrow,
    .site-footer h4,
    .unit-tag,
    .placeholder-caption {
        font-size: .75rem;
    }

    .unit-whatsapp {
        margin-top: .1rem;
        padding: .75rem 0;
    }

    .footer-grid p:not(.footer-social) > a,
    .footer-base a {
        display: inline-block;
        padding: .5rem 0;
    }

    .footer-line svg {
        margin-top: .7rem;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 520px) {
    /* 56 cards stack into one very long column; a shorter picture keeps the
       list scannable without shrinking the text or the buttons. */
    .unit-photo {
        aspect-ratio: 16 / 9;
    }

    .unit-body {
        padding: 1rem 1rem 1.1rem;
    }

    .unit-grid {
        gap: 1rem;
    }

    .unit {
        flex-basis: 100%;
    }
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}
