/* ==========================================
   Aqui Market — Fresh & Airy Marketing Site
   Colors: Midnight Blue (#0f172a) + Mint (#34d399)
   ========================================== */

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

:root {
    --color-midnight: #0f172a;
    --color-midnight-light: #1e293b;
    --color-mint: #34d399;
    --color-mint-light: #6ee7b7;
    --color-mint-pale: #d1fae5;
    --color-mint-ghost: #ecfdf5;
    --color-white: #ffffff;
    --color-cream: #f8fafc;
    --color-surface: #f1f5f9;
    --color-border: #e2e8f0;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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 {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-midnight);
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 500;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 1rem;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* --- Typography --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-mint);
    background: var(--color-mint-pale);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--color-midnight);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.7;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-mint);
    color: var(--color-midnight);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.35);
}

.btn--primary:hover {
    background: var(--color-mint-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.4);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--small {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    background: var(--color-midnight);
    color: var(--color-white);
    border-radius: 100px;
    white-space: nowrap;
}

.btn--small:hover {
    background: var(--color-midnight-light);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    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: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-midnight);
}

.logo-icon {
    color: var(--color-mint);
}

.logo-accent {
    color: var(--color-mint);
}

.nav-list {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-midnight);
    background: var(--color-surface);
}

.nav-link--cta {
    background: var(--color-mint);
    color: var(--color-midnight);
    border-radius: 100px;
    margin-left: 0.5rem;
}

.nav-link--cta:hover {
    background: var(--color-mint-light);
    color: var(--color-midnight);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--color-surface);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-midnight);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile nav */
.main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

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

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

.nav-link {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-link--cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(15, 23, 42, 0.45) 50%,
        rgba(15, 23, 42, 0.30) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    max-width: 720px;
    padding-bottom: 4rem;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-mint-light);
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    color: var(--color-mint-light);
    font-style: italic;
}

.hero-subheadline {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

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

/* --- Pillars --- */
.pillars {
    padding: 7rem 0;
    background: var(--color-cream);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.pillar-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-mint-pale);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-mint-ghost);
    border-radius: var(--radius-md);
    color: var(--color-mint);
    margin-bottom: 1.25rem;
}

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-midnight);
    margin-bottom: 0.75rem;
}

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

/* --- Products --- */
.products {
    padding: 7rem 0;
    background: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-category {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    transition: all var(--transition-base);
}

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

.product-img {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-category:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-midnight);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* --- Bakery --- */
.bakery {
    padding: 7rem 0;
    background: var(--color-mint-ghost);
}

.bakery-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.bakery-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 7/9;
}

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

.bakery-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    color: var(--color-midnight);
    padding: 0.625rem 1.125rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.bakery-badge svg {
    color: var(--color-mint);
}

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

.bakery-description {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.bakery-list {
    display: grid;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}

.bakery-list li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1rem;
    color: var(--color-text);
}

.bakery-list-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-mint-pale);
    border-radius: 50%;
    color: var(--color-mint);
}

/* --- Visit --- */
.visit {
    padding: 7rem 0;
    background: var(--color-cream);
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.visit-info {
    max-width: 480px;
}

.visit-description {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-mint-ghost);
    border-radius: var(--radius-sm);
    color: var(--color-mint);
}

.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-midnight);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-mint);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--color-midnight);
}

.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.map-wrapper {
    aspect-ratio: 4/3;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-midnight);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-mint-light);
    margin-bottom: 1rem;
}

.footer-col ul {
    display: grid;
    gap: 0.625rem;
}

.footer-col a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Cookie Toast --- */
.cookie-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--color-midnight);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    max-width: calc(100vw - 3rem);
    transition: transform var(--transition-base);
}

.cookie-toast.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-toast .btn--small {
    flex-shrink: 0;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > * {
    transition-delay: calc(var(--i, 0) * 80ms);
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-category {
        grid-template-columns: 200px 1fr;
    }
    
    .product-img {
        aspect-ratio: auto;
        height: 100%;
    }
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
        flex-direction: row;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .bakery-layout {
        grid-template-columns: 0.9fr 1fr;
        gap: 4rem;
    }
    
    .visit-layout {
        grid-template-columns: 0.85fr 1.15fr;
    }
    
    .footer-inner {
        grid-template-columns: 1.2fr 1.5fr;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-category {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
}
