/* ==========================================================================
   SAF Landing Page — International Certification in Sports Coaching
   STAGING PREVIEW — PENDING FINAL APPROVAL
   ========================================================================== */

:root {
  --saf-green: #095D40;
  --saf-green-dark: #073F2B;
  --saf-beige: #F5F5DC;
  --saf-white: #FFFFFF;
  --saf-text: #1F2933;
  --saf-text-muted: #4B5563;
  --saf-border: #DDD8C4;
  --saf-focus: #1E88E5;
  --saf-error: #B3261E;
  --saf-success: #0F6B3E;

  /* Confirmed SAF typography system: Manrope, one family for the whole
     site. Role is expressed through weight, not a second font family. */
  --font-body: "Manrope", Arial, sans-serif;
  --font-heading: "Manrope", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 10px rgba(9, 93, 64, 0.08);
  --shadow-elevated: 0 8px 28px rgba(9, 93, 64, 0.14);
  --container-width: 1180px;
}

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

html { scroll-behavior: smooth; font-family: var(--font-body); }

/* Typography system: Manrope across the entire site — one family, weight
   carries the role. Headings 700, programme titles 600, body 400, menu/
   buttons/forms 500, small uppercase labels 600. Only loaded weights
   (400/500/600/700) are ever used — never faux-bold, never 800/900. */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--saf-text);
  background: var(--saf-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--saf-green);
  color: var(--saf-white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--saf-focus);
  outline-offset: 2px;
}

/* ---------------- Staging banner ---------------- */
.staging-banner {
  background: #FFF3CD;
  color: #6B4E00;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 2px solid #E8C15A;
  text-transform: uppercase;
}

/* ---------------- Announcement bar ---------------- */
.announcement-bar {
  background: var(--saf-green-dark);
  color: var(--saf-white);
  font-size: 0.9rem;
  padding: 8px 0;
}
.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  flex-wrap: wrap;
}
.announcement-bar strong { font-weight: 700; }
.announcement-bar a {
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------- Header ---------------- */
.site-header {
  background: var(--saf-white);
  border-bottom: 1px solid var(--saf-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.header-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-logos .collab-x {
  color: var(--saf-text-muted);
  font-size: 0.85rem;
}
.header-logos img { height: 40px; width: auto; object-fit: contain; }
.logo-chip-header img { height: 26px; }

/* Logo chips — the official SAF and USSU marks are different colourways
   (SAF: dark text/mark, transparent background; USSU: white mark, transparent
   background) so each needs a background suited to it wherever the page
   background doesn't already provide enough contrast. Source images are
   never altered — only their container. */
.logo-chip-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--saf-green);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  line-height: 0;
}
.logo-chip-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--saf-beige);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  line-height: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  text-decoration: none;
  color: var(--saf-text);
  font-size: 0.96rem;
  font-weight: 500;
}
.header-nav a:hover { color: var(--saf-green); }
.header-phone {
  font-weight: 700;
  color: var(--saf-green);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--saf-green);
  color: var(--saf-white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--saf-green-dark); }
.btn-secondary {
  background: var(--saf-white);
  color: var(--saf-green);
  border-color: var(--saf-green);
}
.btn-secondary:hover { background: var(--saf-beige); }
.btn-whatsapp {
  background: #128C7E;
  color: var(--saf-white);
}
.btn-whatsapp:hover { background: #0e6b60; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--saf-beige) 0%, var(--saf-white) 100%);
  padding: 56px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-org {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--saf-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--saf-green);
  color: var(--saf-white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title {
  /* Programme title: Manrope, weight 600 (SemiBold) per the
     confirmed SAF typography system. */
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--saf-text);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--saf-text-muted);
  margin: 0 0 22px;
  max-width: 56ch;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--saf-text);
  font-weight: 600;
}
.hero-meta li { display: flex; align-items: center; gap: 6px; }
.hero-meta li::before { content: "✓"; color: var(--saf-green); font-weight: 700; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.hero-tertiary {
  font-size: 0.92rem;
}
.hero-tertiary a { color: var(--saf-green); font-weight: 700; text-decoration: underline; }
.hero-card {
  background: var(--saf-white);
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 26px;
}
.hero-card h2 {
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--saf-green);
}
.hero-card dl { margin: 0; }
.hero-card dt { font-size: 0.8rem; color: var(--saf-text-muted); margin-top: 12px; }
.hero-card dt:first-child { margin-top: 0; }
.hero-card dd { margin: 2px 0 0; font-weight: 700; font-size: 1rem; }

/* Approved coaching photograph — official image, untouched (no recolour/stretch/distort) */
.hero-photo-frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--saf-beige);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-elevated);
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/* ---------------- Sections ---------------- */
section { padding: 64px 0; }
.section-alt { background: var(--saf-beige); }
.section-header { max-width: 68ch; margin: 0 0 34px; }
.section-eyebrow {
  color: var(--saf-green);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 12px;
}
.section-lead { color: var(--saf-text-muted); font-size: 1.05rem; margin: 0; }

/* Card grids */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--saf-white);
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--saf-green-dark);
}
.card p { margin: 0; color: var(--saf-text-muted); }
.card .badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--saf-green-dark);
  background: var(--saf-beige);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Learning areas list */
.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.module-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--saf-white);
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.module-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--saf-green);
  color: var(--saf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
}
.module-list strong { display: block; }
.module-list span { color: var(--saf-text-muted); font-size: 0.92rem; }

