/* ===== Design Tokens ===== */
:root{
  --blue:#0a2a66; --red:#b11226; --black:#0b0b0b; --white:#fff; --grey:#f4f4f4;
  --primary:var(--blue); --accent:var(--red); --dark:var(--black);
  --radius:8px; --shadow:0 10px 30px rgba(0,0,0,.18);
}

/* ===== Base ===== */
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--black);background:#fff}
h1,h2{font-family:Oswald,Inter,sans-serif;letter-spacing:.02em}
.container{max-width:1200px;margin:auto;padding:1.25rem}

/* ===== Header ===== */
.site-header{
  background:var(--dark);
  border-bottom:4px solid var(--accent);
  position:sticky;
  top:0;
  z-index:1100;
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  z-index:1101;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.club-logo {
  height: 40px;
  width: auto;
}

.protea-mark {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .club-logo {
    height: 32px;
  }
  .protea-mark {
    height: 22px;
  }
  .brand span {
    display: none;
  }
}

/* Navigation Menu */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

.site-nav a:hover {
  color: #b11226;
  background-color: rgba(177, 18, 38, 0.1);
}

.admin-link {
  color: var(--accent);
  font-weight: 700;
}

.admin-link:hover {
  color: #fff;
  background-color: #b11226;
}

/* Burger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 1102;
  transition: color 0.3s ease;
}

.nav-toggle:hover {
  color: #b11226;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #111;
    border-top: 2px solid var(--accent);
    border-radius: 0 0 8px 8px;
    z-index: 1100;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: 14px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    font-size: 15px;
    color: #fff;
    border-radius: 0;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a:active {
    background: rgba(177, 18, 38, 0.2);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  background: url('../images/hero.jpg') center/cover no-repeat;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10,42,102,0.92) 0%,
    rgba(10,42,102,0.85) 40%,
    rgba(177,18,38,0.85) 100%
  );
}

.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 520px;
  height: 520px;
  background: url('../images/protea.png') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
  color: #fff;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* ===== Sections ===== */
.values{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:2rem auto}
.card{background:var(--grey);padding:1.5rem;border-left:6px solid var(--accent);box-shadow:var(--shadow);font-weight:700}

/* ===== Footer ===== */
.site-footer{background:var(--dark);color:#fff;margin-top:3rem}
.site-footer .container{display:flex;justify-content:center}

/* ===== Responsive ===== */
@media (max-width: 768px){
  .values{grid-template-columns:1fr}
  .hero-protea{width:180px;height:180px}
}

.page-header{margin-bottom:1.5rem}
.lead{font-size:1.1rem;opacity:.9}
.two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:1.5rem}
.about-image{
  min-height:260px;border-radius:var(--radius);
  background:url('../images/hero.jpg') center/cover no-repeat;
  box-shadow:var(--shadow)
}
@media(max-width:768px){.two-col{grid-template-columns:1fr}}

.grid{display:grid;gap:1rem}
.grid.teams{grid-template-columns:repeat(3,1fr)}
.team-card{
  background:var(--grey);padding:1.25rem;border-left:6px solid var(--accent);
  box-shadow:var(--shadow);border-radius:var(--radius)
}
@media(max-width:900px){.grid.teams{grid-template-columns:1fr}}

.list{list-style:none;padding:0;margin:0}
.list.fixtures li{
  display:grid;grid-template-columns:120px 1fr 120px;
  padding:.9rem;border-bottom:1px solid #ddd;align-items:center
}
.list .date{font-weight:700}
.list .venue{color:var(--accent);text-align:right}
@media(max-width:768px){
  .list.fixtures li{grid-template-columns:1fr}
  .list .venue{text-align:left}
}

.results{display:grid;gap:.75rem}
.result{
  padding:1rem;background:#fff;border-left:6px solid var(--primary);
  box-shadow:var(--shadow);border-radius:var(--radius)
}
.fixtures-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.2rem;
}

.fixture-card{
  background:#fff;
  border-left:6px solid var(--accent);
  padding:1.2rem;
  box-shadow:var(--shadow);
  position:relative;
}

.fixture-date{
  font-weight:700;
  color:var(--primary);
}

.fixture-match{
  font-size:1.2rem;
  margin:.4rem 0;
}

.fixture-venue.home{
  color:var(--primary);
  font-weight:600;
}

.fixture-venue.away{
  color:var(--accent);
  font-weight:600;
}

.fixture-month{
  margin-top:2rem;
  padding-bottom:.4rem;
  border-bottom:3px solid var(--accent);
  color:var(--primary);
}

.fixture-date-row{
  margin-top:1rem;
  font-weight:700;
  color:#333;
}

