/* ============================================
   THE COFFEE SHOP — Custom Styles
   Charcoal + Coral | Vibrant Geometric
   ============================================ */

/* --- Base & Utilities --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* --- Geometric Background Shapes --- */
.geometric-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.04;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #FF6B6B;
    top: -100px;
    right: -100px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #FF6B6B;
    bottom: 20%;
    left: -50px;
    transform: rotate(-15deg);
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #FF6B6B;
    bottom: 10%;
    right: 10%;
}

.shape-square {
    width: 120px;
    height: 120px;
    background: #FF6B6B;
    top: 50%;
    left: 5%;
    transform: rotate(45deg);
}

/* --- Navigation --- */
.nav {
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all duration-300;
}

.nav.scrolled {
    background: rgba(255, 248, 240, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B6B;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    transition: transform 0.3s ease;
}

.mobile-menu {
    border-bottom: 2px solid #F5E6D3;
}

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

.mobile-menu-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #FF6B6B;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #FF6B6B;
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #FF6B6B;
}

.btn-primary:hover {
    background: #E85A5A;
    border-color: #E85A5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #2d2d2d;
    font-weight: 700;
    border-radius: 50px;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #2d2d2d;
}

.btn-secondary:hover {
    background: #2d2d2d;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #FFF8F0 0%, #F5E6D3 50%, #FFF8F0 100%);
    position: relative;
}

.hero-shape {
    position: absolute;
    pointer-events: none;
}

.hero-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.08);
    top: -150px;
    right: -100px;
}

.hero-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.06);
    bottom: -50px;
    left: 5%;
}

.hero-stripe {
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #FF6B6B 0px,
        #FF6B6B 20px,
        transparent 20px,
        transparent 40px
    );
    bottom: 0;
    left: 0;
    opacity: 0.3;
}

.hero-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #FF6B6B 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 30%;
    right: 5%;
    opacity: 0.2;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: block;
}

.hero-img {
    box-shadow: 20px 20px 0 rgba(255, 107, 107, 0.15), 0 25px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.hero-image:hover .hero-img {
    transform: translate(-4px, -4px);
    box-shadow: 24px 24px 0 rgba(255, 107, 107, 0.2), 0 30px 70px rgba(0, 0, 0, 0.18);
}

.hero-badge {
    position: absolute;
    bottom: 24px;
    left: -20px;
    background: #fff;
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #2d2d2d;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    animation: float 3s ease-in-out infinite;
}

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

.hero-deco {
    position: absolute;
    pointer-events: none;
}

.hero-deco-1 {
    width: 60px;
    height: 60px;
    background: #FF6B6B;
    border-radius: 12px;
    top: -20px;
    right: -10px;
    transform: rotate(25deg);
    animation: spin-slow 8s linear infinite;
}

.hero-deco-2 {
    width: 30px;
    height: 30px;
    background: #2d2d2d;
    border-radius: 50%;
    bottom: 40px;
    right: -15px;
    animation: float 4s ease-in-out infinite reverse;
}

@keyframes spin-slow {
    from { transform: rotate(25deg); }
    to { transform: rotate(385deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #2d2d2d;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #FF6B6B;
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

/* --- Marquee --- */
.marquee-strip {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-track {
    animation: marquee 30s linear infinite;
}

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

.marquee-item {
    display: inline-flex;
    align-items: center;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    color: #535353;
    line-height: 1.7;
    max-width: 540px;
}

/* --- Menu Section --- */
.menu-section {
    position: relative;
}

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.menu-tab {
    background: transparent;
    border: 2px solid #E0D5C9;
    color: #404040;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

.menu-tab.active {
    background: #FF6B6B;
    border-color: #FF6B6B;
    color: #fff;
}

.menu-grid {
    gap: 24px;
}

.menu-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.menu-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.menu-card:hover .menu-card-img img {
    transform: scale(1.05);
}

.menu-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF6B6B;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 50px;
}

.menu-card-body {
    padding: 20px;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.menu-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.menu-card-price {
    font-size: 14px;
    color: #FF6B6B;
    font-weight: 700;
}

.menu-card-desc {
    font-size: 0.9rem;
    color: #535353;
    line-height: 1.6;
}

/* --- About Section --- */
.about-section {
    position: relative;
}

.about-deco {
    position: absolute;
    pointer-events: none;
}

.about-deco-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    top: -50px;
    left: -100px;
}

.about-deco-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 50%;
    bottom: 50px;
    right: -30px;
}

.about-images {
    position: relative;
    padding-bottom: 80px;
}

.about-img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-img-main-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -20px;
    border: 6px solid #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.about-stats {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    background: #FF6B6B;
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.3);
}

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

.about-stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.about-stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.about-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

.about-feature {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature-title {
    font-weight: 700;
    font-size: 1rem;
}

.about-feature-desc {
    line-height: 1.5;
}

/* --- Specials Section --- */
.specials-section {
    position: relative;
}

.specials-deco {
    position: absolute;
    pointer-events: none;
}

.specials-deco-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: -50px;
    left: 5%;
}

.specials-deco-2 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    bottom: 30px;
    right: 8%;
    transform: rotate(30deg);
}

.special-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-card:hover {
    transform: translateY(-8px);
}

.special-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.special-card:hover .special-card-img img {
    transform: scale(1.05);
}

.special-day-badge {
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.special-new-badge,
.special-popular-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.special-new-badge {
    background: #FF6B6B;
    color: #fff;
}

.special-popular-badge {
    background: #F5E6D3;
    color: #2d2d2d;
}

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

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

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7), transparent);
    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-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

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

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

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

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

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

/* --- Visit Section --- */
.visit-deco {
    position: absolute;
    pointer-events: none;
}

.visit-deco-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 107, 107, 0.08);
    border-radius: 50%;
    bottom: -200px;
    right: -100px;
}

.visit-deco-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 16px;
    top: 60px;
    left: 40px;
    transform: rotate(45deg);
}

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

.visit-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    position: relative;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-stats {
        right: -20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4,
    .gallery-item-5 {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-badge {
        left: 10px;
        bottom: 16px;
    }
    
    .hero-deco-1,
    .hero-deco-2 {
        display: none;
    }
    
    .about-images {
        padding-bottom: 60px;
        margin-bottom: 40px;
    }
    
    .about-img-secondary {
        right: 10px;
        bottom: -30px;
        width: 120px;
        height: 120px;
    }
    
    .about-stats {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        justify-content: center;
        margin-top: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item {
        min-height: 200px;
    }
    
    .gallery-item-1 {
        grid-column: span 1;
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .menu-tabs {
        gap: 8px;
    }
    
    .menu-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion */
@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;
    }
    
    .marquee-track {
        animation: none;
    }
}
