/* ============================================
   Kel's Cafe — Custom Styles
   Emerald Green + Cream | Confident Corporate
   ============================================ */

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;
    --cream-50:    #fafaf5;
    --cream-100:   #f5f5ee;
    --cream-200:   #e8e8d8;
    --neutral-900: #1a1a1a;
    --neutral-800: #2d2d2d;
    --neutral-700: #404040;
    --neutral-600: #525252;
    --neutral-500: #737373;
    --neutral-400: #a3a3a3;
    --neutral-200: #e5e5e5;
    --neutral-100: #f5f5f5;
    --white:       #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--neutral-900); }
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--neutral-600);
    max-width: 520px;
    margin: 0 auto;
}
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--emerald-700);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(4,120,87,0.3);
}
.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(4,120,87,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--neutral-700);
    border: 1.5px solid var(--neutral-200);
}
.btn-outline:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-700);
}
.btn-small { padding: 9px 20px; font-size: 0.85rem; }

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,250,245,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neutral-900);
}
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--emerald-700);
    border-radius: var(--radius-sm);
    color: var(--white);
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}
.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: var(--transition);
    position: relative;
}
.main-nav a:not(.btn):hover { color: var(--emerald-700); }
.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-600);
    transition: var(--transition);
}
.main-nav a:not(.btn):hover::after { width: 100%; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.mobile-menu-btn span {
    display: block;
    height: 2px;
    background: var(--neutral-700);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream-50);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0 80px;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
}
.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--neutral-900);
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-700);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--neutral-500);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--neutral-200);
}

/* Hero Images */
.hero-image {
    position: relative;
    height: 640px;
}
.hero-img-main {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-img-float {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream-50);
}
.hero-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(4,120,87,0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(4,120,87,0.04) 0%, transparent 40%);
    pointer-events: none;
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-images { position: relative; }
.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.about-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.about-content .section-title { margin-bottom: 20px; }
.about-content p {
    color: var(--neutral-600);
    margin-bottom: 16px;
    line-height: 1.75;
}
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
}
.feature-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--neutral-900);
    margin-bottom: 2px;
}
.feature-item span {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

/* ============================================
   Menu
   ============================================ */
.menu {
    padding: 100px 0;
    background: var(--cream-50);
}
.section-header { margin-bottom: 48px; }
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.menu-tab {
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-600);
    background: var(--white);
    border: 1.5px solid var(--neutral-200);
    transition: var(--transition);
}
.menu-tab:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
.menu-tab.active {
    background: var(--emerald-700);
    color: var(--white);
    border-color: var(--emerald-700);
}
.menu-content { position: relative; }
.menu-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.menu-panel.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.menu-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--cream-200);
    transition: var(--transition);
}
.menu-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.menu-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
    margin-bottom: 16px;
}
.menu-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 8px;
}
.menu-card p {
    font-size: 0.875rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

/* ============================================
   Ambiance
   ============================================ */
.ambiance {
    padding: 100px 0;
    background: var(--white);
}
.ambiance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.ambiance-content .section-title { margin-bottom: 20px; }
.ambiance-content p {
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 28px;
}
.ambiance-list { display: flex; flex-direction: column; gap: 14px; }
.ambiance-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--neutral-700);
    font-weight: 500;
}
.ambiance-list svg { color: var(--emerald-600); flex-shrink: 0; }
.ambiance-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 100%;
}
.gallery-img { border-radius: var(--radius-md); overflow: hidden; }
.gallery-img.large { grid-row: 1 / 3; }
.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-img:hover img { transform: scale(1.03); }

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
    padding: 100px 0;
    background: var(--emerald-900);
    color: var(--white);
}
.testimonials .section-eyebrow { color: var(--emerald-400); }
.testimonials .section-title { color: var(--white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.testimonial-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #fbbf24;
}
.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}
.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald-300);
}

/* ============================================
   Visit
   ============================================ */
.visit {
    padding: 100px 0;
    background: var(--cream-50);
}
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}
.visit-info { display: flex; flex-direction: column; }
.visit-desc {
    color: var(--neutral-600);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}
.visit-details { display: flex; flex-direction: column; gap: 24px; flex: 1; }
.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
}
.visit-detail strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.visit-detail span, .visit-detail a {
    font-size: 1rem;
    color: var(--neutral-800);
    line-height: 1.6;
}
.visit-detail a:hover { color: var(--emerald-700); }
.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-lg);
}
.visit-map iframe { width: 100%; height: 100%; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--neutral-900);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}
.footer-links h4, .footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover { color: var(--emerald-400); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid { gap: 40px; }
    .hero-image { height: 480px; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid .testimonial-card:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,250,245,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--cream-200);
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }
    .main-nav a:not(.btn) { font-size: 1rem; }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 40px 0 60px;
        gap: 40px;
    }
    .hero-image {
        height: 360px;
        order: -1;
    }
    .hero-img-float { width: 140px; height: 140px; left: -10px; bottom: -20px; }
    .hero-stats { gap: 16px; }

    .about-grid,
    .ambiance-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-img-secondary { position: static; width: 100%; margin-top: 16px; }
    .about-img-main img { height: 300px; }

    .menu-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-grid .testimonial-card:last-child { max-width: 100%; }
    .ambiance-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-img.large { grid-row: auto; }
    .gallery-img img { height: 220px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-headline { font-size: 1.75rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
    .menu-tabs { gap: 6px; }
    .menu-tab { padding: 8px 16px; font-size: 0.8rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(24px); }
    .reveal.revealed { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .gallery-img img { transition: none; }
    .gallery-img:hover img { transform: none; }
}
