/* ============================================
   Michael D's Cafe — Styles
   Palette: Emerald Green + Cream
   ============================================ */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-300: #6ee7b7;
    --cream-50: #fafaf5;
    --cream-100: #f5f5e9;
    --cream-200: #e8e8d4;
    --cream-300: #d4d4b8;
    --sand: #c9a96e;
    --sand-light: #e8d5a8;
    --charcoal: #1a1a1a;
    --text-dark: #1f2937;
    --text-mid: #4b5563;
    --text-light: #6b7280;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    color: var(--emerald-900);
}

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

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

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cream-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--emerald-800);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--emerald-700);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo-text {
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--emerald-700);
}

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

.nav-cta {
    background: var(--emerald-700) !important;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: background var(--transition), transform var(--transition) !important;
}

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

.nav-cta:hover {
    background: var(--emerald-800) !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--emerald-800);
    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 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--emerald-900);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
}

.geo-1 {
    width: 500px;
    height: 500px;
    background: var(--emerald-700);
    top: -120px;
    right: -100px;
    opacity: 0.4;
}

.geo-2 {
    width: 300px;
    height: 300px;
    background: var(--sand);
    bottom: -60px;
    left: 10%;
    opacity: 0.25;
}

.geo-diamond {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--emerald-500);
    top: 20%;
    left: 5%;
    opacity: 0.2;
    transform: rotate(45deg);
    border-radius: 4px;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid var(--sand-light);
    bottom: 25%;
    right: 8%;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.geo-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid var(--emerald-400);
    border-radius: 50%;
    top: 15%;
    right: 25%;
    opacity: 0.15;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-main-card {
    background: var(--cream-50);
    border-radius: var(--radius-xl);
    padding: 56px;
    box-shadow: var(--shadow-xl);
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    background: var(--emerald-100);
    color: var(--emerald-800);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title .accent {
    color: var(--emerald-700);
    display: block;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(4, 120, 87, 0.35);
}

.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(4, 120, 87, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-800);
    border: 2px solid var(--emerald-300);
}

.btn-outline:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-600);
}

.btn-white {
    background: var(--white);
    color: var(--emerald-800);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Stat Cards */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* ============================================
   HIGHLIGHTS
   ============================================ */
.highlights {
    background: var(--cream-50);
    padding: 80px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.highlight-item {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
}

.highlight-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-300);
}

.highlight-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--emerald-100), var(--emerald-200));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
}

.highlight-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--emerald-900);
}

.highlight-item p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--emerald-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   MENU
   ============================================ */
.menu {
    background: var(--cream-100);
    padding: 100px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.menu-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.05);
}

.menu-card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--emerald-700);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.menu-card-body {
    padding: 28px;
}

.menu-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--emerald-900);
}

.menu-card-body p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--cream-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent-block {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--emerald-600);
    border-radius: var(--radius-xl);
    z-index: 0;
    opacity: 0.2;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.about-feature svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* ============================================
   COMMUNITY / CTA
   ============================================ */
.community {
    padding: 100px 0;
    background: var(--cream-100);
}

.community-card {
    position: relative;
    background: var(--emerald-800);
    border-radius: var(--radius-xl);
    padding: 80px 64px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.community-pattern {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    padding: 40px;
    pointer-events: none;
    opacity: 0.08;
}

.pattern-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    align-self: start;
    justify-self: start;
    margin-top: 8px;
}

.community-content {
    position: relative;
    z-index: 1;
}

.community-content .section-tag {
    color: var(--emerald-300);
    margin-bottom: 16px;
}

.community-content .section-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.community-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 32px;
}

.community-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: 100px 0;
    background: var(--cream-50);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
}

.visit-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--emerald-300);
}

.visit-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.visit-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--emerald-600);
    margin-bottom: 6px;
}

.visit-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.visit-card a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald-700);
    margin-top: 4px;
    display: inline-block;
}

.visit-card a:hover {
    color: var(--emerald-900);
}

.link-secondary {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 360px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--emerald-900);
    padding: 64px 0 32px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-brand .logo-icon {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.3rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

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

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        max-width: 400px;
    }

    .hero-main-card {
        max-width: 100%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-wrap {
        max-width: 500px;
    }

    .community-card {
        grid-template-columns: 1fr;
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 245, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--cream-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-main-card {
        padding: 36px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .visit-map {
        min-height: 280px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .community-card {
        padding: 48px 28px;
    }

    .community-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-main-card {
        padding: 28px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
