/* ============================================================
   Holiday RV Park – Pismo Beach | Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,600;0,700;1,400;1,700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ─────────────── */
:root {
    --ocean: #10466b;
    --sunset: #ea8024;
    --sun: #ecb31c;
    --teal: #0a798b;
    --sky: #66cce4;
    --slate-50: #f8fafc;
    --white: #ffffff;

    --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, .18);

    --radius-full: 9999px;
    --radius-2xl: 1.5rem;
    --radius-3xl: 1.75rem;

    --transition: 0.3s ease;

    /* Tint native browser controls (date pickers, checkboxes, etc.) */
    accent-color: var(--ocean);
    --radius-xl: 1rem;
}

/* ── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-sans);
    color: var(--ocean);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ── Date Picker Theming (Chrome / Edge / Safari) ────── */
::-webkit-datetime-edit {
    font-family: var(--font-sans);
    font-weight: 600;
}

::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px;
    transition: background .15s, opacity .15s;
}

::-webkit-calendar-picker-indicator:hover {
    background: rgba(16, 70, 107, .08);
}

::-webkit-date-and-time-value {
    text-align: left;
}

/* Tint the calendar icon to ocean blue on light backgrounds */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(22%) sepia(50%) saturate(800%) hue-rotate(175deg) brightness(0.9);
    opacity: .6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Ensure all form date inputs use light calendar popup */
input[type="date"] {
    color-scheme: light;
}

/* ── Anti-spam honeypot (must stay invisible) ──────────── */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Utility Classes ───────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--sunset);
    color: #fff;
    padding: 1.125rem 3rem;
    border-radius: var(--radius-full);
    font-size: 1.125rem;
    box-shadow: 0 8px 25px rgba(234, 128, 36, .4);
}

.btn-primary:hover {
    background: #d4721f;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(234, 128, 36, .5);
}

.btn-ghost {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    padding: 1.125rem 3rem;
    border-radius: var(--radius-full);
    font-size: 1.125rem;
    border: 2px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .35);
}

.btn-outline {
    background: transparent;
    color: var(--ocean);
    padding: .75rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    border: 2px solid var(--ocean);
}

.btn-outline:hover {
    background: var(--ocean);
    color: #fff;
}

.btn-sm {
    padding: .6rem 1.4rem;
    font-size: .9rem;
}

/* ── Rolling Waves (background-position, flicker-proof) ── */
/* Uses background-position animation on a repeat-x tile.
   At the loop reset, position 0 and -1200px look IDENTICAL
   because the tile repeats — no visual discontinuity, no flicker. */
.rolling-wave-bg {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
    background-repeat: repeat-x;
    background-size: 1200px 100%;
    background-position: 0 bottom;
    -webkit-animation: waveScroll 18s linear infinite;
    animation: waveScroll 18s linear infinite;
}

@media (min-width: 768px) {
    .rolling-wave-bg {
        height: 120px;
    }
}

.rolling-wave-bg.wave-reverse {
    -webkit-animation-name: waveScrollReverse;
    animation-name: waveScrollReverse;
}

/* Wide single-crest wave tile (1200×120, 1 gentle rolling crest) */
.rolling-wave-bg.wave-slate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,120 300,0 600,60 C900,120 900,0 1200,60 V120 H0 Z' fill='%23f8fafc'/%3E%3C/svg%3E");
}

.rolling-wave-bg.wave-ocean {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,120 300,0 600,60 C900,120 900,0 1200,60 V120 H0 Z' fill='%2310466b'/%3E%3C/svg%3E");
}

.rolling-wave-bg.wave-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,120 300,0 600,60 C900,120 900,0 1200,60 V120 H0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

@-webkit-keyframes waveScroll {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -1200px;
    }
}

@keyframes waveScroll {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -1200px;
    }
}

@-webkit-keyframes waveScrollReverse {
    from {
        background-position-x: -1200px;
    }

    to {
        background-position-x: 0;
    }
}

