/* ========================================
   State Street Coffee — Styles
   Charcoal + Coral | Editorial Design
   ======================================== */

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

:root {
    --color-charcoal: #2C2C2C;
    --color-charcoal-deep: #1A1A1A;
    --color-charcoal-light: #3D3D3D;
    --color-coral: #E8644A;
    --color-coral-dark: #C94E36;
    --color-coral-light: #F4845F;
    --color-cream: #FAF6F1;
    --color-cream-dark: #F0E9E0;
    --color-warm-gray: #8A8278;
    --color-warm-gray-light: #B8B0A8;
    --color-white: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #5A5550;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

ul {
    list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
}

em {
    font-style: italic;
}

/* ---------- Section Kicker ---------- */
.section-kicker {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-coral);
    margin-bottom: var(--space-md);
}

.section-kicker--center {
    text-align: center;
}

.section-kicker--left {
    text-align: left;
}

/* ---------- Section Titles ---------- */
.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.section-title--center {
    text-align: center;
}

.section-title--left {
    text-align: left;
}

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

.section-subtitle--center {
    text-align: center;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}

.btn--primary:hover {
    background-color: var(--color-coral-dark);
    border-color: var(--color-coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 100, 74, 0.3);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

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

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

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-charcoal);
    letter-spacing: -0.01em;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-coral);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
}

/* ---------- Navigation ---------- */
.site-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

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

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.site-nav a:hover {
    color: var(--color-coral);
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    background-color: var(--color-charcoal);
    color: var(--color-white) !important;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    transition: var(--transition);
}

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

.nav-cta:hover {
    background-color: var(--color-coral);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    border-radius: 2px;
    transition: 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);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-charcoal-deep);
}

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

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(26, 26, 26, 0.5) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    max-width: 800px;
}

.hero-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-coral-light);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.hero-title em {
    color: var(--color-coral);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
}

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

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

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

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

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

.about-img-main {
    grid-column: 1 / -1;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-img-main img,
.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-main {
    aspect-ratio: 4/5;
}

.about-img-secondary {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--space-lg);
    margin-left: auto;
}

.about-text {
    padding: var(--space-lg) 0;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(44, 44, 44, 0.12);
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-coral);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-warm-gray);
    line-height: 1.4;
}

/* ---------- Menu ---------- */
.menu {
    padding: var(--space-3xl) 0;
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

.menu .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

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

.menu-category {
    padding: var(--space-lg);
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.menu-category:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(232, 100, 74, 0.3);
}

.category-title {
    font-size: 1.375rem;
    color: var(--color-coral);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-md);
    padding: var(--space-xs) 0;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--color-white);
    font-weight: 400;
}

.menu-item-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    flex-shrink: 0;
    max-width: 200px;
    line-height: 1.4;
}

.menu-note {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ---------- Marquee ---------- */
.marquee-section {
    padding: var(--space-lg) 0;
    background-color: var(--color-coral);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    animation: marqueeScroll 25s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.marquee-dot {
    font-size: 0.5rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

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

/* ---------- Gallery ---------- */
.gallery {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.gallery .section-kicker,
.gallery .section-title {
    margin-bottom: var(--space-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
}

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

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item--tall {
    grid-column: 1 / 5;
    aspect-ratio: 2/3;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    grid-column: span 4;
    aspect-ratio: 3/2;
}

.gallery-item--wide {
    grid-column: 6 / 13;
    aspect-ratio: 16/9;
}

/* ---------- Philosophy ---------- */
.philosophy {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream-dark);
}

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

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

.philosophy-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 5/6;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

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

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

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

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-warm-gray);
    margin-bottom: 0.25rem;
}

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

.visit-detail a {
    color: var(--color-coral-dark);
    transition: var(--transition);
}

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

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-charcoal-deep);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .logo-mark {
    background-color: var(--color-coral);
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-left: calc(36px + 0.75rem);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-lg);
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-coral);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

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

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    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-hero {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .philosophy-inner,
    .visit-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        max-width: 600px;
    }

    .gallery-item--tall {
        grid-column: 1 / 7;
    }

    .gallery-item--wide {
        grid-column: 7 / 13;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background-color: var(--color-cream);
        padding: 100px var(--space-lg) var(--space-lg);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .site-nav a {
        font-size: 1.125rem;
    }

    .nav-cta {
        margin-top: var(--space-sm);
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .menu-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 1.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item--tall,
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-tagline {
        margin-left: 0;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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

    .about-img-secondary {
        margin-left: 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

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

    .menu-item-desc {
        max-width: 140px;
        font-size: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item--tall,
    .gallery-item--wide,
    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: 1 / -1;
        aspect-ratio: 4/3;
    }
}

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

    .marquee-track {
        animation: none;
    }
}
