/* ===================================
   Windfall Cafe - Gallery Page Styles
   Vibrant · Calm · Professional · Cozy
   =================================== */

/* ===================================
   BASE RESET & FOUNDATION
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.7;
    color: #3a3a3a;
    background: linear-gradient(135deg, #f4ece0 0%, #e8dcc8 50%, #f0e6d8 100%);
    background-attachment: fixed;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1 {
    font-size: 3em;
    line-height: 1.2;
    color: #4a3628;
    margin-bottom: 0.3em;
    font-weight: normal;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2.2em;
    line-height: 1.3;
    color: #5a4332;
    margin-bottom: 0.8em;
    font-weight: normal;
    letter-spacing: 0.01em;
}

p {
    margin-bottom: 1.2em;
    color: #3a3a3a;
}

::selection {
    background-color: rgba(139, 111, 71, 0.3);
    color: #2a2a2a;
}

/* ===================================
   LINKS
   =================================== */

a {
    color: #8b6f47;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: #5a4332;
    border-bottom: 1px solid #5a4332;
}

a:active {
    transform: translateY(1px);
}

/* ===================================
   NAVIGATION BAR
   =================================== */

.navbar {
    background-color: rgba(232, 220, 200, 0.95);
    backdrop-filter: blur(10px);
    padding: 1em 2em;
    text-align: center;
    font-size: 1em;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(74, 54, 40, 0.1);
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(232, 220, 200, 1);
    box-shadow: 0 3px 15px rgba(74, 54, 40, 0.15);
}

.navbar a {
    color: #4a3628;
    margin: 0 1em;
    padding: 0.5em 1em;
    border-bottom: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border-radius: 6px;
}

.navbar a:hover {
    color: #8b6f47;
    background-color: rgba(139, 111, 71, 0.1);
    transform: translateY(-2px);
    border-bottom: none;
}

/* ===================================
   GALLERY HERO SECTION
   =================================== */

/* Gallery Logo - same styling as index.html */
.hero-logo {
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    max-width: 180px;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 4px 12px rgba(74, 54, 40, 0.15));
    transition: transform 0.4s ease;
    border: 3px solid rgba(139, 111, 71, 0.2);
}

.hero-logo img:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: rgba(139, 111, 71, 0.4);
}

.gallery-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 4em 2em 3em;
    text-align: center;
}

.gallery-hero h1 {
    margin-bottom: 0.5em;
}

.gallery-hero p {
    font-size: 1.2em;
    color: #8b6f47;
    font-style: italic;
}

/* ===================================
   GALLERY SECTIONS
   =================================== */

.gallery-interior,
.gallery-food,
.gallery-team {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3em 2em;
}

.gallery-interior h2,
.gallery-food h2,
.gallery-team h2 {
    text-align: center;
    margin-bottom: 2em;
    color: #5a4332;
}

/* ===================================
   GALLERY GRID
   =================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-bottom: 3em;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(74, 54, 40, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 12px 30px rgba(74, 54, 40, 0.25);
    filter: brightness(1.05);
}

.gallery-grid img:active {
    transform: scale(0.98);
}

/* ===================================
   BACK TO HOME SECTION
   =================================== */

.gallery-back {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 2em 4em;
}

.gallery-back p {
    text-align: center;
    font-size: 1.1em;
}

.gallery-back a {
    color: #8b6f47;
    font-weight: 600;
    padding: 0.5em 1.2em;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.gallery-back a:hover {
    background-color: rgba(139, 111, 71, 0.12);
    border-bottom: 1px solid #8b6f47;
    transform: translateX(-4px);
}

/* ===================================
   MODAL/LIGHTBOX FOR GALLERY IMAGES
   =================================== */

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
}

.gallery-modal-close:hover {
    color: #e8dcc8;
    transform: scale(1.2);
}

/* Navigation arrows */
.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    color: #e8dcc8;
    transform: translateY(-50%) scale(1.2);
}

/* Image counter */
.gallery-modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 10000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================
   FOOTER / CONTACT
   =================================== */

.footer {
    background: linear-gradient(to bottom,
            rgba(232, 220, 200, 0) 0%,
            rgba(232, 220, 200, 0.6) 30%,
            rgba(232, 220, 200, 0.9) 100%);
    margin-top: 5em;
    padding: 4em 2em 2.5em;
}

.footer h2 {
    margin-bottom: 1.5em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.2em;
    transition: all 0.3s ease;
}

.footer p:hover {
    transform: translateX(4px);
    color: #2a2a2a;
}

.footer p:last-of-type {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid rgba(139, 111, 71, 0.2);
    font-size: 0.9em;
    color: #777;
    text-align: center;
}

.footer a {
    font-weight: 500;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.9em;
    }

    .navbar {
        padding: 0.8em 1em;
        font-size: 0.95em;
    }

    .navbar a {
        margin: 0 0.5em;
        padding: 0.4em 0.8em;
    }

    .gallery-hero {
        padding: 3em 1.5em 2em;
    }

    .gallery {
        padding: 2em 1.5em 3em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5em;
    }

    .gallery-grid img {
        height: 250px;
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        font-size: 40px;
        padding: 15px;
    }

    .gallery-modal-prev {
        left: 10px;
    }

    .gallery-modal-next {
        right: 10px;
    }

    .gallery-modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .gallery-modal-counter {
        bottom: 20px;
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    .navbar {
        padding: 0.7em 0.5em;
        font-size: 0.85em;
    }

    .navbar a {
        margin: 0 0.2em;
        padding: 0.3em 0.5em;
        font-size: 0.9em;
    }

    .gallery-hero {
        padding: 2.5em 1em 1.5em;
    }

    .gallery-hero p {
        font-size: 1.1em;
    }

    .gallery-interior,
    .gallery-food,
    .gallery-team {
        padding: 2em 1em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .gallery-grid img {
        height: auto;
        aspect-ratio: 4/3;
    }

    .gallery-grid img:hover {
        transform: scale(1.02);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .navbar a {
        margin: 0 0.1em;
        padding: 0.3em 0.4em;
        font-size: 0.85em;
    }

    .gallery-grid {
        gap: 1em;
    }
}