@keyframes waveScrollReverse {
    from {
        background-position-x: -1200px;
    }

    to {
        background-position-x: 0;
    }
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .1);
    padding: .6rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-img {
    height: 80px;
    width: auto;
    transition: all var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transform-origin: center left;
}

@media (min-width: 1024px) {
    .logo-img {
        height: 120px;
    }
}

.nav.scrolled .logo-img {
    height: 60px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    transform: translateY(20px);
}

@media (min-width: 1024px) {
    .nav.scrolled .logo-img {
        height: 90px;
        transform: translateY(30px);
    }
}

/* Old Nav Logo Styles removed (using .logo-img now) */

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    background: rgba(0, 0, 0, .2);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    padding: .25rem 1rem;
    transition: background var(--transition);
}

.nav.scrolled .nav-links {
    background: transparent;
}

.nav-link {
    color: var(--ocean);
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: var(--radius-full);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav:not(.scrolled) .nav-link {
    color: #fff;
}

.nav:not(.scrolled) .nav-link:hover {
    color: var(--sun);
}

.nav.scrolled .nav-link:hover {
    color: var(--sunset);
}

.nav-link.active {
    color: var(--sunset) !important;
}

.nav-cta {
    margin-left: 1rem;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    color: #fff;
    transition: color var(--transition);
}

.nav.scrolled .nav-hamburger {
    color: var(--ocean);
}

.hamburger-icon,
.close-icon {
    width: 32px;
    height: 32px;
}

.close-icon {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity .3s, transform .3s;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ocean);
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--sunset);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ocean);
    z-index: 10;
}

/* Mobile Weather in mobile menu */
.mobile-weather {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(135deg, rgba(16, 70, 107, .06), rgba(10, 121, 139, .06));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(16, 70, 107, .1);
    padding: .75rem 1rem;
    text-align: center;
}

.mobile-weather-current {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ocean);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.mobile-weather-forecast {
    display: grid;
    gap: 0;
}

.mobile-weather-forecast .nw-day {
    grid-template-columns: 40px 24px 28px 1fr 28px;
    padding: .4rem .5rem;
}

.mobile-weather-forecast .nav-weather-forecast::before {
    display: none;
}

@media (max-width: 1023px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

/* ── Desktop Dropdown Menus ───────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: inherit;
}

.dropdown-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #fff;
    border-radius: 1rem;
    box-shadow:
        0 20px 60px rgba(16, 70, 107, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    min-width: 240px;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* Triangle pointer */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    background: #fff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Invisible hover bridge between trigger and dropdown */
.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--ocean);
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.nav-dropdown-item:hover {
    background: rgba(16, 70, 107, 0.06);
    transform: translateX(3px);
}

.nav-dropdown-item.active {
    background: rgba(234, 128, 36, 0.08);
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: rgba(16, 70, 107, 0.06);
    color: var(--ocean);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-item:hover .dropdown-item-icon {
    background: var(--ocean);
    color: #fff;
}

.nav-dropdown-item.active .dropdown-item-icon {
    background: var(--sunset);
    color: #fff;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dropdown-item-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ocean);
    transition: color 0.2s;
}

.nav-dropdown-item:hover .dropdown-item-label {
    color: var(--sunset);
}

.nav-dropdown-item.active .dropdown-item-label {
    color: var(--sunset);
}

.dropdown-item-desc {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(16, 70, 107, 0.5);
    line-height: 1.3;
}

/* ── Nav Weather Widget (inside nav pill) ──────────── */
.nav-weather {
    position: relative;
}

.nav-weather-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, .2);
    border-radius: 0;
    padding: .5rem 1rem;
    margin-left: .25rem;
    cursor: pointer;
    transition: color var(--transition);
    color: #fff;
    font-family: var(--font-display);
    line-height: 1;
    white-space: nowrap;
}

.nav.scrolled .nav-weather-btn {
    color: var(--ocean);
    border-left-color: rgba(16, 70, 107, .15);
}

.nav-weather-btn:hover {
    color: var(--sun);
}

.nav.scrolled .nav-weather-btn:hover {
    color: var(--sunset);
}

