/* =============================================
   The Wee Icey — Stylesheet
   Mobile-first responsive design
   ============================================= */

/* --- Local Fonts --- */
@font-face {
    font-family: 'Fredoka One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/fredoka-one.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Custom Properties --- */
:root {
    --color-primary: #1E50B8;        /* Van royal blue */
    --color-primary-dark: #122272;   /* Van top-banner navy */
    --color-secondary: #D41E28;      /* Van red stripe */
    --color-secondary-light: #E84855;
    --color-accent: #5BA3E0;         /* Lighter sky blue highlight */
    --color-bg: #F4F7FF;             /* Slightly blue-tinted white */
    --color-bg-alt: #E8EEFF;
    --color-text: #0D1A3A;           /* Deep navy for text */
    --color-text-light: #4A5578;
    --color-white: #FFFFFF;
    --color-ice-blue: #DDE8FA;
    --color-today: #E8F8EE;
    --color-today-border: #2E9E4F;

    --font-display: 'Fredoka One', cursive;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
    --transition: 0.25s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Notice Banner --- */
.notice-banner {
    background: var(--color-secondary);
    color: var(--color-text);
    text-align: center;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.notice-banner[hidden] {
    display: none;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    box-shadow: var(--shadow);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--color-primary-dark);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile nav */
.nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
}

.nav.open {
    display: flex;
}

.nav a {
    color: var(--color-text);
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav a:hover {
    background: var(--color-ice-blue);
    color: var(--color-primary);
}

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

.nav-fb svg {
    color: #1877F2;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #3872D0 100%);
    color: var(--color-white);
    padding: 60px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: -4px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-secondary-light);
    color: var(--color-text);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

/* SVG Ice cream decoration */
.hero-decoration {
    position: relative;
}

.ice-cream-icon {
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
}

.ice-cream-svg {
    width: 150px;
    height: auto;
    display: block;
}

/* --- Sections --- */
.section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

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

.menu-category {
    margin-bottom: 40px;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-secondary);
    display: inline-block;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.menu-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.menu-card-info {
    flex: 1;
}

.menu-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
}

.menu-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.menu-card-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-primary);
    white-space: nowrap;
    padding-top: 2px;
}

/* --- Schedule Section --- */
.schedule-section {
    background: var(--color-bg);
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.schedule-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-primary);
    transition: transform var(--transition);
}

.schedule-card:hover {
    transform: translateY(-2px);
}

.schedule-card.today {
    border-left-color: var(--color-today-border);
    background: var(--color-today);
}

.schedule-day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.schedule-day {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text);
}

.today-badge {
    background: var(--color-today-border);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-runs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-run {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
}

.schedule-run-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    background: var(--color-ice-blue);
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.today .schedule-run-label {
    color: var(--color-today-border);
    background: rgba(76, 175, 80, 0.12);
}

.schedule-area {
    color: var(--color-text);
    font-weight: 500;
}

.schedule-time {
    color: var(--color-text-light);
    white-space: nowrap;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .schedule-run {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .schedule-run-label {
        justify-self: start;
    }
}

.schedule-off {
    color: var(--color-text-light);
    font-style: italic;
    font-size: 0.9rem;
}

/* --- About Section --- */
.about-section {
    background: var(--color-white);
}

.about-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.about-text .btn {
    margin-top: 8px;
}

/* --- Footer --- */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-white);
}

.footer-location {
    font-size: 0.9rem;
}

.footer-fb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.footer-fb:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.footer-fb svg {
    flex-shrink: 0;
}

.footer-copy {
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.6;
}

.footer-tagline {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.footer-tagline-craft {
    font-size: 14px;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(200, 200, 200, 0.55);
    margin: 0;
}

.footer-tagline-credit {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(200, 200, 200, 0.3);
}

.footer-tagline-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(200, 200, 200, 0.3);
    display: inline-block;
}

.footer-tagline-credit a {
    color: rgba(220, 220, 220, 0.6);
    text-decoration: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 1px;
    transition: color var(--transition);
}

.footer-tagline-credit a:hover {
    color: rgba(220, 220, 220, 0.9);
}

