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

:root {
    /* Theme Colors */
    --mahogany: #4a2c2a;
    /* Deep Brown/Red */
    --chocolate: #7b3f00;
    /* Warm Brown */
    --gold: #d4af37;
    /* Primary Accent */
    --red: #8b0000;
    /* Secondary Accent */
    --maple-syrup: #8b5a2b;
    /* Mid Brown */

    /* Standardized Aliases for Theme Consistency */
    --primary-color: var(--mahogany);
    --secondary-color: var(--gold);

    /* 🌟 NEW: Indicator Colors using existing theme 🌟 */
    --indicator-active: var(--mahogany);
    /* Dark dot for active */
    --indicator-inactive: #d1d1d1;
    /* Light gray for inactive */

    /* Background & Text */
    --white: #ffffff;
    --cream: #fdf5e6;
    /* Light Background */
    --text: #5a4a42;
    /* Dark Text */
}


html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: "Crimson Text", serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--cream);

    background-attachment: local;
    background-size: cover;
    scroll-padding-top: 80px;
}
p{
    font-size: 1.5em;
}
h3{
    font-size: 2em;

}
main,
.container {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* Adjusted padding for general mobile spacing */
    padding: 0 10px;
}

/* Update .card and .menu-item to include this double-border style */
.section {
    /* Reduced top padding from 80px to 40px */
    padding: 80px 0;
    position: relative;
    background-color: var(--cream);

    background-color: var(--cream);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    font-size: 4em;
    color: var(--mahogany);
    display: inline-block;
    padding: 0 20px;
    background: var(--cream);
    position: relative;
    z-index: 2;
}

.section-title:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    z-index: 1;
}

.card,
.menu-item,
.reward-card {
    /* Keep existing background/padding */
    background: var(--cream);
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px -10px rgba(74, 44, 42, 0.1);
    /* Softer, deeper shadow */
}

