/* ==========================================
   CAFFÈ LUME — OUR STORY PAGE
   Complete responsive stylesheet
   ========================================== */

/* ---------- Fonts ---------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inria+Serif:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');


/* ---------- Theme Variables ---------- */

:root {
    --bg: #F5E8D2;
    --surface: #FFF9F0;
    --text: #30231E;
    --muted: #75665C;
    --primary: #4C3028;
    --primary-dark: #342019;
    --border: #E5D5C2;
    --ring: rgba(76, 48, 40, 0.28);
    --radius: 12px;
    --shadow: 0 8px 24px rgba(48, 35, 30, 0.10);
    --container: 1240px;
}


/* ---------- Reset and Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Nunito", sans-serif;
    color: var(--primary);
}

h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.12;
}

h2 {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

p {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}


/* ==========================================
   HEADER AND NAVIGATION
   ========================================== */

/* ---------- Header ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(48, 35, 30, 0.04);
}


/* ---------- Navigation Bar ---------- */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    color: var(--primary);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-family: "Inria Serif", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.brand:hover {
    color: var(--primary-dark);
}

.brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
}

.brand .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ---------- Desktop Navigation ---------- */

#desktopNav {
    display: block;
}

#desktopNav ul {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#desktopNav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    transition: color 0.2s ease,
        background 0.2s ease;
}

#desktopNav a:hover,
#desktopNav a:focus-visible,
#desktopNav a[aria-current="page"] {
    color: var(--primary);
    background: var(--surface);
}


/* ---------- Navigation Actions ---------- */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ---------- Find Us Button ---------- */

.find_us-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 24px;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
    transition: background 0.2s ease,
        transform 0.2s ease;
}

.find_us-button:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
}


/* ---------- Hamburger Button ---------- */

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    font-size: 21px;
}


/* ---------- Mobile Navigation ---------- */

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    padding: 10px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu:not([hidden]) {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 13px 8px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: 0;
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
    color: var(--primary);
    background: rgba(76, 48, 40, 0.05);
}


/* ==========================================
   OUR STORY HERO
   ========================================== */

.menu-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    background-image:
    linear-gradient(
        90deg,
        rgba(32, 20, 15, 0.68),
        rgba(32, 20, 15, 0.08)
    ),
    url("../hero_background.png");
           background-size: cover;
           background-position: center;
           background-repeat: no-repeat;
           color: #FFFFFF;
    }

.hero-content-menu {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: 56px 24px;
    color: #FFFFFF;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #F5E8D2;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content-menu h1 {
    margin: 0 0 16px;
    color: #FFFFFF;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
}

.hero-content-menu p {
    max-width: 600px;
    margin: 0;
    color: #FFFFFF;
    font-size: 1.1rem;
    line-height: 1.7;
}


/* ==========================================
   STORY SECTION
   ========================================== */

.story-section {
    padding: 48px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 40px;
}

.feature-image {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #E8D8C3;
}

.feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #92704F;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-text h2 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.25;
}

.feature-text p {
    max-width: 560px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}


/* ---------- Explore Menu / Visit Button ---------- */

.explore-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 13px 24px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.explore-menu-button:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
}


/* ==========================================
   PHOTOGRAPHY GALLERY
   ========================================== */

.story-gallery {
    padding: 36px 0 48px;
}

.story-gallery .section-heading {
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.25;
}

.story-gallery .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-inline: 0;
}

.story-gallery .card {
    min-width: 0;
    height: auto;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.25s ease,
        box-shadow 0.25s ease;
}

.story-gallery .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.story-gallery .thumb {
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.story-gallery .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.story-gallery .card:hover .thumb img {
    transform: scale(1.04);
}

.story-gallery .card-body {
    padding: 18px;
}

.story-gallery .card-body h3 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.story-gallery .card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ==========================================
   CLOSING INVITATION
   ========================================== */

.story-invitation {
    padding: 42px 0 56px;
    background: var(--surface);
}

.story-invitation .container {
    max-width: 900px;
    text-align: center;
}

.story-invitation .feature-text {
    align-items: center;
}

.story-invitation .feature-text p {
    margin-inline: auto;
}


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

.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
    text-align: center;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--primary);
    font-family: "Inria Serif", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.site-footer p {
    margin-bottom: 5px;
    font-size: 0.85rem;
}


/* ==========================================
   TABLET LAYOUT
   Screens up to 900px
   ========================================== */

@media (max-width: 900px) {

    /* Header and navigation */

    .nav {
        gap: 16px;
    }

    #desktopNav {
        display: none;
    }

    .hamburger {
        display: inline-flex;
        flex-shrink: 0;
    }

    .mobile-menu {
        padding-inline: 28px;
    }

    /* Hero */

    .hero-content-menu {
        padding: 44px 28px;
    }

    /* Story */

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-image {
        height: 320px;
    }

    /* Gallery */

    .story-gallery .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    /* Closing invitation */

    .story-invitation .container {
        max-width: 760px;
    }
}


/* ==========================================
   MOBILE LAYOUT
   Screens up to 600px
   ========================================== */

@media (max-width: 600px) {

    /* General spacing */

    .container {
        padding-inline: 20px;
    }

    /* Header */

    .nav {
        min-height: 62px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
        font-size: 1.1rem;
    }

    .brand .logo {
        width: 32px;
        height: 32px;
    }

    .nav-actions {
        gap: 8px;
    }

    .find_us-button {
        display: none;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .mobile-menu {
        padding: 8px 20px;
    }

    /* Hero */

    .menu-hero {
        min-height: 260px;
        background-position: 58% center;
    }

    .hero-content-menu {
        padding: 36px 20px;
    }

    .hero-content-menu h1 {
        font-size: 2.4rem;
    }

    .hero-content-menu p {
        font-size: 1rem;
    }

    /* Story */

    .story-section {
        padding: 28px 0 32px;
    }

    .feature-grid {
        gap: 24px;
    }

    .feature-image {
        height: 240px;
    }

    .feature-text {
        padding: 4px 0;
    }

    .feature-text h2 {
        font-size: 1.7rem;
    }

    /* Gallery */

    .story-gallery {
        padding: 28px 0 32px;
    }

    .story-gallery .section-heading {
        margin-bottom: 20px;
    }

    .story-gallery .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .story-gallery .thumb {
        height: 230px;
    }

    .story-gallery .card-body {
        padding: 14px;
    }

    /* Closing invitation */

    .story-invitation {
        padding: 32px 0 40px;
    }

    .story-invitation .feature-text h2 {
        font-size: 1.7rem;
    }

    .explore-menu-button {
        max-width: 100%;
        text-align: center;
    }

    /* Footer */

    .site-footer {
        padding: 26px 0;
    }
}


/* ==========================================
   REDUCED MOTION ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}