:root {
    --midnight-pine: #1B2624;
    --twilight-indigo: #4A5D75;
    --cloud-grey: #BDC7D0;
    --foggy-blue: #E1E8ED;
    --electric-ember: #E8F19A;
    --alpenglow-gold: #FFB84D;

    /* Mapping */
    --brand-primary: var(--twilight-indigo);
    --bg-footer: var(--midnight-pine);
    --bg-page: var(--foggy-blue);
    --bg-card: var(--cloud-grey);
    --accent: var(--electric-ember);
    --button-color: var(--alpenglow-gold);

    --text-white: #ffffff;
    --text-dark: var(--midnight-pine);
    --text-black: #000000;

    --font-main: 'Tinos', serif;
    --font-sans: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--midnight-pine);
    color: var(--text-white);
    font-family: var(--font-sans);
    overflow: hidden;
}

/* Subpage Styles */
body.subpage {
    background-color: var(--bg-page);
    /* Foggy Blue */
    color: var(--text-dark);
    overflow-y: auto;
}

/* Header Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s;
}

body.subpage .header,
.header.scrolled {
    background-color: var(--text-white);
    box-shadow: 0 4px 12px rgba(27, 38, 36, 0.1);
    padding: 15px 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo-img {
    height: 60px;
}


.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 5px;
}

body.subpage .nav-menu a,
.header.scrolled .nav-menu a {
    color: var(--brand-primary);
}

.nav-menu a:hover,
.nav-menu a.active,
body.subpage .nav-menu a:hover,
body.subpage .nav-menu a.active,
.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active {
    opacity: 1;
    color: var(--alpenglow-gold) !important;
    border-bottom: 2px solid var(--alpenglow-gold);
}

.page-container {
    padding-top: 0;
}



/* Hero & Slides */
.hero {
    height: 70vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero::after {
    display: none;
    /* Removed dark tint */
}

.subpage-content {
    padding: 60px 10%;
    text-align: center;
    background-color: var(--bg-page);
}

.subpage-content h1 {
    font-family: var(--font-main);
    margin-bottom: 40px;
    color: var(--brand-primary);
}

.about-text {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 300;
}

/* Homepage Slides */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* fixed causes bugs on iOS/Android */
}

/* Parallax only on desktop where it works correctly */
@media (min-width: 901px) {
    .slide {
        background-attachment: fixed;
    }
}

.content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content h1 {
    font-family: 'Tinos', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    color: var(--text-white);
}

.content .quote-slide {
    font-family: 'Tinos', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: normal;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-white);
}

#slide1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/bg1.jpg');
}

#slide2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/bg2.jpg');
}

#slide3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/bg3.jpg');
}

.explore-btn {
    display: block;
    width: fit-content;
    margin: 36px auto 0;
    padding: 21px 72px;
    border: 2px solid #ffffff;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: center;
}

.explore-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Marquee Container */
.marquee-container {
    overflow: hidden;
    width: 100%;
    margin: 40px 0;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
}

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

