/* ============================================
   MYSTIC OVEN BAKERY — Stylesheet
   Palette: Emerald Green + Cream
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --cream-50:  #fdfcf8;
    --cream-100: #faf8f0;
    --cream-200: #f5f0e1;
    --cream-300: #ebe4ce;
    --cream-400: #d4c9a8;
    
    --text-dark: #1a2e28;
    --text-mid:  #3d5a4e;
    --text-light: #6b8f80;
    --white: #ffffff;
    
    --shadow-sm: 0 1px 3px rgba(5, 150, 105, 0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(5, 150, 105, 0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(5, 150, 105, 0.10), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 60px rgba(5, 150, 105, 0.12), 0 8px 20px rgba(0,0,0,0.06);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: 0.3s 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: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--cream-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: var(--emerald-700); color: var(--white);
    padding: 8px 16px; border-radius: var(--radius-sm);
    z-index: 1000; font-weight: 500;
}
.skip-link:focus { top: 16px; }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* --- Section Tags --- */
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--emerald-600);
    background: var(--emerald-50); border: 1px solid var(--emerald-200);
    padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
}

.section-title { margin-bottom: 16px; }
.section-desc { color: var(--text-mid); max-width: 560px; font-size: 1.05rem; }

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

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

.btn-secondary {
    background: var(--white); color: var(--emerald-700);
    border: 1.5px solid var(--emerald-200);
}
.btn-secondary:hover {
    border-color: var(--emerald-400); background: var(--emerald-50);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent; color: var(--emerald-700);
    border: 1.5px solid var(--emerald-300);
    padding: 11px 24px; font-size: 0.9rem;
}
.btn-outline:hover { background: var(--emerald-50); border-color: var(--emerald-500); }

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

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
    display: flex; align-items: center;
    height: 72px; gap: 32px;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.2rem; color: var(--emerald-700);
}

.nav-links {
    display: flex; align-items: center; gap: 8px;
    flex: 1; justify-content: center;
}
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-mid);
    padding: 8px 16px; border-radius: 50px;
    transition: all var(--transition);
}
.nav-links a:hover { color: var(--emerald-700); background: var(--emerald-50); }

.nav-cta {
    font-size: 0.85rem; font-weight: 600; color: var(--emerald-700);
    background: var(--emerald-100); padding: 8px 20px;
    border-radius: 50px; transition: all var(--transition);
}
.nav-cta:hover { background: var(--emerald-200); }

.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; margin-left: auto;
}
.mobile-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--emerald-700); border-radius: 2px;
    transition: all var(--transition);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(160deg, var(--cream-50) 0%, var(--emerald-50) 50%, var(--cream-100) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: radial-gradient(var(--emerald-600) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center; position: relative;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; color: var(--emerald-700);
    background: var(--white); border: 1px solid var(--emerald-200);
    padding: 8px 16px; border-radius: 50px; margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero-badge svg { opacity: 0.7; }

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700; line-height: 1.15;
    color: var(--text-dark); margin-bottom: 24px;
}
.hero-headline em {
    font-style: italic; color: var(--emerald-600);
    font-weight: 400;
}

.hero-sub {
    font-size: 1.1rem; color: var(--text-mid);
    line-height: 1.8; margin-bottom: 36px; max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Visual & Floating Cards */
.hero-visual { position: relative; min-height: 560px; }

.hero-card {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-card-main { width: 100%; aspect-ratio: 480/560; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-card-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--white); padding: 8px 16px;
    border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    color: var(--emerald-700); box-shadow: var(--shadow-md);
}

.floating-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    background: var(--white); padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}
.floating-card-1 { top: 40px; right: -20px; animation: float1 6s ease-in-out infinite; }
.floating-card-2 { bottom: 140px; left: -30px; animation: float2 7s ease-in-out infinite; }
.floating-card-3 { bottom: 40px; right: -10px; animation: float3 5.5s ease-in-out infinite; }

.floating-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--emerald-100); display: flex; align-items: center;
    justify-content: center; color: var(--emerald-700); flex-shrink: 0;
}
.floating-stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }

@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-wave {
    position: absolute; bottom: -1px; left: 0; width: 100%;
    line-height: 0; pointer-events: none;
}
.hero-wave svg { width: 100%; height: 80px; }

/* --- Menu --- */
.menu {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.menu-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px; margin-bottom: 56px;
}

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

.menu-card-img { overflow: hidden; aspect-ratio: 4/3; }
.menu-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.menu-card:hover .menu-card-img img { transform: scale(1.05); }

.menu-card-body { padding: 24px; }
.menu-card-category {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--emerald-600);
    margin-bottom: 8px;
}
.menu-card-title { font-size: 1.2rem; margin-bottom: 10px; }
.menu-card-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }

.menu-cta {
    text-align: center; padding: 40px;
    background: var(--emerald-50); border-radius: var(--radius-xl);
    border: 1px solid var(--emerald-100);
}
.menu-cta p { color: var(--text-mid); margin-bottom: 20px; font-size: 1.05rem; }
.menu-cta .btn { margin: 0 auto; }

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--cream-100);
    position: relative; overflow: hidden;
}

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

