/*
Theme Name: AJNC Theme
Theme URI: https://new.altrinchamnetball.co.uk
Description: Altrincham Junior Netball Club custom theme
Author: AJNC
Version: 1.0.0
*/

/* ============================================
   AJNC GLOBAL DESIGN SYSTEM
   ============================================ */

/* FONTS */


/* VARIABLES */
:root {
  --navy:        #1a2744;
  --navy-dark:   #0d1424;
  --navy-mid:    #111e30;
  --gold:        #c9973a;
  --gold-muted:  rgba(201, 151, 58, 0.12);
  --gold-border: rgba(201, 151, 58, 0.25);
  --white:       #ffffff;
  --off-white:   #f5f5f3;
  --body-text:   rgba(26, 39, 68, 0.65);
  --font-heading: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Barlow', Arial, sans-serif;
}

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

/* BASE */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.5px;
  color: var(--navy);
}

h1 { font-size: clamp(52px, 8vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 52px); }
h3 { font-size: clamp(24px, 3vw, 32px); }

.gold { color: var(--gold); }
.white { color: var(--white); }

p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--body-text);
}

/* SECTION LABELS */
.sec-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26, 39, 68, 0.1);
}
.sec-label.light::after {
  background: rgba(255, 255, 255, 0.1);
}

/* BUTTONS */
.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 2px;
  border: 2px solid rgba(26, 39, 68, 0.25);
  cursor: pointer;
}

.btn-outline-light {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 2px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

/* LINK CTA */
.link-cta {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-cta::after { content: '\2192'; font-size: 14px; color: var(--gold); }
.link-cta.light { color: rgba(255, 255, 255, 0.5); }
.link-cta.light::after { color: var(--gold); }

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-pad { padding: 64px 48px; }
.section-pad-sm { padding: 40px 48px; }

/* BACKGROUNDS */
.bg-white    { background: var(--white); }
.bg-offwhite { background: var(--off-white); }
.bg-navy     { background: var(--navy); }
.bg-navy-dark{ background: var(--navy-dark); }

/* GOLD ACCENT LINE */
.gold-top { border-top: 3px solid var(--gold); }
.gold-left { border-left: 3px solid var(--gold); }

/* ============================================
   NAVIGATION
   ============================================ */

.ajnc-nav {
    background: var(--white);
    border-bottom: 2px solid var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 48px;
    max-width: 1440px;
    margin: 0 auto;
}

/* BRAND */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand img {
    height: 46px;
    width: auto;
}

.nav-wordmark {
    display: flex;
    flex-direction: column;
}

.nav-wordmark-main {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    line-height: 1.2;
}

.nav-wordmark-sub {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.2;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a.current-page,
.nav-links a.active { 
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

/* SAFEGUARDING - stands alone */
.nav-safe {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 8px 14px !important;
    border-radius: 2px;
    font-size: 11px !important;
    letter-spacing: 2px;
    transition: background 0.15s !important;
}

.nav-safe:hover {
    background: var(--gold) !important;
    color: var(--navy) !important;
}

/* JOIN CTA */
.nav-join {
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 11px 20px;
    border-radius: 2px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}

.nav-join:hover { background: #b8862e; }

/* MOBILE TOGGLE */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 1px;
    transition: all 0.2s;
}

/* MOBILE MENU */
.nav-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid rgba(26,39,68,0.08);
    padding: 16px 24px 24px;
    gap: 4px;
}

.nav-mobile-menu a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    padding: 12px 0;
    border-bottom: 1px solid rgba(26,39,68,0.06);
    text-decoration: none;
}

.nav-mobile-menu a:hover { color: var(--gold); }

.nav-safe-mobile {
    color: var(--gold) !important;
    font-weight: 700 !important;
}

.nav-join-mobile {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 12px 20px !important;
    border-radius: 2px;
    text-align: center;
    margin-top: 8px;
    border-bottom: none !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-join { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav-mobile-menu.open { display: flex; }
    .nav-inner { padding: 0 24px; }
}