/* ========================================
   D's Snack & Snowball — Styles
   Fresh, airy, pastel with charcoal + coral
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --charcoal: #2D2D2D;
    --charcoal-light: #4A4A4A;
    --charcoal-dark: #1A1A1A;
    --coral: #F87171;
    --coral-light: #FECACA;
    --coral-lighter: #FFF1F1;
    --coral-dark: #DC2626;
    --bg-cream: #FFFBF7;
    --bg-warm: #FFF8F5;
    --bg-white: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border-light: #F3F0EC;
    --shadow-sm: 0 1px 3px rgba(45, 45, 45, 0.06), 0 1px 2px rgba(45, 45, 45, 0.04);
    --shadow-md: 0 4px 16px rgba(45, 45, 45, 0.08), 0 2px 6px rgba(45, 45, 45, 0.04);
    --shadow-lg: 0 12px 40px rgba(45, 45, 45, 0.10), 0 4px 12px rgba(45, 45, 45, 0.05);
    --shadow-coral: 0 8px 24px rgba(248, 113, 113, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.text-coral {
    color: var(--coral);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-coral {
    background: var(--coral);
    color: #FFFFFF;
    border-color: var(--coral);
    box-shadow: var(--shadow-coral);
}

.btn-coral:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(248, 113, 113, 0.35);
}

.btn-outline-coral {
    background: transparent;
    color: var(--coral);
    border-color: var(--coral);
}

.btn-outline-coral:hover {
    background: var(--coral);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-white {
    background: #FFFFFF;
    color: var(--charcoal);
    border-color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Tags --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral);
    background: var(--coral-lighter);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 251, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 251, 247, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
}

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

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

.nav-links a {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal-light);
}

.nav-links a:hover {
    color: var(--coral);
    background: var(--coral-lighter);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.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);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #FFF8F5 0%, #FFF1F1 40%, #FEF3F2 70%, #FFFBF7 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(248, 113, 113, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(248, 113, 113, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--coral-light);
    color: var(--coral-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero visual area */
.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-main-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.hero-main-card-img {
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-main-card-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-main-card:hover .hero-main-card-img img {
    transform: scale(1.03);
}

.hero-main-card-body {
    padding: 24px 28px 28px;
}

.card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--coral);
    background: var(--coral-lighter);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.card-tag--coral {
    background: var(--coral);
    color: #FFFFFF;
}

.hero-main-card-body h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.hero-main-card-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Floating stat cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.float-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--coral-lighter);
    color: var(--coral);
}

.float-card-icon--snow {
    background: #EFF6FF;
    color: #3B82F6;
}

.float-card-icon--heart {
    background: #FFF1F2;
    color: #EC4899;
}

.float-card-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.float-card-value {
    display: block;
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 600;
}

.float-card-1 {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 120px;
    left: -30px;
    animation-delay: 1.3s;
}

.float-card-3 {
    bottom: -10px;
    right: 40px;
    animation-delay: 2.6s;
}

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

/* Hero wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--bg-cream);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--bg-cream);
}

.about-img-secondary img {
    width: 280px;
    height: 320px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    opacity: 0.6;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
}

.about-feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--coral-lighter);
    color: var(--coral);
    flex-shrink: 0;
}

/* --- Menu --- */
.menu {
    padding: 100px 0;
    background: var(--bg-warm);
}

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

.menu-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

.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-body {
    padding: 24px;
}

.menu-card-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.menu-card-body > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.menu-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    flex-shrink: 0;
}

/* --- CTA Strip --- */
.cta-strip {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(248, 113, 113, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-strip-content h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    color: #FFFFFF;
    margin-bottom: 12px;
}

.cta-strip-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Location --- */
.location {
    padding: 100px 0;
    background: var(--bg-cream);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #FFFFFF;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.location-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

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

.location-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.location-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.location-card a {
    color: var(--coral);
    font-weight: 600;
}

.location-card a:hover {
    color: var(--coral-dark);
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.map-link img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-link:hover img {
    transform: scale(1.03);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--bg-warm);
}

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

.contact-content .section-tag {
    margin-bottom: 16px;
}

.contact-content .section-title {
    margin-bottom: 16px;
}

.contact-content > p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-detail svg {
    color: var(--coral);
    flex-shrink: 0;
}

.contact-detail a {
    color: var(--coral);
    font-weight: 600;
}

.contact-detail a:hover {
    color: var(--coral-dark);
}

/* Contact form */
.contact-form-wrapper {
    background: #FFFFFF;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-sm);
    color: #166534;
    font-size: 15px;
    font-weight: 500;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: #22C55E;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--coral);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--coral-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

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

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
        min-height: 440px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }

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

    .location-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-strip-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 251, 247, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(30px, 7vw, 44px);
    }

    .hero-visual {
        min-height: 380px;
    }

    .float-card {
        display: none;
    }

    .hero-main-card-img img {
        height: 300px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .about-img-secondary {
        right: 0;
    }

    .about-img-main img {
        height: 400px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .location-map img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-main-card-body {
        padding: 20px;
    }
}
