/* ============================================================
   Blue Moon Ice Cream Shoppe — Stylesheet
   Built by Warrior Coding students
   Phase 2: Visual Overhaul with stock photography & modern design
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --primary: #1e3a5f;
    --secondary: #4a90d9;
    --accent: #fbbf24;
    --cream: #fff8e7;
    --pink: #ff9eb5;
    --brown: #8B6914;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.15);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--accent);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 1000;
    font-size: 0.875rem;
}

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

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

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

.logo i {
    font-size: 1.5rem;
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    margin: 4px 0;
    transition: all var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   Hero Section (Full-Bleed Image)
   ============================================================ */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 7rem 1rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.hero .btn-primary:hover {
    box-shadow: 0 6px 30px rgba(251, 191, 36, 0.6);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    background: #f59e0b;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

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

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================
   Sections & Layout
   ============================================================ */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Page Header (inner pages) — with background image */
.page-header {
    background: linear-gradient(rgba(30, 58, 95, 0.85), rgba(74, 144, 217, 0.85)),
                url('../images/waffle-cone.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem 3rem;
    position: relative;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Menu page header — scoops image */
.page-header-menu {
    background-image: linear-gradient(rgba(30, 58, 95, 0.8), rgba(74, 144, 217, 0.8)),
                       url('../images/scoops-variety.jpg');
}

/* Contact page header — road trip image */
.page-header-contact {
    background-image: linear-gradient(rgba(30, 58, 95, 0.8), rgba(74, 144, 217, 0.8)),
                       url('../images/lake-huron.jpg');
}

/* About page header — shop interior */
.page-header-about {
    background-image: linear-gradient(rgba(30, 58, 95, 0.8), rgba(74, 144, 217, 0.8)),
                       url('../images/shop-interior.jpg');
}

/* ============================================================
   Section Dividers (Wavy SVG shapes)
   ============================================================ */
.section-divider {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.section-divider-cream svg {
    fill: var(--cream);
}

.section-divider-white svg {
    fill: var(--white);
}

.section-divider-primary svg {
    fill: var(--primary);
}

/* ============================================================
   Flavor Cards (Phase 2 — frosted glass + better visuals)
   ============================================================ */
.flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.flavor-grid-featured {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Featured flavor cards — frosted glass effect */
.featured-flavors {
    position: relative;
}

.featured-flavors .flavor-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 4px solid var(--secondary);
}

.featured-flavors .flavor-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.flavor-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all var(--transition);
    border-top: 4px solid var(--secondary);
}

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

.flavor-card-nondairy {
    border-top-color: #4ade80;
}

.flavor-swatch {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flavor-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.flavor-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.allergen-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.allergen-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.allergen-dairy {
    background: #dbeafe;
    color: #1e40af;
}

.allergen-nuts {
    background: #fef3c7;
    color: #92400e;
}

.allergen-free {
    background: #d1fae5;
    color: #065f46;
}

/* ============================================================
   Full-Width Image Banner (between sections)
   ============================================================ */
.image-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.image-banner-short {
    height: 200px;
}

/* ============================================================
   Hours & Location
   ============================================================ */
.hours-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.hours-card,
.map-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all var(--transition);
}

.hours-card:hover,
.map-card:hover {
    box-shadow: var(--shadow-hover);
}

.hours-card h3,
.map-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hours-card h3 i,
.map-card h3 i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--primary);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--text-light);
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}

.map-embed iframe {
    display: block;
}

.map-embed-large {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.map-address {
    font-size: 0.9rem;
    color: var(--text-light);
}

.map-address i {
    color: var(--accent);
}

/* ============================================================
   Notice / Allergen Box
   ============================================================ */
.notice-box {
    background: #fef3c7;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.notice-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #78350f;
}

.notice-box i {
    color: #d97706;
}

.notice-box-info {
    background: #dbeafe;
    border-left-color: var(--secondary);
}

.notice-box-info p {
    color: #1e3a5f;
}

.notice-box-info i {
    color: var(--secondary);
}

/* ============================================================
   About Page
   ============================================================ */
.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 1.5rem;
}

.story-content-reverse {
    direction: rtl;
}

.story-content-reverse > * {
    direction: ltr;
}

.story-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-image {
    display: flex;
    justify-content: center;
}

.story-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 500px;
    height: 350px;
    object-fit: cover;
}

.image-placeholder {
    background: var(--white);
    border: 3px dashed rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    display: block;
}

.image-placeholder p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-top: 1.5rem;
    transition: all var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
}

.info-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Fun Facts — with large background icons */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    opacity: 0.06;
    transition: all var(--transition);
}

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

.fact-card:hover::before {
    width: 120px;
    height: 120px;
    opacity: 0.1;
}

.fact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.3rem;
}

.fact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.fact-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Gallery Placeholder */
.gallery-placeholder {
    background: var(--white);
    border: 3px dashed rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.gallery-placeholder i {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.gallery-placeholder h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.gallery-placeholder p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
}

.contact-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card h2 i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.contact-card h2:not(:first-child) {
    margin-top: 1.25rem;
}

.contact-detail {
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-detail a {
    color: var(--secondary);
    font-weight: 500;
}

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

.hours-table-large td {
    padding: 0.6rem 0;
    font-size: 1rem;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    font-weight: 500;
    transition: all var(--transition);
}

.social-link-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.text-muted {
    color: var(--text-light);
    font-style: italic;
}

/* Directions — with subtle background */
.directions {
    position: relative;
}

.directions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.direction-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all var(--transition);
}

.direction-card:hover {
    box-shadow: var(--shadow-hover);
}

.direction-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.direction-card h3 i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.direction-card ol {
    padding-left: 1.5rem;
}

.direction-card li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================================
   Footer (Enhanced with gradient and better spacing)
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, var(--primary) 0%, #132a45 100%);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section h3 i {
    color: var(--accent);
    margin-right: 0.25rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.footer-section p i {
    color: var(--accent);
    margin-right: 0.3rem;
    width: 16px;
    text-align: center;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.footer-credit {
    opacity: 0.7;
    font-size: 0.8rem;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.footer-credit a:hover {
    color: var(--accent);
}

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

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

/* ============================================================
   Mobile Responsive
   ============================================================ */
@media (max-width: 768px) {
    /* Header & Nav */
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 150;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 140;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero — disable parallax on mobile (performance) */
    .hero {
        padding: 4rem 1rem;
        min-height: 380px;
        background-attachment: scroll;
    }

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

    .hero-tagline {
        font-size: 1.1rem;
    }

    /* Grids */
    .hours-location-grid,
    .story-content,
    .directions-grid {
        grid-template-columns: 1fr;
    }

    .story-content-reverse {
        direction: ltr;
    }

    .story-image img {
        height: 250px;
    }

    /* Page Header */
    .page-header {
        padding: 2.5rem 1rem 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    /* Section */
    .section {
        padding: 2.5rem 1rem;
    }

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

    /* Image banners */
    .image-banner {
        height: 180px;
    }

    .image-banner-short {
        height: 140px;
    }

    /* Section dividers */
    .section-divider svg {
        height: 40px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 320px;
        padding: 3rem 1rem;
    }

    .hero .btn-primary {
        font-size: 0.95rem;
        padding: 0.85rem 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

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

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

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