/* =========================================
   CABIN 230 - COHESIVE MASTER THEME
   ========================================= */

:root {
    --forest-dark: #071e06;
    --mist-white: #F4F1EA;
    --campfire: #e07a5f;
    --campfire-dark: #c9654d;
    --creamy: #f0dbc7;
    --stone-gray: #4A4A4A;
    --radius: 1.2em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #121c14; 
    color: #e6dfca;
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Arvo', serif; }

/* --- NAVIGATION --- */
nav {
    position: fixed !important;
    top: 0; 
    width: 100%; 
    z-index: 9999;
    background-color: var(--forest-dark);
    padding: 12px 0; /* Slightly more breathing room */
    border-bottom: 1px solid rgba(240, 219, 199, 0.1);
}

.nav-content {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    max-width: 1120px; 
    margin: 0 auto; 
    padding: 0 20px;
}

/* Link Containers */
.nav-links { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    gap: 25px; /* Better spacing for desktop */
}

.nav-links.right { 
    justify-content: flex-end; 
}

/* Individual Links */
.nav-links a {
    color: var(--creamy); 
    text-decoration: none;
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease; /* Smooth hover effect */
}

.nav-links a:hover {
    color: var(--campfire);
    transform: translateY(-1px);
}

/* Logo Styling */
.logo-wrapper {
    flex: 0 0 auto;
    text-align: center;
}

.nav-logo { 
    height: 55px; 
    width: auto; 
    display: block; 
    margin: 0 auto;
}

/* --- MOBILE ADAPTIVE NAV (768px and down) --- */
.nav-text {
    display: inline; /* Default: Show text */
}

@media (max-width: 768px) {
    .nav-text {
        display: none; /* Hide text, leave emojis */
    }
    
    .nav-links {
        gap: 15px; /* Tighter gap for mobile icons */
    }

    .nav-links a {
        font-size: 1.5rem; /* Larger touch targets for thumbs */
        padding: 5px;
    }

    .nav-logo {
        height: 48px; /* Slightly smaller to keep the bar slim */
    }
}

/* --- HERO --- */
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('media/ocoee-area-cabin-fire-pit-outdoor-evening.png') bottom center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 100px 20px 40px;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: white; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; color: white; margin-bottom: 25px; }

