/* ============================================
   Spencer's Dairy Bar — Custom Styles
   Deep Navy (#1B2A4A) + Warm Gold (#D4A843)
   ============================================ */

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

:root {
    --navy: #1B2A4A;
    --navy-light: #2A3F6A;
    --navy-dark: #111D35;
    --gold: #D4A843;
    --gold-light: #E8C76A;
    --gold-dark: #B8912E;
    --cream: #FDF6E3;
    --cream-dark: #F5E6C8;
    --white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-muted: #5A5A7A;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.08);
    --shadow-md: 0 8px 30px rgba(27, 42, 74, 0.12);
    --shadow-lg: 0 16px 60px rgba(27, 42, 74, 0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', 'Nunito Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
}

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

.section-label {
    display: inline-block;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(212, 168, 67, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.section-label.light {
    color: var(--gold-light);
    background: rgba(212, 168, 67, 0.25);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.section-title.light { color: var(--white); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
}

.btn-light {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}
.btn-light:hover {
    background: var(--cream-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 246, 227, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 42, 74, 0.08);
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(253, 246, 227, 0.97);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
}
.logo-accent { color: var(--gold); }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.main-nav a {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}
.main-nav a:hover {
    background: rgba(212, 168, 67, 0.15);
    color: var(--gold-dark);
}
.nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-weight: 600 !important;
}
.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    align-items: center;
    justify-content: center;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    position: relative;
    transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background: transparent;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    background: var(--navy);
    padding: 8rem 0 0;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(42, 63, 106, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content { color: var(--white); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--gold-light);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Hero Images */
.hero-image-wrapper {
    position: relative;
    height: 640px;
}

.hero-image-main {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-float {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--navy);
}
.hero-image-float--left {
    bottom: 10%;
    left: -8%;
}
.hero-image-float--right {
    top: 5%;
    right: -5%;
}
.hero-image-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-dots span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
}
.hero-dots span:nth-child(1) { top: 10%; left: 5%; }
.hero-dots span:nth-child(2) { top: 25%; left: 2%; width: 6px; height: 6px; }
.hero-dots span:nth-child(3) { top: 60%; left: 8%; width: 10px; height: 10px; opacity: 0.2; }
.hero-dots span:nth-child(4) { top: 80%; left: 4%; width: 6px; height: 6px; }
.hero-dots span:nth-child(5) { top: 15%; right: 2%; width: 6px; height: 6px; }
.hero-dots span:nth-child(6) { top: 45%; right: 6%; width: 10px; height: 10px; opacity: 0.2; }
.hero-dots span:nth-child(7) { top: 75%; right: 3%; width: 6px; height: 6px; }
.hero-dots span:nth-child(8) { top: 90%; right: 8%; }

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ---------- About ---------- */
.about {
    padding: 6rem 0;
    background: var(--cream);
}

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

.about-images {
    position: relative;
    height: 520px;
}

.about-img-main {
    width: 75%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: 0;
    width: 55%;
    height: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--cream);
}
.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -1rem;
    right: 15%;
    background: var(--navy);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.about-badge-number {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}
.about-badge-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.about-content .section-title { margin-bottom: 1.25rem; }
.about-content > p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.about-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-feature h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.about-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Menu ---------- */
.menu {
    padding: 6rem 0;
    background: var(--white);
}

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

.menu-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}
.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 168, 67, 0.3);
}

.menu-card-icon {
    margin-bottom: 1rem;
}

.menu-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.menu-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- Flavors ---------- */
.flavors {
    padding: 6rem 0;
    background: var(--cream);
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.flavor-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}
.flavor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 168, 67, 0.3);
}

.flavor-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.flavor-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.flavor-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 6rem 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(212, 168, 67, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(42, 63, 106, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-content .section-title { margin-bottom: 1rem; }
.cta-content > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 440px;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 560px;
}
.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Visit ---------- */
.visit {
    padding: 6rem 0;
    background: var(--white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.visit-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}
.visit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.visit-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visit-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}
.visit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.visit-card a {
    color: var(--gold-dark);
    font-weight: 600;
    transition: var(--transition);
}
.visit-card a:hover { color: var(--navy); }

.hours-day {
    display: block;
    font-weight: 700;
    color: var(--navy) !important;
}
.hours-time {
    display: block;
    color: var(--text-muted) !important;
}

.visit-map a {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.visit-map a:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.visit-map img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}
.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 42, 74, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--white);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}
.visit-map a:hover .map-overlay { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 0.25rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.footer-contact a {
    color: var(--gold-light);
    transition: var(--transition);
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.footer-bottom a {
    color: var(--gold-light);
    transition: var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

/* ---------- Scroll to Top ---------- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: var(--transition);
    z-index: 999;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { gap: 2rem; }
    .hero-image-wrapper { height: 500px; }
    .about-grid { gap: 2.5rem; }
    .cta-card { gap: 2rem; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 246, 227, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem;
        border-bottom: 1px solid rgba(27, 42, 74, 0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }
    .main-nav a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }
    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero { padding: 7rem 0 4rem; min-height: auto; }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-image-wrapper {
        height: 400px;
        max-width: 480px;
        margin: 0 auto;
    }
    .hero-image-float { display: none; }
    .hero-wave svg { height: 50px; }

    .about-grid { grid-template-columns: 1fr; }
    .about-images { height: 400px; }

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

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

    .cta-card { grid-template-columns: 1fr; }
    .cta-image { height: 320px; order: -1; }

    .visit-grid { grid-template-columns: 1fr; }
    .visit-map img { height: 280px; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .flavors-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .scroll-top { transition: none; }
}
