/* =========================================================
   Waypoint West RV Park – Main Stylesheet
   ========================================================= */

/* -------------------------
   Google Fonts & Variables
   ------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --color-cream:      #f5f0e4;
    --color-purple:     #7b7ea8;
    --color-purple-dark:#6a6d93;
    --color-navy:       #2c3655;
    --color-navy-light: #3d4e6e;
    --color-white:      #ffffff;
    --color-card-bg:    rgba(110, 113, 152, 0.92);
    --font-display:     'Cinzel', serif;
    --font-script:      'Cormorant Garamond', serif;
    --font-body:        'Raleway', sans-serif;
    --nav-height:       80px;
    --section-padding:  80px 40px;
    --border-radius:    14px;
    --transition:       0.3s ease;
    --shadow:           0 4px 24px rgba(44, 54, 85, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-navy);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

/* -------------------------
   Utility Classes
   ------------------------- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 48px;
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Screen reader only */
.screen-reader-text,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    background: var(--color-purple);
    color: var(--color-white);
    clip: auto;
    height: auto;
    width: auto;
    padding: 12px 24px;
    top: 12px;
    left: 12px;
    z-index: 9999;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ========================
   HERO SECTION
   ======================== */
#hero {
    position: relative;
    width: 100%;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

/* ========================
   NAVIGATION
   ======================== */
#main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-purple);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow var(--transition);
}

#main-nav.nav--scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 5vw, 80px);
}

.nav__menu a {
    font-family: var(--font-body);
    font-size: clamp(0.65rem, 1.1vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition), opacity var(--transition);
}

.nav__menu a:hover,
.nav__menu a.active {
    border-bottom-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

/* Mobile hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
}

.nav__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================
   TAGLINE SECTION
   ======================== */
#tagline {
    background-color: var(--color-cream);
    padding: 60px 40px;
    text-align: center;
}

.tagline__text {
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 4vw, 3.8rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 8vw, 120px);
    flex-wrap: wrap;
}

/* ========================
   ABOUT US SECTION
   ======================== */
#about {
    background-color: var(--color-cream);
    padding: var(--section-padding);
    padding-top: 40px;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.about__text-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: clamp(30px, 4vw, 52px);
    color: var(--color-white);
}

.about__text-card p {
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 2;
    margin-bottom: 28px;
}

.about__text-card p:last-child {
    margin-bottom: 0;
}

.about__right {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.about__map-block h3 {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 14px;
}

.about__map-img {
    width: 100%;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-navy);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about__map-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ========================
   EXPLORE SECTION
   ======================== */
#explore {
    background-color: var(--color-cream);
    padding: var(--section-padding);
}

.explore__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 36px;
    max-width: 1100px;
    margin: 0 auto;
}

.explore__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.explore__img-wrap {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.explore__img-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(44, 54, 85, 0.2);
}

.explore__img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.explore__img-wrap:hover img {
    transform: scale(1.04);
}

.explore__label {
    text-align: center;
}

.explore__label .name {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-navy);
    display: block;
    margin-bottom: 4px;
}

.explore__label .distance {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--color-navy-light);
    display: block;
}

/* ========================
   RATES & AVAILABILITY
   ======================== */
#rates {
    background-color: var(--color-cream);
    padding: var(--section-padding);
    padding-top: 40px;
}

.rates__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.rates__images {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rates__image-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.rates__image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(44, 54, 85, 0.22);
}

.rates__image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rates__image-card:hover img {
    transform: scale(1.04);
}

.rates__image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
    text-align: center;
}

.rates__image-label span {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-white);
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.rates__contact {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rates__contact-block h3 {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 14px;
}

.rates__info-card {
    background-color: var(--color-purple);
    border-radius: var(--border-radius);
    padding: 24px 32px;
    text-align: center;
    margin-bottom: 12px;
}

.rates__info-card:last-child {
    margin-bottom: 0;
}

.rates__info-card p,
.rates__info-card a {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--color-white);
    line-height: 1.8;
}

