@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ... existing root ... */

/* ... existing styles ... */

/* Elegant Font Application */
.footer-custom, 
.footer-custom p, 
.footer-custom a, 
.footer-custom li {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

h1 {
    font-family: 'Playfair Display', serif !important;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8), 0 0 35px rgba(212, 175, 55, 0.9), 0 0 10px rgba(212, 175, 55, 0.7);
}

/* Text below navigation tiles */
/* .d-flex.flex-column.align-items-center.gap-3 > p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem !important;
    font-weight: 300;
    opacity: 1 !important;
    letter-spacing: 0.02em;
    line-height: 1.6;
} */

:root {
    /* Theme: Brown & Beige (Earth Tones) for Content */
    --background: #FDFCF8; /* Warm Cream */
    --foreground: #4A3B32; /* Dark Coffee */

    --card: #FFFFFF;
    --card-foreground: #4A3B32;

    --popover: #FFFFFF;
    --popover-foreground: #4A3B32;

    /* Brand Colors (Header/Footer remain Green/Gold) */
    /* --primary: #14423d; Bottle Green - Kept for Header/Footer */
    --primary: #275651; /* Bottle Green - Kept for Header/Footer */
    --primary-foreground: #FFFFFF;

    --secondary: #F2F0E9; /* Light Beige / Stone-100 equivalent */
    --secondary-foreground: #5D4037; /* Dark Brown */

    --muted: #F2F0E9; /* Light Beige */
    --muted-foreground: #8C7B70; /* Taupe / Warm Grey */

    --accent: #D4AF37; /* Refined Gold */
    --accent-foreground: #FFFFFF;

    --destructive: #EF4444;
    --destructive-foreground: #FFFFFF;

    --border: #E6E2D8; /* Warm Border */
    --input: #E6E2D8;
    --ring: #5D4037;

    --radius: 1rem; /* 16px - Softer, modern look */

    /* Custom tokens */
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    
    /* Brown Palette */
    --brown-dark: #3E2723;
    --brown-medium: #402615;
    --green-light: #2d6a4f; /* Modern Light Green */
    --beige-light: #FDFCF8;
    --beige-dark: #E6E2D8;

    /* Typography - Poppins Everywhere */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Modern Shadows */
    --shadow-tile: 0 10px 30px -10px rgba(74, 59, 50, 0.15);
    --shadow-tile-hover: 0 20px 40px -12px rgba(212, 175, 55, 0.3);
    --shadow-soft: 0 4px 20px -2px rgba(93, 64, 55, 0.05);
}


/* Header Structure */
header.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    padding-top: 24px;
    pointer-events: none; /* Pass clicks through empty space */
}

header.fixed-top .container {
    pointer-events: none; /* Let clicks pass through container padding */
}

header.fixed-top .container > * {
    pointer-events: auto; /* Re-enable clicks on Logo, Nav, Toggle */
}

