/*
Theme Name: SheRugby
Version: 1.2.1
Text Domain: sherugby
*/

/* ============================= */
/* 1) DESIGN TOKENS (Dark theme) */
/* ============================= */
:root {
    /* Brand */
    --sr-green: #16934A;
    /* primary green */
    --sr-green-600: #11783C;
    /* hover green */
    --sr-orange: #FFB020;
    /* CTA */
    --sr-orange-700: #E59300;

    /* Dark surfaces */
    --sr-bg: #0B0D0F;
    /* page background */
    --sr-surface: #121417;
    /* header/cards */
    --sr-surface-2: #161A1E;
    /* elevated */
    --sr-border: #232830;
    /* hairlines */
    --sr-shadow: 0 10px 30px rgba(0, 0, 0, .5);

    /* Text */
    --sr-text: #E9EDF2;
    --sr-muted: #9DA7B2;
    --sr-link: #8DDFAE;
    --sr-link-hover: #B3F0C9;

    /* Mobile overlay */
    --sr-menu-bg: rgba(22, 147, 74, 0.90);
    --sr-menu-text: #ffffff;

    /* Misc */
    --radius: 14px;
    --radius-sm: 10px;
    --gutter: 40px;
}

/* ============================= */
/* 2) BASE / RESET               */
/* ============================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: var(--sr-bg);
    color: var(--sr-text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--sr-link);
    text-decoration: none;
}

a:hover {
    color: var(--sr-link-hover);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--sr-orange);
    outline-offset: 2px;
}

/* ============================= */
/* 3) LAYOUT HELPERS             */
/* ============================= */
.container {
    width: 100%;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section {
    padding: 72px 0;
}

.h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin: 0 0 12px;
}

.h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin: 0 0 8px;
}

.lede {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--sr-muted);
    max-width: 850px;
}

/* ============================= */
/* 4) HEADER / NAV (Desktop)     */
/* ============================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--sr-surface);
    border-bottom: 1px solid var(--sr-border);
    backdrop-filter: blur(8px) saturate(120%);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
}

.branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    color: #fff;
    letter-spacing: .2px;
    font-size: 20px;
}

.site-tagline {
    margin: 0;
    color: var(--sr-muted);
    font-size: 12.5px;
}

/* Desktop nav */
.main-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
}

.main-nav .menu li {
    position: relative;
}

.main-nav .menu a {
    color: #DDE3EA;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 10px;
}

.main-nav .menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

/* Dropdowns */
.main-nav .menu li .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--sr-surface-2);
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: var(--sr-shadow);
    padding: 8px;
    z-index: 70;
    list-style: none;
    margin: 0;
}

.main-nav .menu li:hover>.sub-menu,
.main-nav .menu li:focus-within>.sub-menu {
    display: block;
}

.main-nav .menu li .sub-menu a {
    display: block;
    color: #E5EAF0;
    padding: 10px 12px;
    white-space: nowrap;
    border-radius: 8px;
}

.main-nav .menu li .sub-menu a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

/* ============================= */
/* 5) MOBILE OVERLAY MENU        */
/* ============================= */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    font-size: 20px;
    line-height: 1;
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    background: var(--sr-surface);
    color: #fff;
    cursor: pointer;
}

@media (max-width:900px) {
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
    }
}

/* Full-screen overlay (glassy green) */
.sr-mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--sr-menu-bg);
    backdrop-filter: blur(10px) saturate(130%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9999;
}

.sr-mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Panel */
.sr-menu-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px 28px;
    color: var(--sr-menu-text);
}

