/* ============================================================
   LAYOUT — header, footer, page-level chrome
   ============================================================ */

/* ==== SKIP NAVIGATION ==== */
.skip-nav {
    position: absolute;
    top: -100%;
    left: var(--sp-4);
    z-index: 9999;
    background: var(--pitch);
    color: var(--white);
    padding: var(--sp-2) var(--sp-6);
    border-radius: 0 0 var(--r-md) var(--r-md);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s;
    white-space: nowrap;
}
.skip-nav:focus {
    top: 0;
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

/* ==== HEADER ==== */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 900;
    background: rgba(236, 239, 242, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding-block: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: padding var(--ease), background var(--ease), box-shadow var(--ease);
}
.site-header.scrolled {
    padding-block: 0.55rem;
    box-shadow: 0 2px 24px rgba(0,0,0,.28);
    border-bottom-color: rgba(196,154,26,.14);
}

/* Transparent variant (over dark hero) */
.header-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}
.header-transparent.scrolled {
    background: rgba(236, 239, 242, 0.95) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom-color: rgba(196,154,26,.12) !important;
    box-shadow: 0 2px 24px rgba(0,0,0,.28) !important;
}
.header-transparent.scrolled .btn-register-header a {
    color: #fff !important;
}

.header-transparent .primary-nav a {
    color: #fff !important;
}

.header-transparent.scrolled .primary-nav a {
    color: #1a5c2a !important;
}

.header-inner .primary-nav a {
    color: #1a5c2a;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--sp-3);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

/* ---- Circular logo frame — centered, never crop, never stretch ---- */
.logo-frame {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;           /* guarantees circle, not oval */
    border-radius: var(--r-circle);
    overflow: hidden;
    /* background: var(--pitch);
    border: 2.5px solid rgba(196,154,26,.6); */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width var(--ease), height var(--ease), border-color var(--ease), box-shadow var(--ease);
    /* box-shadow: 0 0 0 4px rgba(196,154,26,.12); */
}
.scrolled .logo-frame {
    width: 48px;
    height: 48px;
    box-shadow: none;
}
.logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.logo-placeholder-svg { width: 82%; height: 82%; }

/* Centered brand column */
.header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    text-decoration: none;
    justify-self: center;
}
.header-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-align: center;
}
.header-club-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 0.82rem;
    color: var(--white);
    letter-spacing: 0.1em;
    white-space: nowrap;
}
/* The ONE place the script font lives in the header */
.header-tagline {
    font-family: 'Pacifico', cursive;
    font-size: 0.55rem;
    color: var(--gold);
    white-space: nowrap;
    line-height: 1.4;
}
.scrolled .header-tagline { display: none; }
.scrolled .header-club-name { font-size: 0.75rem; }

/* ---- Primary nav (split left / right) ---- */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 0;
}
.primary-nav--left  { justify-self: stretch; justify-content: space-evenly; }
.primary-nav--right { justify-self: stretch; justify-content: space-evenly; }

.primary-nav a {
    color: rgba(255,255,255,.75);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0.68rem;
    border-radius: var(--r-sm);
    transition: color var(--ease), background var(--ease);
    white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.active { color: #0d1e35; background: rgba(255,255,255,.08); }

/* Register CTA in header */
.btn-register-header {
    margin-left: var(--sp-3) !important;
    background: var(--pitch) !important;
    color: var(--white) !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.84rem !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--r-full) !important;
    border: 1.5px solid rgba(196,154,26,.4) !important;
    transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease) !important;
}
.btn-register-header:hover {
    background: var(--pitch-mid) !important;
    border-color: var(--gold) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(26,92,42,.4) !important;
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    padding: 4px 2px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: var(--r-full);
    transition: transform var(--ease), opacity var(--ease), width var(--ease);
}
.hamburger span:nth-child(3) { width: 60%; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* ---- Mobile nav overlay ---- */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 36, 0.97);
    backdrop-filter: blur(20px);
    z-index: 899;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-8);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.75rem;
    color: rgba(255,255,255,.85);
    transition: color var(--ease);
    padding: 0.25rem 1rem;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn-register-mobile {
    margin-top: var(--sp-5);
    background: var(--pitch);
    color: var(--white);
    padding: 0.9rem 2.5rem;
    border-radius: var(--r-full);
    border: 1.5px solid rgba(196,154,26,.45);
    font-size: 1rem;
}
.mobile-nav-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    color: rgba(255,255,255,.55);
    font-size: 1.6rem;
    width: 44px; height: 44px;
    border-radius: var(--r-circle);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--ease), color var(--ease);
}
.mobile-nav-close:hover { background: rgba(255,255,255,.08); color: var(--white); }

@media (max-width: 960px) {
    .primary-nav--left,
    .primary-nav--right { display: none; }
    .header-brand {
        grid-column: 2;
        justify-self: center;
    }
    .hamburger {
        display: flex;
        justify-self: end;   /* right column of the 3-col grid */
        grid-column: 3;
    }
}

/* ==== FOOTER ==== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.72);
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-8);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.25fr;
    gap: var(--sp-8);
    margin-bottom: var(--sp-10);
}

/* Circular logo frame in footer */
.logo-frame-footer {
    width: 60px;
    height: 60px;
    border-radius: var(--r-circle);
    aspect-ratio: 1 / 1;
    background: var(--pitch);
    border: 2px solid rgba(196,154,26,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: var(--sp-4);
}
.logo-frame-footer img { width: 100%; height: 100%; object-fit: contain; }

.footer-club-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--white);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.footer-tagline {
    font-family: 'Pacifico', cursive;
    font-size: 0.68rem;
    color: var(--gold);
    margin-bottom: var(--sp-4);
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,.5); max-width: 260px; }

.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-col ul li { margin-bottom: var(--sp-2); }
.footer-col ul a {
    color: rgba(255,255,255,.52);
    font-size: 0.88rem;
    transition: color var(--ease), padding-left var(--ease);
    display: inline-block;
}
.footer-col ul a:hover { color: var(--gold); padding-left: 5px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
    font-size: 0.86rem;
    color: rgba(255,255,255,.52);
}
.footer-contact-icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; fill: var(--gold); }

/* Social links — circular frames (echoing the logo frame motif) */
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--r-circle);   /* circular — same motif as logo */
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}
.footer-social svg { width: 15px; height: 15px; fill: rgba(255,255,255,.7); }
.footer-social a:hover svg { fill: var(--navy); }

hr.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin-bottom: var(--sp-5); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-3);
    font-size: 0.77rem;
    color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.3); transition: color var(--ease); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- Inner page hero ---- */
.page-hero {
    background: linear-gradient(145deg, var(--navy) 0%, var(--pitch-dark) 100%);
    padding: 9rem var(--container-px) 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-3); }
.page-hero p  { color: rgba(255,255,255,.7); max-width: 520px; margin-inline: auto; font-size: 1.05rem; }