.rates__info-card a:hover {
    opacity: 0.85;
}

.rates__info-card--light {
    background-color: rgba(123, 126, 168, 0.7);
}

/* ========================
   PARK RULES SECTION
   ======================== */
#park-rules {
    background-color: var(--color-cream);
    padding: var(--section-padding);
    padding-top: 40px;
    padding-bottom: 0;
}

.rules__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto 0;
}

.rules__card {
    background-color: var(--color-purple);
    border-radius: var(--border-radius);
    padding: clamp(30px, 4vw, 50px) 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow);
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.rules__card:hover {
    background-color: var(--color-purple-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(44, 54, 85, 0.2);
}

.rules__card h3 {
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 1.3vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.5;
}

.rules__card-icon {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    font-weight: 300;
}

/* Park Rules Footer Image */
.park-rules__footer-img {
    width: 100%;
    margin-top: 64px;
    overflow: hidden;
    max-height: 260px;
}

.park-rules__footer-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* ========================
   MODAL (Park Rules)
   ======================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 50, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--color-cream);
    border-radius: var(--border-radius);
    padding: clamp(30px, 4vw, 52px);
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-navy);
    cursor: pointer;
    line-height: 1;
    transition: opacity var(--transition);
}

.modal__close:hover { opacity: 0.6; }

.modal__title {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-navy);
    margin-bottom: 28px;
    padding-right: 32px;
}

.modal__content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-navy);
    line-height: 1.85;
}

.modal__content p { margin-bottom: 16px; }
.modal__content p:last-child { margin-bottom: 0; }
.modal__content ul { margin: 12px 0 16px 20px; list-style: disc; }
.modal__content ul li { margin-bottom: 8px; }
.modal__content strong { font-weight: 600; }

/* ========================
   FOOTER
   ======================== */
#footer {
    background-color: var(--color-purple);
    padding: 32px 40px;
    text-align: center;
}

#footer p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================
   SCROLL TO TOP BUTTON
   ======================== */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--color-purple);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: background-color var(--transition), transform var(--transition);
    z-index: 900;
}

#scroll-top.visible {
    display: flex;
}

#scroll-top:hover {
    background-color: var(--color-purple-dark);
    transform: translateY(-2px);
}

/* ========================
   RESPONSIVE – Tablet
   ======================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 64px 30px;
    }

    .about__grid,
    .rates__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .explore__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .rules__grid {
        gap: 20px;
    }
}

/* ========================
   RESPONSIVE – Mobile
   ======================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 48px 20px;
    }

    /* Nav mobile */
    #main-nav {
        justify-content: flex-start;
        padding: 0 20px;
        height: auto;
        min-height: var(--nav-height);
        flex-direction: column;
        align-items: flex-start;
        padding-top: 16px;
        padding-bottom: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 16px 0 20px;
        align-items: flex-start;
    }

    .nav__menu.open {
        display: flex;
    }

    .nav__menu a {
        padding: 10px 4px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        width: 100%;
    }

    .nav__brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: var(--nav-height);
    }

    .nav__brand-title {
        font-family: var(--font-display);
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--color-white);
    }

    /* Hero */
    #hero {
        min-height: 50vh;
    }

    .hero__title {
        font-size: clamp(1.6rem, 9vw, 3.2rem);
    }

    /* Tagline */
    .tagline__text {
        flex-direction: column;
        gap: 8px;
    }

    /* Explore */
    .explore__grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    /* Rules */
    .rules__grid {
        grid-template-columns: 1fr;
    }

    /* Scroll top */
    #scroll-top {
        bottom: 20px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .about__text-card {
        padding: 28px 24px;
    }

    .modal {
        padding: 28px 24px;
    }
}

/* ========================
   CUSTOMIZER LIVE PREVIEW
   ======================== */
body.customize-preview .nav__menu a.active {
    border-bottom-color: rgba(255,255,255,0.5);
}