.nav-weather-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.nav-weather-temp {
    font-size: .95rem;
    font-weight: 700;
}

/* Forecast Dropdown */
.nav-weather-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: -8px;
    width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(16, 70, 107, .04),
        0 12px 28px rgba(16, 70, 107, .1),
        0 24px 50px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(.98);
    transition: opacity .2s ease, transform .25s cubic-bezier(.22, .61, .36, 1), visibility .2s;
    z-index: 200;
    overflow: hidden;
}

.nav-weather-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Arrow */
.nav-weather-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 22px;
    width: 10px;
    height: 10px;
    background: var(--ocean);
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Header – gradient with current conditions */
.nav-weather-dropdown-header {
    background: linear-gradient(135deg, var(--ocean) 0%, var(--teal) 100%);
    color: #fff;
    padding: 1.1rem 1.25rem 1rem;
}

.nav-weather-dropdown-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .75;
    margin-bottom: .6rem;
}

.nav-weather-dropdown-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.nav-weather-dropdown-now {
    font-size: .85rem;
    line-height: 1.4;
}

/* Current weather row inside header */
.weather-now-row {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.weather-now-icon {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
}

.weather-now-temp {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}

.weather-now-details {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.weather-now-condition {
    font-weight: 700;
    font-size: .9rem;
}

.weather-now-meta {
    font-size: .72rem;
    opacity: .7;
    font-weight: 500;
}

/* 7-day forecast list */
.nav-weather-forecast {
    padding: .4rem 0 .5rem;
}

.nw-day {
    display: grid;
    grid-template-columns: 44px 26px 32px 1fr 32px;
    align-items: center;
    gap: .3rem;
    padding: .5rem 1.25rem;
    transition: background .15s;
}

.nw-day:hover {
    background: rgba(16, 70, 107, .03);
}

.nw-day--today {
    background: rgba(16, 70, 107, .04);
}

.nw-day-name {
    font-size: .8rem;
    font-weight: 700;
    color: var(--ocean);
}

.nw-day--today .nw-day-name {
    color: var(--sunset);
}

.nw-day-icon {
    font-size: 1.15rem;
    text-align: center;
    line-height: 1;
}

.nw-day-lo,
.nw-day-hi {
    font-size: .78rem;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.nw-day-lo {
    color: #a0aec0;
}

.nw-day-hi {
    color: var(--ocean);
}

/* Temperature range bar */
.nw-day-bar {
    position: relative;
    height: 4px;
    border-radius: 4px;
    background: rgba(16, 70, 107, .08);
    overflow: hidden;
}

.nw-day-bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sky), var(--sunset));
    transition: left .4s ease, right .4s ease;
}

.nw-day--today .nw-day-bar-fill {
    background: linear-gradient(90deg, var(--teal), var(--sunset));
}

/* Divider between header and forecast */
.nav-weather-forecast::before {
    content: '7-DAY FORECAST';
    display: block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(16, 70, 107, .35);
    padding: .45rem 1.25rem .25rem;
}

.nav-weather-loading {
    text-align: center;
    padding: 1.25rem;
    font-size: .85rem;
    color: #a0aec0;
}


/* ── Mobile Dropdown Menus ────────────────────────────── */
.mobile-dropdown {
    width: 100%;
    text-align: center;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ocean);
    cursor: pointer;
    transition: color var(--transition);
    width: 100%;
    padding: 0;
}

.mobile-dropdown-toggle:hover {
    color: var(--sunset);
}

.mobile-dropdown-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-dropdown.open .mobile-dropdown-chevron {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-menu {
    max-height: 300px;
    opacity: 1;
    padding: 0.5rem 0 0.25rem;
}

.mobile-dropdown-menu a {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--teal) !important;
    padding: 0.25rem 1.5rem;
    border-radius: var(--radius-full);
    transition: color 0.2s, background 0.2s;
}

.mobile-dropdown-menu a:hover {
    color: var(--sunset) !important;
    background: rgba(234, 128, 36, 0.08);
}

