/* ============================================
   Tumbleweed Cafe — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* --- Section Shared --- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F06030;
    margin-bottom: 12px;
    background: rgba(240, 96, 48, 0.08);
    padding: 6px 16px;
    border-radius: 100px;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1C1C27;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4A4A5A;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: #F06030;
    color: #fff;
    box-shadow: 0 4px 16px rgba(240, 96, 48, 0.35);
}

.btn-primary:hover {
    background: #E04A1A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 96, 48, 0.45);
}

.btn-outline {
    background: transparent;
    color: #1C1C27;
    border: 2px solid rgba(28, 28, 39, 0.2);
}

.btn-outline:hover {
    border-color: #F06030;
    color: #F06030;
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 10px 22px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 245, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(28, 28, 39, 0.08);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    color: #fff;
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo {
    color: #1C1C27;
}

.nav-logo-icon {
    flex-shrink: 0;
}

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-link {
    color: #4A4A5A;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav.scrolled .nav-link:hover {
    color: #F06030;
    background: rgba(240, 96, 48, 0.08);
}

.nav-cta {
    background: #F06030;
    color: #fff !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: #E04A1A;
    color: #fff !important;
}

.nav.scrolled .nav-cta:hover {
    background: #E04A1A;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
    background: #1C1C27;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 39, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-menu-link {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-cta {
    margin-top: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #F06030 !important;
    background: rgba(240, 96, 48, 0.15);
    padding: 14px 32px;
    border-radius: 100px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1C1C27 0%, #2D2D3A 40%, #3D3D4C 70%, #4A4A5A 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        url('https://images.pexels.com/photos/374052/pexels-photo-374052.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    opacity: 0.25;
    filter: saturate(0.6);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(28, 28, 39, 0.7) 0%,
        rgba(28, 28, 39, 0.5) 50%,
        rgba(28, 28, 39, 0.8) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 96, 48, 0.15);
    border: 1px solid rgba(240, 96, 48, 0.3);
    color: #FFD0BB;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-accent {
    color: #F06030;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-highlights {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-highlight svg {
    color: #F06030;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 1;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}

/* --- Menu Section --- */
.menu-section {
    padding: 100px 0;
    background: #FFF5F0;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4A4A5A;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    color: #F06030;
    border-color: rgba(240, 96, 48, 0.2);
}

.menu-tab.active {
    background: #F06030;
    color: #fff;
    border-color: #F06030;
    box-shadow: 0 4px 12px rgba(240, 96, 48, 0.3);
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.menu-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(28, 28, 39, 0.06);
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(28, 28, 39, 0.12);
}

.menu-item-image {
    flex-shrink: 0;
    width: 140px;
    min-height: 140px;
    overflow: hidden;
}

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

.menu-item:hover .menu-item-image img {
    transform: scale(1.08);
}

.menu-item-content {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.menu-item-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.15rem;
    color: #1C1C27;
}

.menu-item-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F06030;
    background: rgba(240, 96, 48, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: #4A4A5A;
    line-height: 1.65;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: #fff;
}

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

.about-images {
    position: relative;
}

.about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(28, 28, 39, 0.15);
}

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

.about-image-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(28, 28, 39, 0.2);
    border: 4px solid #fff;
}

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

.about-floating-card {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(28, 28, 39, 0.12);
    font-weight: 700;
    font-size: 0.95rem;
    color: #1C1C27;
    z-index: 1;
}

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

.about-text {
    font-size: 1.05rem;
    color: #4A4A5A;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

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

.about-stat-number {
    font-size: 1.5rem;
}

.about-stat-label {
    font-size: 0.85rem;
    color: #4A4A5A;
    font-weight: 600;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 100px 0;
    background: #FFF5F0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 28, 39, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

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

.gallery-item-wide {
    grid-column: 3 / 5;
}

/* --- Visit Section --- */
.visit-section {
    padding: 100px 0;
    background: #fff;
}

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

.visit-info {
    padding: 16px 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

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

.visit-detail-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(240, 96, 48, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F06030;
}

.visit-detail-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A4A5A;
    margin-bottom: 4px;
}

.visit-detail-text {
    font-size: 1rem;
    color: #1C1C27;
    line-height: 1.6;
}

.visit-detail-text a {
    color: #F06030;
    font-weight: 700;
    transition: color 0.3s ease;
}

.visit-detail-text a:hover {
    color: #E04A1A;
}

.visit-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Map */
.visit-map {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(28, 28, 39, 0.12);
}

.map-placeholder {
    background: linear-gradient(135deg, #2D2D3A 0%, #3D3D4C 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
    padding: 48px 32px;
}

.map-content svg {
    margin: 0 auto 20px;
}

.map-content h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
}

.map-content p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1C1C27 0%, #2D2D3A 50%, #3D3D4C 100%);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.5;
}

.cta-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 40px;
}

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

/* --- Footer --- */
.footer {
    background: #1C1C27;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links,
.footer-contact,
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

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

.footer-links a:hover {
    color: #F06030;
}

.footer-contact p,
.footer-hours p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.footer-contact a {
    color: #F06030;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #FFD0BB;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }
    
    .gallery-item-tall {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    
    .gallery-item-wide {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-highlights {
        gap: 20px;
    }
    
    .menu-category {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        flex-direction: column;
    }
    
    .menu-item-image {
        width: 100%;
        min-height: 180px;
    }
    
    .menu-item-content {
        padding: 16px 20px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .gallery-item-tall,
    .gallery-item-wide {
        grid-column: 1;
    }
    
    .gallery-item-tall {
        grid-row: auto;
        height: 280px;
    }
    
    .about-image-secondary {
        right: 0;
        bottom: -24px;
    }
    
    .about-floating-card {
        top: -12px;
        right: -8px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        max-width: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .visit-cta {
        flex-direction: column;
    }
    
    .visit-cta .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .menu-section,
    .about-section,
    .gallery-section,
    .visit-section,
    .cta-section {
        padding: 72px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .hero-content {
        padding: 100px 16px 60px;
    }
}
