/* ============================================
   Ice Ice Baby — Hyattsville Bakery & Grocers
   Clean minimalist · Emerald + Cream
   ============================================ */

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

:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;
    
    --cream-50:  #fafaf5;
    --cream-100: #f5f5f0;
    --cream-200: #edecea;
    --cream-300: #e2e0db;
    
    --text-dark:  #0a1f17;
    --text-mid:   #2d3a35;
    --text-light: #5c6b64;
    --text-muted: #8a9a93;
    
    --white: #ffffff;
    
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans:  'Manrope', -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--emerald-200);
    color: var(--emerald-950);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--emerald-900);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 200;
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus {
    top: 0;
}

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

/* ---------- NOISE OVERLAY ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow 0.3s var(--ease-smooth);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(4, 47, 35, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    color: var(--emerald-900);
}

.logo-mark {
    font-size: 1.25rem;
    color: var(--emerald-600);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.main-nav a {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.2s var(--ease-smooth);
    position: relative;
}

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

.main-nav a:hover {
    color: var(--emerald-700);
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn--primary {
    background: var(--emerald-900);
    color: var(--cream-50);
    border: 1px solid var(--emerald-900);
}

.btn--primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.2);
}

.btn--outline {
    background: transparent;
    color: var(--emerald-900);
    border: 1px solid var(--emerald-900);
}

.btn--outline:hover {
    background: var(--emerald-900);
    color: var(--cream-50);
}

.btn--text {
    background: transparent;
    color: var(--text-light);
    padding: 0.5rem 0;
    border: none;
    font-size: 0.8125rem;
}

.btn--text:hover {
    color: var(--emerald-700);
}

.btn--text::after {
    display: none;
}

.btn--sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
}

/* ---------- MOBILE MENU BTN ---------- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn .bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--emerald-900);
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.mobile-menu-btn.active .bar:first-child {
    transform: rotate(45deg) translate(4px, 5px);
}

.mobile-menu-btn.active .bar:last-child {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--cream-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--emerald-900);
    line-height: 1;
    padding: 0.5rem;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--emerald-900);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--emerald-600);
    font-style: italic;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--cream-50);
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-content {
    padding-right: 1rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2.5rem;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.75rem;
    height: 1px;
    background: var(--emerald-600);
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    color: var(--emerald-950);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-title .accent {
    font-style: italic;
    color: var(--emerald-700);
}

.hero-desc {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-image {
    position: relative;
}

.hero-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.hero-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(4, 47, 35, 0.08) 100%);
    pointer-events: none;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.hero-img-wrap:hover img {
    transform: scale(1.02);
}

.hero-accent-line {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 120px;
    height: 1px;
    background: var(--emerald-300);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

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

/* ---------- DIVIDER ---------- */
.divider {
    padding: 0;
}

.divider-line {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--cream-300);
}

/* ---------- SECTION COMMON ---------- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.15;
    color: var(--emerald-950);
    margin-top: 1rem;
    letter-spacing: -0.01em;
}

.section-title .italic {
    font-style: italic;
    color: var(--emerald-700);
}

/* ---------- ABOUT ---------- */
.about {
    padding: 8rem 0;
    background: var(--cream-50);
}

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

.about-text .eyebrow {
    padding-left: 0;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.about-image {
    overflow: hidden;
    border-radius: 4px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 7/5;
    transition: transform 0.8s var(--ease-out);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* ---------- PRODUCTS ---------- */
.products {
    padding: 8rem 0;
    background: var(--white);
}

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

.product-card {
    background: var(--cream-50);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-smooth);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(4, 47, 35, 0.08);
}

.product-img {
    overflow: hidden;
    aspect-ratio: 5/4;
}

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

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

.product-card > h3,
.product-card > p {
    padding: 1.5rem;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--emerald-950);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- GROCERIES ---------- */
.groceries {
    padding: 8rem 0;
    background: var(--cream-50);
}

.groceries-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.groceries-image {
    overflow: hidden;
    border-radius: 4px;
}

.groceries-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
    transition: transform 0.8s var(--ease-out);
}

.groceries-image:hover img {
    transform: scale(1.02);
}

.groceries-content .eyebrow {
    padding-left: 0;
}

.groceries-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.groceries-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-mid);
}

.feature-list .bullet {
    width: 6px;
    height: 6px;
    background: var(--emerald-600);
    border-radius: 50%;
    flex-shrink: 0;
}

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

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

.visit-content .eyebrow {
    color: var(--emerald-400);
    padding-left: 0;
}

.visit-content .eyebrow::before {
    background: var(--emerald-600);
}

.visit-content .section-title {
    color: var(--cream-50);
    text-align: left;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

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

.contact-label {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-500);
}

.contact-item address,
.contact-item p,
.contact-item a {
    font-style: normal;
    font-size: 1.0625rem;
    color: var(--cream-200);
    line-height: 1.8;
}

.contact-item a:hover {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--emerald-500);
    text-underline-offset: 4px;
}

.visit-map {
    position: relative;
}

.map-placeholder {
    background: var(--emerald-900);
    border: 1px solid var(--emerald-800);
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--cream-200);
    transition: border-color 0.3s;
}

.map-placeholder:hover {
    border-color: var(--emerald-600);
}

.map-placeholder svg {
    color: var(--emerald-500);
}

.map-placeholder p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--cream-300);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--emerald-950);
    border-top: 1px solid var(--emerald-900);
    padding: 3rem 0;
    color: var(--cream-300);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1rem;
    color: var(--cream-50);
}

.footer-left .logo-mark {
    color: var(--emerald-500);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

.footer-address {
    color: var(--text-muted);
}

.footer-credit {
    font-size: 0.8125rem;
}

.footer-credit a {
    color: var(--emerald-400);
    transition: color 0.2s;
}

.footer-credit a:hover {
    color: var(--emerald-300);
}

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

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 3rem;
    }
    
    .about-inner,
    .groceries-inner,
    .visit-inner {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-accent-line {
        display: none;
    }
    
    .about-inner,
    .groceries-inner,
    .visit-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .groceries-inner {
        direction: ltr;
    }
    
    .groceries-image {
        order: -1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .about,
    .products,
    .groceries,
    .visit {
        padding: 5rem 0;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-scroll-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

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

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