/* ============================================
   The Den — Bakery & Grocery
   Bold Editorial Style
   Forest Green + Off-White
   ============================================ */

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

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

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1a4a36;
    color: #f5f0e8;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    font-size: 0.875rem;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}

/* ============================================
   Typography
   ============================================ */
.section-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #529255;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f2b1f;
    margin-bottom: 1.5rem;
}

.text-forest {
    color: #1a4a36;
}

.text-cream {
    color: #f5f0e8;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn--primary {
    background: #1a4a36;
    color: #f5f0e8;
    border: 2px solid #1a4a36;
}

.btn--primary:hover {
    background: #143a2a;
    border-color: #143a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 74, 54, 0.3);
}

.btn--ghost {
    background: transparent;
    color: #f5f0e8;
    border: 2px solid rgba(245, 240, 232, 0.4);
}

.btn--ghost:hover {
    border-color: #f5f0e8;
    background: rgba(245, 240, 232, 0.1);
    transform: translateY(-2px);
}

.btn--dark {
    background: #1a4a36;
    color: #f5f0e8;
    border: 2px solid #1a4a36;
}

.btn--dark:hover {
    background: #143a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 74, 54, 0.3);
}

.btn--full {
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 74, 54, 0.08);
    transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(250, 248, 244, 0.95);
    box-shadow: 0 1px 20px rgba(26, 74, 54, 0.08);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav__inner {
        padding: 1.5rem 3rem;
    }
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f2b1f;
}

.nav__logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1a4a36;
    color: #f5f0e8;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
}

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

.nav__links {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav__links {
        display: flex;
    }
}

.nav__link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #143a2a;
    letter-spacing: 0.01em;
    position: relative;
    transition: color 0.2s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #529255;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: #1a4a36;
    color: #f5f0e8;
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: #143a2a;
    color: #f5f0e8;
    transform: translateY(-1px);
}

.nav__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s;
    color: #0f2b1f;
}

.nav__burger:hover {
    background: rgba(26, 74, 54, 0.08);
}

@media (min-width: 768px) {
    .nav__burger {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 28, 21, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: #faf8f4;
    padding: 6rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu__inner {
    transform: translateX(0);
}

.mobile-menu__link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f2b1f;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(26, 74, 54, 0.08);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu__link:hover {
    color: #529255;
    padding-left: 0.5rem;
}

.mobile-menu__link--cta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a4a36;
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(26, 74, 54, 0.12);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: #0f2b1f;
    overflow: hidden;
    padding: 8rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 8rem 3rem 4rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 8rem 4rem 4rem;
    }
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(245, 240, 232, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(245, 240, 232, 0.5) 1px, transparent 1px);
    background-size: 48px 48px, 32px 32px;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero__eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7dad80;
    margin-bottom: 2rem;
}

.hero__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.0;
    color: #f5f0e8;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero__headline-line {
    display: block;
}

.hero__headline-line--accent {
    color: #d4a853;
    font-style: italic;
    font-weight: 600;
}

.hero__subheadline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.7);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Floating Stat Cards */
.hero__stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.stat-card {
    position: absolute;
    background: rgba(245, 240, 232, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 240, 232, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    color: #f5f0e8;
    animation: float 6s ease-in-out infinite;
}

.stat-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(212, 168, 83, 0.2);
    color: #d4a853;
    margin-bottom: 0.75rem;
}

.stat-card__label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 0.25rem;
}

.stat-card__value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #f5f0e8;
}

.stat-card--1 {
    top: 18%;
    right: 8%;
    animation-delay: 0s;
}

.stat-card--2 {
    top: 42%;
    right: 4%;
    animation-delay: -2s;
}

.stat-card--3 {
    bottom: 22%;
    right: 12%;
    animation-delay: -4s;
}

@media (max-width: 1023px) {
    .hero__stats {
        display: none;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
    background: #1a4a36;
    overflow: hidden;
    padding: 1rem 0;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.marquee__track {
    display: flex;
    gap: 2rem;
    align-items: center;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee__track span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(245, 240, 232, 0.5);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.marquee__dot {
    color: #d4a853 !important;
    font-size: 0.625rem !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 8rem 0;
    background: #faf8f4;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about__image-wrap {
    position: relative;
}

.about__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: 0 24px 64px rgba(15, 43, 31, 0.12);
}

.about__image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    background: #d4a853;
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
}

.about__content {
    max-width: 520px;
}

.about__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #143a2a;
    margin-bottom: 1rem;
}

