/* ========================================
   Joe Merchant's Coffee and Provisions
   Classic & Elegant — Emerald & Cream
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-emerald-950: #052e16;
    --color-emerald-900: #14532d;
    --color-emerald-800: #166534;
    --color-emerald-700: #15803a;
    --color-emerald-600: #16a34a;
    --color-emerald-500: #22c55e;
    --color-cream-50: #faf8f5;
    --color-cream-100: #f5f0e8;
    --color-cream-200: #ebe4d6;
    --color-cream-300: #d4c4a8;
    --color-gold-400: #d4a373;
    --color-gold-500: #c49a6c;
    --color-gold-600: #b08960;
    --color-text-dark: #1a1a1a;
    --color-text-medium: #3d3d3d;
    --color-text-light: #6b6b6b;
    --color-white: #ffffff;
    
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.35s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-cream-50);
    -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 {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-500);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-emerald-900);
    margin-bottom: 1.25rem;
}

.section-title--light {
    color: var(--color-cream-100);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-gold-500);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.35);
}

.btn--primary:hover {
    background-color: var(--color-gold-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 163, 115, 0.45);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-cream-200);
    border: 1.5px solid rgba(212, 163, 115, 0.5);
}

.btn--ghost:hover {
    background-color: rgba(212, 163, 115, 0.1);
    border-color: var(--color-gold-500);
    color: var(--color-gold-400);
}

.btn--ghost-light {
    background-color: transparent;
    color: var(--color-emerald-800);
    border: 1.5px solid var(--color-emerald-800);
}

.btn--ghost-light:hover {
    background-color: var(--color-emerald-800);
    color: var(--color-white);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 83, 45, 0.08);
    transition: all var(--transition-medium);
}

.nav.scrolled {
    background-color: rgba(245, 240, 232, 0.97);
    box-shadow: var(--shadow-sm);
}

.nav__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-emerald-900);
}

.nav__logo-text {
    letter-spacing: -0.01em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-medium);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}

.nav__link:hover {
    color: var(--color-emerald-800);
    background-color: rgba(22, 101, 52, 0.06);
}

.nav__link--cta {
    background-color: var(--color-emerald-800);
    color: var(--color-white) !important;
    margin-left: 0.5rem;
}

.nav__link--cta:hover {
    background-color: var(--color-emerald-700);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-emerald-900);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--color-cream-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
}

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

.mobile-menu__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--color-emerald-900);
    padding: 8px;
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-emerald-900);
    padding: 0.75rem 1.5rem;
    transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
    color: var(--color-gold-500);
}

.mobile-menu__contact {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

.mobile-menu__contact a {
    color: var(--color-gold-600);
    font-weight: 600;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-emerald-900);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    color: var(--color-gold-400);
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-cream-100);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__headline-accent {
    color: var(--color-gold-400);
    font-style: italic;
}

.hero__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.75);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__trust {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__trust-icon {
    color: var(--color-gold-400);
    opacity: 0.8;
}

/* Hero Image */
.hero__right {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.hero__image-accent {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 163, 115, 0.2);
    pointer-events: none;
}

.hero__badge {
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-cream-100);
    color: var(--color-emerald-900);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold-500);
    border-radius: 50%;
    flex-shrink: 0;
}

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

.about__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about__content {
    max-width: 560px;
}

.about__text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-medium);
    margin-bottom: 1.5rem;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.about__feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.about__feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background-color: rgba(22, 101, 52, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__feature-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-emerald-900);
    margin-bottom: 0.35rem;
}

.about__feature-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.about__image-group {
    position: relative;
}

.about__image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/6.2;
    object-fit: cover;
}

.about__image-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream-50);
}

.about__image-secondary img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* --- Products Section --- */
.products {
    padding: 8rem 0;
    background-color: var(--color-cream-100);
}

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

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

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

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

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

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

.product-card__image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.product-card__content {
    padding: 2rem;
}

.product-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-emerald-900);
    margin-bottom: 0.75rem;
}

.product-card__desc {
    font-size: 0.925rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.product-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-card__list li {
    font-size: 0.875rem;
    color: var(--color-text-medium);
    padding-left: 1.25rem;
    position: relative;
}

.product-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    background-color: var(--color-gold-500);
    border-radius: 50%;
}

/* --- Gallery Section --- */
.gallery {
    padding: 8rem 0;
    background-color: var(--color-cream-50);
}

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

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

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 46, 22, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.gallery__item:hover .gallery__item-overlay {
    opacity: 1;
}

.gallery__item-overlay span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-cream-100);
    font-weight: 500;
}

.gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery__item--large img {
    aspect-ratio: 3/2;
}

.gallery__item--tall {
    grid-row: span 2;
}

.gallery__item--tall img {
    aspect-ratio: 3/5;
}

.gallery__item:not(.gallery__item--large):not(.gallery__item--tall) img {
    aspect-ratio: 4/3;
}

/* --- Visit Section --- */
.visit {
    padding: 8rem 0;
    background-color: var(--color-emerald-900);
    position: relative;
    overflow: hidden;
}

.visit__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.visit__left {
    max-width: 540px;
}

.visit__description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 3rem;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.visit__detail {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.visit__detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(212, 163, 115, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visit__detail-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold-400);
    margin-bottom: 0.35rem;
}

.visit__detail-value {
    font-size: 1rem;
    color: var(--color-cream-100);
    line-height: 1.7;
}

.visit__detail-value a {
    color: var(--color-cream-100);
    transition: color var(--transition-fast);
}

.visit__detail-value a:hover {
    color: var(--color-gold-400);
}

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

.visit__right {
    position: relative;
}

.visit__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/3;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-emerald-950);
    padding: 5rem 0 0;
}

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

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(212, 163, 115, 0.12);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-cream-100);
    margin-bottom: 1rem;
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold-400);
    margin-bottom: 1.25rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.55);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-cream-100);
}

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

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.55);
    line-height: 1.6;
}

.footer__phone {
    color: var(--color-gold-400);
    transition: color var(--transition-fast);
}

.footer__phone:hover {
    color: var(--color-gold-500);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.35);
}

.footer__location {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.35);
}

/* --- Scroll Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__container {
        gap: 3rem;
    }
    
    .about__container {
        gap: 3rem;
    }
    
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery__item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery__item--tall {
        grid-row: span 1;
    }
    
    .visit__container {
        gap: 3rem;
    }
    
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer__top > :first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__container {
        height: 64px;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero__right {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero__badge {
        bottom: -1rem;
    }
    
    .about {
        padding: 5rem 0;
    }
    
    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about__image-group {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about__image-secondary {
        right: -1rem;
        bottom: -1.5rem;
    }
    
    .products {
        padding: 5rem 0;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
    
    .gallery {
        padding: 5rem 0;
    }
    
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery__item--large {
        grid-column: span 2;
    }
    
    .visit {
        padding: 5rem 0;
    }
    
    .visit__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .visit__map {
        aspect-ratio: 16/9;
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer__top > :first-child {
        grid-column: span 1;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__trust {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero__badge {
        font-size: 0.7rem;
        padding: 0.6rem 1rem;
    }
    
    .visit__actions {
        flex-direction: column;
    }
    
    .visit__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery__item--large {
        grid-column: span 1;
    }
}
