/* ========================================
   Prime Dine — Lawrenceville Bakery & Grocer
   Warm · Friendly · Terracotta + Sand
======================================== */

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

:root {
    --terracotta: #c4694a;
    --terracotta-dark: #a8523a;
    --terracotta-light: #e8a88a;
    --sand: #f5f0eb;
    --sand-dark: #e8e0d8;
    --sand-warm: #ede4da;
    --cream: #faf7f4;
    --brown-dark: #3d2b1f;
    --brown-mid: #6b4c3b;
    --brown-light: #8b6f5e;
    --white: #ffffff;
    --text-dark: #2a1f1a;
    --text-mid: #5c4a3e;
    --text-light: #8b7768;
    --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.08);
    --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ── Skip Link ────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--terracotta);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top var(--transition);
}
.skip-link:focus {
    top: 16px;
}

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

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}
.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}
.btn-ghost:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ── Navigation ───────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 244, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 105, 74, 0.08);
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(250, 247, 244, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brown-dark);
}
.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
}
.nav-logo-text {
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 15px;
    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(--terracotta);
    border-radius: 1px;
    transition: width var(--transition);
}
.nav-links a:not(.btn):hover {
    color: var(--terracotta);
}
.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}
.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2px;
    background: var(--brown-dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--brown-dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 105, 74, 0.1);
    color: var(--terracotta);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    color: var(--brown-dark);
    margin-bottom: 24px;
    font-weight: 400;
}
.hero-accent {
    color: var(--terracotta);
    font-style: italic;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-mid);
    max-width: 480px;
    margin-bottom: 32px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--terracotta);
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--sand-dark);
}

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

.hero-img-main {
    width: 100%;
    height: 680px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-float {
    position: absolute;
    bottom: -24px;
    left: -48px;
    width: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}
.hero-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-accent-shape {
    position: absolute;
    top: -32px;
    right: -32px;
    width: 120px;
    height: 120px;
    background: var(--terracotta);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

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

/* ── Section Shared ───────────────────── */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    color: var(--brown-dark);
    line-height: 1.15;
    margin-bottom: 16px;
    font-weight: 400;
}
.section-desc {
    font-size: 17px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ── Products ─────────────────────────── */
.products {
    padding: 100px 0;
    background: var(--sand);
}

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

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

.product-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--terracotta);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-info {
    padding: 24px 28px 28px;
}
.product-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brown-dark);
    margin-bottom: 8px;
    font-weight: 400;
}
.product-info p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ── About ────────────────────────────── */
.about {
    padding: 100px 0;
    background: var(--cream);
}

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

.about-img-stack {
    position: relative;
    height: 480px;
}
.about-img-lg {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-lg);
    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%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}
.about-img-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent-box {
    position: absolute;
    top: 24px;
    right: -16px;
    background: var(--terracotta);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.accent-box-number {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.accent-box-label {
    display: block;
    font-size: 12px;
    opacity: 0.85;
    font-weight: 500;
}

.about-content .section-tag {
    margin-bottom: 12px;
}
.about-content .section-title {
    margin-bottom: 24px;
}
.about-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(196, 105, 74, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
}
.about-feature strong {
    display: block;
    font-size: 15px;
    color: var(--brown-dark);
    margin-bottom: 2px;
}
.about-feature span {
    font-size: 14px;
    color: var(--text-light);
}

/* ── Story / Quote ────────────────────── */
.story {
    padding: 100px 0;
    background: var(--brown-dark);
    position: relative;
    overflow: hidden;
}

.story-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle, var(--white) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.story-quote {
    position: relative;
}
.quote-mark {
    color: var(--terracotta-light);
    margin-bottom: 24px;
}
.story-quote p {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.5;
    color: var(--sand);
    font-style: italic;
    font-weight: 400;
}

.story-divider {
    width: 60px;
    height: 2px;
    background: var(--terracotta);
    margin: 32px auto;
    border-radius: 1px;
}

.story-attr {
    font-size: 15px;
    color: var(--terracotta-light);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ── Visit ────────────────────────────── */
.visit {
    padding: 100px 0;
    background: var(--sand);
}

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

.visit-info .section-tag {
    margin-bottom: 12px;
}
.visit-info .section-title {
    margin-bottom: 16px;
}
.visit-desc {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 32px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}
.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.detail-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    box-shadow: var(--shadow-sm);
}
.visit-detail strong {
    display: block;
    font-size: 15px;
    color: var(--brown-dark);
    margin-bottom: 4px;
}
.visit-detail p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}
.visit-detail a {
    color: var(--terracotta);
    font-weight: 600;
    transition: color var(--transition);
}
.visit-detail a:hover {
    color: var(--terracotta-dark);
}

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

.visit-map {
    height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.map-placeholder {
    width: 100%;
    height: 100%;
}
.map-placeholder iframe {
    border-radius: var(--radius-md);
}

/* ── Footer ───────────────────────────── */
.footer {
    background: var(--brown-dark);
    color: var(--sand);
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--sand);
    margin-bottom: 16px;
}
.footer-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
}

.footer-brand p {
    font-size: 15px;
    color: var(--sand-dark);
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 15px;
    color: var(--sand-dark);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 15px;
    color: var(--sand-dark);
    line-height: 1.7;
    margin-bottom: 4px;
}
.footer-contact a {
    color: var(--terracotta-light);
    font-weight: 600;
    transition: color var(--transition);
}
.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 235, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--sand-dark);
    opacity: 0.7;
}

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

/* ── Responsive ───────────────────────── */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 32px;
    }
    .hero-visual {
        height: 560px;
    }
    .hero-img-main {
        height: 560px;
    }
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 247, 244, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(196, 105, 74, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-toggle {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 24px;
        padding-bottom: 100px;
    }
    .hero-visual {
        order: -1;
        height: 400px;
    }
    .hero-img-main {
        height: 400px;
    }
    .hero-img-float {
        width: 180px;
        left: -16px;
        bottom: -16px;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    .hero-stat-divider {
        display: none;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-img-stack {
        height: 360px;
    }
    .about-img-lg {
        height: 300px;
    }
    .about-accent-box {
        right: 12px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }
    .visit-map {
        height: 320px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        justify-content: center;
        width: 100%;
    }
    .product-img {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
