/* ===================================
   FONKS COFFEE HOUSE — STYLESHEET
   =================================== */

/* --- CSS Variables --- */
:root {
    --color-emerald-50: #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-200: #a7f3d0;
    --color-emerald-300: #6ee7b7;
    --color-emerald-400: #34d399;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    --color-emerald-700: #047857;
    --color-emerald-800: #065f46;
    --color-emerald-900: #064e3b;
    
    --color-cream-50: #fefdf8;
    --color-cream-100: #fdf8e8;
    --color-cream-200: #faf0d0;
    --color-cream-300: #f5e6b8;
    --color-cream-400: #f0d89a;
    --color-cream-500: #e8c47a;
    
    --color-dark: #1a1a1a;
    --color-gray-900: #1f2937;
    --color-gray-800: #374151;
    --color-gray-700: #4b5563;
    --color-gray-600: #6b7280;
    --color-gray-500: #9ca3af;
    --color-gray-400: #d1d5db;
    --color-gray-300: #e5e7eb;
    --color-gray-200: #f3f4f6;
    --color-gray-100: #f9fafb;
    --color-white: #ffffff;
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-800);
    background-color: var(--color-cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-emerald-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
    color: var(--color-gray-700);
}

/* --- Section Tag --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-emerald-600);
    background: var(--color-emerald-50);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

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

.section-header {
    margin-bottom: 56px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 540px;
    margin: 12px auto 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-emerald-700);
    border-color: var(--color-emerald-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-emerald-800);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    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.3rem;
    font-weight: 500;
    color: var(--color-emerald-800);
}

.logo-icon {
    font-size: 1.6rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-700);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-emerald-700);
    background: var(--color-emerald-50);
}

.btn-nav {
    background: var(--color-emerald-600);
    color: var(--color-white) !important;
    margin-left: 8px;
}

.btn-nav:hover {
    background: var(--color-emerald-700) !important;
    color: var(--color-white) !important;
}

/* Mobile menu button */
.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: 2.5px;
    background: var(--color-emerald-800);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.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;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.82) 0%,
        rgba(4, 120, 87, 0.72) 50%,
        rgba(5, 150, 105, 0.62) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: center;
    padding-top: 72px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-emerald-200);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-text h1 {
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-text p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-white);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 1;
}

.scroll-indicator span {
    width: 4px;
    height: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
}

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

.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-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream-50);
}

.about-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--color-emerald-600);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-experience .exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
}

.about-experience .exp-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content > p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-gray-800);
}

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

/* --- Menu --- */
.menu {
    padding: 100px 0;
    background: var(--color-white);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.category-btn {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-emerald-200);
    background: transparent;
    color: var(--color-emerald-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
    background: var(--color-emerald-600);
    border-color: var(--color-emerald-600);
    color: var(--color-white);
}

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

.menu-card {
    background: var(--color-cream-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.menu-card-img {
    height: 200px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.menu-card-content {
    padding: 20px 24px 24px;
}

.menu-card-content h3 {
    margin-bottom: 8px;
    color: var(--color-emerald-900);
}

.menu-card-content p {
    font-size: 0.92rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.menu-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    background: var(--color-emerald-100);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* --- Community --- */
.community {
    padding: 100px 0;
    background: var(--color-emerald-800);
}

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

.community-content .section-tag {
    background: rgba(255,255,255,0.12);
    color: var(--color-emerald-200);
}

.community-content h2 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.community-content > p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.community-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

.community-list li svg {
    color: var(--color-emerald-400);
    flex-shrink: 0;
}

.comm-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 460px;
}

.comm-img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.comm-img-grid img:nth-child(1) {
    grid-column: 1 / -1;
    height: 240px;
}

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

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

.visit-info h2 {
    margin-bottom: 12px;
}

.visit-intro {
    font-size: 1.05rem;
    margin-bottom: 36px;
    color: var(--color-gray-600);
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.info-icon {
    width: 52px;
    height: 52px;
    background: var(--color-emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-700);
    flex-shrink: 0;
}

.info-card h4 {
    color: var(--color-emerald-800);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.info-card a {
    color: var(--color-emerald-600);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.info-card a:hover {
    color: var(--color-emerald-800);
}

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

/* --- Footer --- */
.footer {
    background: var(--color-emerald-900);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.footer-contact svg {
    color: var(--color-emerald-400);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255,255,255,0.65);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-emerald-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate][data-delay="100"] { transition-delay: 0.1s; }
[data-animate][data-delay="150"] { transition-delay: 0.15s; }
[data-animate][data-delay="200"] { transition-delay: 0.2s; }
[data-animate][data-delay="300"] { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-stats {
        flex-direction: row;
    }
    
    .stat-card {
        flex: 1;
    }
    
    .about-grid,
    .community-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-img-secondary {
        right: 20px;
        bottom: -30px;
        width: 160px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--color-emerald-100);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .btn-nav {
        margin-left: 0;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }
    
    .hero-content {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        justify-content: center;
    }
    
    .about-img-secondary {
        display: none;
    }
    
    .about-experience {
        top: 16px;
        left: 16px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .comm-img-grid {
        height: 320px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .about, .menu, .community, .visit {
        padding: 72px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    [data-animate] {
        opacity: 1;
        transform: none;
    }
    
    .scroll-indicator span {
        animation: none;
    }
}
