/* ═══════════════════════════════════════════════════
   LAYOUT.CSS  —  TheWheelOfName.com
   Header · Nav · Dropdowns · Mobile Nav · Footer
═══════════════════════════════════════════════════ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', system-ui, sans-serif; background: #f0f4ff; color: #1e293b; }

/* ─── SITE HEADER ─────────────────────────────── */
.site-header {
    background: #fff;
    border-bottom: 1.5px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 200;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1.5rem;
}

/* ─── LOGO ────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c3bff, #ff4f81);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.25rem;
    color: #6c3bff;
    line-height: 1;
}
.logo-sub {
    font-size: 10px;
    color: #94a3b8;
    display: block;
    font-weight: 600;
    letter-spacing: .05em;
}

/* ─── PRIMARY NAV ─────────────────────────────── */
.primary-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: 1rem;
    flex: 1;
}
.primary-nav > a {
    padding: .4rem .85rem;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.primary-nav > a:hover,
.primary-nav > a.active {
    background: #ede9ff;
    color: #6c3bff;
}

/* ─── DROPDOWN ────────────────────────────────── */
.nav-dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .4rem .85rem;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    color: #475569;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Nunito', sans-serif;
    transition: all .15s;
}
.dropdown-toggle:hover,
.nav-dropdown.open .dropdown-toggle {
    background: #ede9ff;
    color: #6c3bff;
}
.dropdown-caret {
    font-size: .7rem;
    transition: transform .2s;
}
.nav-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: .5rem;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 300;
    list-style: none;
    animation: dropIn .18s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown.open .dropdown-menu {
    display: block;
}
.dropdown-item {
    display: block;
    padding: .5rem .75rem;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all .12s;
    white-space: nowrap;
}
.dropdown-item:hover,
.dropdown-item.active {
    background: #ede9ff;
    color: #6c3bff;
}
.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: .35rem .25rem;
}

/* ─── HEADER CTA ──────────────────────────────── */
.header-cta {
    margin-left: auto;
    padding: .45rem 1rem;
    border-radius: 10px;
    background: #6c3bff;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-cta:hover { background: #4a22d4; }

/* ─── HAMBURGER ───────────────────────────────── */
.ham-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #1e293b;
    font-size: 22px;
    padding: .25rem;
    margin-left: auto;
    border-radius: 8px;
    transition: background .15s;
}
.ham-btn:hover { background: #f1f5f9; }

/* ─── MOBILE NAV ──────────────────────────────── */
.mobile-nav {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: .75rem 1.5rem;
    flex-direction: column;
    gap: .25rem;
    max-height: 80vh;
    overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav > a {
    display: block;
    padding: .6rem .85rem;
    border-radius: 10px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    font-size: .88rem;
}
.mobile-nav > a:hover { background: #ede9ff; color: #6c3bff; }

.mobile-nav-group {
    border-radius: 10px;
    overflow: hidden;
}
.mobile-nav-group summary {
    padding: .6rem .85rem;
    font-weight: 700;
    font-size: .88rem;
    color: #475569;
    cursor: pointer;
    border-radius: 10px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .12s;
}
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary::after { content: '▾'; font-size: .7rem; }
.mobile-nav-group[open] summary { background: #ede9ff; color: #6c3bff; }
.mobile-nav-group[open] summary::after { transform: rotate(180deg); display: inline-block; }
.mobile-nav-group a {
    display: block;
    padding: .5rem .85rem .5rem 1.5rem;
    font-size: .83rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color .12s;
}
.mobile-nav-group a:hover { color: #6c3bff; }

/* ─── BREADCRUMB ──────────────────────────────── */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: .5rem 0; }
.breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: #94a3b8;
}
.breadcrumb-inner a { color: #475569; text-decoration: none; font-weight: 600; }
.breadcrumb-inner a:hover { color: #6c3bff; }
.breadcrumb-inner .sep { color: #94a3b8; }
.breadcrumb-inner .current { color: #6c3bff; font-weight: 700; }

/* ─── FOOTER ──────────────────────────────────── */
.site-footer { background: #1e293b; color: #e2e8f0; padding: 2.5rem 0 1.5rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-family: 'Fredoka One', cursive; font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.footer-tagline { font-size: .8rem; color: #94a3b8; line-height: 1.6; }
.footer-col-title { font-size: .8rem; font-weight: 800; color: #fff; letter-spacing: .06em; margin-bottom: .75rem; }
.footer-col a { display: block; font-size: .8rem; color: #94a3b8; text-decoration: none; margin-bottom: .4rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .75rem; color: #64748b; }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { font-size: .75rem; color: #64748b; text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
    .primary-nav  { display: none; }
    .header-cta   { display: none; }
    .ham-btn      { display: block; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid  { grid-template-columns: 1fr; }
    .header-inner { padding: .6rem 1rem; }
}
