/* ============================================
   NOURISH — Artisan Bakery & Grocery
   Vibrant Modern · Teal + Slate Grey
   ============================================ */

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

:root {
    --teal-50: #F0FDFA;
    --teal-100: #CCFBF1;
    --teal-200: #99F6E4;
    --teal-300: #5EEAD4;
    --teal-400: #2DD4BF;
    --teal-500: #14B8A6;
    --teal-600: #0D9488;
    --teal-700: #0F766E;
    --teal-800: #115E59;
    --teal-900: #134E4A;

    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;

    --accent: #F59E0B;
    --accent-light: #FEF3C7;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.14);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background: #FFFFFF;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--teal-600);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

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

/* ── Typography ── */
.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--slate-600);
    max-width: 560px;
    line-height: 1.7;
}

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

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

.section-header.center .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-600);
    color: #FFFFFF;
    border-color: var(--teal-600);
}

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

.btn-outline {
    background: transparent;
    color: var(--slate-700);
    border-color: var(--slate-300);
}

.btn-outline:hover {
    border-color: var(--teal-600);
    color: var(--teal-600);
    transform: translateY(-2px);
}

.btn-white {
    background: #FFFFFF;
    color: var(--teal-700);
    border-color: #FFFFFF;
}

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

.btn-ghost {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease;
}

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

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--slate-900);
}

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

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

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--teal-600);
    background: var(--teal-50);
}

.nav-cta {
    background: var(--teal-600) !important;
    color: #FFFFFF !important;
    border-radius: var(--radius-sm) !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--teal-700) !important;
    color: #FFFFFF !important;
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--teal-50) 0%, #FFFFFF 50%, var(--slate-50) 100%);
    padding: 100px 24px 60px;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-shape--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--teal-100) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    opacity: 0.7;
}

.hero-bg-shape--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--teal-200) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    opacity: 0.5;
}

.hero-bg-shape--3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    border-radius: var(--radius-xl);
    top: 20%;
    right: 8%;
    opacity: 0.12;
    transform: rotate(25deg);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-main-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-100);
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-700);
    background: var(--teal-100);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--slate-900);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card--teal {
    border-left: 4px solid var(--teal-400);
}

.stat-card--slate {
    border-left: 4px solid var(--slate-400);
}

.stat-card--accent {
    border-left: 4px solid var(--accent);
}

.stat-card--teal-dark {
    border-left: 4px solid var(--teal-700);
    background: var(--teal-800);
    border-color: transparent;
}

.stat-card--teal-dark .stat-number {
    color: var(--teal-200);
}

.stat-card--teal-dark .stat-label {
    color: var(--teal-300);
}

.stat-card--teal-dark .stat-icon {
    color: var(--teal-300);
}

.stat-icon {
    color: var(--teal-600);
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--slate-500);
    line-height: 1.3;
}

/* ── Sections ── */
.section {
    padding: 96px 24px;
}

/* ── Products ── */
.products {
    background: var(--slate-50);
}

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

.product-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card-accent {
    height: 6px;
    width: 100%;
}

.product-card-accent--1 { background: var(--teal-500); }
.product-card-accent--2 { background: var(--accent); }
.product-card-accent--3 { background: var(--slate-500); }
.product-card-accent--4 { background: var(--teal-700); }

.product-card-body {
    padding: 32px;
}

.product-icon {
    margin-bottom: 20px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ── About ── */
.about {
    background: #FFFFFF;
}

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

.about-visual {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-img-float {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid #FFFFFF;
}

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

.about-geo {
    position: absolute;
    top: -20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--teal-600);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.about-geo-shape {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}

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

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

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

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
}

.value-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-500);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Gallery ── */
.gallery {
    background: var(--slate-800);
    padding: 96px 24px;
}

.gallery .section-tag {
    background: rgba(14, 165, 147, 0.2);
    border-color: rgba(14, 165, 147, 0.4);
    color: var(--teal-300);
}

.gallery .section-title {
    color: #FFFFFF;
}

.gallery .section-header {
    text-align: center;
}

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

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item--wide {
    grid-column: span 8;
    height: 320px;
}

.gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
    height: 240px;
}

.gallery-item--tall {
    grid-column: span 4;
    grid-row: span 2;
    height: 100%;
    min-height: 500px;
}

/* ── Visit ── */
.visit {
    background: var(--teal-50);
}

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

.visit-sub {
    font-size: 1.05rem;
    color: var(--slate-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--slate-200);
}

.visit-detail:first-child {
    padding-top: 0;
}

.visit-detail:last-child {
    border-bottom: none;
}

.visit-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-600);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
    margin-bottom: 4px;
}

.visit-detail span,
.visit-detail a {
    font-size: 1rem;
    color: var(--slate-800);
    font-weight: 500;
}

.visit-detail a:hover {
    color: var(--teal-600);
}

.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.map-link {
    display: block;
    position: relative;
}

.map-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
}

.map-link:hover .map-overlay {
    background: rgba(13, 148, 136, 0.7);
}

/* ── CTA ── */
.cta {
    background: #FFFFFF;
    padding: 96px 24px;
}

.cta-card {
    position: relative;
    background: var(--teal-700);
    border-radius: var(--radius-xl);
    padding: 72px 56px;
    overflow: hidden;
    text-align: center;
}

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

.cta-shape {
    position: absolute;
    border-radius: 50%;
}

.cta-shape--1 {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    top: -80px;
    left: -80px;
}

.cta-shape--2 {
    width: 200px;
    height: 200px;
    background: rgba(245, 158, 11, 0.15);
    bottom: -60px;
    right: 10%;
}

.cta-shape--3 {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.06);
    top: 20%;
    right: -30px;
    border-radius: var(--radius-lg);
    transform: rotate(30deg);
}

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

.cta-content .section-tag {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: var(--teal-100);
}

.cta-title {
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--teal-100);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ── Footer ── */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 64px 24px 32px;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-300);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: var(--slate-400);
    padding: 5px 0;
    transition: color 0.2s;
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    display: block;
    font-size: 0.9rem;
    color: var(--teal-400);
    padding: 4px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.reveal-visible {
        opacity: 1;
        transform: none;
    }
}

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

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

    .about-grid {
        gap: 48px;
    }

    .gallery-item--wide {
        grid-column: span 12;
    }

    .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
        grid-column: span 6;
    }

    .gallery-item--tall {
        grid-column: span 6;
        grid-row: span 1;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

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

    .nav-links a {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-main-card {
        padding: 32px 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

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

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

    .about-visual {
        order: -1;
    }

    .about-img-float {
        right: -8px;
        bottom: -20px;
    }

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

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

    .gallery-item--wide,
    .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall),
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 240px;
    }

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

    .cta-card {
        padding: 48px 24px;
    }

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

    .section {
        padding: 72px 20px;
    }
}

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

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

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
