/* ================================
   VESPER BAKEHOUSE — styles.css
   Earthy | Moody | Sophisticated
================================ */

/* === VARIABLES === */
:root {
    --bg:        #1a1612;
    --surface:   #231f1a;
    --border:    #3a3228;
    --text:      #e8ddd0;
    --muted:     #9c8f82;
    --accent:    #c4a882;
    --footer-bg: #130f0c;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Book Antiqua', Palatino, serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* === HEADER / BANNER === */
header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 20px 20px 15px;
    letter-spacing: 0.15em;
    flex-shrink: 0;
}

header h1 {
    font-family: 'Book Antiqua', Palatino, serif;
    font-weight: 300;
    font-size: 3.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

header p.tagline {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* === NAVIGATION === */
nav {
    background-color: #0e0b08;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: stretch;
    gap: 0;
    padding: 0;
    width: 100%;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 20px 0;
    color: var(--text);
    text-decoration: none;
    font-family: 'Book Antiqua', Palatino, serif;
    font-size: 0.82rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-right: 1px solid var(--border);
}

nav ul li:first-child a {
    border-left: none;
}

nav ul li:last-child a {
    border-right: none;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--bg);
    background-color: var(--accent);
}

/* === MAIN CONTENT === */
main {
    padding: 0;
    flex: 1;
    overflow: visible;
}

/* === HERO / WELCOME SECTION === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-image: url('coffee.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    transition: filter 0.6s ease;
    z-index: 0;
}

.hero:hover .hero-image {
    filter: brightness(0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 30px;
}

.hero-content h2 {
    font-family: 'Book Antiqua', Palatino, serif;
    font-weight: 300;
    font-size: 2.4rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 2;
}

/* === DIVIDER === */
.divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    margin: 20px auto;
    opacity: 0.5;
}

/* === PHOTO SECTION === */
.photo-section {
    display: none;
}

/* === FOOTER === */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 16px 20px;
    color: var(--muted);
    font-family: 'Book Antiqua', Palatino, serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    line-height: 2;
    flex-shrink: 0;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
}
/* Polished text improvements: better centering, sizing, subtle frames, readability */
main {
    max-width: 1200px;          /* keeps content from stretching too wide on big screens */
    margin: 0 auto;             /* centers the main content block */
}

.page-hero,
.about-content,
.contact-container,
.menu-section,
.gallery-grid,
.center-link {
    max-width: 1000px;          /* tighter max width for text-heavy sections */
    margin-left: auto;
    margin-right: auto;
}

.page-hero h2,
.menu-section h3,
.about-content h3,
.contact-info h3,
.contact-form-section h3 {
    font-size: 2.8rem;          /* bigger, more elegant headings */
    line-height: 1.2;
    margin-bottom: 0.8em;
}

.page-hero p,
.about-content p,
.contact-info p,
.menu-item p {
    font-size: 1.15rem;         /* slightly larger body text for professionalism */
    line-height: 1.9;
    max-width: 720px;           /* prevents long lines from being hard to read */
    margin: 0 auto 1.5em;       /* centers paragraphs naturally */
}

.menu-item h4,
.contact-info h3,
.about-content h3 {
    margin: 0 0 0.6em;
}

/* Subtle frame around main text sections for that polished look */
.page-hero,
.menu-section,
.about-content,
.contact-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);  /* soft shadow for depth */
    margin: 2rem auto;
}

/* Form inputs get the same polished treatment */
.contact-form input,
.contact-form textarea {
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
}

/* Prevent horizontal scroll on small screens + better mobile centering */
html, body {
    overflow-x: hidden;         /* kills any unwanted side-scroll */
}

@media (max-width: 900px) {
    main {
        padding: 0 15px;        /* small side padding on narrow screens */
    }

    .contact-container {
        flex-direction: column; /* stack Visit Us + form vertically */
        gap: 3rem;
    }

    .page-hero,
    .menu-section,
    .about-content,
    .contact-container {
        padding: 2rem 1.5rem;   /* less padding on mobile */
        margin: 1.5rem 10px;    /* slight side margin to avoid edge-to-edge */
        border-radius: 10px;
    }

    .menu-grid,
    .gallery-grid {
        gap: 1.5rem;            /* tighter gaps on small screens */
    }

    nav ul li a {
        padding: 16px 0;        /* slightly smaller nav touch targets */
        font-size: 0.78rem;
    }
}

@media (max-width: 600px) {
    .page-hero h2,
    .menu-section h3,
    .about-content h3 {
        font-size: 2.2rem;      /* headings scale down gracefully */
    }

    .page-hero p,
    .about-content p {
        font-size: 1.05rem;
    }
}
.menu-category {
    position: relative;
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;  /* ensures space for content */
}

.menu-overlay {
    position: relative;
    z-index: 1;
    background: rgba(26, 22, 18, 0.65);  /* dark semi-transparent overlay like your hero (adjust opacity if too dark) */
    padding: 40px;
    border-radius: 12px;
    max-width: 1100px;
    margin: 0 auto;
    backdrop-filter: blur(4px);  /* optional subtle blur for extra polish if browser supports */
}

.menu-category h3 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);  /* helps text pop on bg */
}

/* Hover effect to match home hero */
.menu-category:hover {
    background-blend-mode: multiply;  /* optional deeper dim on hover */
}

/* Ensure menu items stay readable */
.menu-item {
    background: rgba(35, 31, 26, 0.7);  /* semi-transparent card bg for contrast */
    padding: 25px;
    border-radius: 10px;
}
.gallery-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.8rem;
    padding: 2rem 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-main-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    filter: brightness(0.92) contrast(1.05);
}

.gallery-main-grid img:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    filter: brightness(1.0) contrast(1.1);
}

/* Centered row specifically for the bottom two images */
.gallery-bottom-centered {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    padding: 1.8rem 1.5rem 3rem;
    max-width: 800px;           /* Keeps the two images from spreading too wide */
    margin: 0 auto;
}

.gallery-bottom-centered img {
    width: 100%;
    max-width: 360px;           /* Matches the main grid column width for visual harmony */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    filter: brightness(0.92) contrast(1.05);
}

.gallery-bottom-centered img:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    filter: brightness(1.0) contrast(1.1);
}