/* ============================================
   Morningside Shop Ezy — Editorial Style
   Emerald Green + Cream
   ============================================ */

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

:root {
    --color-emerald-900: #064e3b;
    --color-emerald-800: #065f46;
    --color-emerald-700: #047857;
    --color-emerald-600: #059669;
    --color-cream: #faf8f0;
    --color-cream-dark: #f0ead6;
    --color-cream-light: #fefce8;
    --color-text: #1a1a1a;
    --color-text-muted: #4a4a4a;
    --color-text-light: #6b6b6b;
    --color-white: #ffffff;
    --color-border: rgba(6, 78, 59, 0.12);
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    -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;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--color-emerald-900);
    margin-bottom: var(--space-xl);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-emerald-800);
    color: var(--color-white);
}

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

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

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

.btn--small {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

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

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 248, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-emerald-900);
}

.logo--light {
    color: var(--color-cream);
}

.logo-mark {
    color: var(--color-emerald-700);
}

.logo--light .logo-mark {
    color: var(--color-cream);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-emerald-700);
    transition: width var(--transition);
}

.nav-list a:hover {
    color: var(--color-emerald-800);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-emerald-900);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--color-emerald-900);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--color-cream);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-110%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-list a::after {
        display: none;
    }
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.04) 0%, rgba(6, 78, 59, 0.01) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-4xl) 0;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1.5px;
    background-color: var(--color-emerald-700);
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    color: var(--color-emerald-900);
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.03em;
}

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

.hero-dek {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image-col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero-image-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.15);
}

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

.hero-image-accent {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.1);
    margin-top: calc(var(--space-xl) * -1);
    margin-left: var(--space-xl);
    max-width: 340px;
}

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(6, 78, 59, 0.8));
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 500;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    opacity: 0.6;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-eyebrow {
        justify-content: center;
    }
    
    .hero-dek {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-col {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-image-accent {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 72px;
        padding-bottom: var(--space-3xl);
    }
    
    .hero-grid {
        padding: var(--space-2xl) 0;
    }
    
    .hero-image-accent {
        max-width: 100%;
        margin-top: calc(var(--space-lg) * -1);
    }
}

/* ---- Marquee ---- */
.marquee {
    background-color: var(--color-emerald-900);
    padding: var(--space-md) 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    gap: var(--space-lg);
}

.marquee-item {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-cream);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.marquee-dot {
    color: var(--color-emerald-600);
    font-size: 0.625rem;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Products ---- */
.products {
    padding: var(--space-5xl) 0;
    background-color: var(--color-cream);
}

.section-header {
    max-width: 680px;
    margin-bottom: var(--space-3xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-white);
    box-shadow: 0 2px 12px rgba(6, 78, 59, 0.06);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(6, 78, 59, 0.12);
}

.product-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

.product-card--featured .product-card-image {
    aspect-ratio: auto;
    height: 100%;
}

.product-card-image 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-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: var(--space-xl);
}

.product-card-title {
    font-size: 1.375rem;
    color: var(--color-emerald-900);
    margin-bottom: var(--space-sm);
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card--featured {
        grid-template-columns: 1fr;
    }
    
    .product-card--featured .product-card-image {
        aspect-ratio: 16/9;
    }
}

/* ---- About ---- */
.about {
    padding: var(--space-5xl) 0;
    background-color: var(--color-emerald-900);
    color: var(--color-cream);
}

.about .section-eyebrow {
    color: var(--color-emerald-400);
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-image-col {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.about-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.about-image-side {
    position: absolute;
    bottom: calc(var(--space-xl) * -1);
    right: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 220px;
}

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

.about-content-col {
    padding-top: var(--space-2xl);
}

.about-body {
    margin-bottom: var(--space-2xl);
}

.about-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(250, 248, 240, 0.8);
    margin-bottom: var(--space-md);
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(250, 248, 240, 0.15);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-cream);
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(250, 248, 240, 0.6);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(250, 248, 240, 0.2);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .about-content-col {
        padding-top: 0;
    }
    
    .about-image-side {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin-top: calc(var(--space-md) * -1);
    }
}

@media (max-width: 640px) {
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

/* ---- Visit ---- */
.visit {
    padding: var(--space-5xl) 0;
    background-color: var(--color-cream-dark);
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.visit-info {
    padding-right: var(--space-xl);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.visit-detail {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

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

.visit-detail h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-emerald-700);
    margin-bottom: var(--space-xs);
}

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

.visit-detail a {
    color: var(--color-emerald-800);
    transition: color var(--transition);
}

.visit-detail a:hover {
    color: var(--color-emerald-600);
    text-decoration: underline;
}

.visit-cta .btn {
    padding: 1rem 2rem;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(6, 78, 59, 0.12);
    min-height: 400px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

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

@media (max-width: 1024px) {
    .visit-layout {
        grid-template-columns: 1fr;
    }
    
    .visit-info {
        padding-right: 0;
    }
}

/* ---- Contact ---- */
.contact {
    padding: var(--space-5xl) 0;
    background-color: var(--color-cream);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-dek {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-top: var(--space-md);
}

.contact-form {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    background-color: var(--color-cream);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-emerald-700);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-md);
    background-color: rgba(5, 150, 105, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--color-emerald-800);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---- Footer ---- */
.footer {
    background-color: var(--color-emerald-900);
    color: var(--color-cream);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(250, 248, 240, 0.12);
}

.footer-brand {
    max-width: 280px;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(250, 248, 240, 0.6);
    line-height: 1.6;
    margin-top: var(--space-md);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-emerald-400);
    margin-bottom: var(--space-lg);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(250, 248, 240, 0.7);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-cream);
}

.footer-contact span {
    font-size: 0.9375rem;
    color: rgba(250, 248, 240, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(250, 248, 240, 0.4);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

/* ---- Animations ---- */
.fade-in {
    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);
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
