/* ============================================
   Paper Street Coffee Company — Stylesheet
   Classic & Elegant | Plum + Amber Palette
   ============================================ */

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

:root {
    --plum-deep: #2D0A2E;
    --plum-dark: #4A1942;
    --plum-mid: #6B2158;
    --plum-soft: #8B3A6E;
    --plum-pale: #C4849A;
    --plum-faint: #F3E5EF;
    --plum-bg: #FDF8FA;

    --amber-deep: #8B5E0B;
    --amber-dark: #B8860B;
    --amber: #D4A017;
    --amber-light: #E8C05A;
    --amber-pale: #F5E6B8;
    --amber-faint: #FFFBF0;

    --cream: #FDF9F5;
    --warm-white: #FEFCF9;
    --text-dark: #1A0A14;
    --text-mid: #3D1F35;
    --text-light: #6B4A5E;
    --text-muted: #9A7488;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', 'Palatino Linotype', Palatino, serif;
    --font-ui: 'Inter', system-ui, -apple-system, 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;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(45, 10, 46, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 10, 46, 0.08);
    --shadow-lg: 0 8px 40px rgba(45, 10, 46, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 160, 23, 0.25);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    color: var(--plum-deep);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

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

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

.btn-gold {
    background: var(--amber);
    color: var(--plum-deep);
    border-color: var(--amber);
}

.btn-gold:hover {
    background: var(--amber-light);
    border-color: var(--amber-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-1px);
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all 0.4s ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(253, 248, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.625rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--plum-deep);
    transition: color 0.3s ease;
}

.logo-light { color: #fff; }
.site-header.scrolled .logo { color: var(--plum-deep); }

.logo-dot { color: var(--amber); }
.logo-mark {
    color: var(--amber);
    flex-shrink: 0;
}

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

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-mid);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--amber);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--plum-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--plum-deep);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--plum-deep);
    transition: all 0.3s ease;
}

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

.nav-toggle[aria-expanded="true"] .hamburger {
    background: 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);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--plum-deep) 0%,
        var(--plum-dark) 25%,
        #5C1A4E 50%,
        var(--plum-mid) 75%,
        #3D1035 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(212, 160, 23, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 62, 110, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(74, 25, 66, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.5) 40px,
            rgba(255, 255, 255, 0.5) 41px
        );
    pointer-events: none;
}

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

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--space-md);
}

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

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0 auto var(--space-lg);
    line-height: 1.8;
}

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

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

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

/* ---------- Sections ---------- */
.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background: var(--plum-faint);
}

.section-header {
    margin-bottom: var(--space-2xl);
}

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

.about-image-wrap {
    position: relative;
}

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.about-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--amber);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
}

.about-text p {
    color: var(--text-mid);
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--plum-pale);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--plum-dark);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--plum-pale);
}

/* ---------- Menu ---------- */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.menu-cat {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.625rem 1.5rem;
    border: 1.5px solid var(--plum-pale);
    border-radius: 100px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-cat:hover {
    border-color: var(--amber);
    color: var(--amber-deep);
}

.menu-cat.active {
    background: var(--plum-dark);
    border-color: var(--plum-dark);
    color: #fff;
}

.menu-grid {
    max-width: 800px;
    margin: 0 auto;
}

.menu-items {
    display: grid;
    gap: var(--space-sm);
}

.menu-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(196, 132, 154, 0.2);
}

.menu-item:first-child { border-top: 1px solid rgba(196, 132, 154, 0.2); }

.menu-item-info { flex: 1; }

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--plum-deep);
    margin-bottom: 0.25rem;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.menu-item-tag {
    flex-shrink: 0;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: var(--amber-pale);
    color: var(--amber-deep);
    margin-top: 0.25rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 5/4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.visit-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.visit-details {
    display: grid;
    gap: var(--space-md);
}

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

.visit-detail-icon {
    color: var(--amber-dark);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--plum-deep);
    margin-bottom: 0.25rem;
}

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

.visit-detail a {
    color: var(--amber-deep);
    transition: color 0.3s ease;
}

.visit-detail a:hover { color: var(--plum-dark); }

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

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

/* ---------- Footer ---------- */
.footer {
    background: var(--plum-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    margin-top: var(--space-sm);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer h4 {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-contact a:hover { color: var(--amber-light); }

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

.footer-bottom p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(45, 10, 46, 0.97);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.open { display: flex; }

.mobile-menu-overlay .nav-links {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
}

.mobile-menu-overlay .nav-links a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
}

.mobile-menu-overlay .nav-links a::after { display: none; }

.mobile-menu-overlay .btn-gold {
    margin-top: var(--space-sm);
}

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

    .about-image-wrap { max-width: 500px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links:not(.mobile-menu-overlay .nav-links) { display: none; }
    .nav-toggle { display: block; }

    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }

    .section { padding: var(--space-2xl) 0; }

    .about-stats { flex-wrap: wrap; justify-content: center; }
    .stat-divider { display: none; }

    .menu-categories { gap: 0.5rem; }
    .menu-cat { padding: 0.5rem 1rem; font-size: 0.8rem; }

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

    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .menu-item { flex-direction: column; gap: 0.5rem; }
    .menu-item-tag { align-self: flex-start; }
}

/* ---------- Accessibility: Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-scroll { display: none; }
}
