/* CORE SETUP & RESPONSIVE CONFIG */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --accent-color: #d4a373; 
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --nav-height: 80px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    scroll-margin-top: var(--nav-height);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-color);
    color: #121212;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #bc8a5f;
    transform: translateY(-3px);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    border-bottom: 1px solid #2a2a2a;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.nav-logo {
    font-weight: bold;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 20px; /* Space between links */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links li a:not(.nav-contact-btn):hover {
    color: var(--accent-color);
}

.contact-btn-wrapper {
    margin-left: 30px !important; /* Extra space to separate the button */
}

.nav-contact-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-color); /* The brown from your variables */
    color: #121212 !important; /* Black text on brown */
    border-radius: 4px;
    transition: var(--transition);
    border: none;
}

.nav-contact-btn:hover {
    background-color: #bc8a5f; /* A darker brown shade on hover */
    transform: translateY(-2px);
}

/* HERO & PAGE HEADERS*/
.hero, .page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                      url('photos/coffees.jpg');
}

.page-header {
    height: 45vh;
    padding-top: var(--nav-height);
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
                      url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?auto=format&fit=crop&q=80&w=1200');
}

.hero h1 { font-size: clamp(3rem, 8vw, 5rem); letter-spacing: 10px; }

/* MENU STYLES (MATCHING ORIGINAL IMAGE) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item, .menu-row {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item:hover, .menu-row:hover { transform: translateY(-5px); background: #252525; }

.item-header, .menu-info { flex: 1; padding-right: 15px; }

.item-name, .menu-name { font-weight: bold; font-size: 1.2rem; color: var(--accent-color); }
.item-desc, .menu-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; }
.item-price, .menu-price { font-weight: bold; font-size: 1.1rem; min-width: 70px; text-align: right; }

/* CONTACT FORM & GRID FIXES*/
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.contact-form, #contactForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
}

.contact-form input, .contact-form textarea, 
#contactForm input, #contactForm textarea {
    width: 100%;
    padding: 12px;
    background: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
}

/* 8. MOBILE FIXES */
@media (max-width: 768px) {
    .nav-links { gap: 15px; }
    .nav-links li { margin-left: 15px; }
    .nav-links a { font-size: 0.75rem; }
    
    .navbar { padding: 0 4%; }
    
    .menu-item, .menu-row { flex-direction: column; text-align: center; }
    .item-header, .menu-info { padding-right: 0; margin-bottom: 10px; }
    .item-price, .menu-price { text-align: center; }
}

/* REFINED COFFEE SHOP FOOTER & TAGLINE */
.tagline {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.site-footer {
    background-color: #0a0a0a;
    padding: 80px 0 0 0;
    border-top: 1px solid #222;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-column h3 {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.brand-col .footer-logo {
    font-size: 2rem;
    color: var(--accent-color);
    letter-spacing: 5px;
    margin-bottom: 15px;
}

.brand-col p {
    max-width: 300px;
    color: var(--text-muted);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    background: #050505;
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #111;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .brand-col p { margin: 0 auto; }
}

/* --- Desktop & Tablet (Default) --- */
.slideshow-container {
    width: 100%;
    max-width: 100%; 
    height: 500px; /* High-definition height for large screens */
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: slideFade 20s infinite;
}

/* --- Phone Adjustment (Screens smaller than 768px) --- */
@media (max-width: 768px) {
    .slideshow-container {
        height: 250px; 
    }
}

/* --- Small Phone Adjustment (Screens smaller than 480px) --- */
@media (max-width: 480px) {
    .slideshow-container {
        height: 180px; 
    }
}

/* Keyframes and delays remain exactly as you had them */
.about-image img:nth-child(1) { animation-delay: 0s; }
.about-image img:nth-child(2) { animation-delay: 5s; }
.about-image img:nth-child(3) { animation-delay: 8s; }
.about-image img:nth-child(4) { animation-delay: 13s; }

@keyframes slideFade {
    0% { opacity: 0; }
    5% { opacity: 1; }  
    25% { opacity: 1; } 
    30% { opacity: 0; } 
    100% { opacity: 0; }
}
.map-container {
    margin-top: 15px;
    width: 100%;
    overflow: hidden;
    border: 1px solid #333;
    border-radius: 8px;
    filter: grayscale(100%) invert(90%) contrast(90%);
}

.map-container iframe {
    filter: none; 
    
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

.contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .nav-toggler {
        display: block;
        cursor: pointer;
    }
    .nav-toggler span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--accent-color);
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Transform the Link List into a Side Drawer */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%; /* Hidden off-screen to the right */
        width: 70%;
        height: calc(100vh - var(--nav-height));
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s ease;
        border-left: 1px solid #333;
    }

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

    .contact-btn-wrapper {
        margin-left: 0 !important;
    }

    /* When Checkbox is checked, slide the menu in */
    #nav-check:checked ~ .nav-links {
        right: 0;
    }

    /* Optional: Animate Hamburger to an 'X' when open */
    #nav-check:checked ~ .nav-toggler span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    #nav-check:checked ~ .nav-toggler span:nth-child(2) { opacity: 0; }
    #nav-check:checked ~ .nav-toggler span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* Hide the toggler on Desktop */
@media (min-width: 769px) {
    .nav-toggler { display: none; }
}
/* About Page Specific Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
    align-items: center;
}

.about-main-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: block;
}

.accent-text {
    color: var(--accent-color);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stack text on top of image */
        text-align: center;
    }

    .about-image-container {
        order: 2; /* Ensures image stays below text on mobile */
        margin-top: 20px;
    }
}

/* Gallery Specific Styles */
.gallery-section {
    padding: 40px 0;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-container video {
    width: 100%;
    display: block;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid #333;
}

.photo-grid img:hover {
    transform: scale(1.03);
    border-color: var(--accent-color);
}