/* ============================================
   David's Food — Classic & Elegant Style
   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', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #3D2B1F;
    background-color: #FDF8F3;
    -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 {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* --- Custom Properties --- */
:root {
    --color-terracotta: #B85C38;
    --color-terracotta-dark: #9A4B2C;
    --color-terracotta-light: #C9755A;
    --color-sand: #E8D5C4;
    --color-sand-light: #F5E6D3;
    --color-sand-lighter: #FDF8F3;
    --color-cream: #FAF3EB;
    --color-brown: #3D2B1F;
    --color-brown-light: #5C4033;
    --color-dark: #2A1F17;
    --color-white: #FFFFFF;
    --color-text: #3D2B1F;
    --color-text-light: #6B5344;
    --color-text-muted: #8B7355;
    
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.08);
    --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.1);
    --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.12);
    --shadow-xl: 0 16px 48px rgba(61, 43, 31, 0.14);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

.skip-link:focus {
    top: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

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

.btn-terracotta:hover,
.btn-terracotta:focus-visible {
    background-color: var(--color-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-terracotta);
    border: 1.5px solid var(--color-terracotta);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-sand-light);
    border: 1.5px solid var(--color-sand-light);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background-color: var(--color-sand-light);
    color: var(--color-brown);
    transform: translateY(-1px);
}

.btn-icon {
    flex-shrink: 0;
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-brown);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 540px;
}

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

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-brown);
}

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

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

.nav-desktop {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-desktop a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-brown);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

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

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

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

.nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(253, 248, 243, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 92, 56, 0.1);
    transition: max-height var(--transition-slow);
}

.nav-mobile.open {
    max-height: 400px;
}

.nav-mobile a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    border-bottom: 1px solid rgba(184, 92, 56, 0.08);
    transition: all var(--transition);
}

.nav-mobile a:last-child {
    border-bottom: none;
    margin-top: 8px;
}

.nav-mobile a:hover {
    background-color: rgba(184, 92, 56, 0.06);
    color: var(--color-terracotta);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-desktop {
        display: flex;
    }
    
    .nav-mobile {
        display: none;
    }
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-sand) 100%);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

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

.hero-text {
    max-width: 560px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background-color: var(--color-terracotta);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-brown);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-subheadline {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.hero-meta-icon {
    color: var(--color-terracotta);
    flex-shrink: 0;
}

/* Hero Image Stack */
.hero-image-stack {
    position: relative;
    height: 500px;
}

.hero-img {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

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

.hero-img-primary {
    width: 75%;
    height: 85%;
    top: 0;
    right: 0;
    z-index: 1;
}

.hero-img-secondary {
    width: 55%;
    height: 45%;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 4px solid var(--color-cream);
}

.hero-accent {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--color-terracotta);
    border-radius: 50%;
    bottom: 30%;
    left: 35%;
    z-index: 0;
    opacity: 0.15;
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 0;
    }
    
    .hero::before {
        clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 80px 0 100px;
        gap: 60px;
    }
    
    .hero-image-stack {
        height: 600px;
    }
    
    .hero-img-primary {
        width: 70%;
        height: 88%;
    }
    
    .hero-img-secondary {
        width: 50%;
        height: 48%;
    }
    
    .hero-accent {
        width: 100px;
        height: 100px;
    }
}

/* --- Intro Strip --- */
.intro-strip {
    padding: 100px 0;
    background-color: var(--color-sand-lighter);
}

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

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

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/4;
    display: block;
}

.intro-content .section-eyebrow {
    margin-bottom: 16px;
}

.intro-content .section-title {
    margin-bottom: 24px;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.intro-content p:last-child {
    margin-bottom: 32px;
}

.intro-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-sand);
}

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

.value-number {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-terracotta);
    line-height: 1;
    min-width: 36px;
}

.value-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-brown);
}

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

/* --- Divider --- */
.divider-section {
    padding: 0;
    background-color: var(--color-cream);
}

.divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-terracotta), var(--color-terracotta-light));
    border-radius: 2px;
}

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

.products-header {
    text-align: center;
    margin-bottom: 64px;
}

.products-header .section-eyebrow {
    margin-bottom: 16px;
}

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

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

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

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

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

.product-content {
    padding: 28px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-brown);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}

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

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* --- Visit Section --- */
.visit-section {
    padding: 100px 0;
    background-color: var(--color-sand-lighter);
}

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

.visit-info .section-eyebrow {
    margin-bottom: 16px;
}

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

.visit-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 480px;
}

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

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

.visit-detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-sand-light);
    border-radius: var(--radius-md);
    color: var(--color-terracotta);
}

.visit-detail-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visit-detail-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.visit-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-brown);
    line-height: 1.6;
}

.visit-detail-value a {
    color: var(--color-terracotta);
    transition: color var(--transition);
}

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

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    aspect-ratio: 4/3;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (min-width: 1024px) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 92, 56, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 117, 90, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-eyebrow {
    color: var(--color-sand);
    margin-bottom: 16px;
}

.cta-content .section-title {
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-sand-light);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
}

.cta-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-sand);
    opacity: 0.8;
}

.cta-hours svg {
    flex-shrink: 0;
}

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

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

.logo-footer {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(245, 230, 211, 0.6);
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list a {
    font-size: 14px;
    color: rgba(245, 230, 211, 0.6);
    transition: color var(--transition);
}

.footer-list a:hover {
    color: var(--color-terracotta-light);
}

.footer-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 14px;
    color: rgba(245, 230, 211, 0.6);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(245, 230, 211, 0.08);
}

.footer-hours-list li:last-child {
    border-bottom: none;
}

.footer-hours-list li span:first-child {
    font-weight: 500;
    color: rgba(245, 230, 211, 0.8);
}

.footer-hours-list .closed span:last-child {
    color: var(--color-terracotta-light);
}

.footer-address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(245, 230, 211, 0.6);
}

.footer-phone {
    color: var(--color-terracotta-light);
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--color-sand-light);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.08);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.footer-copy {
    font-size: 13px;
    color: rgba(245, 230, 211, 0.4);
}

.footer-location {
    font-size: 13px;
    color: rgba(245, 230, 211, 0.3);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s 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; }
}

/* --- Focus styles --- */
*:focus-visible {
    outline: 2px solid var(--color-terracotta);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* --- Print --- */
@media print {
    .site-header,
    .nav-toggle,
    .nav-mobile {
        display: none;
    }
    
    .hero {
        padding-top: 0;
        min-height: auto;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
