/* ============================================
   Cookee's Café — Custom Styles
   ============================================ */

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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2a2a2a;
    --charcoal-mid: #3a3a3a;
    --coral: #E8634F;
    --coral-dark: #d1503d;
    --coral-light: #f08070;
    --cream: #faf6f3;
    --cream-dark: #f0ebe5;
    --white: #ffffff;
    --text-light: #f5f0ec;
    --text-dark: #1a1a1a;
    --text-muted: #8a8580;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --shadow-sm: 0 2px 8px rgba(26,26,26,0.08);
    --shadow-md: 0 8px 30px rgba(26,26,26,0.12);
    --shadow-lg: 0 16px 50px rgba(26,26,26,0.16);
    --shadow-coral: 0 8px 30px rgba(232,99,79,0.35);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

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

/* ── Typography ── */
h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

.text-coral { color: var(--coral); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--charcoal);
    margin-bottom: 20px;
}

.section-dark .section-title { color: var(--white); }
.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

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

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-coral {
    background: var(--coral);
    color: var(--white);
    box-shadow: var(--shadow-coral);
}
.btn-coral:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(232,99,79,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}

.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

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

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

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

.logo-icon { flex-shrink: 0; }

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

.nav-links a {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    background: var(--charcoal);
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232,99,79,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,99,79,0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,99,79,0.15);
    color: var(--coral);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    border: 1px solid rgba(232,99,79,0.25);
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

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

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

.hero-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 640px;
}

.hero-img-main {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    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: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--charcoal);
}
.hero-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge-float {
    position: absolute;
    top: 30px;
    right: -20px;
    background: var(--coral);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-coral);
    text-align: center;
    line-height: 1.3;
}
.badge-num {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}
.badge-year {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
}
.badge-sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.85;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ── About ── */
.section-dark {
    background: var(--charcoal);
    padding: 100px 0;
}
.section-light {
    background: var(--cream);
    padding: 100px 0;
}

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

.about-images {
    position: relative;
    height: 560px;
}

.about-img-lg {
    width: 75%;
    height: 480px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-lg img { width: 100%; height: 100%; object-fit: cover; }

.about-img-sm {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--charcoal);
}
.about-img-sm img { width: 100%; height: 100%; object-fit: cover; }

.about-content { max-width: 500px; }

.about-body {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

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

.feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feat-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(232,99,79,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}
.feat p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Menu ── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.menu-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.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-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--coral);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.menu-card-body {
    padding: 24px;
}
.menu-card-body h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 10px;
}
.menu-card-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── Groceries ── */
.groceries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.groceries-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0 36px;
}

.groceries-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.groceries-img-stack {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.groceries-img-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.groceries-stat {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--coral);
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 5/4;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── Visit ── */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--charcoal-light);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    text-decoration: none;
}
.contact-card:hover {
    background: var(--charcoal-mid);
    border-color: rgba(232,99,79,0.3);
    transform: translateX(4px);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(232,99,79,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.contact-card span {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

/* ── Footer ── */
.site-footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0 0;
}

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

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--coral); }

.footer-address {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
}
.footer-bottom p {
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}

/* ── Scroll Reveal ── */
.reveal-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid { gap: 40px; }
    .hero-visual { height: 500px; }
    .about-grid,
    .groceries-grid,
    .visit-grid { gap: 50px; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(26,26,26,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }
    .nav-links a { padding: 14px 20px; width: 100%; }

    .hero { padding-top: 100px; }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual {
        height: 400px;
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    .hero-img-float { display: none; }
    .hero-badge-float { right: 0; }

    .about-grid,
    .groceries-grid,
    .visit-grid {
        grid-template-columns: 1fr;
    }
    .about-images { height: 400px; }
    .about-img-lg { height: 340px; }
    .about-img-sm { height: 200px; }

    .menu-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-headline { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; justify-content: center; }
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 320px; }
}
