/* ============================================
   BIGGIE'S SHAVED ICE — Custom Styles
   Palette: Burgundy (#780000) + Blush (#F4A0B5)
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy: #780000;
    --burgundy-deep: #520000;
    --burgundy-light: #A0312F;
    --blush: #F4A0B5;
    --blush-light: #FDDDE6;
    --blush-pale: #FFF0F3;
    --cream: #FFFAF8;
    --dark: #1A0A0A;
    --dark-soft: #2D1515;
    --white: #FFFFFF;
    --gray-100: #F7F3F2;
    --gray-200: #EDE6E4;
    --gray-400: #9E8E8A;
    --gray-600: #6B5B58;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Geometric Background */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--blush);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--burgundy);
    bottom: 20%;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid var(--blush);
    opacity: 0.06;
    top: 40%;
    right: 5%;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--burgundy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(120, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--burgundy);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    transition: var(--transition);
}

.header.scrolled .logo-icon {
    background: var(--burgundy);
    color: var(--white);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav a {
    color: var(--dark);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blush);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--white) !important;
    color: var(--burgundy) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-weight: 700 !important;
    transition: var(--transition) !important;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: var(--blush-light) !important;
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span {
    background: var(--burgundy);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* ============================================
   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-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 10, 10, 0.85) 0%,
        rgba(120, 0, 0, 0.7) 50%,
        rgba(82, 0, 0, 0.75) 100%
    );
}

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

.hero-badge {
    display: inline-block;
    background: rgba(244, 160, 181, 0.2);
    border: 1px solid rgba(244, 160, 181, 0.4);
    color: var(--blush);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
}

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

.hero-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--blush);
    color: var(--burgundy-deep);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 160, 181, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

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

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* ============================================
   FEATURES STRIP
   ============================================ */
.features-strip {
    background: var(--burgundy);
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.features-strip .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(244, 160, 181, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blush);
}

.feature-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.feature-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-tag {
    display: inline-block;
    color: var(--burgundy);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.7;
}

/* ============================================
   FLAVORS
   ============================================ */
.flavors {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

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

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

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.flavor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.flavor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transition: var(--transition);
}

.flavor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(120, 0, 0, 0.1);
    border-color: var(--accent);
}

.flavor-card:hover::before {
    width: 6px;
}

.flavor-color-block {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.flavor-card:hover .flavor-color-block {
    border-radius: 50%;
    transform: rotate(15deg);
}

.flavor-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.flavor-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.flavor-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--blush-pale);
    color: var(--burgundy);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.flavors-note {
    background: var(--burgundy);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.05rem;
}

.flavors-note strong {
    color: var(--blush);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    background: var(--gray-100);
}

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

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

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    z-index: 1;
    aspect-ratio: 6/7;
}

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

.about-accent {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--blush);
    border-radius: var(--radius-xl);
    bottom: -30px;
    right: -30px;
    z-index: 0;
    opacity: 0.5;
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
}

/* ============================================
   VISIT / CONTACT
   ============================================ */
.visit {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.visit-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
}

.info-card:hover {
    border-color: var(--blush);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(120, 0, 0, 0.08);
}

.info-icon {
    width: 52px;
    height: 52px;
    background: var(--burgundy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.info-card strong {
    display: block;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.info-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card a {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-card a:hover {
    color: var(--burgundy-light);
    text-decoration: underline;
}

.map-wrapper {
    min-height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(120, 0, 0, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blush);
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .flavors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--burgundy-deep);
        padding: 5rem 2rem 2rem;
        transition: var(--transition);
        z-index: 100;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .nav a {
        color: var(--white) !important;
        font-size: 1.15rem;
    }
    
    .features-strip .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .flavors-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-accent {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: -20px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        min-height: 280px;
    }
    
    .footer-inner {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ============================================
   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;
    }
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
