/* 
    C & C Snow Cones & Treats
    Theme: Classic, Elegant, Emerald & Cream
*/

:root {
    /* Palette */
    --color-emerald: #064e3b; /* Deep Emerald */
    --color-emerald-light: #059669; /* Lighter Emerald for accents */
    --color-cream: #f9fafb; /* Off-white/Cream */
    --color-cream-dark: #f3f4f6; /* Slightly darker cream for contrast */
    --color-text: #1f2937; /* Dark gray for text */
    --color-text-light: #4b5563; /* Medium gray */
    --color-white: #ffffff;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo, .serif-italic {
    font-family: var(--font-serif);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--color-emerald-light);
    border-color: var(--color-emerald-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-emerald);
    border: 2px solid var(--color-emerald);
}

.btn-outline:hover {
    background-color: var(--color-emerald);
    color: var(--color-white);
}

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

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

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-emerald-light);
    margin-bottom: 1rem;
    background: rgba(6, 78, 59, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-emerald);
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-emerald);
}

.logo-accent {
    font-weight: 400;
    font-style: italic;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.nav-links a:hover {
    color: var(--color-emerald);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-emerald);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for fixed nav */
    background-color: var(--color-cream);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/5864548/pexels-photo-5864548.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Subtle background image */
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-emerald-light);
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--color-emerald);
    margin-bottom: 1.5rem;
}

.serif-italic {
    font-style: italic;
    font-weight: 400;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Floating Cards */
.hero-cards {
    position: relative;
    height: 400px;
    width: 100%;
}

.stat-card {
    position: absolute;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    border-left: 4px solid var(--color-emerald);
}

.stat-card svg {
    color: var(--color-emerald);
}

.stat-card span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: 30%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    right: 5%;
    animation-delay: 4s;
}

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

/* About Section */
.section {
    padding: var(--section-padding);
}

.about {
    background-color: var(--color-white);
}

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

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

.about-img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.about-pattern {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-emerald);
    border-radius: 8px;
    z-index: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--color-emerald);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--color-text);
}

.feature-list svg {
    color: var(--color-emerald-light);
}

/* Menu Section */
.menu {
    background-color: var(--color-cream);
}

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

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

.menu-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.menu-img {
    height: 250px;
    overflow: hidden;
}

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

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

.menu-info {
    padding: 1.5rem;
}

.menu-info h3 {
    font-size: 1.5rem;
    color: var(--color-emerald);
    margin-bottom: 0.75rem;
}

.menu-info p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Location Section */
.location {
    background-color: var(--color-emerald);
    color: var(--color-white);
}

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

.location-details h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.location-desc {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    opacity: 0.8;
}

.contact-item a {
    color: var(--color-white);
    opacity: 0.8;
}

.contact-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.location-map {
    position: relative;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-white);
    color: var(--color-emerald);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background-color: var(--color-emerald);
    color: var(--color-white);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo span {
    font-weight: 400;
    font-style: italic;
    opacity: 0.8;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

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

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

/* Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-active.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

.reveal-active.reveal-left {
    opacity: 1;
    transform: translateX(0);
}

.reveal-active.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-cards {
        height: 300px;
        margin-top: 2rem;
    }
    
    .about-grid, .location-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-cream);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cards {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-card {
        position: relative;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2, .about-content h2, .location-details h2 {
        font-size: 2rem;
    }
}
