/* =============================================
   SFWLO — Southeast Florida Women's Lacrosse Officials
   Shared Stylesheet
   ============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

a { color: #111111; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #111111;
  line-height: 1.25;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }

ul { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* --- Layout Containers --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 3.5rem 0; }
.section--gray { background: #f5f5f5; }
.section--navy { background: #111111; color: #fff; }
.section--navy h2, .section--navy h3, .section--navy a { color: #fff; }

/* --- Navigation --- */
header {
  background: #fff;
  border-bottom: 3px solid #c8940a;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 6px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: #333;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav ul li a:hover,
nav ul li a.active {
  background: #111111;
  color: #fff;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #111111;
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #111111 50%, #333333 100%);
  color: #fff;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(200,148,10,0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c8940a;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  max-width: 650px;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 580px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #c8940a;
  color: #fff;
  border: 2px solid #c8940a;
}
.btn-primary:hover {
  background: #a87a06;
  border-color: #a87a06;
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
  color: #fff;
}

.btn-navy {
  background: #111111;
  color: #fff;
  border: 2px solid #111111;
}
.btn-navy:hover {
  background: #000000;
  border-color: #000000;
  text-decoration: none;
  color: #fff;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, #000000, #111111);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 { color: #fff; font-size: 2.2rem; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 620px; margin: 0.75rem auto 0; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg { width: 26px; height: 26px; stroke: #111111; fill: none; stroke-width: 2; }

.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.93rem; color: #555; margin-bottom: 0; }

/* --- Section title --- */
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 0.97rem;
}

.title-accent {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: #c8940a;
  border-radius: 2px;
  margin: 0.5rem auto 1rem;
  display: block;
}

/* --- Board Table --- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.board-info-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.board-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.board-table th {
  background: #111111;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.board-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.board-table tr:nth-child(even) td { background: #f5f5f5; }
.board-table tr:last-child td { border-bottom: none; }
.board-table a { color: #111111; }
.board-table td:last-child { word-break: break-word; min-width: 0; }

/* --- Requirements Steps --- */
.req-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.req-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #111111;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.req-text h4 { margin-bottom: 0.25rem; }
.req-text p { margin-bottom: 0; font-size: 0.91rem; color: #555; }

/* --- Resource Links --- */
.resource-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #c8940a;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.85rem;
  text-decoration: none;
  color: #111111;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.resource-link:hover {
  background: #f0f0f0;
  transform: translateX(3px);
  text-decoration: none;
}

.resource-link svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: #c8940a;
  fill: none;
  stroke-width: 2;
}

/* --- Training events --- */
.event-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid #111111;
}

.event-card .event-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c8940a;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.event-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.event-card p { font-size: 0.91rem; color: #555; margin-bottom: 0.5rem; }
.event-card a.btn { font-size: 0.8rem; padding: 0.45rem 1rem; }

/* --- Info box --- */
.info-box {
  background: #f0f0f0;
  border-left: 4px solid #111111;
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box p { margin-bottom: 0; font-size: 0.93rem; }

/* --- Partner logos --- */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.partner-logos a {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111111;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111111;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
}

.partner-logos a:hover {
  border-color: #111111;
  background: #f0f0f0;
  text-decoration: none;
}

/* --- Contact form --- */
.contact-form {
  max-width: 560px;
  margin: 2rem auto 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #333;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 5px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
footer {
  background: #000000;
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .org-abbr {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.65);
}

.footer-brand .footer-email a {
  color: #c8940a;
  font-weight: 600;
  font-size: 0.9rem;
}

footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.85rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li { margin-bottom: 0.5rem; }

.footer-nav ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav ul li a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: 1100px;
  margin: 1.25rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.gold { color: #c8940a; }

/* =============================================
   Responsive
   ============================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; }
  .hero h1 { font-size: 2rem; }

  nav ul { display: none; flex-direction: column; background: #fff; padding: 1rem; gap: 0; }
  nav ul.open { display: flex; }
  nav ul li a { padding: 0.65rem 0.85rem; border-radius: 0; border-bottom: 1px solid #f0f0f0; }
  nav ul li:last-child a { border-bottom: none; }

  .nav-toggle { display: block; }

  .nav-inner { flex-wrap: wrap; }
  nav { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }

  .board-table { font-size: 0.85rem; }
  .board-table th,
  .board-table td { padding: 0.6rem 0.75rem; }

  .board-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { text-align: center; }
  .partner-logos { gap: 1rem; }
}
