/* ============================================
   Northside Cafe of Rice Lake
   Bold Editorial Style — Charcoal + Coral
   ============================================ */

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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --charcoal-mid: #3a3a3a;
    --coral: #E07A5F;
    --coral-dark: #c4624a;
    --coral-light: #f0a08a;
    --cream: #FDF8F4;
    --cream-dark: #f5ece4;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

em {
    font-style: italic;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background-color: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-outline:hover {
    background-color: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(26, 26, 26, 0.08);
}

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

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--coral);
    border-radius: var(--radius-sm);
    position: relative;
    flex-shrink: 0;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

.logo-accent {
    color: var(--coral);
}

/* --- Navigation --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--charcoal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--charcoal);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--coral);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--cream);
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 70% 50%, rgba(224, 122, 95, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(224, 122, 95, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 55%;
    height: 80%;
    background: url('https://images.pexels.com/photos/6122263/pexels-photo-6122263.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1200&h=1600') center/cover no-repeat;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    opacity: 0.12;
    filter: grayscale(30%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: var(--space-xl) 0;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.0;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-headline em {
    color: var(--coral);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease forwards 1s;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--coral), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Marquee --- */
.marquee {
    background: var(--charcoal);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 25s linear infinite;
}

.marquee span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.marquee-dot {
    color: var(--coral) !important;
    font-size: 0.5rem !important;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Menu Section --- */
.menu-section {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.menu-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid rgba(26, 26, 26, 0.06);
    transition: all var(--transition);
}

.menu-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 26, 26, 0.08);
    border-color: transparent;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    margin-bottom: var(--space-sm);
}

.category-title {
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-items li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.menu-items li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--charcoal);
}

.item-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
    line-height: 1.4;
}

.menu-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    font-style: italic;
}

/* --- About Section --- */
.about-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content {
    padding: var(--space-md) 0;
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--coral);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(26, 26, 26, 0.1);
}

/* --- Gallery Section --- */
.gallery-section {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: var(--space-sm);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item--wide {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-sm);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
}

/* --- Visit Section --- */
.visit-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit-details {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.detail-row {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background: var(--cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    flex-shrink: 0;
}

.detail-row strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.detail-row span,
.detail-row a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-row a:hover {
    color: var(--coral);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 20px 60px rgba(26, 26, 26, 0.1);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-2xl) 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(224, 122, 95, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-eyebrow {
    color: var(--coral-light);
}

.cta-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.03em;
}

.cta-sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.cta-sub a {
    color: var(--coral-light);
    font-weight: 500;
    transition: color var(--transition);
}

.cta-sub a:hover {
    color: var(--coral);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.cta-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cta-actions .btn-outline:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal-light);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.8;
    margin-top: var(--space-sm);
}

.footer-brand a {
    color: var(--coral-light);
    transition: color var(--transition);
}

.footer-brand a:hover {
    color: var(--coral);
}

.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-sm);
}

.footer-links ul,
.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--coral);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: var(--space-md);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
    }
    
    .gallery-item--wide {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--space-md) var(--space-md);
        gap: 1.5rem;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(26, 26, 26, 0.1);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.125rem;
    }
    
    .nav-cta {
        margin-top: 1rem;
    }
    
    .hero-content {
        padding: var(--space-lg) 0;
    }
    
    .hero-bg::before {
        display: none;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item,
    .gallery-item--wide {
        grid-column: auto;
        grid-row: auto;
        height: 220px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-map {
        min-height: 280px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .stat-divider {
        display: none;
    }
}

/* --- Mobile overlay --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

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