.about__text--light {
    color: #529255;
}

.about__features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item__mark {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #d4a853;
    min-width: 28px;
    padding-top: 0.125rem;
}

.feature-item__label {
    font-size: 1rem;
    line-height: 1.6;
    color: #143a2a;
    font-weight: 500;
}

/* ============================================
   Products
   ============================================ */
.products {
    padding: 8rem 0;
    background: #f5f0e8;
}

.products__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: #faf8f4;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(15, 43, 31, 0.12);
}

.product-card__img-wrap {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__img-wrap img {
    transform: scale(1.05);
}

.product-card__body {
    padding: 1.5rem;
}

.product-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f2b1f;
    margin-bottom: 0.5rem;
}

.product-card__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #529255;
}

/* ============================================
   Story
   ============================================ */
.story {
    padding: 8rem 0;
    background: #0f2b1f;
    color: #f5f0e8;
}

.story__lead {
    max-width: 800px;
    margin-bottom: 4rem;
}

.story__lead .section-eyebrow {
    color: #7dad80;
}

.story__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #f5f0e8;
    margin-bottom: 0;
}

.story__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .story__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.story__text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.story__text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.75);
}

.story__text--light {
    color: rgba(245, 240, 232, 0.5) !important;
}

.story__image-stack {
    position: relative;
    min-height: 420px;
}

.story__image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.story__image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.story__image-float {
    position: absolute;
    bottom: -2rem;
    left: -1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border: 4px solid #1a4a36;
}

@media (min-width: 768px) {
    .story__image-float {
        bottom: -3rem;
        left: 1rem;
    }
}

.story__image-float img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Visit / Contact
   ============================================ */
.visit {
    padding: 8rem 0;
    background: #faf8f4;
}

.visit__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 768px) {
    .visit__inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.visit__info {
    max-width: 480px;
}

.visit__info .section-title {
    color: #0f2b1f;
}

.visit__details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.visit__detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visit__detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf2ec;
    color: #1a4a36;
    flex-shrink: 0;
}

.visit__detail-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #529255;
    margin-bottom: 0.25rem;
}

.visit__detail-value {
    font-size: 1rem;
    line-height: 1.6;
    color: #143a2a;
    font-weight: 500;
}

.visit__detail-value--link {
    color: #1a4a36;
    transition: color 0.2s;
}

.visit__detail-value--link:hover {
    color: #529255;
    text-decoration: underline;
}

/* Form */
.visit__form-wrap {
    background: #f5f0e8;
    border-radius: 20px;
    padding: 2.5rem;
}

.visit__form-header {
    margin-bottom: 2rem;
}

.visit__form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f2b1f;
    margin-bottom: 0.5rem;
}

.visit__form-subtitle {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #529255;
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__label {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #143a2a;
    margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: #0f2b1f;
    background: #faf8f4;
    border: 2px solid #e0d4be;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: #c4b89a;
}

.form__input:focus,
.form__textarea:focus {
    border-color: #529255;
    box-shadow: 0 0 0 3px rgba(82, 146, 85, 0.15);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #eaf2ec;
    border-radius: 12px;
    color: #1a4a36;
    font-size: 0.9375rem;
    font-weight: 500;
}

.form__success svg {
    color: #529255;
    flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #0a1c15;
    color: #f5f0e8;
    padding: 4rem 0 2rem;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

@media (min-width: 768px) {
    .footer__top {
        grid-template-columns: 2fr 1fr 1fr;
        align-items: start;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1a4a36;
    color: #f5f0e8;
    border-radius: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer__logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f0e8;
}

.footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.5);
    max-width: 280px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    font-size: 0.9375rem;
    color: rgba(245, 240, 232, 0.6);
    transition: color 0.2s, padding-left 0.2s;
}

.footer__link:hover {
    color: #d4a853;
    padding-left: 0.5rem;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__phone {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #f5f0e8;
    transition: color 0.2s;
}

.footer__phone:hover {
    color: #d4a853;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 240, 232, 0.35);
}

.footer__location {
    color: rgba(245, 240, 232, 0.25) !important;
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* No-reduce-motion: content always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
