
/* Reign Fastpitch - Regalia Purple Theme */

:root {
  --reign-purple: #522D80;
  --reign-purple-dark: #3d2161;
  --reign-purple-light: #6d45a3;
  --reign-white: #FFFFFF;
  --reign-offwhite: #f4effb;
  --reign-black: #140d1f;
  --reign-gray: #ddd6ea;
  --max-width: 1180px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.25);
  --shadow-subtle: 0 8px 18px rgba(0, 0, 0, 0.18);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--reign-purple-dark) 0%, var(--reign-purple) 35%, #2e1848 100%);
  color: var(--reign-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

a {
  color: var(--reign-white);
  text-decoration: none;
}

a:hover {
  opacity: 0.88;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 1.5rem 1.25rem 3rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */

.site-header {
  background: #522D80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.76rem;
  color: #EDE7F6;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  color: #FFFFFF;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  border-color: #FFFFFF;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 840px) {
  .nav-bar {
    flex-wrap: wrap;
    align-items: center;
  }

  .brand {
    flex: 1;
  }

  .brand-name {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .brand-tagline {
    font-size: 0.7rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
    padding: 1rem 0 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 0.82rem;
    width: 100%;
    padding: 0.2rem 0;
    border-bottom: none;
  }
}

/* Hero */

.hero {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  line-height: 1.02;
  margin: 0 0 0.8rem;
  color: var(--reign-white);
}

.hero-title .highlight {
  color: var(--reign-white);
}

.hero-subtitle {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 1.8rem;
}

.tag-pill {
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--reign-white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1.4rem;
  min-width: 150px;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--reign-white);
  color: var(--reign-purple);
  border: 2px solid var(--reign-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--reign-offwhite);
}

.btn-ghost {
  background: transparent;
  color: var(--reign-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-subtle);
}

.btn-ghost:hover {
  border-color: var(--reign-white);
  background: rgba(255, 255, 255, 0.08);
}

/* Hero card */

.hero-card {
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.08), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(82, 45, 128, 0.45);
  color: var(--reign-white);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-badge span.icon {
  font-size: 0.9rem;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0.9rem 0 1.1rem;
}

.hero-stat {
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  background: rgba(20, 13, 31, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.8;
}

.hero-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--reign-white);
}

/* Sections */

.section {
  margin-top: 2.3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--reign-white);
}

.section-subtitle {
  font-size: 0.88rem;
  opacity: 0.85;
  max-width: 26rem;
  color: var(--reign-offwhite);
}

/* Cards */

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--reign-white);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  color: var(--reign-offwhite);
}

.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.35rem;
  color: var(--reign-white);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 1.25rem 1.6rem;
  background: rgba(20, 13, 31, 0.55);
  font-size: 0.8rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0.88;
  color: var(--reign-white);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

/* Generic page styles */

.page-header {
  margin-top: 1.8rem;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
  color: var(--reign-white);
}

.page-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  opacity: 0.8;
  color: var(--reign-offwhite);
}

.page-lede {
  margin: 0.3rem 0 0;
  max-width: 36rem;
  opacity: 0.9;
  font-size: 0.95rem;
  color: var(--reign-offwhite);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.list {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0.4rem;
  font-size: 0.93rem;
  color: var(--reign-offwhite);
}

.list li {
  margin-bottom: 0.25rem;
}

/* Tables */

.table-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-subtle);
  background: rgba(255, 255, 255, 0.06);
}

.table-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-shell thead {
  background: rgba(82, 45, 128, 0.9);
}

.table-shell th,
.table-shell td {
  padding: 0.55rem 0.8rem;
  text-align: left;
  color: var(--reign-white);
}

.table-shell tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

/* Contact form */

.contact-card {
  border-radius: 16px;
  padding: 1rem 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-subtle);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
  color: var(--reign-white);
}

.field input,
.field textarea,
.field select {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--reign-white);
  font-family: inherit;
  font-size: 0.88rem;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

/* Responsive */

@media (max-width: 840px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 0.8rem;
  }

  .card-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .main-content {
    padding-inline: 1rem;
  }

  .nav-bar {
    padding-inline: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}