/* Top bar in overlay */
.sr-menu-top {
    position: relative;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-menu-close {
    position: absolute;
    right: 0;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.sr-menu-logo .site-title {
    color: #fff;
    font-size: 26px;
}

/* Overlay menu items with entrance animation */
.sr-overlay-menu,
.sr-overlay-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sr-overlay-menu {
    display: grid;
    gap: 14px;
}

.sr-overlay-menu li {
    opacity: 0;
    transform: translateY(6px);
    transition: .25s ease;
}

.sr-mobile-menu.is-open .sr-overlay-menu li {
    opacity: 1;
    transform: none;
}

.sr-mobile-menu.is-open .sr-overlay-menu li:nth-child(1) {
    transition-delay: .05s;
}

.sr-mobile-menu.is-open .sr-overlay-menu li:nth-child(2) {
    transition-delay: .10s;
}

.sr-mobile-menu.is-open .sr-overlay-menu li:nth-child(3) {
    transition-delay: .15s;
}

.sr-mobile-menu.is-open .sr-overlay-menu li:nth-child(4) {
    transition-delay: .20s;
}

.sr-mobile-menu.is-open .sr-overlay-menu li:nth-child(5) {
    transition-delay: .25s;
}

.sr-mobile-menu.is-open .sr-overlay-menu li:nth-child(6) {
    transition-delay: .30s;
}

.sr-overlay-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 14px;
    border-radius: 16px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
    backdrop-filter: blur(4px);
}

/* Accordion caret for parents (mobile overlay) */
.sr-overlay-menu .menu-item-has-children>a {
    position: relative;
    padding-right: 34px;
}

.sr-overlay-menu .menu-item-has-children>a::after {
    content: '▾';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform .2s ease;
    font-size: 14px;
    opacity: .9;
}

.sr-overlay-menu .menu-item-has-children.open>a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Submenu (mobile overlay) – hidden until .open */
.sr-overlay-menu .sub-menu {
    display: none;
    margin: 8px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.sr-overlay-menu .sub-menu li a {
    background: rgba(255, 255, 255, .10);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
}

.sr-overlay-menu li.open>.sub-menu {
    display: block;
}

.sr-menu-foot {
    margin-top: auto;
    text-align: center;
    opacity: .95;
}

/* Lock page scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* ============================= */
/* 6) HERO / SURFACES            */
/* ============================= */
.hero {
    background: linear-gradient(180deg, #0B0D0F 0%, #0E1114 100%);
    border-bottom: 1px solid var(--sr-border);
    padding: 72px var(--gutter);
}

.hero-card {
    background: var(--sr-surface);
    border: 1px solid var(--sr-border);
    border-radius: var(--radius);
    padding: 38px 32px;
    display: grid;
    gap: 14px;
    box-shadow: var(--sr-shadow);
    max-width: 1100px;
    margin: 0 auto;
}

.hero .h1 {
    color: #fff;
}

.hero .lede {
    color: var(--sr-muted);
}

.hero-kpis {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.kpi {
    background: var(--sr-surface-2);
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    padding: 12px 14px;
}

.kpi small {
    color: var(--sr-muted);
    display: block;
    margin-bottom: 2px;
}

.kpi b {
    font-size: 20px;
    color: #fff;
}

/* ============================= */
/* 7) BUTTONS / LINKS            */
/* ============================= */
.btn {
    background: var(--sr-surface-2);
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: #DEE5EC;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn:hover {
    border-color: #2E3440;
    background: #1A1F25;
}

.btn--primary {
    background: var(--sr-green);
    border-color: var(--sr-green);
    color: #fff;
}

.btn--primary:hover {
    background: var(--sr-green-600);
}

.cta-btn {
    background: var(--sr-orange);
    color: #1A1A1A !important;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    border: 0;
}

.cta-btn:hover {
    background: var(--sr-orange-700);
}

/* ============================= */
/* 8) CARDS / TABLES             */
/* ============================= */
.card {
    background: var(--sr-surface);
    border: 1px solid var(--sr-border);
    border-radius: var(--radius);
    box-shadow: var(--sr-shadow);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--sr-muted);
    text-align: left;
    padding: 10px 12px;
}

.table td {
    background: var(--sr-surface);
    border: 1px solid var(--sr-border);
    border-left: none;
    border-right: none;
    padding: 14px 12px;
    color: #E2E7ED;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge img {
    width: 22px;
    height: 22px;
    border-radius: 999px;
}

/* ============================= */
/* 9) FOOTER                     */
/* ============================= */
.site-footer {
    background: #0A0C0E;
    color: #BFC7D1;
    margin-top: 72px;
    border-top: 1px solid var(--sr-border);
}

.site-footer .inner {
    padding: 34px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: #D5DCE6;
}

.site-footer a:hover {
    color: #fff;
}

/* ============================= */
/* 10) UTILITIES                 */
/* ============================= */
.grid {
    display: grid;
    gap: 16px;
}

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

@media (max-width:1100px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.mt-0 {
    margin-top: 0
}

.mt-2 {
    margin-top: 8px
}

.mt-3 {
    margin-top: 12px
}

.mt-4 {
    margin-top: 16px
}

.mt-6 {
    margin-top: 24px
}

.mt-8 {
    margin-top: 32px
}

.mb-0 {
    margin-bottom: 0
}

.mb-2 {
    margin-bottom: 8px
}

.mb-4 {
    margin-bottom: 16px
}

.mb-6 {
    margin-bottom: 24px
}

.mb-8 {
    margin-bottom: 32px
}

/* Safety */
html,
body {
    overflow-x: hidden;
}

/* ==== Header logo sizing + overlap effect ==== */

/* Keep header height consistent */
.site-header .header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo sizing */
.branding img.custom-logo {
  height: 56px;          /* adjust this for size */
  width: auto;
  display: block;
  line-height: 0;
}

/* Make the logo “dip” over the header bottom border */
.branding .custom-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: -10px;  /* overlap amount */
  position: relative;
  z-index: 2;
}

/* Hide title/tagline visually when logo exists (keep for screen readers/SEO) */
.branding.has-logo .site-title,
.branding.has-logo .site-tagline {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Tweak for smaller screens */
@media (max-width: 900px) {
  .branding img.custom-logo { height: 46px; }
  .branding .custom-logo-link { margin-bottom: -6px; }
}
/* Let the logo hang over the header line nicely */
.site-header { overflow: visible; }             /* don't clip the overlap */
.site-header .header-inner { overflow: visible; }

.branding img.custom-logo {
  height: 125px;                                  /* bigger logo */
  width: auto;
  display: block;
  line-height: 0;
}

.branding .custom-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: -14px;                          /* <- how far it dips */
  position: relative;
  z-index: 2;                                    /* sit above the border line */
}

/* Optional: subtle halo so the edge pops on dark */
.branding .custom-logo-link::after {
  content: "";
  position: absolute;
  left: -6px; right: -6px; bottom: -6px; top: -6px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  pointer-events: none;
  z-index: -1;
}

/* Tweak on smaller screens */
@media (max-width: 900px) {
  .branding img.custom-logo { height: 58px; }
  .branding .custom-logo-link { margin-bottom: -10px; }
}