/* ── Hero Section ──────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--ocean);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 70, 107, .45);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .9s ease forwards .2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .4);
    flex-shrink: 0;
}

.hero-title .accent {
    color: var(--sun);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.hero-subtitle .highlight {
    color: var(--sky);
    font-weight: 700;
}

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

/* ── Hero Booking Form ─────────────────────────────────── */
.hero-booking {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
    flex-shrink: 0;
}

.hero-booking-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255, 255, 255, .75);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: .35rem;
}

.hero-booking-form {
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    padding: 1rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
    flex-shrink: 0;
}

.hero-booking-row {
    display: flex;
    align-items: flex-end;
    gap: 0;
    flex-wrap: wrap;
}

.hero-booking-fields {
    display: flex;
    align-items: flex-end;
    flex: 1;
    gap: 0;
    flex-wrap: wrap;
    min-width: 0;
}

.hero-field-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
    min-width: 130px;
    padding: 0 .85rem;
}

.hero-field-group:first-child {
    padding-left: 0;
}

.hero-field-label {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}

.hero-field-label svg {
    opacity: .7;
    flex-shrink: 0;
}

.hero-field-input {
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: .92rem;
    font-weight: 600;
    padding: .6rem .85rem;
    min-height: 48px;
    width: 100%;
    outline: none;
    transition: border-color .2s, background .2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.hero-field-input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.hero-field-input:focus {
    border-color: var(--sun);
    background: rgba(255, 255, 255, .22);
}

/* Date/number input – light calendar popup, white text via invert trick */
.hero-field-input[type="date"],
.hero-field-input[type="number"] {
    color-scheme: light;
}

/* Make the calendar icon white on the hero's dark background */
.hero-field-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: .7;
    transition: opacity .15s;
}

.hero-field-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Select arrow — cross-browser */
.hero-field-group select.hero-field-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.7)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    padding-right: 2rem;
    cursor: pointer;
    /* Firefox: ensure native arrow is hidden so custom arrow shows */
    -moz-appearance: none;
    text-overflow: ellipsis;
}

.hero-field-group select.hero-field-input option {
    background: var(--ocean);
    color: #fff;
}

/* Divider (arrow between dates) */
.hero-field-divider {
    font-size: 1rem;
    color: rgba(255, 255, 255, .45);
    padding-bottom: .65rem;
    flex-shrink: 0;
    align-self: flex-end;
}

/* Vertical separator between field groups */
.hero-field-sep {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, .2);
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: .05rem;
}

/* Guests stepper */
.hero-guests-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    overflow: hidden;
}

.hero-guests-stepper .hero-field-input.stepper-input {
    border: none;
    border-radius: 0;
    text-align: center;
    width: 3rem;
    padding: .6rem .25rem;
    flex-shrink: 0;
}

/* Hide number spinners */
.stepper-input::-webkit-inner-spin-button,
.stepper-input::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.stepper-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.stepper-btn {
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 .7rem;
    cursor: pointer;
    height: 48px;
    transition: background .15s;
    flex-shrink: 0;
}

.stepper-btn:hover {
    background: rgba(255, 255, 255, .25);
}

/* Submit button */
.hero-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--sunset);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 700;
    padding: .75rem 1.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(234, 128, 36, .45);
    flex-shrink: 0;
    margin-top: .75rem;
    align-self: center;
}

.hero-booking-btn:hover {
    background: #d4701a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234, 128, 36, .55);
}

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

.hero-booking-btn svg {
    flex-shrink: 0;
}

