/* Testament Sport Solutions — brochure. Palette from the Testament SA crest
   (the canonical reference): navy, red, steel blue, on stark white. */
:root {
  --navy: #1c212c;
  --navy-soft: #2b3242;
  --red: #dd272d;
  --red-dark: #b81f24;
  --steel: #607e94;
  --steel-tint: #eef2f5;
  --line: #dde3e8;
  --white: #ffffff;
  --text: #1c212c;
  --muted: #4f5b66;
  --radius: 6px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .eyebrow, .btn, .site-nav a {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.01em; }

p { margin: 0 0 1em; }

a { color: var(--red-dark); }

img { max-width: 100%; height: auto; }

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

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 44em;
}

.section { padding: 88px 0; }
.section-tint { background: var(--steel-tint); }
.section-head { max-width: 46em; margin-bottom: 44px; }

/* Buttons */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--red-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.brand-mark img { display: block; height: 58px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .btn { padding: 8px 18px; font-size: 1rem; color: var(--white); }
.site-nav .btn:hover { color: var(--white); }

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

/* Hero */

.hero {
  position: relative;
  padding: 104px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* The crest's red sun and rays, abstracted — a motif, not the mark. */
.hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(-8deg, transparent 0 34px, rgba(255, 255, 255, 0.9) 34px 44px),
    var(--red);
  opacity: 0.1;
  pointer-events: none;
}

.hero .wrap { position: relative; }
.hero h1 { max-width: 15em; }

.page-hero { padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }

/* Cards and grids */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px;
}

.card p:last-child { margin-bottom: 0; }
.card-accent { border-top-color: var(--red); }
.card-steel { border-top-color: var(--steel); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat-strip strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1.2;
}

.stat-strip span { color: var(--muted); font-size: 0.98rem; }

.feature-list { list-style: none; margin: 0; padding: 0; }

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 3px;
  background: var(--red);
}

/* Split rows (product page) */

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.split:last-child { border-bottom: 0; }
.split.reverse .split-copy { order: 2; }

/* Product screenshots (the demo site, fictitious Altair Crest College). */
.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--steel-tint);
  box-shadow: 0 18px 40px -24px rgba(28, 33, 44, 0.45);
}

/* CTA band */

.cta-band {
  background: var(--navy);
  color: #d6dde3;
  padding: 72px 0;
}

.cta-band h2 { color: var(--white); }

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band p { max-width: 40em; margin: 0; }

/* Contact form */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.form-field .optional { font-weight: 400; color: var(--muted); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #b9c4cd;
  border-radius: var(--radius);
  padding: 11px 13px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(96, 126, 148, 0.25);
}

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

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

/* Honeypot — off-screen, not display:none, so naive bots still fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-ok { display: block; background: #e9f4ec; color: #1d5a2c; }
.form-status.is-err { display: block; background: #fbeaea; color: #8a1c1f; }

.form-note { font-size: 0.9rem; color: var(--muted); }

.aside-card { background: var(--steel-tint); border-radius: var(--radius); padding: 28px; }

/* Prose (privacy) */

.prose { max-width: 46em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Footer */

.site-footer {
  border-top: 4px solid var(--red);
  background: var(--navy);
  color: #aeb9c3;
  padding: 44px 0 36px;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a { color: #d6dde3; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* Responsive */

@media (max-width: 900px) {
  .grid-3, .grid-2, .stat-strip, .split, .contact-layout { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .split.reverse .split-copy { order: 0; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .brand-mark img { height: 44px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .wrap { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Support page: guide downloads and the FAQ accordion. */
.doc-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.doc-card:hover,
.doc-card:focus-visible {
  box-shadow: 0 10px 26px rgba(28, 33, 44, 0.12);
  transform: translateY(-2px);
}

.doc-card h3 { margin: 0; }
.doc-card p { margin: 0; color: var(--muted); }

.doc-kind {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.doc-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--red);
}

.doc-link::after { content: " ↓"; }

.faq { max-width: 50em; }

.faq-group {
  margin: 40px 0 10px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
}

.faq-group:first-child { margin-top: 0; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--red);
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 44em;
}

@media (prefers-reduced-motion: reduce) {
  .doc-card { transition: none; }
  .doc-card:hover { transform: none; }
}
