/* ========================================
   Chef Shawn's Eatery — Custom Styles
   ======================================== */

/* --- Custom Properties --- */
:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ed;
    --cream-200: #faf0d1;
    --cream-300: #f5e0ab;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
}

/* --- Base --- */
*, *::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;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--emerald-900);
    color: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s;
}

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

/* --- Section Utilities --- */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

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

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 0.4rem 1rem;
    border-radius: 100px;
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--emerald-950);
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(2, 44, 34, 0.6);
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--emerald-200), transparent);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--emerald-900);
    color: #fff;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
}

.btn-primary:hover {
    background: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--emerald-950);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    border: 1.5px solid rgba(6, 78, 59, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--emerald-900);
    background: var(--emerald-50);
    transform: translateY(-2px);
}

/* --- Navigation --- */
.nav-scrolled header {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-600);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--cream-50) 0%, #f0fdf4 50%, var(--cream-100) 100%);
    position: relative;
}

/* Decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
    top: -10%;
    right: -5%;
    animation: float-blob 12s ease-in-out infinite;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
    bottom: 5%;
    left: -3%;
    animation: float-blob 15s ease-in-out infinite reverse;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 95, 70, 0.15), transparent 70%);
    top: 40%;
    left: 30%;
    animation: float-blob 10s ease-in-out infinite;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Hero image frame */
.image-frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(6, 78, 59, 0.15), 0 8px 20px rgba(6, 78, 59, 0.1);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
    pointer-events: none;
}

/* Floating cards */
.float-card {
    position: absolute;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.float-card-1 {
    bottom: 15%;
    left: -12%;
    animation-delay: 0s;
}

.float-card-2 {
    top: 12%;
    right: -10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0.6;
    animation: fade-scroll 2s ease-in-out infinite;
}

@keyframes fade-scroll {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* --- Menu Cards --- */
.menu-card {
    background: var(--cream-50);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(6, 78, 59, 0.08);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.04);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(6, 78, 59, 0.1);
    border-color: rgba(6, 78, 59, 0.15);
}

.menu-card-content {
    padding: 1.75rem;
}

/* --- About Section --- */
.about-images {
    position: relative;
    padding-bottom: 2rem;
}

.about-img-main {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(6, 78, 59, 0.12);
}

.about-img-main img {
    display: block;
    width: 100%;
    height: auto;
}

.about-img-accent {
    position: absolute;
    bottom: -1rem;
    right: 0;
    z-index: 2;
    border: 4px solid var(--cream-50);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(6, 78, 59, 0.15);
}

.about-pattern {
    position: absolute;
    top: -2rem;
    right: 3rem;
    z-index: -1;
    opacity: 0.5;
}

/* --- Visit Section Blobs --- */
.visit-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
}

.visit-blob.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.4), transparent 70%);
    top: -10%;
    left: -5%;
    animation: float-blob 14s ease-in-out infinite;
}

.visit-blob.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
    bottom: -5%;
    right: 5%;
    animation: float-blob 11s ease-in-out infinite reverse;
}

/* --- Map --- */
.map-container {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* --- Contact Form --- */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(6, 78, 59, 0.15);
    border-radius: 0.75rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: var(--emerald-950);
    background: var(--cream-50);
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: rgba(2, 44, 34, 0.3);
}

.input-field:hover {
    border-color: rgba(6, 78, 59, 0.3);
}

.input-field:focus {
    border-color: var(--emerald-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.contact-success {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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

/* --- Responsive --- */
@media (max-width: 767px) {
    .float-card {
        display: none;
    }

    .about-img-accent {
        display: none;
    }

    .about-pattern {
        display: none;
    }
}
