/* ===== Nibor's Coffee — Stylesheet ===== */

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

:root {
    --green-900: #0B1F15;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --gold: #D4A843;
    --gold-light: #E8C96A;
    --cream: #FAF8F5;
    --cream-dark: #F0EDE8;
    --off-white: #FAF8F5;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #3D3D3D;
    --text-light: #6B6B6B;
    --text-inverse: #FAF8F5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.15; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-gold {
    background: var(--gold);
    color: var(--green-900);
    border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-outline-light {
    background: transparent;
    color: var(--green-800);
    border-color: var(--green-800);
}
.btn-outline-light:hover { background: var(--green-800); color: var(--white); }

.btn-small { padding: 10px 20px; font-size: 0.875rem; }

/* --- Section Tags & Titles --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

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

.section-sub {
    font-size: 1.063rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    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;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.188rem;
    color: var(--green-800);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--green-700); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--green-800);
}

/* --- Mobile Overlay --- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--green-900);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.mobile-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--cream);
    transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn-gold { font-size: 1rem; padding: 14px 32px; margin-top: 8px; }

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 25% 25%, var(--white) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, var(--white) 1px, transparent 1px);
    background-size: 48px 48px, 32px 32px;
}

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

.hero-content { color: var(--white); }

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}
.hero-headline br { display: none; }

.hero-sub {
    font-size: 1.125rem;
    color: rgba(250, 248, 245, 0.75);
    max-width: 460px;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.375rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 0.813rem; color: rgba(250,248,245,0.55); margin-top: 2px; }

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(250,248,245,0.2);
}

.hero-image { position: relative; }

.hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 6/7;
}
.hero-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.hero-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(250,248,245,0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-scroll svg { animation: bounce 2s infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--off-white);
}

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

.about-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-img-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 5/6;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }

.about-img-side {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-top: 40px;
}
.about-img-side img { width: 100%; height: 100%; object-fit: cover; }

.about-accent-block {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-800);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}
.about-accent-block .accent-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.about-accent-block .accent-label {
    font-size: 0.813rem;
    opacity: 0.7;
    margin-top: 4px;
}

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

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

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

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

.feature-item svg { flex-shrink: 0; margin-top: 2px; }

.feature-item strong {
    display: block;
    font-size: 1rem;
    color: var(--green-800);
    margin-bottom: 2px;
}

.feature-item span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* --- Menu --- */
.menu {
    padding: 100px 0 120px;
    background: var(--cream-dark);
}

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

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

.menu-category {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.menu-category:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cream-dark);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--green-800);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.menu-item-name {
    font-weight: 600;
    font-size: 0.938rem;
    color: var(--text-dark);
}

.menu-item-desc {
    font-size: 0.813rem;
    color: var(--text-light);
    text-align: right;
    flex-shrink: 0;
}

.menu-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- Gallery --- */
.gallery {
    padding: 100px 0 120px;
    background: var(--off-white);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,31,21,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px 24px;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    color: var(--white);
}

.gallery-item--tall { grid-column: 1 / 5; grid-row: 1 / 3; }
.gallery-item--wide { grid-column: 8 / 13; grid-row: 2 / 3; }
.gallery-item:nth-child(2) { grid-column: 5 / 8; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 5 / 8; grid-row: 2 / 3; }
.gallery-item:nth-child(4) { grid-column: 8 / 13; grid-row: 1 / 2; }

/* --- Visit --- */
.visit {
    padding: 100px 0 120px;
    background: var(--green-800);
    color: var(--white);
}

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

.visit .section-title { color: var(--white); }
.visit .section-tag { color: var(--gold); }
.visit-text {
    color: rgba(250,248,245,0.7);
    font-size: 1.063rem;
    line-height: 1.75;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 16px;
    align-items: start;
}

.contact-row dt {
    display: flex;
    align-items: center;
    gap: 0;
}

.contact-row dd {
    font-size: 1rem;
    color: rgba(250,248,245,0.85);
    line-height: 1.6;
}
.contact-row dd a {
    color: var(--gold);
    transition: color var(--transition);
}
.contact-row dd a:hover { color: var(--gold-light); }

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    background: var(--green-700);
}

.map-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--green-700), var(--green-800));
    border-radius: var(--radius-lg);
}
.map-placeholder svg { opacity: 0.8; }
.map-placeholder p {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
}
.map-placeholder span {
    font-size: 0.938rem;
    color: rgba(250,248,245,0.6);
    margin-bottom: 20px;
}

/* --- CTA Band --- */
.cta-band {
    padding: 100px 0;
    background: var(--cream-dark);
    text-align: center;
}

.cta-headline {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: var(--green-800);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.063rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--green-900);
    color: var(--white);
    padding: 80px 0 0;
}

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

.logo-light .logo-text { color: var(--white); }

.footer-desc {
    font-size: 0.938rem;
    color: rgba(250,248,245,0.6);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-nav a {
    font-size: 0.938rem;
    color: rgba(250,248,245,0.65);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-contact p {
    font-size: 0.938rem;
    color: rgba(250,248,245,0.65);
    line-height: 1.7;
    margin-bottom: 4px;
}
.footer-contact a { color: var(--gold); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(250,248,245,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(250,248,245,0.4);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid { gap: 40px; }
    .about-grid { gap: 48px; }
    .menu-grid { gap: 20px; }
    .visit-grid { gap: 48px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }

    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 0 40px; }
    .hero-headline { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .hero-headline br { display: none; }
    .hero-image { order: -1; }
    .hero-img-wrapper { aspect-ratio: 4/3; }
    .hero-accent { width: 100px; height: 100px; bottom: -12px; right: -12px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
    .hero-scroll { display: none; }

    .about { padding: 80px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-images { max-width: 480px; }

    .menu { padding: 80px 0; }
    .menu-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

    .gallery { padding: 80px 0; }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item,
    .gallery-item--tall,
    .gallery-item--wide {
        grid-column: auto;
        grid-row: auto;
    }
    .gallery-item { aspect-ratio: 4/3; }
    .gallery-overlay { opacity: 1; }

    .visit { padding: 80px 0; }
    .visit-grid { grid-template-columns: 1fr; gap: 48px; }
    .visit-map { min-height: 300px; }
    .map-placeholder { min-height: 300px; }

    .cta-band { padding: 80px 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
    .about-accent-block { position: relative; bottom: auto; left: auto; transform: none; margin-top: 16px; }
    .about-images { grid-template-columns: 1fr; }
    .about-img-side { margin-top: 0; }
}
