/* ============================================
   THE DIGGINS — Amador City Bakery & Grocery
   Bold Editorial · Burgundy + Blush
   ============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5A1F2A;
    --burgundy-light: #9B4D5B;
    --blush: #F5E6D3;
    --blush-light: #FBF5EE;
    --blush-warm: #E8CDB8;
    --cream: #FDF8F3;
    --charcoal: #1A1412;
    --charcoal-soft: #2D2520;
    --text-primary: #1A1412;
    --text-secondary: #5C4A42;
    --text-muted: #8A7568;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Typography ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--burgundy);
    font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--burgundy);
    color: var(--white);
    border: 2px solid var(--burgundy);
}

.btn--primary:hover {
    background-color: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.25);
}

.btn--ghost {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--blush-warm);
}

.btn--ghost:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
    transform: translateY(-2px);
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 243, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 4px 30px rgba(26, 20, 18, 0.06);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.nav__logo-mark {
    width: 36px;
    height: 36px;
    background: var(--burgundy);
    color: var(--blush);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.2s var(--ease-smooth);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--burgundy);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--burgundy);
}

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

.nav__link--cta {
    padding: 0.5rem 1.25rem;
    background: var(--burgundy);
    color: var(--white) !important;
    border-radius: 4px;
    font-weight: 500;
}

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

.nav__link--cta:hover {
    background: var(--burgundy-deep);
    color: var(--white) !important;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav__toggle-line {
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

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

.mobile-menu__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 0;
    display: block;
    transition: color 0.2s;
}

.mobile-menu__link:hover {
    color: var(--burgundy);
}

.mobile-menu__divider {
    width: 48px;
    height: 1.5px;
    background: var(--blush-warm);
    margin: 1.5rem auto;
}

.mobile-menu__info {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.mobile-menu__phone {
    font-size: 1rem;
    font-weight: 500;
    color: var(--burgundy);
    margin-top: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 1.75rem;
}

.hero__accent {
    color: var(--burgundy);
    font-style: italic;
    font-weight: 500;
}

.hero__sub {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

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

.hero__image {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(26, 20, 18, 0.12);
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.hero__image-wrapper:hover img {
    transform: scale(1.02);
}

.hero__image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 120px;
    height: 120px;
    background: var(--blush-warm);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--burgundy), transparent);
}

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

/* ---------- Marquee ---------- */
.marquee {
    background: var(--burgundy);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

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

.marquee__item {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--blush);
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.marquee__dot {
    color: var(--blush-warm);
    font-size: 0.625rem;
    opacity: 0.6;
}

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

/* ---------- About ---------- */
.about {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--cream);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about__body {
    font-size: clamp(1rem, 1.15vw, 1.0625rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.about__stats {
    display: flex;
    gap: 0;
    margin-top: 2.5rem;
    border-top: 1px solid var(--blush-warm);
}

.stat {
    flex: 1;
    padding: 1.5rem 0;
    text-align: center;
}

.stat--divider {
    border-left: 1px solid var(--blush-warm);
    border-right: 1px solid var(--blush-warm);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: 0.02em;
    margin-bottom: 0.375rem;
}

.stat__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(26, 20, 18, 0.08);
}

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

/* ---------- Products ---------- */
.products {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--blush-light);
}

.products__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto clamp(3rem, 5vw, 4rem);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 2px 12px rgba(26, 20, 18, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(26, 20, 18, 0.1);
}

.product-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.product-card__image {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.product-card--featured .product-card__image {
    aspect-ratio: auto;
    height: 100%;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card__tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
}

.product-card__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.product-card__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---------- Feature Strip ---------- */
.feature-strip {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--cream);
}

.feature-strip__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.feature-strip__headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.feature-strip__sub {
    font-size: clamp(1rem, 1.15vw, 1.0625rem);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 440px;
}

.feature-strip__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(26, 20, 18, 0.08);
}

.feature-strip__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Visit ---------- */
.visit {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--blush-light);
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: stretch;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

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

.visit__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--burgundy);
}

.visit__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.visit__detail-value {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.visit__detail-value a {
    color: var(--burgundy);
    transition: color 0.2s;
}

.visit__detail-value a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.visit__map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(26, 20, 18, 0.08);
    min-height: 400px;
}

/* ---------- Contact ---------- */
.contact {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--cream);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.contact__body {
    font-size: clamp(1rem, 1.15vw, 1.0625rem);
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 440px;
}

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

.contact__quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--burgundy);
    transition: all 0.2s;
}

.contact__quick-link:hover {
    color: var(--burgundy-deep);
    transform: translateX(4px);
}

.contact__quick-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Form */
.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--white);
    border: 1.5px solid var(--blush-warm);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-muted);
}

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

.form__success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: 4px;
    color: #2E7D32;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
}

.form__success.show {
    display: flex;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal);
    color: var(--blush);
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(3rem, 5vw, 4rem);
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

.footer__logo-mark {
    display: inline-block;
    width: 44px;
    height: 44px;
    background: var(--burgundy);
    color: var(--blush);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    line-height: 44px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.footer__logo-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(245, 230, 211, 0.5);
    line-height: 1.7;
}

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

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(245, 230, 211, 0.65);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--blush);
}

.footer__contact {
    font-size: 0.875rem;
    color: rgba(245, 230, 211, 0.5);
    line-height: 1.8;
}

.footer__phone {
    color: var(--blush);
    font-weight: 500;
    transition: color 0.2s;
}

.footer__phone:hover {
    color: var(--burgundy-light);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(2rem, 4vw, 3rem);
    font-size: 0.8125rem;
    color: rgba(245, 230, 211, 0.3);
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    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; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .nav__menu {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 5rem;
    }

    .hero__image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .hero__headline {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
    }

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

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

    .product-card--featured {
        grid-template-columns: 1fr;
    }

    .feature-strip__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature-strip__image {
        order: -1;
    }

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

    .visit__map {
        min-height: 300px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer__top > :nth-child(1) {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 639px) {
    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about__stats {
        flex-direction: column;
        gap: 0;
    }

    .stat--divider {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--blush-warm);
        border-bottom: 1px solid var(--blush-warm);
    }

    .stat {
        padding: 1rem 0;
    }

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

    .footer__top > :nth-child(1) {
        grid-column: auto;
    }
}
