/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2c5f2d;
    --color-primary-dark: #1e3f1f;
    --color-accent: #d4a843;
    --color-accent-light: #f0dda0;
    --color-bg: #faf9f6;
    --color-bg-alt: #f0ede6;
    --color-text: #333;
    --color-text-light: #666;
    --color-white: #fff;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --roof-angle: 25deg;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    transition: box-shadow 0.3s;
}

.main-nav::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--color-white);
    clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
    pointer-events: none;
    transition: box-shadow 0.3s;
}

.main-nav.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.main-nav.scrolled::after {
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.05));
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-phone {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-phone:hover {
    background: var(--color-primary-dark);
    color: var(--color-white) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    margin-top: 64px;
}

.hero::before {
    content: '';
    position: absolute;
    clip-path: inset(0);
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,168,67,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-logo {
    margin: 0 auto 1.5rem;
    max-width: 420px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.hero-taglines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

.tagline-divider {
    color: var(--color-accent-light);
    font-size: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

/* Roof edge at bottom of hero — slants down left to right (right side higher) */
.roof-edge {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 0;
    z-index: 2;
}

.roof-edge::after {
    content: '';
    display: block;
    width: 100%;
    height: 60px;
    background: var(--color-bg);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ===== Roof Top Divider (used at top of each section) ===== */
/*
 * Creates the distinctive 25-degree slanted roofline.
 * The angle rises from left to right, matching the café's real roof.
 * Using clip-path with percentage values: tan(25°) ≈ 0.466.
 * A 60px height across the full width gives a visual ~25° slope.
 */
.roof-top {
    position: relative;
    width: 100%;
    height: 60px;
    margin-top: -60px;
    pointer-events: none;
}

/* ===== Food Showcase ===== */
.food-showcase {
    background: var(--color-bg);
    padding: 3rem 0 2rem;
    position: relative;
    margin-top: 40px;
}

.food-showcase::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--color-bg);
    clip-path: polygon(0 100%, 0 60%, 100% 0, 100% 100%);
    pointer-events: none;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.showcase-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0 4rem;
    position: relative;
}

.menu-section {
    background: var(--color-bg);
}

.menu-section.lunch {
    background: var(--color-bg-alt);
}

.find-us-section {
    background: var(--color-bg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 0.6rem auto 2rem;
    border-radius: 2px;
}

/* ===== Slanted Section Separators ===== */
/*
 * Each section gets a slanted top edge via this pseudo-element on the section itself.
 * The angle rises from left (lower) to right (higher), matching the café roof.
 */
.menu-section::before,
.find-us-section::before,
.food-showcase::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
}

.menu-section:not(.lunch)::before {
    background: var(--color-bg);
    clip-path: polygon(0 100%, 0 60%, 100% 0, 100% 100%);
}

.menu-section.lunch::before {
    background: var(--color-bg-alt);
    clip-path: polygon(0 100%, 0 60%, 100% 0, 100% 100%);
}

.find-us-section::before {
    background: var(--color-bg);
    clip-path: polygon(0 100%, 0 60%, 100% 0, 100% 100%);
}

/* ===== Menu Styles ===== */
.menu-hours {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.menu-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.menu-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent-light);
}

.menu-list {
    list-style: none;
}

.menu-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px dotted #ddd;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list .item {
    flex: 1;
    font-size: 1rem;
    padding-right: 1rem;
}

.menu-list .price {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    font-size: 1rem;
}

.item-desc {
    width: 100%;
    font-size: 0.88rem;
    color: var(--color-text-light);
    font-style: italic;
    padding-top: 0.15rem;
}

.menu-note {
    margin-top: 1.2rem;
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ===== Find Us ===== */
.find-us-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.contact-info address {
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.contact-phone {
    margin-bottom: 1.5rem;
}

.contact-phone a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.contact-phone a:hover {
    color: var(--color-accent);
}

.sign-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    position: relative;
}

/* Slanted top for footer matching the roof angle */
.site-footer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--color-primary-dark);
    clip-path: polygon(0 100%, 0 60%, 100% 0, 100% 100%);
}

.footer-logo {
    margin: 0 auto 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.site-footer p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.footer-address {
    opacity: 0.75;
}

.footer-phone a {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-phone a:hover {
    color: var(--color-accent-light);
}

.footer-copy {
    margin-top: 1.5rem;
    opacity: 0.5;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 0.6rem 1.5rem;
    }

    .hero {
        padding: 6rem 1.25rem 4rem;
    }

    .hero-logo {
        max-width: 280px;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section {
        padding: 3.5rem 0 3rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .menu-card {
        padding: 1.5rem 1.25rem 1.2rem;
    }

    .find-us-grid {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        padding-bottom: 80%;
    }

    .roof-edge::after {
        height: 35px;
    }

    .food-showcase::before,
    .menu-section::before,
    .find-us-section::before,
    .site-footer::before {
        height: 25px;
        top: -25px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 3rem;
    }

    .hero-logo {
        max-width: 220px;
    }

    .tagline {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .menu-list .item {
        font-size: 0.92rem;
    }

    .menu-list .price {
        font-size: 0.92rem;
    }
}

/* ===== Print ===== */
@media print {
    .main-nav,
    .hero-actions,
    .map-wrapper,
    .nav-toggle {
        display: none;
    }

    .hero {
        margin-top: 0;
        padding: 2rem 0;
        background: none;
        color: var(--color-text);
    }

    .hero-logo {
        filter: none;
    }

    .section {
        padding: 1.5rem 0;
    }

    body {
        font-size: 11pt;
    }
}
