/* ===================================
   Lenny's Ice Cream Shack — Styles
   Plum + Amber · Editorial Serif
   =================================== */

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

:root {
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #581c87;
    --plum-950: #3b0764;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    --text-dark: #1a0a2e;
    --text-light: #f8f5ff;
    --text-muted: #6b5b7b;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--plum-50);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ── Typography ── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 245, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(250, 245, 255, 0.95);
    box-shadow: 0 4px 30px rgba(88, 28, 135, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--plum-800);
}

.nav-logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--plum-700);
}

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

.nav-cta {
    background: var(--plum-700);
    color: var(--text-light) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--plum-800);
    color: var(--text-light) !important;
    transform: translateY(-1px);
}

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

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--plum-800);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--plum-950);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--plum-100);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu-link:hover {
    color: var(--amber-400);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-link--cta {
    margin-top: 16px;
    background: var(--amber-500);
    color: var(--text-dark) !important;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
}

.mobile-menu-link--cta:hover {
    background: var(--amber-400);
    color: var(--text-dark) !important;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--plum-900) 0%, #4a1a7a 30%, #7c3aed 60%, var(--amber-600) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(59, 7, 100, 0.92) 0%,
        rgba(124, 58, 237, 0.80) 40%,
        rgba(217, 119, 6, 0.70) 100%
    );
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(59, 7, 100, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 720px;
    padding: 0 24px;
    padding-top: 72px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 900;
    line-height: 1.0;
    color: var(--text-light);
    margin-bottom: 24px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.hero-headline br {
    display: none;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(248, 245, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(248, 245, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--text-dark);
    border-color: var(--amber-500);
}

.btn-primary:hover {
    background: var(--amber-400);
    border-color: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(248, 245, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(248, 245, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--plum-700);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* ── About ── */
.about {
    padding: 120px 0;
    background: var(--plum-50);
}

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

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

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px rgba(88, 28, 135, 0.15);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--amber-400);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
}

.about-content {
    padding: 20px 0;
}

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

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--plum-200);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-stat-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--plum-700);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Flavors ── */
.flavors {
    padding: 120px 0;
    background: var(--plum-100);
}

.flavors-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.flavors-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.flavor-card {
    background: var(--plum-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.flavor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(88, 28, 135, 0.15);
}

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

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

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

.flavor-card-body {
    padding: 24px;
}

.flavor-card-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.flavor-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.flavors-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Features ── */
.features {
    padding: 100px 0;
    background: var(--plum-800);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 24px 16px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-400);
    transition: background 0.2s ease, transform 0.2s ease;
}

.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.feature-text {
    font-size: 0.9rem;
    color: rgba(248, 245, 255, 0.7);
    line-height: 1.6;
}

/* ── Visit ── */
.visit {
    padding: 120px 0;
    background: var(--plum-50);
}

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

.visit-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit-detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--plum-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-700);
}

.visit-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.visit-detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.visit-phone {
    color: var(--plum-700);
    font-weight: 600;
    transition: color 0.2s ease;
}

.visit-phone:hover {
    color: var(--plum-500);
}

.visit-map {
    height: 480px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(88, 28, 135, 0.12);
}

/* ── CTA ── */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--plum-900) 0%, var(--plum-700) 50%, var(--amber-700) 100%);
    text-align: center;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 16px;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(248, 245, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
    background: var(--plum-950);
    padding: 80px 0 40px;
}

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

.footer-logo {
    font-size: 1.5rem;
    margin-right: 4px;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(248, 245, 255, 0.6);
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-links-label,
.footer-contact .footer-links-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 0.95rem;
    color: rgba(248, 245, 255, 0.7);
    transition: color 0.2s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    font-size: 0.95rem;
    color: rgba(248, 245, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--amber-400);
}

.footer-contact p {
    font-size: 0.95rem;
    color: rgba(248, 245, 255, 0.7);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(248, 245, 255, 0.4);
}

/* ── Scroll Reveal (below fold only) ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
    .flavors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-headline br {
        display: block;
    }

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

    .about-image {
        height: 360px;
    }

    .about-stats {
        gap: 24px;
    }

    .flavors-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visit-map {
        height: 320px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 280px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
