/* ============================================
   Peppermint Josies — Café & Bar
   Color Palette: Plum + Amber
   ============================================ */

/* --- Custom Properties --- */
:root {
    --plum-50:  #f5f0f7;
    --plum-100: #ede4f0;
    --plum-200: #dcc8e2;
    --plum-300: #c4a3cf;
    --plum-400: #a877b8;
    --plum-500: #8b5298;
    --plum-600: #6b2d7a;
    --plum-700: #542062;
    --plum-800: #431a50;
    --plum-900:  #36163f;
    --plum-950: #1d0a24;

    --amber-50:  #fef9ee;
    --amber-100: #fdf0d3;
    --amber-200: #fae0a5;
    --amber-300: #f5c76e;
    --amber-400: #e8a832;
    --amber-500: #d4920b;
    --amber-600: #b07407;
    --amber-700: #8a5906;
    --amber-800: #6e4608;
    --amber-900:  #5c3b0a;
    --amber-950: #331f04;

    --white: #fefefe;
    --off-white: #faf8f6;
    --cream: #f7f3ef;
    --warm-gray: #8a8289;
    --dark: #1a1216;
    --dark-soft: #2d2028;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset --- */
*, *::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-weight: 300;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background-color 0.4s var(--ease-out), 
                box-shadow 0.4s var(--ease-out),
                backdrop-filter 0.4s var(--ease-out);
}

.nav.scrolled {
    background-color: rgba(254, 254, 254, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(107, 45, 122, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: block;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--white);
    transition: color 0.4s var(--ease-out);
}

.nav.scrolled .nav-logo-text {
    color: var(--plum-700);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(254, 254, 254, 0.85);
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--amber-400);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--white);
}

.nav.scrolled .nav-link {
    color: var(--warm-gray);
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link:focus {
    color: var(--plum-700);
}

.nav.scrolled .nav-link::after {
    background-color: var(--plum-600);
}

.nav-link--cta {
    padding: 8px 20px;
    border: 1px solid rgba(254, 254, 254, 0.35);
    border-radius: 100px;
    transition: background-color 0.3s var(--ease-out), 
                border-color 0.3s var(--ease-out),
                color 0.3s var(--ease-out);
}

.nav-link--cta:hover {
    background-color: rgba(254, 254, 254, 0.15);
    border-color: rgba(254, 254, 254, 0.6);
}

.nav.scrolled .nav-link--cta {
    border-color: var(--plum-600);
    color: var(--plum-700);
}

.nav.scrolled .nav-link--cta:hover {
    background-color: var(--plum-700);
    color: var(--white);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    padding: 8px;
    color: var(--white);
    transition: color 0.4s var(--ease-out);
}

.nav.scrolled .nav-toggle {
    color: var(--plum-700);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        var(--plum-950) 0%,
        var(--plum-800) 25%,
        var(--plum-600) 50%,
        var(--amber-600) 75%,
        var(--amber-400) 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(107, 45, 122, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 146, 11, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    max-width: 780px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 28px;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(254, 254, 254, 0.78);
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(254, 254, 254, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--amber-500);
    color: var(--dark);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 146, 11, 0.3);
}

.btn--ghost {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(254, 254, 254, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus {
    background-color: rgba(254, 254, 254, 0.1);
    border-color: rgba(254, 254, 254, 0.6);
    transform: translateY(-2px);
}

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

/* --- Section Base --- */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--plum-500);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--dark);
}

.section-title em {
    font-style: italic;
    color: var(--plum-600);
}

.section-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray);
    max-width: 560px;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

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

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

.about-content {
    padding: 16px 0;
}

.about-content .section-body {
    max-width: 100%;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--plum-100);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

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