/* Logo Stying - Keep existing but ensure it sits well */
header.fixed-top a.rounded-circle {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    /* Double Gold Border Effect */
    border: 1px solid var(--gold) !important;
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Desktop Navigation Pill */
header.fixed-top nav {
    background-color: var(--primary);
    border-radius: 100px;
    padding: 12px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    /* Double Gold Border Effect */
    border: 1px solid var(--gold);
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

header.fixed-top nav a {
    color: #ffb854 !important;
    transition: all 0.3s ease;
    text-shadow: none;
}

header.fixed-top nav a:hover {
    color: #FFFFFF !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Mobile Toggle Styling */
header.fixed-top #menu-toggle {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 10px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

    /* Double Gold Border Effect */
    border: 1px solid var(--gold);
    outline: 2px solid var(--gold);
    outline-offset: 4px;

    color: var(--gold) !important;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

/* Utilities */
/* Utilities */
.font-display {
    font-family: var(--font-display);
}

.font-display-italic {
    font-family: var(--font-display);
    font-style: italic;
}

.font-body {
    font-family: var(--font-body);
}

.text-gold {
    background: linear-gradient(to right, #B88A44 0%, #E5C56C 25%, #e0cb6e 50%, #E5C56C 75%, #B88A44 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold); /* Fallback */
    display: inline-block;
}

.text-shadow-gold {
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.bg-gold {
    background: linear-gradient(135deg, #B88A44 0%, #F5D98B 50%, #B88A44 100%) !important;
}

/* Gold Gradient Trees */
.gold-tree-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Equivalent to gap-2 */
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .gold-tree-container {
        margin-top: 1.5rem;
    }
}

.gold-tree {
    display: inline-block;
    vertical-align: middle;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.gold-tree:hover {
    transform: scale(1.1);
}

.gold-tree-sm {
    width: 35px;
    height: 35px; /* Fixed height for stability */
    object-fit: contain;
}

.gold-tree-lg {
    width: 50px;
    height: 50px; /* Fixed height for stability */
    object-fit: contain;
}

/* ... existing utils ... */

/* Components */
.nav-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: var(--card);
    cursor: pointer;
    user-select: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
    
    /* Permanent Gold Style */
    border: 1px solid var(--gold);
    outline: 2px solid var(--gold);
    outline-offset: 6px;

    text-decoration: none;
    overflow: hidden;
    backdrop-filter: blur(4px); /* Glassy feel */
}

.nav-tile-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.25;
    padding: 0 0.5rem;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    pointer-events: none; /* Ensure clicks go to the link */
}

.nav-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px -12px rgba(212, 175, 55, 0.5); /* Gold glow */
}

.nav-tile:hover::after {
    opacity: 1;
}

.nav-tile:active {
    animation: tile-breath 0.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Clean, flat overlay for better text readability */
    background-color: rgba(58, 39, 5, 0.6); 
}

.hero-overlay2 {
    position: absolute;
    inset: 0;
    /* Clean, flat overlay for better text readability */
    background-color: rgba(58, 39, 5, 0.3); 
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgb(243 236 230) !important;
}

/* Animations */
@keyframes tile-breath {
    0% { transform: scale(1.05); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1.05); }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom-in {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out both;
}

.animate-fade-up-delay-0 {
    animation: fade-up 0.6s ease-out 0s both;
}

.animate-fade-up-delay-1 {
    animation: fade-up 0.6s ease-out 0.1s both;
}

.animate-fade-up-delay-2 {
    animation: fade-up 0.6s ease-out 0.2s both;
}

.animate-fade-up-delay-3 {
    animation: fade-up 0.6s ease-out 0.3s both;
}

.animate-fade-up-delay-4 {
    animation: fade-up 0.6s ease-out 0.4s both;
}

.animate-zoom-in {
    animation: zoom-in 20s ease-out forwards;
}

.footer-custom {
    background: #14423d;
    border-top: 2px solid var(--gold);
}

.footer-custom h3, .footer-custom h4 {
    background: linear-gradient(to right, #B88A44 0%, #E5C56C 25%, #FFF3B5 50%, #E5C56C 75%, #B88A44 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold); /* Fallback */
    text-shadow: none; /* Remove shadow if distinct gradient is desired, or keep specific shadow */
    display: inline-block;
}


.section-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-hero-overlay {
    position: absolute;
    inset: 0;
    /* Vignette effect */
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* Animations */
@keyframes tile-breath {
    0% { transform: scale(1.05); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1.05); }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom-in {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out both;
}

.animate-fade-up-delay-0 {
    animation: fade-up 0.6s ease-out 0s both;
}

.animate-fade-up-delay-1 {
    animation: fade-up 0.6s ease-out 0.1s both;
}

.animate-fade-up-delay-2 {
    animation: fade-up 0.6s ease-out 0.2s both;
}

.animate-fade-up-delay-3 {
    animation: fade-up 0.6s ease-out 0.3s both;
}

.animate-fade-up-delay-4 {
    animation: fade-up 0.6s ease-out 0.4s both;
}

.animate-zoom-in {
    animation: zoom-in 20s ease-out forwards;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Smaller Logo */
    header.fixed-top a.rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }

    /* Push Hero Content Down */
    main section > div.position-relative.z-1 {
        padding-top: 6rem !important;
        margin-top: 4rem !important;
    }
    
    /* Smaller H1 */
    h1.display-1 {
        font-size: 3rem !important;
    }

    /* Mobile Menu Background */
    #mobile-nav {
        background-color: var(--primary) !important;
        border-bottom: 2px solid var(--gold);
        pointer-events: auto !important; /* Enable clicking */
        gap: 0 !important; /* Use padding/borders instead of gap */
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Mobile Menu Items - Gold Lines & Text */
    #mobile-nav a {
        display: block;
        width: 70%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.4); /* Nice gold line */
        color: var(--gold) !important;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    #mobile-nav a:last-child {
        border-bottom: none;
    }
    
    #mobile-nav a:hover {
        background: rgba(212, 175, 55, 0.1);
        padding-left: 10px; /* Subtle movement */
    }
}

/* Content Refinements for Brown/Beige Theme */
/* Override text-primary in content areas to be brown, NOT green, unless it's in header/footer */
main .text-primary {
    color: var(--brown-medium) !important;
}

main h1, main h3, main h4, main h5, main h6 {
    color: var(--brown-dark);
}

main h2, main .h2, main h2.text-primary {
    color: #14423d !important; /* Bottle Green */
}

main h3, main .h3 {
    color: var(--green-light) !important;
}

main a:not(.btn):not(.nav-tile) {
    color: #1a5a54; /* Slightly lighter bottle green */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

main a:not(.btn):not(.nav-tile):hover {
    color: #24756d; /* Lighter green on hover */
    text-decoration-thickness: 2px;
}

main .bg-primary {
    background-color: var(--brown-medium) !important;
}

main .btn-primary {
    background-color: var(--brown-medium) !important;
    border-color: var(--brown-medium) !important;
}

main .btn-primary:hover {
    background-color: var(--brown-dark) !important;
    border-color: var(--brown-dark) !important;
}

.btn-brand-green {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-brand-green:hover {
    background-color: #1a5a54 !important;
    border-color: #1a5a54 !important;
    color: #fff !important;
}

main .btn-outline-primary {
    color: var(--brown-medium) !important;
    border-color: var(--brown-medium) !important;
}

main .btn-outline-primary:hover {
    background-color: var(--brown-medium) !important;
    color: #fff !important;
}

.btn-outline-brand-green {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background-color: transparent !important;
}

.btn-outline-brand-green:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

.border-brand-green {
    border-color: var(--primary) !important;
}

/* Soften cards */
.card, .bg-white.rounded {
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-soft) !important;
    border-radius: var(--radius) !important;
}

/* Utility to force green text in content area */
.text-brand-green {
    color: var(--primary) !important;
}

/* Utility to force green text in header/footer if needed, though they usually use specific classes */
header .text-primary, footer .text-primary {
    color: #14423d !important; /* Original Green */
}

.text-muted {
    --bs-text-opacity: 1;
    color: rgb(179 80 80 / 75%) !important;
}

/* Gallery Styles Refinement */
.btn-outline-brand-green {
    transition: all 0.3s ease;
}

.btn-outline-brand-green.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(46, 74, 55, 0.2);
}

.cursor-zoom-in {
    cursor: zoom-in;
}

/* Lightbox specific adjustments */
.modal-backdrop.show {
    opacity: 0.9;
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1440px) {
    /* Push Hero Content Down on Tablets */
    main section > div.position-relative.z-1 {
        padding-top: 8rem !important;
        margin-top: 4rem !important;
    }
}