.card {
    flex: 0 0 400px;
    background: #F5F5F0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    min-height: 280px;
    max-height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-family: var(--font-main);
    color: var(--brand-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
    flex-grow: 1;
    overflow-y: auto;
}



/* Room Details */
.rooms-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.room-card {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.room-card.reverse {
    flex-direction: row-reverse;
}

.room-image {
    width: 600px;
    height: 400px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.room-image.room-image-carousel {
    width: 50%;
    height: auto;
    background: none;
    display: flex;
    align-items: center;
}

.carousel-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* Carousel Specifics */
.carousel-container {
    position: relative;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff;
    /* Neutral light background */
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: var(--alpenglow-gold);
    width: 20px;
    border-radius: 10px;
}

.room-details {
    flex: 1;
    text-align: left;
}

.room-details h2 {
    font-family: var(--font-main);
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.room-details .price {
    color: var(--twilight-indigo);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.room-details .description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-dark);
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-bottom: 30px;
}

.amenities-list li {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.book-btn {
    padding: 12px 30px;
    background: var(--button-color);
    color: var(--text-black);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.book-btn:hover {
    background: #FFA726;
    color: var(--text-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3);
}

/* Stories */
.stories-section {
    margin-top: 100px;
    text-align: center;
    overflow: hidden;
}

.stories-section h2 {
    font-family: var(--font-main);
    font-size: 2.2rem;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.marquee-track {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
}

.story-card {
    background: #F5F5F0;
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    flex-shrink: 0;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.story-card h3 {
    font-family: var(--font-main);
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.story-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

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

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

.stories-subtext {
    margin-bottom: 80px !important;
    color: var(--text-dark);
}

/* Family Section */
.family-section {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
}

.family-section h2 {
    font-family: var(--font-main);
    font-size: 2.2rem;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.family-subline {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 300;
}

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

.family-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
}

.family-portrait {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 400px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 30px;
    border-radius: 10px;
    background-color: transparent !important;
    filter: none !important;
    /* transition: transform 0.3s ease; */
}

/* .family-card:hover .family-portrait {
    transform: scale(1.05);
} */

.family-name {
    font-family: var(--font-main);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.family-title {
    font-family: var(--font-main);
    font-style: italic;
    color: var(--alpenglow-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.family-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 320px;
}

@media (max-width: 900px) {
    .family-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .family-bio {
        max-width: 450px;
    }
}

/* CTA Section */
.cta-section {
    margin: 80px 0;
    padding: 60px;
    border-radius: 25px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/cta_bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.cta-content h2 {
    font-family: var(--font-main);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-content p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 28px;
    background: var(--button-color);
    color: var(--text-black);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    background: #FFA726;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 184, 77, 0.4);
}

/* Info Grid (Card Style for Policies) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 80px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    font-family: var(--font-main);
    color: var(--brand-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-item p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Scroll Hide for Homepage */
.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Footer Styles - 5 Column Layout */
.site-footer {
    background: var(--bg-footer);
    color: #fff;
    padding: 40px 5% 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    /* 5 Columns */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-col {
    padding-right: 20px;
}

.brand-col h3 {
    font-family: var(--font-main);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
}

.brand-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 12px;
}

.footer-column h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    opacity: 0.7;
    transition: 0.3s;
    font-size: 0.85rem;
}

.footer-column a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-column .directions-btn {
    padding: 8px 0;
    width: 150px;
    background: #D98C2D;
    /* Slightly darker gold for better white text contrast */
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    margin-bottom: 25px;
    /* Restoring margin that was lost from display: block */
}

.footer-column .directions-btn:hover {
    background: #FFA726;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    font-size: 1.3rem;
    color: #fff;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    opacity: 0.5;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }
}



/* Policy Pages */
.policy-page {
    max-width: 1000px;
    margin: 100px auto 60px;
    background: #fff;
    padding: 60px 80px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.policy-page h1 {
    font-family: var(--font-main);
    color: var(--midnight-pine);
    font-size: 3rem;
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 60px;
    font-style: italic;
}

.policy-section {
    margin-bottom: 45px;
}

.policy-section h2 {
    font-family: var(--font-main);
    color: var(--brand-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.policy-section p, .policy-section li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.policy-section ul {
    margin-top: 15px;
    padding-left: 25px;
}

.policy-section li {
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .policy-page {
        margin: 80px 20px 40px;
        padding: 40px 30px;
    }

    .policy-page h1 {
        font-size: 2.2rem;
    }

    .policy-section h2 {
        font-size: 1.5rem;
    }
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {

    /* Nav */
    .header {
        padding: 18px 24px;
    }

    .nav-menu {
        gap: 16px;
    }

    .page-container {
        padding-top: 100px;
    }

    /* Hero */
    .hero {
        height: 50vh;
        background-position: center bottom !important;
    }

    /* Subpage content */
    .subpage-content {
        padding: 40px 6%;
    }

    /* Room / Experience cards — stack vertically */
    .room-card,
    .room-card.reverse {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 24px;
        padding: 0;
    }

    .room-image {
        width: 100%;
        height: 280px;
    }

    /* Carousel container inside room card */
    .room-image.carousel-container {
        width: 100%;
        height: 280px;
    }

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

    .amenities-list {
        justify-content: center;
    }

    /* Family grid */
    .family-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* CTA */
    .cta-section {
        padding: 40px 28px;
        margin: 40px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================= */
@media (max-width: 600px) {

    /* Header — stack logo + nav */
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 10px;
    }

    body.subpage .header {
        background: var(--text-white);
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .page-container {
        padding-top: 140px;
    }

    .nav-menu a {
        font-size: 0.72rem;
    }

    /* Hero */
    .hero {
        height: 40vh;
        background-position: center bottom !important;
    }

    /* Homepage slide text */
    .content h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
        padding: 0 16px;
    }

    .content .quote-slide {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
        padding: 0 20px;
    }

    /* Explore button */
    .explore-btn {
        padding: 14px 40px;
        font-size: 1rem;
        margin-top: 22px;
    }

    /* Background-attachment: fixed breaks on iOS — remove */
    .slide {
        background-attachment: scroll;
    }

    /* Subpage content */
    .subpage-content {
        padding: 30px 5%;
    }

    .subpage-content h1 {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 36px;
    }

    /* Room cards */
    .rooms-container {
        gap: 50px;
        margin-top: 30px;
    }

    .room-image {
        height: 240px;
    }

    .room-image.carousel-container {
        height: 240px;
    }

    .room-details h2 {
        font-size: 1.4rem;
    }

    .room-details .price {
        font-size: 1.15rem;
    }

    /* Family grid — single column */
    .family-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .family-portrait {
        height: 320px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-column .directions-btn {
        margin: 0 auto 20px;
    }

    /* CTA */
    .cta-section {
        padding: 32px 20px;
        border-radius: 16px;
        text-align: center;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* Info grid */
    .info-grid {
        grid-template-columns: 1fr;
    }
}