/* ========================================
   Zu Casa — Artisan Bakery & Market
   Classic & Elegant Design System
   ======================================== */

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

:root {
    --color-terracotta: #B85C38;
    --color-terracotta-dark: #9A4B2E;
    --color-terracotta-light: #D4926E;
    --color-sand: #F5E6D3;
    --color-sand-light: #FBF5EE;
    --color-sand-dark: #E8D5C0;
    --color-cream: #FEFCF9;
    --color-charcoal: #2C2420;
    --color-warm-gray: #6B5E56;
    --color-warm-gray-light: #9A8D85;
    --color-white: #FFFFFF;

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe 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: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 36, 32, 0.10);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-terracotta);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-terracotta-dark);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-sm);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

em {
    font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

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

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

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

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

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    background: var(--color-sand);
    color: var(--color-warm-gray);
    border-radius: 100px;
}

/* ---------- Section Shared ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-warm-gray);
    max-width: 560px;
    line-height: 1.7;
}

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

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

.section-header--centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 252, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-sand-dark);
    transition: box-shadow var(--transition);
}

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

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

/* ---------- Logo ---------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--color-charcoal);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.logo--light .logo-text {
    color: var(--color-white);
}

/* ---------- Navigation ---------- */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-warm-gray);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-menu a:hover {
    color: var(--color-charcoal);
}

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

/* Nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 101;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-charcoal);
    transition: all var(--transition);
    transform-origin: center;
}

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

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

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

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

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

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

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

.hero h1 {
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

.hero h1 em {
    color: var(--color-terracotta);
}

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

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

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

/* Hero Image */
.hero-image {
    position: relative;
}

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

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600 / 760;
}

.hero-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--color-sand);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ---------- Offerings ---------- */
.offerings {
    padding: var(--space-3xl) 0;
    background: var(--color-sand-light);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

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

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

.offering-img {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.offering-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.offering-body {
    padding: var(--space-lg);
}

.offering-body h3 {
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.offering-body p {
    font-size: 0.9375rem;
    color: var(--color-warm-gray);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

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

.about-images {
    position: relative;
}

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

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 400 / 520;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 400 / 360;
}

.about-img-accent {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 45%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--color-cream);
}

.about-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 400 / 240;
}

.about-content {
    padding-left: var(--space-lg);
}

.about-content p {
    font-size: 1rem;
    color: var(--color-warm-gray);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-content p:first-of-type {
    font-size: 1.0625rem;
    color: var(--color-charcoal);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-warm-gray-light);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-sand-dark);
}

/* ---------- Craft ---------- */
.craft {
    padding: var(--space-3xl) 0;
    background: var(--color-charcoal);
    color: var(--color-white);
}

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

.craft .section-title {
    color: var(--color-white);
}

.craft .section-subtitle {
    color: var(--color-warm-gray-light);
}

.craft-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.craft-step {
    padding: var(--space-lg);
    border: 1px solid rgba(245, 230, 211, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition);
}

.craft-step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 146, 110, 0.3);
}

.step-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-terracotta-light);
    line-height: 1;
    margin-bottom: var(--space-sm);
    opacity: 0.7;
}

.craft-step h3 {
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

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

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

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

.visit-info {
    padding-right: var(--space-lg);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    flex-shrink: 0;
    color: var(--color-terracotta);
    margin-top: 0.125rem;
}

.contact-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--color-warm-gray);
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-terracotta);
}

.contact-item a:hover {
    color: var(--color-terracotta-dark);
    text-decoration: underline;
}

.visit-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

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

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

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

.footer-brand p {
    color: var(--color-warm-gray-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: var(--space-sm);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--color-warm-gray-light);
    font-size: 0.9375rem;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    font-size: 0.8125rem;
    color: var(--color-warm-gray);
}

.footer-bottom a {
    color: var(--color-warm-gray);
}

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

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: var(--space-lg);
    }

    .hero-content {
        padding-right: 0;
    }

    .craft-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-img-secondary {
        right: -20px;
        bottom: -20px;
    }

    .about-img-accent {
        left: -20px;
        top: -20px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-md);
        transform: translateX(100%);
        transition: transform var(--transition);
    }

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

    .nav-menu a {
        font-size: 1.125rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: var(--space-xl) 0;
    }

    .hero-content {
        order: 2;
        padding-right: 0;
    }

    .hero-image {
        order: 1;
    }

    .hero-img-wrapper {
        max-height: 50vh;
    }

    .hero-img-wrapper img {
        aspect-ratio: 4 / 3;
    }

    .hero-accent {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

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

    .about-images {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        order: 1;
        padding-left: 0;
    }

    .about-img-secondary {
        right: 0;
        bottom: -20px;
    }

    .about-img-accent {
        left: 0;
        top: -15px;
    }

    .about-stats {
        justify-content: center;
    }

    .craft-steps {
        grid-template-columns: 1fr;
    }

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

    .visit-info {
        padding-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero-badges {
        flex-direction: column;
        gap: 0.375rem;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }
}
