/* ==========================================
   CAFFÈ LUME — SHARED WEBSITE STYLES
   Homepage + Menu
   ========================================== */

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

/* Theme */
:root {
    --bg: #F5E8D2;
    --surface: #FFF9F0;
    --text: #30231F;
    --muted: #705E54;
    --primary: #4C3028;
    --primary-dark: #352019;
    --border: #E2D2BD;
    --ring: rgba(76, 48, 40, 0.28);
    --radius: 14px;
    --shadow: 0 8px 24px rgba(53, 32, 25, 0.10);
    --container: 1240px;
}

/* Reset and base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

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

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

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

h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

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

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

/* Header and navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(53, 32, 25, 0.04);
}

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

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

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

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

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

#desktopNav {
    display: block;
}

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

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

#desktopNav a:hover,
#desktopNav a:focus-visible {
    color: var(--primary);
    background: rgba(255, 249, 240, 0.85);
}

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

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
}

.nav-icon:hover {
    background: var(--surface);
}

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

/* 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 {
    color: var(--primary);
    background: rgba(76, 48, 40, 0.05);
}

/* Homepage and menu hero */
.section_1,
.menu-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    overflow: hidden;
    color: #fff;
    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;
    }

.menu-hero {
    min-height: 340px;
}

.hero-content,
.hero-content-menù {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px clamp(24px, 8vw, 120px);
}

.hero-eyebrow,
.section-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: #fff;
}

.section-eyebrow {
    color: var(--primary);
}

.section_1 h1,
.menu-hero h1 {
    max-width: 760px;
    margin-bottom: 16px;
    color: #fff;
}

.section_1 p,
.menu-hero p {
    max-width: 560px;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* Hero buttons */
.find_us-button,
.explore-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 28px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.find_us-button {
    background: var(--primary);
    color: #fff;
}

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

.explore-menu-button {
    background: var(--surface);
    color: var(--primary);
}

.explore-menu-button:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* Homepage sections */
.section_2 {
    padding: 44px 0 36px;
    color: var(--text);
    background: var(--bg);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.view-link {
    flex-shrink: 0;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

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

/* Cards and menu grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-inline: 0;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    height: auto;
    margin: 0 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(53, 32, 25, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.thumb {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #E8D8C3;
}

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

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

.card-body {
    display: block;
    flex: 1;
    padding: 16px 18px 8px;
}

.card-body h2,
.card-body h3 {
    margin-bottom: 6px;
    color: var(--primary);
    font-family: "Nunito", sans-serif;
    font-size: 1.2rem;
    line-height: 1.35;
}

.tag {
    display: inline-block;
    color: var(--muted);
    font-size: 0.85rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 18px 16px;
    border: 0;
}

.card-footer strong {
    color: var(--primary);
    font-size: 1rem;
}

.card-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.05rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.card-footer a:hover {
    background: var(--surface);
    color: var(--primary);
}

.projects-grid>.card[hidden] {
    display: none !important;
}

/* Menu pagination */
.menu-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0 44px;
}

.menu-pagination button {
    padding: 11px 22px;
    border: 0;
    border-radius: 26px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-pagination button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.menu-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#menuPageInfo {
    color: var(--text);
    font-weight: 800;
}

/* Optional homepage feature sections */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

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

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

.feature-text h2 {
    margin-bottom: 12px;
}

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

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

.site-footer p {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Tablet */
@media (max-width: 1020px) {
    :root {
        --container: 960px;
    }

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

    .thumb {
        height: 210px;
    }

    .hero-content,
    .hero-content-menù {
        padding-inline: 48px;
    }
}

/* Mobile and tablet navigation */
@media (max-width: 900px) {
    .nav {
        min-height: 64px;
    }

    #desktopNav {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-actions {
        gap: 5px;
    }

    .section_1 {
        min-height: 460px;
        background-position: center;
    }

    .menu-hero {
        min-height: 300px;
    }

    .hero-content,
    .hero-content-menù {
        padding: 42px 28px;
    }

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

    .feature-image {
        height: 260px;
    }
}

/* Small mobile screens */
@media (max-width: 600px) {
    .container {
        padding-inline: 18px;
    }

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

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

    .find_us-button {
        display: none;
    }

    .section_1 {
        min-height: 440px;
        background-position: 58% center;
    }

    .menu-hero {
        min-height: 260px;
    }

    .hero-content,
    .hero-content-menù {
        padding: 34px 20px;
    }

    .hero-eyebrow,
    .section-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 1.5px;
    }

    .section_1 h1,
    .menu-hero h1 {
        font-size: clamp(2rem, 8vw, 2.65rem);
    }

    .section_1 p,
    .menu-hero p {
        font-size: 0.95rem;
    }

    .section_2 {
        padding: 30px 0 24px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        margin-bottom: 8px;
    }

    .thumb {
        height: 230px;
    }

    .card-body {
        padding: 13px 14px 6px;
    }

    .card-body h2,
    .card-body h3 {
        font-size: 1.15rem;
    }

    .card-footer {
        padding: 8px 14px 14px;
    }

    .menu-pagination {
        gap: 10px;
        margin: 20px 0 32px;
    }

    .menu-pagination button {
        padding: 10px 15px;
    }

    .feature-image {
        height: 210px;
    }

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

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {

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