/* === HEADER / NAVBAR === */
header {
    background: transparent;
    padding: 15px 0;
    position: relative;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.logo {
    font-family: "Warbler Text", serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.fixed-logo-bottom {
    position: fixed;
    bottom: 20px;
    left: 40px;
    z-index: 2000;
    padding: 15px;
}

.fixed-logo-bottom .logo {
    font-family: "Warbler Text", serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* The .desktop-nav class is crucial for hiding the full menu on mobile */
.desktop-nav {
    display: block;
    /* Show by default on desktop */
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

nav ul li {
    margin-left: 35px;
    position: relative;
}

nav ul li a {
    color: var(--cream);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    font-family: "Crimson Text", serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

nav ul li a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

nav ul li a:after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li:after {
    content: "•";
    color: var(--gold);
    position: absolute;
    right: -20px;
    top: 2px;
    opacity: 0.8;
}

nav ul li:last-child:after {
    display: none;
}

/* 1. Set the hero to relative so the content can pin to it */
.hero {
    background: var(--mahogany) url("../assets/images/hero.png") center center / cover no-repeat;
    position: relative; /* Keep this */
    height: 100vh;
    min-height: 100dvh;
    margin-top: -85px;
    /* Remove display: flex, justify-content, and align-items */
}

/* === HERO OVERLAY (Top and Bottom) === */

.hero-content {
    z-index: 2;
    width: 100%;
    position: absolute; /* Changed from relative */
    bottom: 10%;        /* This places the bottom of the div 20% up */
    left: 50%;
    transform: translateX(-50%); /* Centers the div horizontally */
    padding-top: 0;     /* Remove the top padding since we are pinning to bottom */
    max-width: 800px;
    text-align: center;
}
.hero h1 {
    font-family: "Warbler", serif;
    font-size: 52px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--white);
    max-width: 600px;
    width: 100%;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* This will now only apply to screens WIDER than 768px (Desktops/Tablets) */
@media (min-width: 769px) {
    .hero:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Top shadow for nav - ONLY visible on PC */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 25%);
        z-index: 1;
        pointer-events: none;
    }
}

/* Ensure that on mobile (less than 768px), the overlay is hidden/transparent */
@media (max-width: 768px) {
    .hero:before {
        background: transparent;
    }
}
.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--gold);
    
    /* HALVED DYNAMIC PADDING: Reduced min/max and scale factor */
    padding: clamp(6px, 0.8vw, 10px) clamp(15px, 1.5vw, 25px);
    
    border-radius: 50px;
    text-decoration: none;
    font-family: "Warbler", serif;
    
    /* HALVED DYNAMIC FONT: Scales between 12px and 16px */
    font-size: clamp(12px, 0.8vw, 16px);
    
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 1.5px solid var(--gold); /* Thinned the border slightly to match the smaller size */
    position: relative;
    z-index: 4;
    text-align: center;
    white-space: nowrap; 
}

.cta-button:hover {
    background-color: var(--gold);
    color: var(--mahogany);
    transform: scale(1.05); 
}

/* Ensure the sliding animation remains disabled */
.cta-button:before {
    display: none;
}

/* Default size for Tablets and PCs (60% of viewport width) */
.redirect-dialog {
    /* --- CRITICAL FIX: Ensure dialog is hidden initially --- */
    display: none;
    /* Hide by default */

    /* --- Centering Fix --- */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Basic size and padding */
    width: 60vw;
    max-width: 600px;
    min-width: 300px;
    padding: 3.5rem;

    /* Style */
    border: 5px double var(--secondary-color);
    border-radius: 4px;
    background-color: var(--cream);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(74, 44, 42, 0.1);
    z-index: 9999;

    /* When the dialog is open, override the display: none */
    &[open] {
        display: block;
        /* The browser handles this for <dialog>, but it's good practice */
    }

    /* Dialog backdrop */
    &::backdrop {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(4px);
    }
}

.redirect-dialog h3 {
    font-family: "Warbler Text", serif;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.redirect-dialog p {
    font-family: "Crimson Text", serif;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
    font-size: 1.1rem;
}

.dialog-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2.5rem;
}

.btn-cancel,
.btn-confirm {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: "Crimson Text", serif;
    min-width: 180px;
    text-transform: uppercase;
}

.btn-cancel {
    background-color: var(--text);
    color: var(--cream);
}

.btn-cancel:hover {
    background-color: var(--chocolate);
}

.btn-confirm {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-shadow: none;
    border: 1px solid var(--secondary-color);
}

.btn-confirm:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* --- MOBILE SPECIFIC STYLES (Full Screen on Phones) --- */
@media (max-width: 550px) {

    /* This rule now only targets the dialog when it has the 'open' attribute (i.e., when dialog.showModal() is called) */
    .redirect-dialog[open] {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;

        padding: 15vw 10vw;
        border-radius: 0;

        overflow-y: auto;

        /* Now this display property only applies when the dialog is OPEN */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Optional but good practice: Ensure the closed state is enforced if necessary */
    .redirect-dialog:not([open]) {
        display: none !important;
    }

    /* All inner elements should still target the base class as they are only visible when open */
    .redirect-dialog h3 {
        font-size: 10vw;
    }

    .redirect-dialog p {
        font-size: 5vw;
    }

    .btn-cancel,
    .btn-confirm {
        min-width: 40%;
        font-size: 4vw;
        padding: 4vw;
    }

    .dialog-actions {
        flex-direction: column;
        gap: 15px;
        width: 80%;
    }
}

/* === LOCATION BANNER STYLES (Between Hero and About) === */

.location-banner {
    /* Set a contrasting background color, maybe primary or dark text color */
    background-color: var(--mahogany);
    color: var(--cream);
    padding: 15px 0;
    /* Vertical padding */
    text-align: center;
    /* Center the content */
    margin-top: -1px;
    /* Optional: Remove any tiny gap caused by margin collapse or borders */


}


.location-banner .location-line {
    /* Remove default list styles and align text for this specific line */
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* Use flex to easily center the single item */
    justify-content: center;
}

.location-banner .location-line li {
    /* Style for the text content */
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.location-banner .location-line .fas {
    /* Style for the map pin icon */
    color: var(--gold);
    margin-right: 8px;
}

/* === CAROUSEL OVERRIDES FOR YOUR EXISTING CLASSES === */
#about .section-title {
    margin-bottom: -10px;
    padding-bottom: 0;


}

#about .container {
    max-width: 100%;
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;

}

/* Optional: If you want text columns to spread out more */
#about .row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}

#about.section {
    padding-top: 0;



}

.about-cta-content .reward-card.single-tier .reward-header,
.about-cta-content .reward-card.single-tier .reward-body {
    display: none;
}

