/* ============================================
   PATI'S PASTRIES AND CATERING — STYLESHEET
   ============================================ */

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

:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --cream-50:    #fefdf8;
    --cream-100:   #fdf8ee;
    --cream-200:   #f9f0d6;
    --cream-300:   #f0e4b8;
    --gold-500:    #d97706;
    --gold-600:    #b45309;
    --stone-50:    #fafaf9;
    --stone-100:   #f5f5f4;
    --stone-200:   #e7e5e4;
    --stone-600:   #575553;
    --stone-700:   #44403c;
    --stone-800:   #292524;
    --stone-900:   #1c1917;
    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-xl:   32px;
    --shadow-sm:   0 1px 3px rgba(6,79,59,0.08), 0 1px 2px rgba(6,79,59,0.06);
    --shadow-md:   0 4px 16px rgba(6,79,59,0.10), 0 2px 6px rgba(6,79,59,0.06);
    --shadow-lg:   0 12px 40px rgba(6,79,59,0.14), 0 4px 12px rgba(6,79,59,0.08);
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Lora', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

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

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

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

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

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

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: #fff;
    border-color: var(--emerald-700);
}
.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-700);
}
.btn-outline:hover {
    background: var(--emerald-50);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254,253,248,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6,95,70,0.08);
    transition: var(--transition);
}
.header.scrolled {
    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: 10px;
    color: var(--emerald-800);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
}
.logo:hover { color: var(--emerald-700); }
.logo-icon { color: var(--emerald-700); flex-shrink: 0; }
.logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-600);
}

/* NAV */
.nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--stone-700);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.nav a:hover {
    color: var(--emerald-700);
    background: var(--emerald-50);
}
.nav a.btn-primary {
    color: #fff;
}
.nav a.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--emerald-800);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- HERO --- */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-50) 50%, var(--emerald-50) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 25% 25%, var(--emerald-700) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, var(--emerald-700) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: var(--emerald-100);
    color: var(--emerald-800);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--stone-900);
    margin-bottom: 20px;
}
.hero-headline em {
    color: var(--emerald-700);
    font-style: italic;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--stone-600);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stone-700);
}
.trust-item svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* HERO IMAGE */
.hero-image {
    position: relative;
}
.hero-image-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 560/680;
}
.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-float-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.float-card-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--emerald-700);
    line-height: 1;
}
.float-card-label {
    font-size: 0.8rem;
    color: var(--stone-600);
    font-weight: 600;
}

/* HERO WAVE */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    color: var(--cream-50);
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* --- SECTIONS --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--emerald-700);
    background: var(--emerald-100);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--stone-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--stone-600);
    line-height: 1.8;
}

/* --- MENU --- */
.menu-section {
    background: var(--cream-50);
}

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

.menu-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 400/300;
}
.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.menu-card:hover .menu-card-img img {
    transform: scale(1.05);
}

.menu-card-body {
    padding: 28px;
}
.menu-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: 10px;
}
.menu-card-body p {
    font-size: 0.95rem;
    color: var(--stone-600);
    line-height: 1.7;
}

/* --- CATERING --- */
.catering-section {
    background: var(--emerald-800);
    color: #fff;
}
.catering-section .section-tag {
    background: rgba(255,255,255,0.15);
    color: var(--emerald-200);
}
.catering-section .section-title {
    color: #fff;
}

.catering-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.catering-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.catering-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 500/600;
}
.catering-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.catering-img-secondary {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 400/300;
    margin-top: -80px;
    margin-left: 40px;
}
.catering-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catering-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 28px;
}

.catering-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-bottom: 36px;
}
.catering-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}
.catering-list li svg {
    color: var(--emerald-300);
    flex-shrink: 0;
}

.catering-content .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.catering-content .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* --- ABOUT --- */
.about-section {
    background: var(--cream-100);
}

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

.about-content .section-title {
    text-align: left;
}
.about-content p {
    color: var(--stone-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--stone-200);
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-600);
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--stone-200);
}

.about-image {
    position: relative;
}
.about-image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 500/620;
    position: relative;
    z-index: 1;
}
.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-200);
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.6;
}

/* --- GALLERY --- */
.gallery-section {
    background: var(--cream-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.gallery-item--wide {
    grid-column: span 7;
    aspect-ratio: 700/400;
}
.gallery-item:not(.gallery-item--wide) {
    grid-column: span 5;
    aspect-ratio: 340/340;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CONTACT --- */
.contact-section {
    background: var(--cream-100);
}

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

.contact-info .section-title {
    text-align: left;
}
.contact-info .contact-desc {
    color: var(--stone-600);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    list-style: none;
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}
.contact-details li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-details li svg {
    color: var(--emerald-700);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-details strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-600);
    margin-bottom: 4px;
}
.contact-details a {
    color: var(--stone-800);
    font-weight: 600;
    transition: var(--transition);
}
.contact-details a:hover {
    color: var(--emerald-700);
}
.contact-details span {
    color: var(--stone-600);
    font-size: 0.95rem;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* FORM */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.form-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: 28px;
}

.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: 700;
    color: var(--stone-700);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--stone-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--stone-800);
    background: var(--cream-50);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-600);
    opacity: 0.6;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--emerald-800);
    margin: 16px 0 8px;
}
.form-success p {
    color: var(--stone-600);
    font-size: 0.95rem;
}

/* --- FOOTER --- */
.footer {
    background: var(--stone-900);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
}
.footer-logo svg {
    color: var(--emerald-400);
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--emerald-300);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-contact a:hover {
    color: var(--emerald-300);
}
.footer-contact span {
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}
.footer-bottom p {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }
    .hero-float-card {
        left: 10px;
        bottom: 20px;
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catering-split,
    .about-split,
    .contact-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .catering-images { order: -1; }
    .about-image { order: -1; }
    .gallery-item--wide { grid-column: span 12; }
    .gallery-item:not(.gallery-item--wide) { grid-column: span 6; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254,253,248,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px 24px;
        border-bottom: 1px solid rgba(6,79,59,0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav ul {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }
    .nav a {
        padding: 12px 16px;
        text-align: center;
    }

    .hero { padding: 100px 0 60px; }
    .hero-headline { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; gap: 12px; }

    .section { padding: 70px 0; }
    .menu-grid { grid-template-columns: 1fr; }

    .catering-img-secondary {
        margin-top: -40px;
        margin-left: 20px;
    }

    .about-stats { flex-wrap: wrap; gap: 20px; }
    .stat-divider { display: none; }

    .gallery-item--wide,
    .gallery-item:not(.gallery-item--wide) {
        grid-column: span 12;
        aspect-ratio: 400/300;
    }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 28px; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 90px 0 50px; }
    .hero-float-card { left: 0; bottom: 16px; }
    .menu-card-body { padding: 20px; }
}