/* Success / Error messages */
.hero-booking-msg {
    display: none;
    margin-top: .8rem;
    padding: .8rem 1.1rem;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.hero-booking-msg.show {
    display: block;
}

.hero-booking-success {
    background: rgba(16, 185, 129, .25);
    border: 1px solid rgba(16, 185, 129, .5);
    color: #d1fae5;
}

.hero-booking-error {
    background: rgba(239, 68, 68, .25);
    border: 1px solid rgba(239, 68, 68, .45);
    color: #fee2e2;
}

/* ── Hero Liquid Layout (Mobile) ──────────────────────── */
/* No nested scroll — hero grows naturally so the page
   scrolls normally on every phone size.                   */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: env(safe-area-inset-top, 0px);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        width: 100%;
        /* Nav = 1.25rem padding-top + 80px logo + buffer */
        padding-top: 130px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.8rem);
        margin-bottom: 1rem;
    }

    .hero-booking {
        margin-top: auto;
        /* Clear the 50px wave + safe-area + breathing room */
        margin-bottom: calc(60px + env(safe-area-inset-bottom, 16px));
        width: 92%;
        max-width: 440px;
    }

    /* Shrink wave on mobile so it doesn't eat into the card */
    .hero .rolling-wave-bg {
        height: 50px;
        bottom: -1px; /* kill the thin sub-pixel line */
    }
}

/* ── Short-screen: compress hero ──────────────────────── */
@media (max-height: 700px) and (max-width: 768px) {
    .hero-title {
        margin-bottom: .5rem;
    }

    .hero-content {
        padding-top: 110px;
    }
}

/* ── Responsive: tablet/mobile stacking ───────────────── */
@media (max-width: 760px) {
    .hero-booking-form {
        align-items: stretch;
        gap: .75rem;
    }

    .hero-booking-fields {
        flex-direction: column;
        align-items: stretch;
        gap: .65rem;
    }

    .hero-guests-stepper {
        width: 100%;
    }

    .hero-guests-stepper .hero-field-input.stepper-input {
        flex: 1;
        width: auto;
    }

    .hero-field-group {
        padding: 0;
        min-width: 0;
    }

    .hero-field-divider,
    .hero-field-sep {
        display: none;
    }

    .hero-booking-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding: .9rem 1.5rem;
    }
}



/* ── Section Shared ────────────────────────────────────── */
.section {
    padding: 5rem 1.5rem;
}

.section-sm {
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ocean);
    margin-bottom: 1rem;
}

.section-title.white {
    color: #fff;
}

.section-divider {
    width: 6rem;
    height: .5rem;
    background: var(--sun);
    border-radius: var(--radius-full);
    margin: 0 auto 3rem;
}




/* ── Amenity Cards ─────────────────────────────────────── */
.amenities-section {
    background: var(--slate-50);
    position: relative;
    padding-bottom: 7rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.amenity-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-lg);
    border-bottom: 8px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    /* Required for the image overlay */
    position: relative;
    overflow: hidden;
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.amenity-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.amenity-icon svg {
    width: 40px;
    height: 40px;
}

.amenity-title {
    font-size: 1.4rem;
    color: var(--ocean);
    margin-bottom: .75rem;
}

.amenity-desc {
    color: rgba(16, 70, 107, .65);
    line-height: 1.6;
}

/* ── Amenity Card — Hover Image Reveal ─────────────────── */
.amenity-img-overlay {
    position: absolute;
    inset: 0;
    /* Start hidden below the card */
    transform: translateY(100%);
    transition: transform .42s cubic-bezier(.22, 1, .36, 1);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    z-index: 2;
    cursor: pointer;
}

.amenity-card:hover .amenity-img-overlay,
.amenity-card.tapped .amenity-img-overlay {
    transform: translateY(0);
}

.amenity-img-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Subtle scale-in for a Ken Burns feel */
    transform: scale(1.08);
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.amenity-card:hover .amenity-img-overlay img,
.amenity-card.tapped .amenity-img-overlay img {
    transform: scale(1);
}

.amenity-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .85rem 1.25rem;
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    /* Slide caption up slightly after overlay lands */
    transform: translateY(8px);
    opacity: 0;
    transition: transform .3s ease .15s, opacity .3s ease .15s;
}

.amenity-card:hover .amenity-img-caption,
.amenity-card.tapped .amenity-img-caption {
    transform: translateY(0);
    opacity: 1;
}

