/* ============================================
   2546 Cafe — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #3a2a28;
    background-color: #fefdfb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #8B2332;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 200;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Section Shared --- */
.section {
    padding: 6rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8B2332;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background: #8B2332;
    border-radius: 1px;
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    color: #1a1210;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b5b58;
    max-width: 520px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: #8B2332;
    color: white;
    box-shadow: 0 4px 16px rgba(139, 35, 50, 0.25);
}

.btn-primary:hover {
    background: #7a1e2c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 35, 50, 0.35);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.nav.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(139, 35, 50, 0.08);
    padding: 0.625rem 0;
}

.nav.scrolled .nav-brand-text {
    color: #1a1210;
}

.nav.scrolled .nav-links a {
    color: #3a2a28;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    transition: color 0.3s;
}

.nav-brand-text {
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: white;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: width 0.3s;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: white;
    color: #8B2332 !important;
    border-color: white;
}

.nav.scrolled .btn-nav {
    background: #8B2332;
    color: white !important;
    border-color: #8B2332;
}

.nav.scrolled .btn-nav:hover {
    background: #7a1e2c;
    border-color: #7a1e2c;
}

.nav-toggle {
    display: none;
    color: white;
    padding: 0.25rem;
    transition: color 0.3s;
}

.nav.scrolled .nav-toggle {
    color: #8B2332;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 18, 16, 0.72) 0%,
        rgba(139, 35, 50, 0.55) 50%,
        rgba(26, 18, 16, 0.68) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    padding: 2rem 1.5rem;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.hero-badge svg {
    opacity: 0.8;
}

.hero-headline {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-hours-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-hours-item svg {
    opacity: 0.7;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- About --- */
.about {
    background: #fefdfb;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    width: 75%;
    height: 75%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 35, 50, 0.12);
}

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

.about-img-float {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(139, 35, 50, 0.15);
    border: 4px solid #fefdfb;
}

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

.about-text p {
    color: #5a4a47;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(139, 35, 50, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B2332;
}

.stat-label {
    font-size: 0.8125rem;
    color: #8a7a77;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(139, 35, 50, 0.15);
    flex-shrink: 0;
}

/* --- Menu --- */
.menu {
    background: linear-gradient(180deg, #fff8f6 0%, #fefdfb 100%);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.menu-tab {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b5b58;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    border: 1.5px solid transparent;
    background: transparent;
    transition: all 0.3s;
}

.menu-tab:hover {
    color: #8B2332;
    background: rgba(139, 35, 50, 0.05);
}

.menu-tab.active {
    color: white;
    background: #8B2332;
    box-shadow: 0 4px 12px rgba(139, 35, 50, 0.25);
}

.menu-panel {
    position: relative;
    min-height: 200px;
}

.menu-category {
    display: none;
    animation: fadeIn 0.4s ease;
}

.menu-category.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(139, 35, 50, 0.06);
    transition: all 0.3s;
}

.menu-item:hover {
    border-color: rgba(139, 35, 50, 0.15);
    box-shadow: 0 4px 16px rgba(139, 35, 50, 0.08);
    transform: translateY(-2px);
}

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

.menu-item-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1210;
    margin-bottom: 0.25rem;
}

.menu-item-desc {
    font-size: 0.875rem;
    color: #8a7a77;
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: #8a7a77;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Space --- */
.space {
    background: #fefdfb;
}

.space-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.space-text p {
    color: #5a4a47;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.space-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.space-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.space-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf0f2;
    border-radius: 12px;
}

.space-feature-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1210;
    margin-bottom: 0.25rem;
}

.space-feature-desc {
    font-size: 0.875rem;
    color: #6b5b58;
    line-height: 1.6;
}

.space-gallery {
    height: 560px;
}

.space-img-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3fr 2fr;
    gap: 1rem;
    height: 100%;
}

.space-img-1 {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(139, 35, 50, 0.12);
}

.space-img-2 {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(139, 35, 50, 0.1);
}

.space-img-1 img,
.space-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Visit --- */
.visit {
    background: linear-gradient(180deg, #fefdfb 0%, #fff8f6 100%);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.visit-info {
    padding: 2rem 0;
}

.visit-info .section-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.visit-info .section-subtitle {
    margin: 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.visit-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf0f2;
    border-radius: 12px;
}

.visit-detail h4 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1210;
    margin-bottom: 0.25rem;
}

.visit-detail p {
    font-size: 0.9375rem;
    color: #5a4a47;
    line-height: 1.6;
}

.visit-detail a {
    color: #8B2332;
    font-weight: 500;
    transition: color 0.3s;
}

.visit-detail a:hover {
    color: #7a1e2c;
    text-decoration: underline;
}

.visit-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(139, 35, 50, 0.12);
    min-height: 420px;
}

/* --- Footer --- */
.footer {
    background: #1a1210;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

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

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

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

.footer-contact a:hover {
    color: white;
}

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

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

/* --- Mobile Menu --- */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(254, 253, 251, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
    animation: menuIn 0.3s ease;
}

.nav-links.open a {
    color: #1a1210 !important;
    font-size: 1.25rem;
    font-family: 'Lora', Georgia, serif;
}

.nav-links.open a::after {
    background: #8B2332 !important;
}

.nav-links.open .btn-nav {
    background: #8B2332 !important;
    color: white !important;
    border-color: #8B2332 !important;
    font-size: 1rem;
}

@keyframes menuIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .space-grid {
        gap: 3rem;
    }
}

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

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-headline {
        font-size: clamp(1.875rem, 7vw, 2.75rem);
    }

    .hero-hours {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-grid,
    .space-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-images {
        height: 400px;
        order: -1;
    }

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

    .space-gallery {
        height: 360px;
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .visit-info .section-header {
        text-align: center;
    }

    .visit-info .section-subtitle {
        margin: 0 auto;
    }
}

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

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

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

    .about-images {
        height: 300px;
    }

    .menu-categories {
        gap: 0.375rem;
    }

    .menu-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* --- 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 {
        animation: none;
    }
}