/* ===== ULTRA HERO & REGISTRATION ===== */
.ultra-register-hero{
  background:linear-gradient(120deg,#0a2a66,#b11226);
  padding:100px 0;
  position:relative;
  overflow:hidden;
}

.ultra-register-hero::after{
  content:'';
  position:absolute;
  right:-5%;
  bottom:-10%;
  width:520px;
  height:520px;
  background:url('../images/protea.png') no-repeat center/contain;
  opacity:.05;
  pointer-events: none;
}

/* ===== Wizard Card (SINGLE DEFINITION - WHITE) ===== */
.wizard-card{
  background:#fff;
  border-radius:14px;
  padding:40px;
  box-shadow:0 25px 60px rgba(0,0,0,.6);
  border-top:4px solid #b11226;
  color:#000;
  position:relative;
  overflow:hidden;
  max-width:650px;
  margin:auto;
}

.wizard-title{
  font-family:Oswald;
  text-transform:uppercase;
  margin-bottom:25px;
  color:#000;
}

/* Progress bar */
.wizard-progress{
  height:6px;
  background:#e0e0e0;
  border-radius:5px;
  margin-bottom:25px;
  overflow:hidden;
}

.wizard-progress-bar{
  height:100%;
  width:33%;
  background:linear-gradient(90deg,#0a2a66,#b11226);
  transition:width .4s ease;
}

/* Step indicators */
.wizard-steps-indicator{
  text-align:center;
  margin-bottom:25px;
}

.step-dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:35px;
  height:35px;
  border-radius:50%;
  background:#e0e0e0;
  margin:0 6px;
  font-weight:bold;
  transition:.3s;
  color:#000;
}

.step-dot.active{
  background:#b11226;
  color:#fff;
  transform:scale(1.1);
}

/* Step animation */
.wizard-step{
  display:none;
  opacity:0;
  transform:translateX(40px);
  transition:.4s ease;
}

.wizard-step.active{
  display:block;
  opacity:1;
  transform:translateX(0);
}

/* Form styling */
.wizard-step label {
  display:block;
  margin-bottom:8px;
  font-weight:600;
  color:#000;
  font-size:14px;
  touch-action:manipulation;
  cursor:pointer;
}

.wizard-step .form-group {
  margin-bottom:18px;
}

.wizard-step small {
  display:block;
  margin-top:4px;
  font-size:13px;
}

/* Input styling */
.ultra-input{
  background:#fff;
  border:1px solid #ccc;
  color:#000;
  border-radius:10px;
  padding:12px 14px;
  font-size:16px;
  width:100%;
  min-height:44px;
  touch-action:manipulation;
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
}

.ultra-input:hover {
  border-color:#b11226;
}

.ultra-input:focus{
  outline:none;
  border-color:#b11226;
  box-shadow:0 0 10px rgba(177,18,38,.3);
}

.ultra-input:disabled {
  background:#f0f0f0;
  color:#999;
  cursor:not-allowed;
}

/* Button styling */
.btn-ultra-rugby{
  background:#b11226;
  border:none;
  font-weight:700;
  text-transform:uppercase;
  color:#fff;
  padding:12px 28px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  min-height:44px;
  touch-action:manipulation;
  transition:.2s;
}

.btn-ultra-rugby:hover {
  background:#8e0c1f;
}

.btn-ultra-rugby:disabled {
  background:#ccc;
  cursor:not-allowed;
}

.btn-secondary {
  background:#666;
  border:none;
  font-weight:700;
  color:#fff;
  padding:12px 28px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  min-height:44px;
  touch-action:manipulation;
  transition:.2s;
}

.btn-secondary:hover {
  background:#555;
}

.btn-ultra-rugby-outline{
  border:2px solid #b11226;
  color:#b11226;
  background:transparent;
  font-weight:700;
  padding:10px 26px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  min-height:44px;
  touch-action:manipulation;
  transition:.2s;
}

.btn-ultra-rugby-outline:hover{
  background:#b11226;
  color:#fff;
}

/* ===== SUCCESS PANEL ===== */
.register-success{
  padding:60px 20px;
  text-align:center;
  color:#000;
}

.success-title{
  font-family:Oswald;
  text-transform:uppercase;
  font-size:32px;
  color:#b11226;
  margin:0 0 20px;
}

.register-success p{
  color:#333;
  font-size:16px;
  line-height:1.6;
}

/* ===== Mobile/Touch Optimization ===== */
@media (max-width: 768px) {
  .wizard-card {
    padding:25px;
    max-width:100%;
    margin:20px;
  }

  .ultra-input {
    min-height:48px;
    font-size:16px;
    padding:14px;
  }

  .btn-ultra-rugby,
  .btn-secondary,
  .btn-ultra-rugby-outline {
    min-height:48px;
    width:100%;
    font-size:15px;
    padding:14px 20px;
  }

  .wizard-step label {
    font-size:15px;
  }

  .wizard-title {
    font-size:24px;
  }

  .d-flex {
    flex-direction:column;
    gap:10px;
  }

  .d-flex button {
    width:100%;
  }
}