/* ===================================
   Kirby's Soda Fountain - Stylesheet
   Burgundy + Blush Color Palette
   =================================== */

:root {
    /* Color Palette */
    --burgundy: #780000;
    --burgundy-dark: #520000;
    --burgundy-light: #a00000;
    --blush: #FFD4D4;
    --blush-light: #FFE8E8;
    --blush-dark: #FFB0B0;
    --cream: #FFF8F5;
    --cream-dark: #FFF0EB;
    --charcoal: #2D2D2D;
    --white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(120, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(120, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(120, 0, 0, 0.16);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Decorative Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

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

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

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--blush-dark);
    top: 50%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.tag {
    display: inline-block;
    background: var(--burgundy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--burgundy);
    margin-bottom: var(--spacing-sm);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--charcoal);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.btn-secondary:hover {
    background: var(--burgundy);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--blush);
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transform: rotate(-5deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 600;
    color: var(--charcoal);
    position: relative;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--burgundy);
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 50%, var(--blush) 100%);
    padding: calc(80px + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

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

.shape-circle {
    width: 300px;
    height: 300px;
    background: var(--white);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: spin 20s linear infinite;
}

.shape-square {
    width: 200px;
    height: 200px;
    background: var(--blush-light);
    bottom: 15%;
    right: 10%;
    animation: spin 15s linear infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--white);
    top: 60%;
    left: 15%;
    animation: spin 25s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title .highlight {
    color: var(--blush-light);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.hero-actions .btn-secondary:hover {
    background: var(--white);
    color: var(--burgundy);
}

/* Menu Section */
.menu-section {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blush);
}

.card-img {
    height: 240px;
    overflow: hidden;
}

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

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

.card-content {
    padding: var(--spacing-md);
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: var(--spacing-xs);
}

.card-content p {
    color: var(--charcoal);
    opacity: 0.8;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--blush-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

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

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-img-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-md);
}

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

.about-content {
    padding: var(--spacing-md);
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    line-height: 1.7;
}

.features-list {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.features-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--charcoal);
}

.features-list svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

/* Location Section */
.location-section {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
}

.location-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.location-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-info .section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.info-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.info-item svg {
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-item strong {
    display: block;
    color: var(--burgundy);
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--charcoal);
    opacity: 0.8;
    line-height: 1.5;
}

.info-item a {
    color: var(--burgundy);
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.location-map {
    min-height: 400px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: var(--burgundy);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    font-weight: 600;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    padding: var(--spacing-lg) var(--spacing-md);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--burgundy);
    padding: 0.5rem;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.mobile-menu nav a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--blush);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img-accent {
        width: 150px;
        height: 150px;
        bottom: -20px;
        right: -20px;
    }
    
    .location-card {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        min-height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero {
        padding-top: calc(80px + var(--spacing-sm));
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .about-img-accent {
        display: none;
    }
    
    .location-info {
        padding: var(--spacing-md);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .menu-card,
    .btn {
        transition: all 0.3s ease;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 2px;
}
