/* ===================================
   MOSCATO BAKERY & CAFE — STYLES
   Palette: Charcoal (#1A1A1A) + Coral (#FF9F89)
   Fonts: Cormorant Garamond + Karla
=================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal: #1A1A1A;
    --charcoal-light: #2D2D2D;
    --charcoal-dark: #0F0F0F;
    --coral: #FF9F89;
    --coral-light: #FFB8A7;
    --coral-dark: #E88A75;
    --cream: #FFF8F5;
    --cream-dark: #F0E6E3;
    --warm-gray: #8A8278;
    --warm-gray-light: #B8B0A8;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Karla', 'Helvetica Neue', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    background: var(--charcoal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--coral);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: var(--charcoal-light);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-fill {
    width: 0%;
    height: 100%;
    background: var(--coral);
    animation: loaderFill 1.5s ease forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 2px 40px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 0.15em;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dark);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--coral);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(15,15,15,0.82), rgba(26,26,26,0.75)), url('https://images.pexels.com/photos/157213/pexels-photo-157213.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,159,137,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.8s forwards;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--cream);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 2s forwards;
}

.subhead {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.15rem);
    letter-spacing: 0.04em;
    color: var(--warm-gray-light);
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.8s ease 2.2s forwards;
}

.hero .btn {
    opacity: 0;
    animation: fadeUp 0.8s ease 2.4s forwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.75rem;
    background: var(--coral);
    color: var(--charcoal-dark);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--coral);
}

.btn:hover {
    background: transparent;
    color: var(--coral);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,159,137,0.2);
}

.btn.map-btn {
    background: var(--charcoal);
    color: var(--coral);
    border-color: var(--charcoal);
}

.btn.map-btn:hover {
    background: transparent;
    color: var(--coral);
    border-color: var(--coral);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--warm-gray-light);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--coral), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* SECTION COMMON */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
}

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

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--warm-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

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

/* ABOUT */
.about {
    padding: 8rem 0;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,159,137,0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4px;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--coral);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.4;
}

.about-content {
    padding: 1rem 0;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--charcoal-light);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cream-dark);
}

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

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

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

/* MENU */
.menu {
    padding: 8rem 0;
    background: var(--charcoal-dark);
    position: relative;
}

.menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,159,137,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.menu .section-header h2 {
    color: var(--cream);
}

.menu .section-header p {
    color: var(--warm-gray-light);
}

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

.menu-category {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.menu-category:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,159,137,0.2);
    transform: translateY(-4px);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--coral);
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.menu-category h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.menu-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-category li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.menu-category li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-category li span:first-child {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.menu-category li span:last-child {
    font-size: 0.82rem;
    color: var(--warm-gray);
    text-align: right;
    line-height: 1.4;
}

.menu-note {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.menu-note p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

/* GALLERY */
.gallery {
    padding: 8rem 0;
    background: var(--cream);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,15,0.2) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* TESTIMONIALS */
.testimonials {
    padding: 8rem 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(255,159,137,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials .section-header h2 {
    color: var(--cream);
}

.testimonials .section-header p {
    color: var(--warm-gray-light);
}

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

.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-4px);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--coral);
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.3;
}

.testimonial-card p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--cream-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    font-style: normal;
}

/* VISIT */
.visit {
    padding: 8rem 0;
    background: var(--cream);
}

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

.visit-info {
    padding: 2rem 0;
}

.visit-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 3rem;
}

.info-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cream-dark);
}

.info-block:last-of-type {
    border-bottom: none;
}

.info-block h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 0.5rem;
}

.info-block p {
    font-size: 1.05rem;
    color: var(--charcoal);
    line-height: 1.8;
}

.info-block a {
    color: var(--charcoal);
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: var(--coral);
}

.map-btn {
    margin-top: 1rem;
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* FOOTER */
.footer {
    background: var(--charcoal-dark);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--coral);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--warm-gray);
    transition: color 0.3s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact p {
    font-size: 0.95rem;
    color: var(--warm-gray);
}

.footer-contact a {
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--coral);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--warm-gray);
    letter-spacing: 0.05em;
}

/* MOBILE MENU */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
    }

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

    .about-image img {
        height: 400px;
    }

    .about-accent {
        display: none;
    }

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

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

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

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

    .visit-map {
        min-height: 300px;
    }

    .visit-map iframe {
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }

    .about, .menu, .gallery, .testimonials, .visit {
        padding: 5rem 0;
    }

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

    .gallery-item img {
        height: 250px;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero .btn {
        padding: 0.9rem 2rem;
        font-size: 0.8rem;
    }
}

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

    .hero {
        background-attachment: scroll;
    }
}