/* Styling for the new carousel images */
.about-card-img {
    grid-area: img;
    width: 100%;            /* Allows it to grow horizontally */
    max-width: 100%;
    
    /* 1. Tell it to take up to 90% of the parent container's height */
    height: 90%;            
    max-height: 90%;        
    
    /* 2. Crucial: prevents the 'stretch' look when forced into height/width */
    object-fit: cover;      /* Crops slightly to fill space without stretching */
    /* Alternative: object-fit: contain; (Shows whole image with bars) */

    border-radius: 8px;
    margin: 15px 0;
    display: block;
}


.card-content {
    display: grid;
    grid-template-columns: 30% 70%;
    /* Left side for icon/title, Right for text */
    grid-template-areas:
        "img img"
        "side body";
    gap: 20px 40px;
    text-align: left;
    align-items: start;
}

/* Group Icon and Title to the left column */
.card-icon,
.card-content h3 {
    grid-column: 1;
    margin: 0;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Push paragraph to the right column */
.card-content p {
    grid-column: 2;
    grid-row: 2 / span 2;
    /* Spans height of icon + h3 */
    margin: 0;
}

/* 1. Reduce gap below carousel dots and section bottom */
.about-carousel-wrapper {
    margin-bottom: 0;
}

#about.section {
    padding-bottom: 0;
}

/* 3. Tighten dots to the carousel */
.carousel-dots {
    margin-top: 10px;
    padding-bottom: 99px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

/* Redefine cards-grid for the carousel track */
#about.section .cards-grid {
    display: flex;
    /* Change from Grid to Flex for sliding */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    /* Important: remove gap for precise 100% sliding */
}

/* Ensure each card takes up exactly one slide width */
#about.section .card {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    /* Remove any external margins */
    min-height: 400px;
    /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Arrow Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--cream);
    border: 1px solid var(--gold);
    color: var(--mahogany);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--gold);
    color: white;
}

.btn-prev {
    left: -60px;
}

.btn-next {
    right: -60px;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);





}

/* Reset for mobile screens so it doesn't look squashed */
@media (max-width: 768px) {
    .card-content {
        display: flex !important;
        flex-direction: column;
        text-align: center;


    }
}


.menu-item h4 {
    font-family: "Crimson Text", serif;
    color: var(--mahogany);
    font-size: 22px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1100px) {
    .btn-prev {
        left: 10px;
    }

    .btn-next {
        right: 10px;
    }

    .about-carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .about-carousel-wrapper {
        padding: 0;
    }

    #about.section .card {
        padding: 30px 20px;
    }
}

/* Ensure the about section allows the wave to be seen */
.story-section {
    position: relative;
    overflow: visible;
    /* This creates the space above the wave peaks */
}

/* ==========================================================================
   MENU SECTION (MAHOGANY THEME)
   ========================================================================== */


.menu-section {
    background-color: var(--mahogany);
    /* Subtle Pattern Overlay */
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1)),
                      linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    position: relative;
    padding: 100px 0; /* Extra breathing room */
}

/* Section Title specifically for Dark Background */
.menu-section .section-title h2,
.news-section .section-title h2 {
    background: var(--mahogany);
    color: var(--gold);
    font-size: 42px;
}

.menu-section .section-title:after {
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.5;
}

/* === 1. CONTAINER WIDTH (90vw) === */
.menu-container-wide {
    width: 90vw;
    margin: 0 auto;
    max-width: 1600px;
}

/* === 2. MENU GRID === */
.menu-grid {
    display: grid;
    /* Forces exactly 3 columns on larger screens */
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px; 
    margin-top: 60px;
    padding: 0 20px;
}

/* Responsive adjustment: 
   If the screen gets too small for 3 columns, 
   we drop it down to 1 or 2 so it's not squished. */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* === 3. MENU ITEM WRAPPER === */
.menu-item {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    text-align: center;
    transition: transform 0.4s ease;
}

/* === 4. IMAGE (VASTLY ENLARGED) === */
.menu-item-img {
    width: 100%;
    height: 500px; /* High-impact height */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 35px; /* Spacing below decoupled image */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Deep shadow for depth */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* === 5. TEXT CONTENT (LEGIBLE ON DARK) === */
.menu-item h4 {
    font-family: "Warbler Text", serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--gold); /* Gold stands out on Mahogany */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Small accent line under the title */
.menu-item h4:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 1.5px;
    background: var(--gold);
}

