/* ============================================
   Five Corners Deli — Editorial Café Site
   Palette: Terracotta + Sand
   Fonts: Playfair Display + Inter
   ============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2C1810;
    background-color: #FDF8F4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #2C1810;
    color: #FDF8F4;
    padding: 0.5rem 1rem;
    z-index: 200;
    border-radius: 0 0 4px 4px;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 0;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: #2C1810;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A0522D;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 1.5rem;
}

.section-sub {
    font-size: 1.125rem;
    color: #5C3A2E;
    max-width: 540px;
    line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.75rem;
    border-radius: 2px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #A0522D;
    color: #FDF8F4;
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: #8B4522;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #FDF8F4;
    border: 1.5px solid rgba(253, 248, 244, 0.6);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(253, 248, 244, 0.12);
    border-color: #FDF8F4;
}

.btn-dark {
    background: #2C1810;
    color: #FDF8F4;
}
.btn-dark:hover,
.btn-dark:focus-visible {
    background: #3D2317;
    transform: translateY(-1px);
}

.btn-light {
    background: #FDF8F4;
    color: #2C1810;
}
.btn-light:hover,
.btn-light:focus-visible {
    background: #fff;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(44, 24, 16, 0.08);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-mark {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: #A0522D;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #A0522D;
    border-radius: 2px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2C1810;
    letter-spacing: 0.02em;
}

.logo-accent {
    color: #A0522D;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2C1810;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #A0522D;
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.main-nav a:hover {
    color: #A0522D;
}

.btn-nav {
    background: #2C1810;
    color: #FDF8F4 !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    font-weight: 600;
}
.btn-nav::after {
    display: none;
}
.btn-nav:hover {
    background: #A0522D;
    color: #FDF8F4 !important;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hamburger {
    position: relative;
    width: 22px;
    height: 14px;
    display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2C1810;
    transition: all 0.3s ease;
}

.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger::after { bottom: 0; }

.mobile-toggle[aria-expanded="true"] .hamburger::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #8B4522 0%,
        #A0522D 25%,
        #C4744F 50%,
        #D4956A 70%,
        #E8B89A 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(139, 69, 34, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 149, 106, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(44, 24, 16, 0.25) 0%, rgba(44, 24, 16, 0.1) 50%, rgba(44, 24, 16, 0.35) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(253, 248, 244, 0.75);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    color: #FDF8F4;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    color: #F5E6D3;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(253, 248, 244, 0.85);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(253, 248, 244, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(253, 248, 244, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- ABOUT ---------- */
.about {
    padding: 8rem 0;
    background: #FDF8F4;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    aspect-ratio: 600 / 750;
}

.about-text p {
    color: #5C3A2E;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(160, 82, 45, 0.15);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #A0522D;
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: #5C3A2E;
    letter-spacing: 0.04em;
}

/* ---------- MENU ---------- */
.menu {
    position: relative;
    padding: 8rem 0;
    background: #2C1810;
    overflow: hidden;
}

.menu-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(160, 82, 45, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 100% 0%, rgba(212, 149, 106, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.menu .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-eyebrow {
    color: #D4956A;
}

.section-header .section-heading {
    color: #FDF8F4;
}

.section-header .section-sub {
    color: rgba(253, 248, 244, 0.65);
    margin: 0 auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.menu-card {
    background: rgba(253, 248, 244, 0.05);
    border: 1px solid rgba(253, 248, 244, 0.08);
    border-radius: 2px;
    padding: 2.5rem;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.menu-card:hover {
    background: rgba(253, 248, 244, 0.08);
    border-color: rgba(212, 149, 106, 0.3);
}

.menu-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 149, 106, 0.3);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    color: #D4956A;
}

.menu-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FDF8F4;
    margin-bottom: 0.75rem;
}

.menu-card-desc {
    color: rgba(253, 248, 244, 0.6);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.menu-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(253, 248, 244, 0.08);
}

.menu-footer p {
    color: rgba(253, 248, 244, 0.5);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ---------- COMMUNITY ---------- */
.community {
    padding: 8rem 0;
    background: #FDF8F4;
}

.community-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.community-text p {
    color: #5C3A2E;
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    aspect-ratio: 560 / 640;
}

/* ---------- VISIT ---------- */
.visit {
    padding: 8rem 0;
    background: #F5E6D3;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-info .section-heading {
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    color: #A0522D;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A0522D;
    margin-bottom: 0.25rem;
}

.contact-item span,
.contact-item a {
    font-size: 1rem;
    color: #2C1810;
    line-height: 1.6;
}

.contact-item a:hover {
    color: #A0522D;
    text-decoration: underline;
}

.map-link .btn {
    font-size: 0.8125rem;
}

/* Form */
.visit-form-wrap {
    background: #FDF8F4;
    border-radius: 2px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(44, 24, 16, 0.06);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C1810;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 0.375rem;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #2C1810;
    background: #fff;
    border: 1.5px solid rgba(44, 24, 16, 0.15);
    border-radius: 2px;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9A7B6E;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #A0522D;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(160, 82, 45, 0.08);
    border-left: 3px solid #A0522D;
    color: #5C3A2E;
    font-size: 0.9375rem;
    border-radius: 0 2px 2px 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: #2C1810;
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.footer-brand .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.footer-brand .logo-text {
    font-size: 1rem;
    color: #FDF8F4;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    color: rgba(253, 248, 244, 0.5);
    font-size: 0.8125rem;
    line-height: 1.7;
}

.footer-info a {
    color: rgba(253, 248, 244, 0.6);
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: #D4956A;
}

.footer-copy {
    color: rgba(253, 248, 244, 0.3) !important;
    font-size: 0.75rem;
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .about-grid,
    .community-layout,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        aspect-ratio: 4 / 3;
    }

    .community-image {
        order: -1;
    }

    .community-image img {
        aspect-ratio: 4 / 3;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: #FDF8F4;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -4px 0 24px rgba(44, 24, 16, 0.1);
        z-index: 99;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1.125rem;
    }

    .btn-nav {
        margin-top: 0.5rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content {
        padding: 7rem 1.5rem 5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        gap: 2rem;
    }

    .visit-form-wrap {
        padding: 1.75rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Nav overlay on mobile */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.4);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