/* Process steps */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-steps li {
  counter-increment: step;
  background: var(--saf-white);
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  position: relative;
  padding-top: 46px;
}
.process-steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--saf-beige);
  color: var(--saf-green-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.process-steps h3 { margin: 0 0 6px; font-size: 1rem; }
.process-steps p { margin: 0; color: var(--saf-text-muted); font-size: 0.92rem; }

/* Notice / disclaimer callouts */
.notice {
  background: #fff;
  border-left: 4px solid var(--saf-green);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--saf-text-muted);
  margin-top: 22px;
}
.notice strong { color: var(--saf-text); }

/* Collaboration section */
.collab-block {
  background: var(--saf-white);
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.collab-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.collab-logos img { object-fit: contain; }
.collab-logo-saf { height: 56px; width: auto; }
.collab-logo-ussu { height: 40px; width: auto; }
.collab-block .collab-x { color: var(--saf-text-muted); font-size: 1.1rem; }
.collab-text { max-width: 68ch; }
.collab-block p { margin: 0 0 12px; }
.collab-block .short-form { color: var(--saf-text-muted); font-size: 1rem; font-weight: 500; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--saf-white);
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--saf-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
}
.faq-question .icon { color: var(--saf-green); font-size: 1.2rem; flex: 0 0 auto; }
.faq-answer {
  padding: 0 20px 18px;
  color: var(--saf-text-muted);
  margin: 0;
}
.faq-item[data-open="false"] .faq-answer { display: none; }

/* ---------------- Enquiry form ---------------- */
.form-wrap {
  background: var(--saf-white);
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--saf-text);
}
.field .optional-tag {
  font-weight: 400;
  color: var(--saf-text-muted);
  font-size: 0.8rem;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 11px 12px;
  border: 1.5px solid var(--saf-border);
  border-radius: var(--radius-sm);
  background: var(--saf-white);
  color: var(--saf-text);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--saf-green);
}
.field-error {
  font-size: 0.82rem;
  color: var(--saf-error);
  min-height: 1.1em;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--saf-error);
}
.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--saf-text-muted);
}
.consent-row input { margin-top: 3px; }
.consent-row label { font-weight: 500; }

/* Honeypot — hidden from sighted users and mostly from assistive tech,
   but must remain in the DOM and tab order is removed. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success {
  background: #E6F4EC;
  color: var(--saf-success);
  border: 1px solid #9ED8B8;
}
.form-status.error {
  background: #FBEAE9;
  color: var(--saf-error);
  border: 1px solid #E8B4B0;
}
.form-status.loading {
  background: var(--saf-beige);
  color: var(--saf-text);
  border: 1px solid var(--saf-border);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Contact section ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--saf-white);
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}
.contact-card .label { color: var(--saf-text-muted); font-size: 0.85rem; margin-bottom: 6px; }
.contact-card a { font-weight: 700; color: var(--saf-green-dark); text-decoration: none; font-size: 1.05rem; }
.contact-card a:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--saf-green-dark);
  color: #EAF2EE;
  padding: 44px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: #fff; font-size: 0.92rem; margin: 0 0 12px; }
.footer-grid p, .footer-grid a { color: #CFE3D8; font-size: 0.9rem; line-height: 1.8; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-logos img { object-fit: contain; height: 30px; width: auto; }
.footer-logos .collab-x { color: #A9C5B7; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #A9C5B7;
}
.footer-approval {
  background: rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-align: center;
  margin-bottom: 18px;
  color: #FFE9A8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sticky mobile CTA bar */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--saf-white);
  border-top: 1px solid var(--saf-border);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
  padding: 10px 14px;
  display: none;
  gap: 10px;
}
.mobile-cta-bar .btn { flex: 1; padding: 12px 10px; font-size: 1rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .collab-logo-saf { height: 44px; }
  .collab-logo-ussu { height: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 70px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}


/* SAF and USSU partnership header */
.site-header {
  background: #f5f5dc;
  border-bottom: 1px solid rgba(9, 93, 64, 0.16);
}

.site-header .partnership-header {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.partnership-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}

.partner-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.saf-logo-card {
  background: #ffffff;
  border: 1px solid rgba(9, 93, 64, 0.18);
  border-radius: 10px;
  padding: 8px 12px;
}

.saf-logo-card img {
  display: block;
  width: auto;
  height: 38px;
  object-fit: contain;
}

.ussu-logo-card {
  background: #095d40;
  border-radius: 10px;
  padding: 10px 14px;
}

.ussu-logo-card img {
  display: block;
  width: auto;
  height: 28px;
  object-fit: contain;
}

.partner-unit strong {
  color: #12372d;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.partner-description,
.university-known-as {
  color: #53635e;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.35;
}

.academic-collaboration-label {
  color: #a17c2a;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-apply {
  white-space: nowrap;
}

/* Mobile partnership presentation */
@media (max-width: 768px) {
  .site-header .partnership-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 20px 26px;
  }

  .partnership-lockup {
    width: 100%;
    flex-direction: column;
    gap: 15px;
  }

  .partner-unit {
    width: 100%;
  }

  .saf-logo-card {
    padding: 12px 18px;
    border-radius: 14px;
  }

  .saf-logo-card img {
    height: 72px;
    max-width: 280px;
  }

  .ussu-logo-card {
    width: min(100%, 320px);
    padding: 18px 20px;
    border-radius: 14px;
  }

  .ussu-logo-card img {
    width: 100%;
    height: 62px;
  }

  .partner-unit strong {
    margin-top: 3px;
    font-size: 1rem;
  }

  .partner-description,
  .university-known-as {
    max-width: 330px;
    font-size: 0.8rem;
  }

  .academic-collaboration-label {
    margin: 3px 0;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .header-nav,
  .header-phone {
    display: none;
  }

  .header-actions {
    width: 100%;
  }

  .header-apply {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}