.menu-item p {
    color: var(--cream); /* Cream text for high readability */
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    padding: 0 15px;
    max-width: 90%;
    margin: 15px auto 0;
}
/* At 1800px and smaller, swap to mobile-optimized versions */
@media (max-width: 1800px) {
    /* Target the Parfait image specifically */
    .menu-item img[alt="Parfaits"] {
        content: url('../assets/images/mobile/parfait_mobile.jpg');
    }

    /* Target the Tea image specifically */
    .menu-item img[alt="Tea and Drinks"] {
        content: url('../assets/images/mobile/tea_mobile.jpg');
    }
}
/* === 6. HOVER EFFECTS === */
.menu-item:hover {
    transform: translateY(-12px);
}

.menu-item:hover .menu-item-img {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}


/* === WAVE DIVIDER === */
.wave-divider {
    width: 100%;
    height: 150px;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    background-color: var(--mahogany);
    /* Subtle Pattern Overlay - matches menu section */
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1)),
                      linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-divider.flipped svg {
    transform: scaleY(-1);
}

/* Responsive wave heights based on screen width */
@media (max-width: 1200px) {
    .wave-divider {
        height: 140px;
    }
}

@media (max-width: 992px) {
    .wave-divider {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .wave-divider {
        height: 110px;
    }
}

@media (max-width: 600px) {
    .wave-divider {
        height: 90px;
    }
}

@media (max-width: 480px) {
    .wave-divider {
        height: 80px;
    }
}

/* === OUR STORY SECTION === */
.story-section {
    background-color: var(--cream);
    padding: 100px 0;
}

.story-wrapper {
    display: flex;
    flex-direction: row-reverse; /* SWAPS LOCATIONS: Text Left, Image Right */
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; 
}

/* Image Styling */
.story-image {
    flex: 1;
    display: flex;
    justify-content: center; /* Centers the circle in its column */
    min-width: 300px;
}

.about-img {
    /* To be a circle, width and height must be the same */
    width: 400px; 
    height: 400px;
    object-fit: cover;
    border-radius: 50%; /* MAKES IT A CIRCLE */
    border: 8px solid var(--gold); /* Swapped the offset shadow for a premium gold frame */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Text Styling */
.story-text {
    flex: 1;
    min-width: 300px;
}

.story-text .section-title {
    text-align: left; /* Align title to the left for this section */
    margin-bottom: 30px;
}

.story-text .section-title h2 {
    background: var(--cream);
    color: var(--mahogany);
    padding-left: 0;
}

.story-text .section-title:after {
    left: 0;
    right: auto;
    width: 100px; /* Short decorative line */
}

.story-text p {
    font-size: 18px;
    color: var(--mahogany);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Ensure the button is styled consistently but aligns left here */
.story-cta-wrapper {
    text-align: left;
}

/* Mobile Fix: Stack normally on small screens */
@media (max-width: 768px) {
    .story-wrapper {
        flex-direction: column; /* Stacks image on top of text for mobile */
    }
    .about-img {
        width: 280px;
        height: 280px;
    }
}
/* === NEWS SECTION LAYOUT === */
.news-section {
    background-color: var(--mahogany);
    padding: 100px 0;
}


.news-grid {
    display: grid;
    /* Use 'auto-fit' here so the grid knows to wrap on mobile, 
       but we limit the maximum width of each card to 380px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    
    /* This centers the entire grid of cards within the container */
    justify-content: center; 
    
    gap: 40px;
    margin-top: 50px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.3s ease;
    
    width: 100%;
    max-width: 380px;
}

/* Image at the Top */
.news-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Content Below */
.news-content {
    text-align: left; /* Classic blog style */
}

.news-card h3 {
    font-family: "Warbler Text", serif;
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 12px;
}

.news-card p {
    color: var(--cream);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Limits description to roughly 2-3 lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.read-more {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.read-more:hover {
    opacity: 0.7;
}

/* Hover Animation */
.news-card:hover {
    transform: translateY(-10px);
}

.news-card:hover .news-img {
    transform: scale(1.1);
}


/* === HOUSE RULES LINK STYLING === */
.house-rules-section {
    padding: 40px 20px 60px 20px;
    /* Adjust padding to match surrounding sections */
    text-align: center;
    background-color: var(--background);
    /* Match main background color */
}

.house-rules-link {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    font-size: clamp(24px, 5vw, 40px);
    /* Responsive font size */
    color: var(--mahogany);
    text-decoration: none;
    /* Remove underline by default */
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    border-bottom: 2px solid transparent;
    /* Placeholder for hover effect */
    padding-bottom: 5px;
}

.house-rules-link:hover {
    color: var(--red);
    /* Change color on hover */
    transform: translateY(-2px);
    /* Slight lift effect */
    border-bottom: 2px solid var(--red);
}

/* === FOOTER === */
footer {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        linear-gradient(145deg,
            rgba(123, 63, 0, 0.98) 0%,
            rgba(91, 46, 0, 0.95) 100%),
        url("assets/images/marble-dust.jpg");
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--cream);
    padding: 60px 0 30px;
    position: relative;
    width: 100%;
    border-top: 2px solid var(--gold);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6);
    background-attachment: scroll;
}

.footer-content {
    /* Auto-fit is great, but we'll control the column stacking in a media query */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--gold);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--gold);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-links i {
    margin-right: 10px;
    color: var(--gold);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(253, 245, 230, 0.95);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.copyright .attribution {
    font-size: 12px;
    color: rgba(253, 245, 230, 0.8);
    display: inline-block;
    margin-top: 5px;
}

.copyright .attribution a {
    color: rgba(253, 245, 230, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright .attribution a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* --- MOBILE NAVIGATION COMPONENTS --- */

/* Hamburger Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--cream);
    /* Changed to cream so it's visible on the transparent/dark header */
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    /* Match the nav links shadow */
}

/* Mobile Overlay Container */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    /* Near-white opaque background */
    color: var(--mahogany);
    z-index: 1000;

    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Class added by JavaScript to show the menu */
.mobile-menu-overlay.open {
    transform: translateX(0);
}

/* Close Button (X icon) */
.mobile-menu-overlay .close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--mahogany);
    cursor: pointer;
}

/* Menu Links inside the overlay */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--mahogany);
    font-size: 24px;
    font-family: "Warbler", serif;
    font-weight: 500;
}

