/* ============================================
   LCB Tehachapi — Editorial Marketing Site
   Palette: Terracotta + Sand
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2C1810;
    background-color: #FDF6EE;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #B85C38;
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    font-weight: 500;
}

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

/* ── Custom Properties ── */
:root {
    --color-terracotta: #B85C38;
    --color-terracotta-deep: #9A4B2C;
    --color-terracotta-light: #D4845E;
    --color-sand: #FDF6EE;
    --color-sand-dark: #F5E6D3;
    --color-sand-mid: #E8D5C0;
    --color-clay: #C47A56;
    --color-warm-black: #1A0F0A;
    --color-warm-gray: #4A3728;
    --color-warm-gray-light: #7A6355;
    --color-cream: #FFF9F3;
    --color-white: #FFFFFF;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

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

    --transition-fast: 0.2s ease;
    --transition-med: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ── Typography ── */
.eyebrow, .section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-warm-black);
    margin-bottom: var(--space-lg);
}

.section-headline em {
    font-style: italic;
    color: var(--color-terracotta);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-terracotta-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 92, 56, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-warm-black);
    border: 1.5px solid var(--color-warm-black);
}

.btn-secondary:hover {
    background: var(--color-warm-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.btn-light:hover {
    background: var(--color-terracotta-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 92, 56, 0.3);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-terracotta);
}

.btn-white:hover {
    background: var(--color-sand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 246, 238, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(184, 92, 56, 0.1);
    transition: all var(--transition-med);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(44, 24, 16, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-mark {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-terracotta);
    letter-spacing: 0.04em;
}

.logo-wordmark {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-warm-black);
    letter-spacing: 0.02em;
}

.nav-list {
    display: none;
    align-items: center;
    gap: var(--space-lg);
}

@media (min-width: 900px) {
    .nav-list {
        display: flex;
    }
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-warm-gray);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-terracotta);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-terracotta);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-terracotta);
    color: var(--color-white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    margin-left: 0.5rem;
}

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

.nav-cta:hover {
    background: var(--color-terracotta-deep);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

/* ── Mobile Nav Toggle ── */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 110;
}

@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-warm-black);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform-origin: center;
}

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

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

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

/* ── Mobile Nav ── */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-sand);
    z-index: 100;
    padding: 100px var(--space-lg) var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-med);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.main-nav.open {
    transform: translateX(0);
}

.nav-list {
    flex-direction: column;
    gap: var(--space-md);
}

.nav-list .nav-link {
    font-size: 1.125rem;
    color: var(--color-warm-black);
}

.nav-list .nav-link::after {
    bottom: -2px;
}

.nav-list .nav-cta {
    margin-left: 0;
    margin-top: var(--space-sm);
    text-align: center;
    display: block;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 15, 10, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--color-sand);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding-bottom: var(--space-xl);
}

@media (min-width: 900px) {
    .hero-container {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-2xl);
        padding-bottom: 0;
    }
}

.hero-content {
    padding: var(--space-lg) 0;
}

.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--color-warm-black);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: var(--color-terracotta);
}

.hero-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-warm-gray);
    max-width: 520px;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Hero Image Stack */
.hero-image-stack {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 900px) {
    .hero-image-stack {
        grid-template-columns: 55% 45%;
        grid-template-rows: auto auto;
        gap: var(--space-md);
    }
}

.hero-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 24, 16, 0.12);
}

.hero-img--primary {
    grid-row: 1 / 3;
    aspect-ratio: 600/750;
}

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

.hero-img--secondary {
    aspect-ratio: 400/300;
    position: relative;
}

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

.hero-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(transparent, rgba(26, 15, 10, 0.7));
    color: var(--color-white);
    font-family: 'Playfair Display', serif;
    font-size: 0.875rem;
    font-style: italic;
    letter-spacing: 0.04em;
}

.hero-accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-terracotta), var(--color-terracotta-light), var(--color-sand-mid), var(--color-terracotta));
}

/* ── Intro ── */
.intro {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.intro-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .intro-container {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-2xl);
    }
}

.intro-text {
    max-width: 580px;
}

.intro-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-warm-black);
    margin-bottom: var(--space-lg);
}

