/* ==========================================================================
   SJM Sports — shared stylesheet
   ========================================================================== */

:root {
  --maroon: #7a1a1a;
  --maroon-dark: #5c1212;
  --maroon-light: #f4e6e6;
  --charcoal: #454142;
  --ink: #2b2b2b;
  --gray-600: #5c5c5c;
  --gray-300: #d8d8d8;
  --gray-100: #f7f5f4;
  --white: #ffffff;

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--maroon);
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1.5px solid var(--maroon);
  border-radius: 999px;
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--maroon);
  color: var(--white);
}

.btn-solid {
  background: var(--maroon);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--maroon-dark);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 1rem;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--maroon);
  border-color: var(--maroon);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-300);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: 96px 0 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-lines h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 0.4em;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-visual img {
  max-width: 320px;
  margin: 0 auto;
}

.hero-visual p {
  color: var(--gray-600);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual img {
    margin: 0 auto;
  }
}

/* ---------- Page header (interior pages) ---------- */

.page-hero {
  padding: 72px 0 32px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- About ---------- */

.about-section .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 96px;
}

.about-section img {
  max-width: 320px;
}

.about-section p strong {
  color: var(--maroon);
}

@media (max-width: 860px) {
  .about-section .container {
    grid-template-columns: 1fr;
  }

  .about-section img {
    margin: 0 auto 24px;
  }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  padding: 16px 0 100px;
}

.service-card {
  text-align: center;
}

.service-card .icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  color: var(--maroon);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.97rem;
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Team ---------- */

.team-section {
  padding-bottom: 100px;
}

.team-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.team-card img {
  border-radius: 6px;
  width: 100%;
}

.team-card .name {
  color: var(--maroon);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.2em;
}

.team-card .title {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.team-card .bio {
  display: none;
  margin-top: 20px;
}

.team-card .bio.open {
  display: block;
}

@media (max-width: 700px) {
  .team-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-card img {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ---------- Contact ---------- */

.contact-section {
  padding: 24px 0 100px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.field label .req {
  color: var(--gray-600);
  font-weight: 400;
  font-size: 0.8rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--maroon);
  background: var(--maroon-light);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
}

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

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--maroon);
  outline-offset: 1px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-success {
  display: none;
  background: var(--maroon-light);
  border: 1px solid var(--maroon);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: var(--maroon-dark);
}

.form-success.show {
  display: block;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--maroon);
  color: var(--white);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: start;
}

.site-footer h4 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.site-footer a {
  display: block;
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--white);
  justify-self: end;
  object-fit: contain;
  padding: 14px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-logo {
    justify-self: start;
  }
}

/* ---------- Simple page-level content sections ---------- */

.legal-section {
  padding: 32px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-section h2 {
  font-size: 1.3rem;
  margin-top: 1.6em;
}
