/* ================================================================
   Skyball Beach Volleyball Club – Shared Stylesheet
   ================================================================ */

/* ── TOKENS ── */
:root {
  --teal: #3DDDD8; --teal-lt: #5FE8E4; --teal-pale: #D4F9F8;
  /* --pink/--purple/--grey-3 darkened to meet WCAG 2.2 AA contrast (4.5:1 normal text).
     Previous: #FF6B9D / #E84A87 / #1B7FA3 / #155A7A / #8AACB0. */
  --pink: #CC3680; --pink-d: #A82865;
  --yellow: #FEE974; --yellow-d: #F5D547;
  --purple: #155A7A; --purple-d: #0D3F55;
  --dark: #0A3D5C; --dark-mid: #155A7A;
  --white: #FFFFFF; --grey-1: #F8FBFC; --grey-2: #E4EEF0; --grey-3: #557378;
  --text: #1A0A2E;
  --font-head: 'Poppins', sans-serif; --font-body: 'Nunito', sans-serif;
  --radius: 14px; --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(61,221,216,0.15); --shadow-lg: 0 12px 48px rgba(61,221,216,0.25);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── LAYOUT PRIMITIVES ── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

.section { padding: 72px 0; }

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

@media (min-width: 1024px) {
  .section { padding: 96px 0; }
}

/* ── FOCUS VISIBLE ── */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ── SKIP NAVIGATION LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 100px; font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.btn-primary { background: var(--pink); color: var(--white); border-color: var(--pink); }
.btn-primary:hover { background: var(--pink-d); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); transform: translateY(-1px); }

/* ── NAVBAR ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; background: #0A3D5C; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(61,221,216,0.3); transition: background 0.3s; }
.navbar__brand a { display: flex; align-items: center; }
.navbar__brand img { height: 40px; width: auto; }
.navbar__nav { display: none; }
.navbar__right { display: flex; align-items: center; gap: 12px; }
.navbar__cta { display: none; }
.navbar__hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; cursor: pointer; background: none; border: none; padding: 11px 8px; box-sizing: content-box; }
.navbar__hamburger span { display: block; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }
.navbar__hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu — use visibility for keyboard accessibility */
.navbar__mobile { display: flex; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(10,61,92,0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); flex-direction: column; padding: 32px 20px; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s; }
.navbar__mobile.open { visibility: visible; opacity: 1; }
.navbar__mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.navbar__mobile ul a { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: rgba(255,255,255,0.85); display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.15s; }
.navbar__mobile ul a:hover { color: var(--teal-lt); }
.navbar__mobile .btn { margin-top: 28px; width: 100%; justify-content: center; }

@media (min-width: 768px) {
  .navbar { height: 72px; padding: 0 24px; }
  .navbar__brand img { height: 44px; }
  .navbar__nav { display: flex; align-items: center; gap: 4px; list-style: none; }
  .navbar__nav a { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.8); padding: 7px 14px; border-radius: 100px; transition: all 0.15s; }
  .navbar__nav a:hover, .navbar__nav a.active { color: var(--teal-lt); background: rgba(61,221,216,0.15); }
  .navbar__cta { display: inline-flex; }
  .navbar__hamburger { display: none; }
  .navbar__mobile { display: none !important; }
}

/* ── HERO (base) ── */
.hero { min-height: 60vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--dark); padding-top: 72px; color: var(--white); }
.hero__fallback { position: absolute; inset: 0; background: linear-gradient(135deg, #0A3D5C 0%, #1B7FA3 100%); }
.hero__img { position: absolute; top: 0; bottom: 0; right: 0; width: 40%; background-size: cover; background-position: center center; clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%); }
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(88,197,203,0.1); border: 1px solid rgba(88,197,203,0.25); border-radius: 100px; padding: 6px 16px; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--teal-lt); letter-spacing: 0.05em; margin-bottom: 20px; }
.hero__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--white); margin-bottom: 16px; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--teal-lt); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 580px; line-height: 1.8; }
.hero__sub { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 32px; line-height: 1.8; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (min-width: 768px) { .hero { min-height: 70vh; } }

/* ── BACK LINK ── */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--purple); margin-bottom: 32px; }
.back-link:hover { color: var(--purple-d); }
.back-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ── SECTION BLOCK (policy/content pages) ── */
.section-block { margin-bottom: 48px; }
.section-block h2 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--grey-2); }
.section-block p { color: #4A5568; font-size: 0.95rem; margin-bottom: 14px; line-height: 1.8; }
.section-block p:last-child { margin-bottom: 0; }
.section-block a { color: var(--purple); font-weight: 700; }
.section-block a:hover { color: var(--purple-d); }

/* ── POLICY SECTION (shared content wrapper) ── */
.content { padding: 56px 0 80px; }

/* ── META BOX ── */
.meta-box { background: var(--grey-1); border: 1.5px solid var(--grey-2); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 40px; display: flex; gap: 32px; flex-wrap: wrap; }
.meta-box__item { font-size: 13px; color: #607080; }
.meta-box__item strong { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); margin-bottom: 3px; }

/* ── FOOTER ── */
.footer { background: #0A3D5C; padding: 56px 0 24px; color: rgba(255,255,255,0.85); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { font-size: 14px; line-height: 1.75; margin-top: 14px; color: rgba(255,255,255,0.95); }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; }
.footer__social a:hover { background: #3DDDD8; transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.7); transition: fill 0.2s; }
.footer__social a:hover svg { fill: white; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer__col h5 { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: #FFFFFF; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li::before { display: none; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,0.9); transition: color 0.2s; }
.footer__col a:hover { color: #5FE8E4; }
.footer__bottom { display: flex; flex-direction: column; gap: 8px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.85); }
.footer__bottom a { color: rgba(255,255,255,0.75); }
.footer__bottom a:hover { color: #FFFFFF; }
.accreditation { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.05); padding: 16px 0; text-align: center; font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,0.6); }
.accreditation span { color: rgba(255,255,255,0.75); font-weight: 700; }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
  .footer { padding: 72px 0 32px; }
  .footer__grid { grid-template-columns: 2fr 1fr; }
}

/* ── LARGE-SCREEN SCALING ── */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .container--narrow { max-width: 860px; }
}

@media (min-width: 1920px) {
  .container { max-width: 1480px; }
  .container--narrow { max-width: 860px; }
  .section { padding: 120px 0; }
}

/* ── MOBILE HERO OVERRIDE ── */
@media (max-width: 767.98px) {
  .hero__img { display: none; }
  .hero { min-height: auto; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── PRINT ── */
@media print {
  .navbar, .navbar__mobile, .footer, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; background: none !important; }
  .hero__img { display: none; }
}