/* === RESPONSIVE STYLES === */

@media (max-width: 900px) {

    /* HIDE THE ARROW BUTTONS */
    .carousel-btn {
        display: none !important;
    }

    /* Optional: Ensure the carousel viewport fills the space where buttons were */
    .carousel-wrapper {
        /* Set a small gap here to ensure spacing between cards */
        gap: 20px;
        padding: 0;
    }


    /* 1. Rewards Card Fix (Carousel) - NOW DISPLAYS TWO CARDS WIDER THAN 650px */
    .reward-card {
        /* Set width for a two-card view. The gap is now handled by .carousel-wrapper */
        min-width: 50%;
        width: 50%;
        max-width: 50%;

        /* Adjust padding to remove excessive whitespace around the edges */
        padding: 1.5rem;
        margin: 0;
        box-sizing: border-box;
    }

    .reward-tier ul,
    .reward-card ul {
        /* Reduce padding around the list if needed */
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .reward-tier ul li,
    .reward-card ul li {
        margin-bottom: 5px;
        /* Reduced vertical space between list items */
        padding-bottom: 0;
        line-height: 1.3
    }

    /* 2. Rewards Features font size */
    .reward-features li {
        font-size: 14px;
    }

    /* 3. Rewards Image size */
    .reward-character {
        max-width: 120px;
        margin-bottom: 15px;
    }

    /* 4. TIER 5 FULL-WIDTH CARD FIX: Force Stacking on Tablets/Large Phones */
    .bottom-reward-wrapper .reward-card.full-width-tier {
        /* Switch from row (side-by-side) back to column (stacking) */
        flex-direction: column;
    }

    .bottom-reward-wrapper .reward-card.full-width-tier .reward-image-container {
        /* Allow the image to take full width and center itself */
        width: 100%;
        padding-bottom: 0;
        padding-top: 20px;
    }

    .bottom-reward-wrapper .reward-card.full-width-tier .reward-character {
        /* Center the image */
        margin: 0 auto 15px auto;
    }

    .bottom-reward-wrapper .reward-card.full-width-tier .reward-header {
        /* Remove the divider line and reset padding */
        border-right: none;
        padding: 15px 20px 10px 20px;
    }

    .bottom-reward-wrapper .reward-card.full-width-tier .reward-body {
        /* Ensure the body features and button are contained and padding is balanced */
        padding: 10px 20px 20px 20px;
    }

    .bottom-reward-wrapper .reward-card.full-width-tier .reward-button {
        /* Ensure button uses full width and remove the float */
        width: 100%;
        float: none;
        display: block;
    }


    /* 5. Footer stacking on tablets/large phones */
    .footer-content {
        grid-template-columns: 1fr;
        /* Force columns to stack */
        text-align: center;
        /* Center footer text when stacked */
    }

    .footer-column h3:after {
        left: 50%;
        /* Center the divider line */
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        /* Center social links */
    }

    /* 6. Section Padding adjustment */
    .section {
        padding: 60px 0;
        /* Reduced vertical padding */
    }
}

@media (max-width: 768px) {

    /* 1. Header Navigation Toggle */
    .header-content {
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        /* Ensure spacing inside header */
    }

    .desktop-nav {
        display: none;
        /* Hide the full menu */
    }

    .menu-toggle {
        display: block;
        /* Show the hamburger button */
        color: var(--cream);
        /* Ensure color visibility */
    }

    /* 2. Hero Adjustments */
    .hero {
        min-height: 85vh;
        /* Prevent hero from taking *too* much mobile height */
    }

    .hero h1 {
        font-size: 8vw;
        /* Scale title with viewport width */
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 4vw;
        margin-bottom: 30px;
    }

    /* 3. Fixed Logo */
    .fixed-logo-bottom {
        bottom: 10px;
        left: 10px;
        padding: 10px;
    }

    .fixed-logo-bottom .logo-image {
        height: 40px;
    }

    .fixed-logo-bottom .logo {
        font-size: 20px;
    }

    /* 4. Card Grid adjustment */
    .cards-grid,
    .menu-grid {
        gap: 20px;
        /* Reduced gap between cards/menu items */
    }

    /* 5. Backer Stats Stacking */
    .backers-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 10vw;
    }

    .redirect-dialog {
        /* These styles make it full screen on mobile */
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        margin: 0;
        /* Important for full screen */

        /* ** POTENTIAL BUG: If you have 'display: block;' or 'display: flex;' here, 
        ** it will override the hidden state of the closed dialog, causing the bug. 
        ** It should ONLY appear if the dialog element has the [open] attribute.
        */

        /* Solution: Ensure [open] is required to trigger display */
    }

    /* The full-screen appearance should be applied to the [open] state */
    .redirect-dialog[open] {
        display: flex;
        /* or block/grid */
        /* Re-apply the full-screen styles here, if they conflict outside of [open] */
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        margin: 0;
    }
}

