/* ============================================
   1883 Coffee Company — Editorial Style CSS
   Palette: Emerald Green + Cream
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-emerald: #047857;
    --color-emerald-dark: #065f46;
    --color-emerald-light: #059669;
    --color-cream: #FAF9F6;
    --color-cream-dark: #F5F5F0;
    --color-cream-warm: #F0EDE6;
    --color-text: #1A1A1A;
    --color-text-light: #4A4A4A;
    --color-text-muted: #6B6B6B;
    --color-white: #FFFFFF;
    --color-border: #E5E2DB;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-emerald);
    margin-bottom: var(--space-sm);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-emerald);
    color: var(--color-white);
    border: 2px solid var(--color-emerald);
}

.btn--primary:hover {
    background-color: var(--color-emerald-dark);
    border-color: var(--color-emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.25);
}

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

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

.btn--full {
    width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

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

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* --- Logo --- */
.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-emerald-dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 0.1em;
}

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

.logo__sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-left: 0.25rem;
}

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

.logo--light .logo__sub {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Navigation --- */
.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-emerald);
    transition: width var(--transition);
}

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

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--color-emerald);
    border-radius: var(--radius-sm);
    color: var(--color-emerald);
    transition: all var(--transition);
}

.nav__link--cta::after {
    display: none;
}

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

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

.nav-toggle__line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.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);
}

/* --- Nav Overlay --- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(16px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.nav-overlay .nav__list {
    flex-direction: column;
    gap: var(--space-md);
}

.nav-overlay .nav__link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-text);
}

.nav-overlay .nav__link::after {
    display: none;
}

.nav-overlay .nav__link--cta {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-top: var(--space-md);
}

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

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero__content {
    padding-right: var(--space-md);
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-emerald);
    margin-bottom: var(--space-sm);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero__headline em {
    font-style: italic;
    color: var(--color-emerald);
}

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

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 32px 64px rgba(4, 120, 87, 0.15);
}

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

.hero__image:hover img {
    transform: scale(1.03);
}

.hero__accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--color-emerald);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

/* --- About Section --- */
.about {
    padding: var(--space-2xl) 0;
    background-color: var(--color-cream-warm);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about__text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 5/4;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

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

.about__image:hover img {
    transform: scale(1.03);
}

/* --- Menu Section --- */
.menu {
    padding: var(--space-2xl) 0;
    background-color: var(--color-cream);
}

.menu__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.menu-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(4, 120, 87, 0.12);
}

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

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

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

.menu-card__content {
    padding: var(--space-md);
}

.menu-card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.menu-card__description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.menu__footer {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* --- Location Section --- */
.location {
    padding: var(--space-2xl) 0;
    background-color: var(--color-emerald);
    color: var(--color-white);
}

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

.location .section-label {
    color: rgba(255, 255, 255, 0.7);
}

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

.location__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.location__detail {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.location__detail .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.location__detail h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.location__detail p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.location__detail a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition);
}

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

.location__map {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6/5;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

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

.map-link {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--color-white);
    color: var(--color-emerald-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.map-link:hover {
    background-color: var(--color-cream);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

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

.contact__text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.contact__email {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-emerald);
    transition: color var(--transition);
}

.contact__email:hover {
    color: var(--color-emerald-dark);
    text-decoration: underline;
}

/* --- Form --- */
.contact__form {
    background-color: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

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

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

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

.form-input:focus {
    border-color: var(--color-emerald);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

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

.form-success {
    display: none;
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background-color: rgba(4, 120, 87, 0.1);
    border: 1px solid var(--color-emerald);
    border-radius: var(--radius-sm);
    color: var(--color-emerald-dark);
    font-weight: 500;
    text-align: center;
}

.form-success.visible {
    display: block;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.footer__brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-xs);
    max-width: 320px;
}

.footer__links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

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

.footer__bottom {
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s 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; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__container {
        gap: var(--space-md);
    }
    
    .hero__headline {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .header__container {
        height: 70px;
    }
    
    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-lg);
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero__content {
        padding-right: 0;
        order: 2;
    }
    
    .hero__image-wrapper {
        order: 1;
    }
    
    .hero__image {
        aspect-ratio: 4/3;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }
    
    /* About */
    .about__inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .about__image {
        order: -1;
    }
    
    /* Menu */
    .menu__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Location */
    .location__inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .location__map {
        order: -1;
    }
    
    /* Contact */
    .contact__inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .contact__email {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero__headline {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
}