/* --- Menu --- */
.section--menu {
    background-color: var(--cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.menu-category {
    padding: 40px 32px;
    background-color: var(--white);
    border-radius: 4px;
    border: 1px solid var(--plum-100);
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.menu-category:hover {
    box-shadow: 0 12px 40px rgba(107, 45, 122, 0.08);
    transform: translateY(-4px);
}

.menu-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--plum-100), var(--plum-50));
    color: var(--plum-600);
    margin-bottom: 20px;
}

.menu-category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--plum-100);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark);
}

.menu-item-desc {
    font-size: 0.8125rem;
    color: var(--warm-gray);
    font-weight: 300;
}

.menu-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--warm-gray);
    font-style: italic;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

.gallery-item--tall {
    grid-column: span 4;
    grid-row: span 2;
}

.gallery-item--wide {
    grid-column: span 5;
    grid-row: span 1;
}

/* --- Visit --- */
.section--visit {
    background-color: var(--off-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit-info .section-title {
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit-detail-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--plum-500);
}

.visit-detail-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 4px;
}

.visit-detail-value {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.6;
}

.visit-link {
    color: var(--plum-600);
    transition: color 0.3s var(--ease-out);
}

.visit-link:hover {
    color: var(--plum-800);
    text-decoration: underline;
    text-decoration-color: var(--plum-300);
    text-underline-offset: 4px;
}

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--plum-100);
}

/* --- Contact --- */
.section--contact {
    background: linear-gradient(
        145deg,
        var(--plum-950) 0%,
        var(--plum-800) 50%,
        var(--plum-700) 100%
    );
    color: var(--white);
}

.section--contact .section-eyebrow {
    color: var(--amber-400);
}

.section--contact .section-title {
    color: var(--white);
}

.section--contact .section-title em {
    color: var(--amber-300);
}

.section--contact .section-body {
    color: rgba(254, 254, 254, 0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-form-wrap {
    background-color: rgba(254, 254, 254, 0.06);
    border: 1px solid rgba(254, 254, 254, 0.1);
    border-radius: 4px;
    padding: 40px;
    backdrop-filter: blur(8px);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(254, 254, 254, 0.6);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(254, 254, 254, 0.2);
    outline: none;
    transition: border-color 0.3s var(--ease-out);
}

.form-input::placeholder {
    color: rgba(254, 254, 254, 0.3);
}

.form-input:focus {
    border-bottom-color: var(--amber-400);
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 40px 20px;
    color: var(--white);
}

.form-success svg {
    color: var(--amber-400);
}

.form-success p {
    font-size: 1rem;
    color: rgba(254, 254, 254, 0.8);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark);
    color: rgba(254, 254, 254, 0.6);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: rgba(254, 254, 254, 0.4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    font-size: 0.8125rem;
    color: rgba(254, 254, 254, 0.5);
    transition: color 0.3s var(--ease-out);
}

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

.footer-contact {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact a {
    font-size: 0.9375rem;
    color: var(--amber-400);
    transition: color 0.3s var(--ease-out);
}

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

.footer-contact p {
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(254, 254, 254, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(254, 254, 254, 0.3);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-category:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }

    .gallery-grid {
        grid-template-rows: repeat(2, 220px);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        background-color: var(--plum-900);
        padding: 24px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        z-index: 999;
    }

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

    .nav-link {
        font-size: 1rem;
        color: rgba(254, 254, 254, 0.85) !important;
    }

    .nav-link::after {
        background-color: var(--amber-400) !important;
    }

    .nav.scrolled .nav-link {
        color: rgba(254, 254, 254, 0.85) !important;
    }

    .nav.scrolled .nav-link::after {
        background-color: var(--amber-400) !important;
    }

    .nav-link--cta {
        border-color: rgba(254, 254, 254, 0.35) !important;
        color: var(--white) !important;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap {
        max-height: 400px;
    }

    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .menu-category:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-item--tall {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }

    /* Visit */
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visit-map {
        min-height: 300px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

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

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .gallery-item--tall,
    .gallery-item--wide {
        grid-column: span 1;
    }

    .gallery-item {
        height: 240px;
    }
}