.intro-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-md);
}

.intro-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 24, 16, 0.1);
    aspect-ratio: 560/420;
}

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

/* ── Divider Strip ── */
.divider-strip {
    background: var(--color-warm-black);
    padding: var(--space-md) 0;
    overflow: hidden;
}

.divider-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
}

.divider-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-sand-mid);
    white-space: nowrap;
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-terracotta);
    flex-shrink: 0;
}

/* ── Products ── */
.products {
    padding: var(--space-3xl) 0;
    background: var(--color-sand);
}

.section-header {
    max-width: 600px;
    margin-bottom: var(--space-2xl);
}

.section-header .section-eyebrow {
    margin-bottom: var(--space-sm);
}

.section-header .section-headline {
    margin-bottom: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

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

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

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.06);
    transition: all var(--transition-med);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(44, 24, 16, 0.12);
}

.product-card-img {
    aspect-ratio: 400/300;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card-body {
    padding: var(--space-md);
}

.product-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-warm-black);
    margin-bottom: var(--space-xs);
}

.product-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-warm-gray-light);
}

/* ── Bakery Feature ── */
.bakery-feature {
    padding: var(--space-3xl) 0;
    background: var(--color-warm-black);
    position: relative;
    overflow: hidden;
}

.bakery-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 900px) {
    .bakery-layout {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-2xl);
    }
}

.bakery-image-group {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .bakery-image-group {
        grid-template-columns: 55% 45%;
        grid-template-rows: auto auto;
        gap: var(--space-md);
    }
}

.bakery-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .bakery-img-main {
        grid-row: 1 / 3;
        aspect-ratio: 580/680;
    }
    .bakery-img-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.bakery-img-accent {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

@media (min-width: 768px) {
    .bakery-img-accent {
        aspect-ratio: 420/320;
    }
}

.bakery-content {
    padding: var(--space-lg) 0;
}

.bakery-content .section-eyebrow {
    color: var(--color-terracotta-light);
}

.bakery-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-sand);
    margin-bottom: var(--space-lg);
}

.bakery-headline em {
    font-style: italic;
    color: var(--color-terracotta-light);
}

.bakery-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-sand-dark);
    margin-bottom: var(--space-md);
    opacity: 0.88;
}

.bakery-content .btn-light {
    margin-top: var(--space-md);
}

/* ── Values ── */
.values {
    padding: var(--space-3xl) 0;
    background: var(--color-sand);
}

.values-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

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

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

.value-item {
    padding: var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.06);
    transition: all var(--transition-med);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 24, 16, 0.1);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--color-terracotta);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--color-warm-black);
    margin-bottom: var(--space-xs);
}

.value-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-warm-gray-light);
}

/* ── CTA Strip ── */
.cta-strip {
    background: var(--color-terracotta);
    padding: var(--space-xl) 0;
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    text-align: center;
}

.cta-strip-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--color-white);
}

/* ── Visit ── */
.visit {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.visit-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (min-width: 900px) {
    .visit-container {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-2xl);
    }
}

.visit-info {
    max-width: 580px;
}

.visit-details {
    margin: var(--space-xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.visit-detail {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.visit-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
}

.visit-detail-value {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-warm-gray);
}

.visit-detail-value a {
    color: var(--color-warm-gray);
    transition: color var(--transition-fast);
}

.visit-detail-value a:hover {
    color: var(--color-terracotta);
    text-decoration: underline;
}

.visit-detail-value em {
    font-size: 0.9375rem;
    color: var(--color-warm-gray-light);
}

.visit-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(44, 24, 16, 0.1);
}

.visit-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 24, 16, 0.1);
    aspect-ratio: 520/700;
}

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

/* ── Footer ── */
.site-footer {
    background: var(--color-warm-black);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.logo-mark--light {
    color: var(--color-terracotta-light);
}

.logo-wordmark--light {
    color: var(--color-sand);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-warm-gray-light);
    max-width: 360px;
    margin-top: var(--space-sm);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: var(--color-sand-dark);
}

.footer-contact a {
    color: var(--color-terracotta-light);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(253, 246, 238, 0.1);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-warm-gray-light);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
}

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