/* ── Bento / Activity Grid ─────────────────────────────── */
.activities-section {
    background: var(--ocean);
    padding: 3rem 1.5rem;
    padding-bottom: 7rem;
    /* extra room for the wave */
    position: relative;
    overflow-x: clip;
}

.activities-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .activities-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.activities-header p {
    color: rgba(102, 204, 228, .7);
    font-size: 1.1rem;
}

.activities-link {
    color: var(--sun);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    transition: color var(--transition);
    white-space: nowrap;
}

.activities-link:hover {
    color: #fff;
}

.bento-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 220px);
    }

    /* Oceano Dunes — big featured card */
    .bento-item:nth-child(2) {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Surfing — wide card */
    .bento-item:nth-child(1) {
        grid-column: span 2;
    }

    /* Dining — wide card */
    .bento-item:nth-child(5) {
        grid-column: span 2;
    }

    /* Shopping — wide card */
    .bento-item:nth-child(6) {
        grid-column: span 2;
    }
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-3xl);
    min-height: 200px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}

.bento-item:hover {
    transform: scale(1.02);
}

.bento-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.bento-item:hover img {
    transform: scale(1.08);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .15) 50%, transparent 100%);
}

.bento-label {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.bento-icon {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.bento-label h4 {
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-display);
}

/* ── Testimonials / CTA ────────────────────────────────── */
.testimonials-section {
    background: #fff;
    padding: 3rem 0 6rem;
    /* Removing side padding for full-width scroll effect */
}

.testimonials-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2rem 0;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-testimonials 60s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.testimonial-card {
    background: var(--slate-50);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-3xl);
    border-top: 4px solid var(--sky);
    width: 320px;
    flex-shrink: 0;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1.25rem;
}

.testimonial-text {
    color: var(--ocean);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.7;
    font-size: 1.05rem;
    flex-grow: 1;
}

.testimonial-author {
    color: var(--sunset);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-icon {
    width: 64px;
    height: 64px;
    color: var(--sunset);
    opacity: .2;
    margin: 0 auto 1.5rem;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--ocean);
    margin-bottom: 1rem;
}

.cta-title em {
    color: var(--sunset);
    font-style: italic;
}

.cta-subtitle {
    color: rgba(16, 70, 107, .65);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto 3rem;
}

/* ── Rates Section ─────────────────────────────────────── */
.rates-section {
    background: var(--slate-50);
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.rate-card {
    background: #fff;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.rate-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.rate-card:hover {
    box-shadow: var(--shadow-xl);
}

.rate-card-header {
    background: var(--ocean);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.rate-card.featured .rate-card-header {
    background: var(--sunset);
}

.rate-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.rate-badge {
    display: inline-block;
    background: var(--sun);
    color: var(--ocean);
    font-size: .8rem;
    font-weight: 700;
    padding: .2rem .75rem;
    border-radius: var(--radius-full);
    margin-bottom: .75rem;
}

.rate-price {
    font-size: 2.5rem;
    font-family: var(--font-display);
}

.rate-price span {
    font-size: 1rem;
    opacity: .8;
}

.rate-card-body {
    padding: 2rem;
}

.rate-features {
    margin-bottom: 2rem;
}

.rate-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    border-bottom: 1px dashed rgba(16, 70, 107, .1);
    color: rgba(16, 70, 107, .8);
    font-weight: 600;
}

.rate-features li:last-child {
    border-bottom: none;
}

.rate-features li svg {
    width: 18px;
    height: 18px;
    color: var(--teal);
    flex-shrink: 0;
}

/* ── Gallery Section ───────────────────────────────────── */
.gallery-section {
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 70, 107, .5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: var(--radius-2xl);
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    max-width: 600px;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl, 12px);
    backdrop-filter: blur(8px);
    line-height: 1.5;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .1);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s, transform .2s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--sunset, #ea8024);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }

    .lightbox-caption {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        max-width: 85vw;
    }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, .1);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: background var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--sunset);
}

