/* ───────────────────────────────────────────
   Happyfun Hideaway — Styles
   Palette: Midnight Blue (#0A2342) + Mint (#6ECFBF)
   Fonts: Lora (serif) + Outfit (sans)
─────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --midnight: #0A2342;
    --midnight-light: #132D4F;
    --midnight-deep: #061829;
    --mint: #6ECFBF;
    --mint-light: #8EDBC9;
    --mint-pale: #E8F5F1;
    --cream: #FAFAF8;
    --warm-white: #F5F4F0;
    --sand: #E8E4DC;
    --text: #1A1A1A;
    --text-light: #4A4A4A;
    --text-muted: #7A7A7A;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(10, 35, 66, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 35, 66, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 35, 66, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--midnight);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
    transition: top var(--transition);
}
.skip-link:focus {
    top: 16px;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 35, 66, 0.06);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--midnight);
    letter-spacing: -0.01em;
}
.logo-icon {
    color: var(--midnight);
    flex-shrink: 0;
}
.logo-light {
    color: var(--white);
}
.logo-light .logo-icon {
    color: var(--mint);
}

/* ── Navigation ── */
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.primary-nav a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--mint);
    transition: width var(--transition);
}
.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--midnight);
}
.primary-nav a:hover::after,
.primary-nav a:focus::after {
    width: 100%;
}

.nav-cta {
    background: var(--midnight);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta::after {
    display: none;
}
.nav-cta:hover {
    background: var(--midnight-light);
    transform: translateY(-1px);
}

/* ── Mobile Nav Toggle ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 101;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--midnight);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger {
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--cream);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
}
.hero-content {
    padding-right: 16px;
}
.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
}
.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.12;
    color: var(--midnight);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-headline .accent {
    color: var(--mint);
    font-style: italic;
}
.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--midnight);
    color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--midnight-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-ghost {
    background: transparent;
    color: var(--midnight);
    border: 1.5px solid var(--midnight);
}
.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--midnight);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-full {
    width: 100%;
}

/* ── Hero Image ── */
.hero-image {
    position: relative;
}
.hero-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 640 / 800;
}
.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-img-wrap:hover img {
    transform: scale(1.03);
}
.hero-accent-bar {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--mint);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}

/* ── Section Shared ── */
.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--midnight);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

/* ── About ── */
.about {
    padding: 120px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 560 / 640;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 16px;
}
.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--sand);
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--midnight);
}
.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand);
}

/* ── Menu ── */
.menu {
    padding: 120px 0;
    background: var(--cream);
}
.menu-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
.menu-intro {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-light);
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}
.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 35, 66, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}
.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.menu-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mint-pale);
    border-radius: var(--radius-sm);
    color: var(--midnight);
    margin-bottom: 20px;
}
.menu-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 24px;
}
.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.menu-item-name {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9375rem;
}
.menu-item-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.4;
}
.menu-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Gallery ── */
.gallery {
    padding: 120px 0;
    background: var(--white);
}
.gallery-header {
    text-align: center;
    margin-bottom: 64px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.04);
}
.gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 2; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1 / 3; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 1 / 5; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 5 / 13; grid-row: 2 / 3; }

/* ── Visit ── */
.visit {
    padding: 120px 0;
    background: var(--midnight);
    color: var(--white);
}
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.visit .section-eyebrow {
    color: var(--mint);
}
.visit .section-title {
    color: var(--white);
}
.visit-details {
    font-style: normal;
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 40px;
}
.visit-details p {
    color: rgba(255, 255, 255, 0.75);
}
.visit-details strong {
    color: var(--white);
}
.visit-phone a {
    color: var(--mint);
    transition: color var(--transition);
}
.visit-phone a:hover {
    color: var(--mint-light);
}
.visit-hours-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}
.visit-hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.visit-hours li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.visit-hours li span:last-child {
    color: var(--mint);
    font-weight: 500;
}
.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.map-placeholder {
    aspect-ratio: 4 / 3;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
}

/* ── Contact ── */
.contact {
    padding: 120px 0;
    background: var(--cream);
}
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-light);
    margin-top: 16px;
}
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(10, 35, 66, 0.04);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 12px 16px;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(110, 207, 191, 0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--mint-pale);
    border-radius: var(--radius-sm);
    color: var(--midnight);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ── Footer ── */
.site-footer {
    background: var(--midnight-deep);
    color: var(--white);
    padding: 64px 0 0;
}
.footer-inner {
    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: 0.9375rem;
    line-height: 1.7;
    margin-top: 12px;
}
.footer-brand a {
    color: var(--mint);
    transition: color var(--transition);
}
.footer-brand a:hover {
    color: var(--mint-light);
}
.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--mint);
}
.footer-hours p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    white-space: pre-line;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--midnight);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--midnight-light);
    transform: translateY(-2px);
}

/* ── Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 32px;
    }
    .about-grid {
        gap: 40px;
    }
    .menu-grid {
        gap: 24px;
    }
    .visit-grid {
        gap: 40px;
    }
    .contact-inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1px solid rgba(10, 35, 66, 0.06);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }
    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 8px;
    }
    .primary-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }
    .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 40px 0 60px;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    .hero-eyebrow {
        text-align: center;
    }
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image {
        order: 1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    .hero-img-wrap {
        aspect-ratio: 4 / 5;
    }
    .hero-accent-bar {
        display: none;
    }

    .about {
        padding: 80px 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        aspect-ratio: 4 / 3;
        max-height: 400px;
    }
    .about-stats {
        justify-content: center;
    }

    .menu {
        padding: 80px 0;
    }
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
    }

    .gallery {
        padding: 80px 0;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: auto; }
    .gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: auto; }
    .gallery-item:nth-child(3) { grid-column: 1 / 2; grid-row: auto; }
    .gallery-item:nth-child(4) { grid-column: 2 / 3; grid-row: auto; }
    .gallery-item:nth-child(5) { grid-column: 1 / 3; grid-row: auto; }
    .gallery-item:nth-child(2) img,
    .gallery-item:nth-child(5) img {
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

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

    .contact {
        padding: 80px 0;
    }
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form {
        padding: 28px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-headline {
        font-size: 2.125rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
    .menu-card {
        padding: 28px 24px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item:nth-child(5) {
        grid-column: 1 / 2;
    }
}
