/* ========================================
   Walker Fusion — Editorial Bakery & Grocery Site
   Color Palette: Terracotta + Sand
======================================== */

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

:root {
    --terracotta-50:  #fdf0eb;
    --terracotta-100: #f9d5c4;
    --terracotta-200: #f2b094;
    --terracotta-300: #e88563;
    --terracotta-400: #de6340;
    --terracotta-500: #d44f28;
    --terracotta-600: #b83d1e;
    --terracotta-700: #963019;
    --terracotta-800: #782816;
    --terracotta-900: #612013;
    
    --sand-50:  #fdfbf7;
    --sand-100: #faf5eb;
    --sand-200: #f3e8d0;
    --sand-300: #e8d4a8;
    --sand-400: #d4b87a;
    --sand-500: #c4a05a;
    --sand-600: #a8854a;
    --sand-700: #8a6c3e;
    --sand-800: #6e5632;
    --sand-900: #5a4629;
    
    --dark: #1a1410;
    --dark-soft: #2d2218;
    --cream: #faf8f4;
    --cream-dark: #f0ebe0;
    
    --text-primary: #1a1410;
    --text-secondary: #5c4a3a;
    --text-muted: #8a7560;
    --text-light: #f5f0e8;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 3px rgba(26, 20, 16, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 20, 16, 0.1);
    --shadow-lg: 0 12px 40px rgba(26, 20, 16, 0.12);
    --shadow-xl: 0 20px 60px rgba(26, 20, 16, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--sand-50);
    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;
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 20, 16, 0.06);
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(250, 251, 247, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo-icon {
    color: var(--terracotta-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terracotta-500);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--terracotta-600);
}

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

.nav-cta {
    background: var(--terracotta-500);
    color: white !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.2s ease !important;
}

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

.nav-cta:hover {
    background: var(--terracotta-600) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 79, 40, 0.3);
}

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

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 79, 40, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 160, 90, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(212, 79, 40, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--terracotta-400), var(--terracotta-600));
    border-radius: 4px 0 0 4px;
}

.hero-content {
    padding: 60px 60px 60px 48px;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-600);
    background: var(--terracotta-50);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero-subheadline {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 480px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--terracotta-500);
    color: white;
    box-shadow: 0 4px 16px rgba(212, 79, 40, 0.25);
}

.btn-primary:hover {
    background: var(--terracotta-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 79, 40, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--sand-300);
}

.btn-secondary:hover {
    border-color: var(--terracotta-400);
    color: var(--terracotta-600);
    background: var(--terracotta-50);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

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

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating Stat Cards */
.hero-stats {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card--sand {
    background: linear-gradient(135deg, var(--sand-200), var(--sand-300));
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--terracotta-600);
    line-height: 1;
}

.stat-card--sand .stat-number {
    color: var(--sand-800);
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card--sand .stat-label {
    color: var(--sand-700);
}

/* ---------- Section Shared ---------- */
.section-header {
    margin-bottom: 60px;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title--light {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header--center .section-subtitle {
    margin: 0 auto;
}

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

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

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.35s ease;
}

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

.product-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--terracotta-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-card-content {
    padding: 28px;
}

.product-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-card-content p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 10% 90%, rgba(212, 79, 40, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(196, 160, 90, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

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

.about-image-wrap {
    position: relative;
}

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

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

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--dark);
}

.about-image-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-content {
    color: var(--text-light);
}

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

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.75);
    margin-bottom: 16px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(212, 79, 40, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-300);
}

.value-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.value-item span {
    font-size: 0.9375rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.5;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 100px 0;
    background: var(--sand-50);
}

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

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

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

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

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(26, 20, 16, 0.7), transparent);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
}

.gallery-item--large {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 420px;
}

.gallery-item:not(.gallery-item--large) {
    min-height: 200px;
}

/* ---------- Visit ---------- */
.visit {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--terracotta-600) 0%, var(--terracotta-800) 100%);
    position: relative;
    overflow: hidden;
}

.visit::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 0% 0%, rgba(253, 240, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(26, 20, 16, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.visit .container {
    position: relative;
    z-index: 1;
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.visit-info {
    color: var(--text-light);
}

.visit-info .section-title {
    margin-bottom: 20px;
}

.visit-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 40px;
    max-width: 480px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-100);
}

.visit-detail strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.visit-detail span,
.visit-detail a {
    font-size: 0.9375rem;
    color: rgba(245, 240, 232, 0.7);
    line-height: 1.6;
}

.visit-detail a:hover {
    color: white;
    text-decoration: underline;
}

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

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-height: 480px;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--terracotta-400);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(245, 240, 232, 0.55);
    line-height: 1.65;
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.9375rem;
    color: rgba(245, 240, 232, 0.55);
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--terracotta-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(245, 240, 232, 0.4);
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    
    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        min-height: 360px;
    }
    
    .hero-content {
        padding: 40px 32px;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-main img {
        height: 500px;
    }
    
    .about-image-accent {
        width: 200px;
        bottom: -24px;
        right: -16px;
    }
    
    .visit-layout {
        grid-template-columns: 1fr;
    }
    
    .visit-map {
        min-height: 320px;
    }
    
    .visit-map iframe {
        min-height: 320px;
    }
    
    .gallery-item--large {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 251, 247, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(26, 20, 16, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.35s ease;
        pointer-events: none;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-content {
        padding: 32px 24px;
    }
    
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .stat-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 280px;
    }
    
    .gallery-item:not(.gallery-item--large) {
        min-height: 200px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-links {
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 90px 16px 48px;
    }
    
    .products,
    .about,
    .gallery,
    .visit {
        padding: 64px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}