/* ── Contact Section ───────────────────────────────────── */
.contact-section {
    background: var(--slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}


.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--ocean);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-text h4 {
    font-size: 1rem;
    margin-bottom: .25rem;
    color: var(--ocean);
}

.contact-info-text p,
.contact-info-text a {
    color: rgba(16, 70, 107, .65);
    font-weight: 600;
}

.contact-info-text a:hover {
    color: var(--sunset);
}

/* ── Forms ─────────────────────────────────────────────── */
.form-card {
    background: #fff;
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--ocean);
    font-size: .95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: .875rem 1.125rem;
    border: 2px solid rgba(16, 70, 107, .15);
    border-radius: .875rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--ocean);
    background: var(--slate-50);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(102, 204, 228, .2);
    background: #fff;
}

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

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

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

.form-success {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem 1.5rem;
    border-radius: .875rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: none;
}

.form-success.show {
    display: block;
}

.form-error {
    background: #fee2e2;
    color: #991b1b;
    padding: .5rem 1rem;
    border-radius: .5rem;
    font-size: .85rem;
    margin-top: .35rem;
    display: none;
}

.form-error.show {
    display: block;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
    background: var(--ocean);
    color: #fff;
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    color: rgba(102, 204, 228, .6);
    margin: 1rem 0 1.5rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background var(--transition);
}

.footer-social-link:hover {
    background: var(--sunset);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-heading {
    font-size: 1.1rem;
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-heading svg {
    width: 20px;
    height: 20px;
    color: var(--sun);
}

.footer-text {
    color: rgba(102, 204, 228, .6);
    line-height: 1.8;
    font-weight: 600;
}

.footer-text a {
    color: rgba(102, 204, 228, .6);
    transition: color var(--transition);
}

.footer-text a:hover {
    color: var(--sun);
}

.footer-links li {
    margin-bottom: .75rem;
}

.footer-links a {
    color: rgba(102, 204, 228, .6);
    font-weight: 600;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--sun);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center;
    text-align: center;
    color: rgba(102, 204, 228, .4);
    font-size: .875rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ── Page Header (inner pages) ─────────────────────────── */
.page-header {
    background: var(--ocean);
    padding: 8rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(234, 128, 36, .2) 0%, transparent 60%);
}

.page-header h1 {
    color: #fff;
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.page-header p {
    color: rgba(102, 204, 228, .8);
    margin-top: .75rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ── Member Login / Auth ───────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ocean) 0%, #0a2e47 100%);
    padding: 2rem;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-3xl);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--sunset);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
    color: #fff;
}

.auth-logo-icon svg {
    width: 32px;
    height: 32px;
}

.auth-logo h2 {
    font-size: 1.75rem;
    color: var(--ocean);
}

.auth-logo p {
    color: rgba(16, 70, 107, .6);
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: rgba(16, 70, 107, .4);
    font-size: .875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(16, 70, 107, .15);
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(16, 70, 107, .6);
    font-size: .9rem;
}

.auth-footer-link a {
    color: var(--sunset);
    font-weight: 700;
}

/* ── Scroll Animations ─────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

/* Slide-in from sides (initial offscreen positions) */
.animate-on-scroll.slide-from-left {
    transform: translateX(-80px);
}

.animate-on-scroll.slide-from-right {
    transform: translateX(80px);
}

/* Visible state — must win over slide classes */
.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.delay-1 {
    transition-delay: .1s;
}

.delay-2 {
    transition-delay: .2s;
}

.delay-3 {
    transition-delay: .3s;
}

.delay-4 {
    transition-delay: .4s;
}

/* ── Map Embed ──────────────────────────────────────────── */
.map-embed {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 3rem;
}

.map-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ── Responsive Helpers ────────────────────────────────── */
@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
}


/* ── Loader ─────────────────────────────────────────────── */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--ocean);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    transition: opacity .5s ease, visibility .5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, .2);
    border-top-color: var(--sunset);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

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

.loader-text {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.4rem;
}

/* ── Responsive Adjustments ─────────────────────────────── */
@media (max-width: 640px) {
    .section {
        padding-top: 3rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}