/* ========================================
   Caffè Lume — Homepage Stylesheet
   Specialty Coffee in Ortigia, Syracuse
   ======================================== */

/* ---------- 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, 1rem);
    font-weight: 500;
    line-height: 1.12;
}

h2 {
    font-size: clamp(1.4rem, 2.5vw, 1rem);
    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 ---------- */
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);
}

.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 {
    color: var(--primary);
    background: var(--surface);
}

.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);
}


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


/* ---------- Hero Section ---------- */
.section_1 {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    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 {
    position: relative;
    z-index: 1;
    padding: 64px 120px;
}

.hero-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.section_1 h1 {
    max-width: 700px;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.section_1 p {
    max-width: 470px;
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 24px;
}


/* ---------- Explore Menu Button ---------- */
.explore-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border: 1px solid #F0E8DE;
    border-radius: 28px;
    background: #F0E8DE;
    color: var(--primary-dark);
    font-weight: 700;
    transition: background 0.2s ease,
        transform 0.2s ease;
}

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


/* ---------- Discover Section ---------- */
.section_2 {
    padding: 56px 0 48px;
    color: var(--text);
    background: var(--bg);
}


/* ---------- Coffee Shop Cards ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
    transition: transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
}


/* ---------- Card Images ---------- */
.thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

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

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


/* ---------- Card Text ---------- */
.card-body {
    display: block;
    /* padding: 16px 4px 8px; */
    background: white;
}

.card-body h2,
.card-body h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.9rem;
}

.card-footer span {
    flex: 1;
}


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

.card-footer a:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #FFFFFF;
}


/* ---------- 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 ---------- */
@media (max-width: 1020px) {
    :root {
        --container: 960px;
    }

    .hero-content {
        padding-inline: 64px;
    }

    .projects-grid {
        gap: 18px;
    }
}


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

    #desktopNav {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-actions {
        gap: 8px;
    }

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

    .hero-content {
        padding: 48px 32px;
    }

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


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

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

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

    .find_us-button {
        display: none;
    }

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

    .hero-content {
        padding: 40px 18px;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

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

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

    .section_2 {
        padding: 36px 0 28px;
    }

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

    .thumb {
        aspect-ratio: 4 / 3;
    }

    .card-body {
        padding: 12px 2px 4px;
    }

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

    .card-footer {
        font-size: 0.9rem;
    }
}


/* ---------- Reduced Motion Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {

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