/* ============================================
   Lil' Whippy — Fresh & Airy Bakery Site
   Color Palette: Emerald Green + Cream
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-emerald-50:  #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-200: #a7f3d0;
    --color-emerald-300: #6ee7b7;
    --color-emerald-400: #34d399;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    --color-emerald-700: #047857;
    --color-emerald-800: #065f46;
    --color-emerald-900: #064e3b;
    
    --color-cream-50:   #fefdf8;
    --color-cream-100:  #fdf9f0;
    --color-cream-200:  #faf3e0;
    --color-cream-300:  #f5e6c8;
    
    --color-text-dark:   #1a2e23;
    --color-text-mid:    #2d4a3a;
    --color-text-light:  #5a7d6a;
    --color-text-muted:  #8fa898;
    
    --color-white: #ffffff;
    --color-black: #0a0f0c;
    
    --font-heading: 'Lora', Georgia, serif;
    --font-body:    'Quicksand', 'Segoe UI', sans-serif;
    
    --radius-sm:  0.5rem;
    --radius-md:  0.75rem;
    --radius-lg:  1rem;
    --radius-xl:  1.5rem;
    
    --shadow-sm:  0 1px 3px rgba(10, 15, 12, 0.06), 0 1px 2px rgba(10, 15, 12, 0.04);
    --shadow-md:  0 4px 16px rgba(10, 15, 12, 0.08), 0 2px 6px rgba(10, 15, 12, 0.04);
    --shadow-lg:  0 12px 40px rgba(10, 15, 12, 0.12), 0 4px 12px rgba(10, 15, 12, 0.06);
    --shadow-xl:  0 24px 60px rgba(10, 15, 12, 0.14);
    
    --transition-fast: 0.2s ease;
    --transition-med:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-cream-50);
    -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 {
    list-style: none;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-emerald-700);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top var(--transition-fast);
}
.skip-link:focus {
    top: 1rem;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-dark);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-emerald-600);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-emerald-600);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-emerald-700);
    border: 1.5px solid var(--color-emerald-600);
}
.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--color-emerald-50);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
    transition: all var(--transition-med);
}

.site-header.scrolled {
    background: rgba(254, 253, 248, 0.95);
    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: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-emerald-800);
    transition: transform var(--transition-fast);
}
.logo:hover { transform: scale(1.03); }

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

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-mid);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
}
.main-nav a:hover {
    color: var(--color-emerald-700);
    background: var(--color-emerald-50);
}

.nav-cta {
    background: var(--color-emerald-600) !important;
    color: var(--color-white) !important;
    padding: 0.5rem 1.25rem !important;
    margin-left: 0.5rem;
}
.nav-cta:hover {
    background: var(--color-emerald-700) !important;
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.nav-toggle:hover { background: var(--color-emerald-50); }

.hamburger {
    position: relative;
    width: 20px;
    height: 14px;
    display: block;
}
.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-emerald-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}
.hamburger::before { top: 0; }
.hamburger span { top: 6px; }
.hamburger::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 6px;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 6px;
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-emerald-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/31484077/pexels-photo-31484077.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.82) 0%,
        rgba(5, 150, 105, 0.65) 50%,
        rgba(4, 120, 87, 0.78) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 8rem 1.5rem 6rem;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-emerald-200);
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-emerald-100);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bobble 2s ease-in-out infinite;
}
.hero-scroll svg {
    opacity: 0.6;
}

@keyframes bobble {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SPECIALTIES SECTION
   ============================================ */
.specialties {
    padding: 7rem 0;
    background: var(--color-cream-50);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .section-desc {
    margin: 0 auto;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.specialty-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-med);
    border: 1px solid rgba(5, 150, 105, 0.06);
}
.specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 220px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.specialty-card:hover .card-image img {
    transform: scale(1.06);
}

.card-body {
    padding: 1.75rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-emerald-50);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-dark);
}

.card-body p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 7rem 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 45%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--color-white);
}
.about-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    background: var(--color-emerald-700);
    color: var(--color-white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.about-badge .badge-number {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}
.about-badge .badge-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.about-text:last-of-type {
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-cream-200);
}

.stat {
    text-align: center;
    flex: 1;
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-emerald-700);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-cream-300);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
    padding: 7rem 0;
    background: var(--color-cream-100);
}

.gallery .section-header {
    margin-bottom: 3rem;
}

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

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-med);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item.large {
    grid-column: span 6;
}
.gallery-item:not(.large) {
    grid-column: span 3;
}

/* ============================================
   VISIT SECTION
   ============================================ */
.visit {
    padding: 7rem 0;
    background: var(--color-white);
}

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

.visit-info .section-title {
    margin-bottom: 2.5rem;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-emerald-50);
    border-radius: var(--radius-md);
}

.info-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.info-item a {
    color: var(--color-emerald-700);
    font-weight: 600;
    transition: color var(--transition-fast);
}
.info-item a:hover {
    color: var(--color-emerald-500);
    text-decoration: underline;
}

.visit-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-emerald-900);
    color: var(--color-emerald-100);
    padding: 3rem 0 2rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-tagline {
    font-size: 0.95rem;
    color: var(--color-emerald-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-emerald-300);
}

.footer-bottom a {
    color: var(--color-emerald-200);
    transition: color var(--transition-fast);
}
.footer-bottom a:hover {
    color: var(--color-white);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-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);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for no-JS fallback */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid {
        gap: 3rem;
    }
    
    .specialty-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner { height: 64px; }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2rem 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-med);
        z-index: 999;
    }
    .main-nav.open {
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .main-nav a {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
    }
    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero-content {
        padding: 7rem 1.5rem 5rem;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .specialties,
    .about,
    .gallery,
    .visit {
        padding: 5rem 0;
    }
    
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-accent {
        width: 50%;
        bottom: -1.5rem;
        right: -1rem;
    }
    
    .about-badge {
        top: -1rem;
        left: -1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item.large {
        grid-column: span 2;
    }
    .gallery-item:not(.large) {
        grid-column: span 1;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .visit-map {
        min-height: 300px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.25rem;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .visit-actions {
        flex-direction: column;
    }
    .visit-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.large {
        grid-column: span 1;
    }
}
