/* ============================================================
   ACTIVITYZ — Layout: Header & Footer
   Mobile-first. CSS custom properties.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --clr-primary:      #ff2e5e;
    --clr-primary-dark: #e0234d;
    --clr-dark:         #111827;
    --clr-dark-2:       #1f2937;
    --clr-text:         #2d3748;
    --clr-muted:        #718096;
    --clr-border:       #e2e8f0;
    --clr-bg:           #ffffff;
    --clr-bg-soft:      #f7f8fc;

    --font-body:    'Montserrat', sans-serif;
    --font-display: 'Caprasimo', cursive;

    --header-h:     60px;
    --mobile-nav-h: 64px; /* bottom mobile nav */

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.2s var(--ease);
}

/* ── Base ───────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    color: var(--clr-text);
    padding-top: var(--header-h);
    padding-bottom: var(--mobile-nav-h);
    margin: 0;
}

@media (min-width: 960px) {
    body {
        padding-bottom: 0;
    }
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9990;
    height: var(--header-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    border-color: var(--clr-border);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ── Logo ───────────────────────────────────────────────────── */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img,
.header-logo .custom-logo {
    height: 28px;
    width: auto;
    display: block;
}

.header-logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--clr-primary);
    letter-spacing: -0.3px;
    line-height: 1;
}

/* ── Desktop Nav ────────────────────────────────────────────── */
.header-nav {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

@media (min-width: 960px) {
    .header-nav {
        display: flex;
    }
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.current {
    background: rgba(255,46,94,0.07);
    color: var(--clr-primary);
}

/* ── Header Actions ─────────────────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

@media (min-width: 960px) {
    .header-actions {
        margin-left: 0;
    }
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--clr-text);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.header-icon-btn:hover {
    background: var(--clr-bg-soft);
    color: var(--clr-primary);
}

.header-account-pill {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    border-radius: var(--radius-lg);
    background: var(--clr-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.header-account-pill:hover {
    background: var(--clr-primary-dark);
    transform: translateY(-1px);
}

@media (min-width: 960px) {
    .header-account-pill {
        display: inline-flex;
    }
    .header-icon-btn.account-mobile {
        display: none;
    }
}

/* ── Hamburger (mobile only) ────────────────────────────────── */
.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition);
}

.header-hamburger:hover {
    background: var(--clr-bg-soft);
}

.header-hamburger span {
    display: block;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
    transform-origin: left center;
}

.header-hamburger span:nth-child(3) {
    width: 65%;
}

.header-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(1px, -1px); }
.header-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header-hamburger.open span:nth-child(3) { width: 100%; transform: rotate(-45deg) translate(1px, 1px); }

@media (min-width: 960px) {
    .header-hamburger {
        display: none;
    }
}

/* ── Mobile Drawer ──────────────────────────────────────────── */
.mobile-drawer {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    z-index: 999;
    background: #fff;
    padding: 24px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    color: var(--clr-text);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.mobile-drawer nav a i {
    width: 20px;
    text-align: center;
    color: var(--clr-primary);
    font-size: 15px;
}

.mobile-drawer nav a:hover {
    background: rgba(255,46,94,0.06);
    color: var(--clr-primary);
}

.mobile-drawer-divider {
    height: 1px;
    background: var(--clr-border);
    margin: 16px 0;
}

.mobile-drawer-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mobile-drawer-cities a {
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--clr-muted);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.mobile-drawer-cities a:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    background: rgba(255,46,94,0.05);
}

.mobile-drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--clr-muted);
    padding: 0 16px;
    margin: 8px 0 4px;
}

/* Overlay behind drawer */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(22,33,62,0.4);
    backdrop-filter: blur(2px);
}

.drawer-overlay.open {
    display: block;
}

@media (min-width: 960px) {
    .mobile-drawer,
    .drawer-overlay {
        display: none !important;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--clr-dark);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    /* Break out of any Neve wrapper constraints */
    width: 100%;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    float: none;
    clear: both;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 640px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
    }
}

/* ── Footer Brand ───────────────────────────────────────────── */
.footer-brand {}

.footer-brand-logo {
    font-family: var(--font-display);
    font-size: 26px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand-logo span {
    color: var(--clr-primary);
}

.footer-brand p {
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 260px;
    color: rgba(255,255,255,0.6);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social-btn:hover {
    background: var(--clr-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Footer Columns ─────────────────────────────────────────── */
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-col ul li a i {
    font-size: 11px;
    color: var(--clr-primary);
    width: 14px;
}

/* ── Footer Bottom Bar ──────────────────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

@media (min-width: 640px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom-inner a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom-inner a:hover {
    color: var(--clr-primary);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* ── Header scroll JS helper ────────────────────────────────── */
/* Applied via JS on scroll */

/* ============================================================
   WP ADMIN BAR — push fixed header below it when logged in
   WordPress adds margin-top: 32px to <html> when adminbar shows
   ============================================================ */

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

main#content {
    display: block;
    width: 100%;
    min-height: 50vh;
}