.about-images { position: relative; min-height: 600px; }

.about-img-main {
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.about-img-main img { width: 100%; height: 640px; object-fit: cover; }

.about-img-secondary {
    position: absolute; bottom: -30px; right: -30px;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-xl); z-index: 2;
    border: 5px solid var(--cream-100);
}
.about-img-secondary img { width: 100%; height: 240px; object-fit: cover; }

.about-pattern {
    position: absolute; top: -40px; left: -40px;
    width: 200px; height: 200px; opacity: 0.06;
    background-image: radial-gradient(var(--emerald-600) 2px, transparent 2px);
    background-size: 20px 20px; z-index: 0;
}

.about-content { padding: 20px 0; }
.about-text { color: var(--text-mid); margin-bottom: 20px; font-size: 1.02rem; }

.about-values {
    display: flex; gap: 32px; margin-top: 40px;
    padding-top: 32px; border-top: 1px solid var(--emerald-200);
}
.value-item { display: flex; align-items: center; gap: 12px; }
.value-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--emerald-100); display: flex; align-items: center;
    justify-content: center; color: var(--emerald-700); flex-shrink: 0;
}
.value-item span { font-weight: 500; color: var(--text-dark); font-size: 0.95rem; }

/* --- Visit --- */
.visit {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }

.contact-item { display: flex; gap: 16px; }
.contact-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--emerald-50); border: 1px solid var(--emerald-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--emerald-600); flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 4px; }
.contact-item p { color: var(--text-dark); font-size: 0.95rem; line-height: 1.6; }
.contact-item a { color: var(--emerald-700); font-weight: 500; transition: color var(--transition); }
.contact-item a:hover { color: var(--emerald-500); }

.visit-map { position: relative; }
.map-placeholder {
    background: var(--emerald-50); border: 2px dashed var(--emerald-200);
    border-radius: var(--radius-xl); padding: 60px 40px;
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 16px;
}
.map-placeholder p { color: var(--text-mid); font-size: 0.95rem; }

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
    position: relative; overflow: hidden;
}
.contact::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px; pointer-events: none;
}

.contact-wrapper {
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}

.contact-text .section-tag { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: var(--emerald-200); }
.contact-text .section-title { color: var(--white); margin-bottom: 20px; }
.contact-text p { color: var(--emerald-200); font-size: 1.05rem; line-height: 1.8; }

.contact-form {
    background: var(--white); padding: 40px; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 500;
    color: var(--text-dark); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--cream-300); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark);
    background: var(--cream-50); transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-400); background: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
    display: flex; align-items: center; gap: 10px;
    margin-top: 16px; padding: 14px 20px;
    background: var(--emerald-50); border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm); color: var(--emerald-700);
    font-weight: 500; font-size: 0.9rem;
}
.form-success svg { color: var(--emerald-600); flex-shrink: 0; }

/* --- Footer --- */
.footer {
    background: var(--emerald-900); color: var(--emerald-200);
    padding: 80px 0 0;
}

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

.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.1rem; color: var(--white); margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: var(--emerald-300); max-width: 280px; }

.footer-links h4,
.footer-hours h4,
.footer-contact h4 {
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--emerald-400);
    margin-bottom: 16px;
}
.footer-links a {
    display: block; font-size: 0.9rem; color: var(--emerald-300);
    padding: 5px 0; transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-hours p,
.footer-contact p { font-size: 0.9rem; color: var(--emerald-300); line-height: 1.8; }
.footer-contact a { color: var(--emerald-400); font-weight: 500; transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--emerald-400); }

/* --- Reveal Animations --- */
.reveal {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal[data-reveal] {
    opacity: 0; transform: translateY(30px);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { min-height: 440px; order: -1; max-width: 500px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-images { min-height: 480px; }
    .about-img-main img { height: 480px; }
    .visit-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: rgba(253, 252, 248, 0.98);
        backdrop-filter: blur(16px);
        padding: 24px; gap: 4px;
        border-bottom: 1px solid rgba(5, 150, 105, 0.08);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open a { padding: 14px 16px; font-size: 1rem; }
    
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-headline { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .floating-card-1 { right: 0; top: 20px; }
    .floating-card-2 { left: 0; bottom: 120px; }
    .floating-card-3 { right: 0; bottom: 20px; }
    
    .menu-grid { grid-template-columns: 1fr; }
    .about-img-secondary { right: -10px; bottom: -15px; }
    .about-values { flex-direction: column; gap: 20px; }
    
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
    .hero-visual { min-height: 380px; }
    .hero-card-main { aspect-ratio: 4/5; }
    .floating-card { padding: 12px 14px; }
    .floating-icon { width: 34px; height: 34px; }
    .stat-number { font-size: 1.1rem; }
    .stat-label { font-size: 0.7rem; }
}
