/* ========================================
   MAIKO'S — Bakery & Grocery
   Plum + Amber | Playfair Display + Inter
   ======================================== */

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

:root {
    --plum-deep: #3D1C4E;
    --plum: #5B2C6F;
    --plum-light: #7D3C9E;
    --plum-pale: #F5EEF8;
    --plum-muted: #E8D5F5;
    --amber: #F59E0B;
    --amber-light: #FCD34D;
    --amber-dark: #D97706;
    --amber-glow: #FEF3C7;
    --cream: #FFFBF5;
    --cream-dark: #FDF6EC;
    --text-dark: #1A0A2E;
    --text-mid: #4A3055;
    --text-light: #7B6080;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(91, 44, 111, 0.08);
    --shadow-md: 0 8px 30px rgba(91, 44, 111, 0.12);
    --shadow-lg: 0 20px 60px rgba(91, 44, 111, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
}

em {
    font-style: italic;
}

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

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

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

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 251, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(91, 44, 111, 0.08);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 251, 245, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--plum);
    color: var(--amber);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--plum);
}

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

.nav-cta {
    background: var(--plum) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--plum-light) !important;
    transform: translateY(-1px);
}

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

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

.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;
    flex-direction: column;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(91, 44, 111, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber-dark);
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-headline .accent {
    color: var(--plum);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--plum);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(91, 44, 111, 0.3);
}

.btn-primary:hover {
    background: var(--plum-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91, 44, 111, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--plum);
    border: 2px solid var(--plum);
}

.btn-secondary:hover {
    background: var(--plum);
    color: var(--white);
    transform: translateY(-2px);
}

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

/* Floating Cards */
.hero-cards {
    position: relative;
    height: 580px;
}

.fcard {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fcard:hover {
    transform: scale(1.03) !important;
}

.fcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcard--1 {
    width: 280px;
    height: 200px;
    top: 0;
    right: 20px;
    z-index: 3;
    transform: rotate(3deg);
}

.fcard--2 {
    width: 220px;
    height: 180px;
    top: 140px;
    right: 160px;
    z-index: 4;
    background: var(--plum);
    color: var(--white);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotate(-2deg);
}

.fcard-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 14px;
    color: var(--amber-light);
}

.fcard-icon--amber {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
}

.fcard-stat {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.fcard-stat strong {
    font-size: 1.5rem;
    color: var(--amber-light);
}

.fcard--2 .fcard-stat strong {
    color: var(--amber-light);
}

.fcard-label {
    font-size: 0.75rem;
    opacity: 0.75;
    line-height: 1.4;
}

.fcard--3 {
    width: 240px;
    height: 160px;
    bottom: 160px;
    right: 0;
    z-index: 2;
    transform: rotate(-4deg);
}

.fcard--4 {
    width: 220px;
    height: 170px;
    bottom: 40px;
    right: 140px;
    z-index: 5;
    background: var(--amber);
    color: var(--text-dark);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotate(2deg);
}

.fcard--4 .fcard-stat strong {
    color: var(--plum);
}

.fcard--5 {
    width: 200px;
    height: 140px;
    bottom: 0;
    right: 40px;
    z-index: 1;
    transform: rotate(5deg);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 1;
}

.hero-scroll svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ---- SECTION COMMON ---- */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber-dark);
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 24px;
}

.section-heading--center {
    text-align: center;
}

/* ---- ABOUT ---- */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--plum-muted);
}

.astat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.astat strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--plum);
}

.astat span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.astat-divider {
    width: 1px;
    height: 40px;
    background: var(--plum-muted);
}

/* ---- PRODUCTS ---- */
.products {
    padding: 120px 0;
    background: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(91, 44, 111, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    color: var(--amber-light);
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-body {
    padding: 28px;
}

.product-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--plum);
}

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

/* ---- VISIT ---- */
.visit {
    padding: 120px 0;
    background: var(--white);
}

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

.visit-info {
    padding-right: 20px;
}

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

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-detail-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum-pale);
    border-radius: var(--radius-md);
    color: var(--plum);
}

.visit-detail strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.visit-detail span,
.visit-detail a {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
}

.visit-detail a:hover {
    color: var(--plum);
}

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

/* ---- CONTACT ---- */
.contact {
    padding: 120px 0;
    background: var(--plum-deep);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(125, 60, 158, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text .section-heading {
    color: var(--white);
}

.contact-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    max-width: 420px;
}

.contact-text .section-label {
    color: var(--amber);
}

.contact-form {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--amber);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-group select option {
    background: var(--plum-deep);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: #4ADE80;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-success.show {
    display: flex;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
}

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

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--plum);
    color: var(--amber);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

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

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-contact span {
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ---- ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- MOBILE RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-cards {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        max-width: 500px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .visit-info {
        padding-right: 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 251, 245, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid rgba(91, 44, 111, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero-cards {
        height: 360px;
    }

    .fcard--1 { width: 200px; height: 150px; right: 0; }
    .fcard--2 { width: 170px; height: 140px; top: 100px; right: 100px; }
    .fcard--3 { width: 180px; height: 120px; bottom: 120px; right: 0; }
    .fcard--4 { width: 170px; height: 130px; bottom: 30px; right: 90px; }
    .fcard--5 { width: 150px; height: 100px; bottom: 0; right: 20px; }

    .hero-scroll { display: none; }

    .about, .products, .visit, .contact {
        padding: 80px 0;
    }

    .about-stats {
        flex-direction: column;
        gap: 16px;
    }

    .astat-divider {
        width: 40px;
        height: 1px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-cards {
        height: 300px;
    }

    .fcard--1 { width: 160px; height: 120px; }
    .fcard--2 { width: 140px; height: 110px; top: 80px; right: 70px; }
    .fcard--3 { width: 150px; height: 100px; }
    .fcard--4 { width: 140px; height: 110px; bottom: 20px; right: 60px; }
    .fcard--5 { width: 130px; height: 85px; }
}
