/* =====================================================================
   site_modern.css  —  Global modern refresh layer (Sports Academy)
   Loads AFTER style.css so it can gently override. Same brand colors.
   Split into "SAFE POLISH" (very low risk) and "ON-BRAND OVERRIDES"
   (visible changes — if any page looks off, comment that block out).
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand: #a40b2a;
  --brand-dark: #820821;
  --brand-tint: rgba(164, 11, 42, .12);
  --ink: #1a1a1a;
  --text: #4d4d4d;
  --muted: #777;
  --line: #e6e6e6;
  --bg-soft: #f7f7f7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .10);
  --shadow-brand: 0 8px 22px rgba(164, 11, 42, .28);
  --transition: .25s ease;
}

/* =====================================================================
   SAFE POLISH  (rendering / accessibility — should not break layout)
   ===================================================================== */

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Text selection */
::selection { background: var(--brand); color: #fff; }
::-moz-selection { background: var(--brand); color: #fff; }

/* Modern scrollbar */
* { scrollbar-color: var(--brand) #eee; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eee; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

/* Accessible keyboard focus (does not affect mouse users) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand-tint);
  outline-offset: 2px;
}

/* Nicer form-field focus */
input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-tint) !important;
  outline: none;
}

/* Media never overflows its container */
img, svg, video, iframe { max-width: 100%; }

/* =====================================================================
   ON-BRAND OVERRIDES  (visible — comment a block out if a page breaks)
   ===================================================================== */

/* Links: harmonize the odd brown hover (#544727) to the brand red */
a { transition: color var(--transition); }
a:hover,
a:focus { color: var(--brand); }

/* Bootstrap buttons: softer radius + smooth feedback (keeps colors) */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: .3px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Inputs / selects / textareas: consistent, softer fields */
input:not([type=checkbox]):not([type=radio]),
select,
textarea {
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* =====================================================================
   REUSABLE MODERN UTILITIES  (opt-in — add these classes where you want)
   ===================================================================== */

.btn-modern {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 13px 34px;
  border: 2px solid var(--brand);
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-brand);
}
.btn-modern:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); }

.btn-modern.is-outline {
  background: transparent;
  color: var(--brand);
  box-shadow: none;
}
.btn-modern.is-outline:hover { background: var(--brand); color: #fff; }

.card-modern {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-modern:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.section-pad { padding: 55px 0; }
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin: 0 0 8px;
}
.section-title + .section-sub { text-align: center; color: var(--muted); margin: 0 0 34px; }
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--brand);
  border-radius: 4px;
  margin: 14px auto 0;
}

/* Accessible visually-hidden helper (for SEO headings you don't want shown) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