.hero-cta-btn {
    display: inline-block; padding: 16px 40px;
    background-color: var(--campfire); color: white !important;
    text-decoration: none; font-weight: 700; text-transform: uppercase;
    border-radius: 5px; animation: buttonPulse 3s infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* --- THE LOCAL STOCKPILE FIX --- */
.local-stockpile { padding: 80px 20px; max-width: 900px; margin: 0 auto; }
.section-title { font-family: 'Arvo', serif; color: #f0dbc7; text-align: center; font-size: 2.2rem; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #e6dfca; margin-bottom: 40px; font-size: 1.1rem; opacity: 0.9; }

.accordion-item {
    background: #071e06; /* Solid Forest Dark */
    border: 1px solid rgba(224, 122, 95, 0.4); /* Campfire Border */
    border-radius: 12px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.accordion-trigger {
    width: 100%;
    padding: 22px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.shop-name { color: #e07a5f; font-weight: bold; font-size: 1.2rem; font-family: 'Arvo', serif; }
.short-desc { color: #f0dbc7; font-size: 0.9rem; margin-left: 10px; font-style: italic; opacity: 0.8; }
.plus-icon { color: #e07a5f; font-size: 1.5rem; transition: 0.3s; }

.accordion-content {
    display: none; /* Hidden by default */
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(224, 122, 95, 0.2);
}

.content-wrapper { padding: 25px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.info-text p { margin-bottom: 15px; line-height: 1.6; color: #f0dbc7; }

/* Active State Styles */
.accordion-item.active { border-color: #e07a5f; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.accordion-item.active .plus-icon { transform: rotate(45deg); }
.accordion-item.active .accordion-content { display: block; }

/* --- CARDS & GRID --- */
.container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.grid { display: grid; gap: 30px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(240, 219, 199, 0.1);
    border-radius: var(--radius); padding: 25px;
}
.img-frame { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }

/* --- MODAL (FIXED SIZE) --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(7, 30, 6, 0.95);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.contact-card {
    background: var(--mist-white); color: var(--forest-dark);
    width: 90%; max-width: 380px; padding: 30px;
    border-radius: var(--radius); text-align: center;
    border: 3px solid var(--forest-dark);
}

.contact-options { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.contact-btn {
    background: var(--forest-dark); color: white;
    text-decoration: none; padding: 14px; border-radius: 8px; font-weight: 700;
}

/* --- Floating Cabin Keepers Circle --- */
.host-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 3px solid #FFF; /* Framing white border */
    overflow: hidden;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: hostPulse 2s infinite;
    transition: transform 0.3s ease;
}

.host-trigger:hover {
    transform: scale(1.1); /* Slight grow when hovered */
}

.host-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* --- Pulse Animation for the Host Circle --- */
@keyframes hostPulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 122, 95, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(224, 122, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 122, 95, 0); }
}

/* --- WHEREABOUTS DRAWER SYSTEM --- */
.whereabouts-section {
    padding: 60px 20px;
    background-color: #121c14; /* Keeping it dark to match the theme */
    text-align: center;
}

.coords-header {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #f0dbc7; 
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.compass-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.4s ease;
    display: inline-block;
}

.compass-toggle:hover {
    transform: rotate(45deg) scale(1.2);
}

/* The Drawer Logic */
.whereabouts-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    opacity: 0;
}

.whereabouts-drawer.active {
    max-height: 1000px; /* Large enough to fit text */
    opacity: 1;
    margin-top: 30px;
}

.whereabouts-container {
    max-width: 800px;
    margin: 0 auto;
}

.whereabouts-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(240, 219, 199, 0.2);
    text-align: center;
}

.whereabouts-content h3 { color: #f0dbc7; margin-bottom: 20px; }
.whereabouts-content p { color: #e6dfca; margin-bottom: 15px; line-height: 1.8; }
.maps-btn { 
    display: inline-block; 
    margin-top: 20px; 
    color: #e07a5f; 
    text-decoration: underline; 
    font-weight: bold; 
}


/* =========================================
   STORYTELLING GALLERY (Photos Page)
   ========================================= */

.gallery-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 40px 0 80px 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
    background: var(--forest-dark);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* The Frosted Glass Overlay */
.story-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 30, 6, 0.85); /* 85% Forest Green */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px;
    transition: all 0.5s ease;
    z-index: 2;
}

.story-overlay h3 {
    font-family: 'Arvo', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--creamy);
}

.story-overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* --- THE REVEAL INTERACTION --- */
.gallery-item:hover .story-overlay {
    opacity: 0;
    backdrop-filter: blur(0px);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1); /* Cinematic zoom on hover */
}

/* Cinematic Focus: Dims surrounding photos when one is hovered */
.gallery-grid:has(.gallery-item:hover) .gallery-item:not(:hover) {
    opacity: 0.9;
    filter: grayscale(0.5) blur(0px);
}

/* --- MAIN FOOTER --- */
.main-footer {
    background-color: var(--forest-dark);
    color: var(--creamy);
    padding: 60px 20px;
    border-top: 1px solid rgba(240, 219, 199, 0.1);
    text-align: center;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-socials a {
    color: var(--creamy);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.footer-socials a:hover {
    opacity: 1;
    color: var(--campfire); /* Gives a nice pop of color on hover */
}

.footer-credits {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-credits p {
    margin-bottom: 5px;
}

.dba-text {
    opacity: 0.6;
    font-size: 0.75rem;
    font-style: italic;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .footer-socials {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- RUSTIC FORM STYLING --- */
.rustic-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(240, 219, 199, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width { grid-column: span 2; }

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--creamy);
    letter-spacing: 1px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: var(--forest-dark);
    border: 1px solid rgba(240, 219, 199, 0.3);
    border-radius: 5px;
    padding: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--campfire);
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .rustic-form { padding: 25px; }
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .nav-logo { height: 40px; }
    .nav-links a { font-size: 0.7rem; }
}