/* ========================================
   La Antigua Bakery — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #1B4332;
    color: #FDFCF8;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 100;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: top 0.2s;
}

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

/* ========================================
   Typography
   ======================================== */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3d7a52;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: #3d7a52;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3d7a52;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.menu-icon-open,
.menu-icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.menu-icon-close {
    display: none;
}

body.menu-open .menu-icon-open {
    display: none;
}

body.menu-open .menu-icon-close {
    display: flex;
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #3d7a52;
    transition: width 0.3s ease;
    margin-top: 0.25rem;
}

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

/* ========================================
   Hero
   ======================================== */
.hero {
    background: #FDFCF8;
    position: relative;
}

.hero-bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(27, 67, 50, 0.15) 1px, transparent 0);
    background-size: 32px 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
}

.hero-headline {
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.hero-stats > div > div:first-child {
    font-family: 'Playfair Display', Georgia, serif;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    box-shadow: 0 25px 60px rgba(7, 19, 14, 0.2);
}

.hero-float-card {
    box-shadow: 0 8px 32px rgba(7, 19, 14, 0.12);
}

.hero-scroll {
    opacity: 0.6;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ========================================
   Divider
   ======================================== */
.divider {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ========================================
   History Section
   ======================================== */
.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.history-image-wrapper {
    position: relative;
}

.history-image-main {
    box-shadow: 0 16px 40px rgba(7, 19, 14, 0.12);
}

.history-image-frame {
    z-index: -1;
}

/* ========================================
   Menu Section
   ======================================== */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.menu-card {
    display: flex;
    flex-direction: column;
}

.menu-card-image {
    position: relative;
    overflow: hidden;
}

.menu-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 19, 14, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

/* ========================================
   Visit Section
   ======================================== */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.visit-info-item {
    display: flex;
}

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

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, #FDFCF8 0%, #f0f5f2 50%, #FDFCF8 100%);
    position: relative;
}

.cta-bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(27, 67, 50, 0.12) 1px, transparent 0);
    background-size: 28px 28px;
}

/* ========================================
   Footer
   ======================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
    }
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-24px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3d7a52;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   Mobile adjustments
   ======================================== */
@media (max-width: 639px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-float-card {
        display: none;
    }
}