@media (max-width: 600px) {

    /* 1. Container Padding */
    .container {
        padding: 0 5px;
        /* Very tight container on very small devices */
    }

    /* 2. Section Title Scaling */
    .section-title h2 {
        font-size: 7vw;
        padding: 0 10px;
    }

    /* 3. Card Padding (Dream Cards) */
    .card {
        padding: 30px 20px;
    }

    /* 4. Menu Item Details Scaling */
    .menu-item h4 {
        font-size: 6vw;
    }

    .menu-item .price {
        font-size: 5vw;
    }

    /* 5. General Logo Size */
    .logo {
        font-size: 5vw;
        /* Scale the logo text as well */
    }
}

/* Create a divider class */
.ornamental-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px auto 20px;
    width: 100%;
    max-width: 400px;
}

.ornamental-divider:before,
.ornamental-divider:after {
    content: "";
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    flex: 1;
}

.ornamental-icon {
    color: var(--gold);
    margin: 0 15px;
    font-size: 14px;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
    border: 1px solid var(--gold);
    background: var(--mahogany);
}

/* Target the container inside light sections */
.section:not(.menu-section) .container {
    position: relative;
    padding: 40px;
}

/* Wrapper ensures the element takes up the full width available */
.iframe-container {
    width: 100%;
    margin: 0 auto;
    max-width: 800px;
}

/* The Iframe itself must be told to inherit 100% width from its container */
.iframe-container iframe {
    width: 100%;
    height: 420px;
    display: block;
}