/* Loading state */
.loading {
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
    padding: 40px 0;
}

/* --- Desktop (768px+) --- */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav a {
        padding: 8px 16px;
    }

    .hero {
        padding: 80px 0 120px;
    }

    .hero .container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-ctas {
        justify-content: flex-start;
    }

    .ice-cream-svg {
        width: 190px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .schedule-grid {
        gap: 14px;
    }
}

/* --- Larger screens --- */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .menu-grid {
        gap: 16px;
    }
}

/* =============================================
   Flair — Animations & Decorative Elements
   ============================================= */

/* --- Keyframes --- */
@keyframes float-ice-cream {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-12px) rotate(2deg); }
    66%       { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes sprinkle-drift {
    0%   { transform: translateY(0px) rotate(var(--r, 0deg)); opacity: 0.4; }
    50%  { opacity: 0.7; }
    100% { transform: translateY(-120px) rotate(calc(var(--r, 0deg) + 180deg)); opacity: 0; }
}

@keyframes title-underline-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 30, 40, 0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(212, 30, 40, 0); }
}

/* --- Ice cream float --- */
.ice-cream-icon {
    animation: float-ice-cream 4s ease-in-out infinite;
}

/* --- Hero wave divider --- */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 70px;
    pointer-events: none;
}

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

/* --- Hero sprinkles --- */
.hero-sprinkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-sprinkles span {
    position: absolute;
    border-radius: 3px;
    animation: sprinkle-drift linear infinite;
}

.hero-sprinkles span:nth-child(1) {
    width: 14px; height: 5px;
    background: var(--color-secondary-light);
    top: 75%; left: 8%;
    --r: 30deg;
    animation-duration: 6s;
    animation-delay: 0s;
}
.hero-sprinkles span:nth-child(2) {
    width: 10px; height: 4px;
    background: var(--color-accent);
    top: 80%; left: 22%;
    --r: -45deg;
    animation-duration: 7.5s;
    animation-delay: 1s;
}
.hero-sprinkles span:nth-child(3) {
    width: 12px; height: 4px;
    background: #FFFFFF;
    top: 70%; left: 60%;
    --r: 60deg;
    animation-duration: 5.5s;
    animation-delay: 2s;
}
.hero-sprinkles span:nth-child(4) {
    width: 16px; height: 5px;
    background: var(--color-secondary);
    top: 85%; left: 75%;
    --r: -20deg;
    animation-duration: 8s;
    animation-delay: 0.5s;
}
.hero-sprinkles span:nth-child(5) {
    width: 10px; height: 4px;
    background: var(--color-accent);
    top: 65%; left: 40%;
    --r: 80deg;
    animation-duration: 6.5s;
    animation-delay: 3s;
}
.hero-sprinkles span:nth-child(6) {
    width: 13px; height: 4px;
    background: #FFFFFF;
    top: 90%; left: 50%;
    --r: -70deg;
    animation-duration: 7s;
    animation-delay: 1.5s;
}
.hero-sprinkles span:nth-child(7) {
    width: 9px; height: 4px;
    background: var(--color-secondary-light);
    top: 55%; left: 85%;
    --r: 15deg;
    animation-duration: 5s;
    animation-delay: 2.5s;
}
.hero-sprinkles span:nth-child(8) {
    width: 14px; height: 5px;
    background: var(--color-accent);
    top: 78%; left: 33%;
    --r: 50deg;
    animation-duration: 9s;
    animation-delay: 0.8s;
}

/* --- Section title decorative underline --- */
.section-title {
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    animation: title-underline-grow 0.6s ease forwards 0.3s;
}

/* --- Primary button pulse on hover --- */
.btn-primary:hover {
    animation: btn-pulse 1.2s ease infinite;
}

/* --- Menu card left accent strip --- */
.menu-card {
    border-left: 3px solid transparent;
}

.menu-card:hover {
    border-left-color: var(--color-secondary);
}

/* --- Schedule card today glow --- */
.schedule-card.today {
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.18);
}

/* --- Footer brand drip dots --- */
.footer-brand::after {
    content: ' 🍦';
    font-style: normal;
}
