/* =========================================================
   Tech Nigeria Advocates — shared styles
   ========================================================= */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --dark: #222222;          /* footer */
  --yellow: #f4d03f;        /* triangle motif */
  --lavender: #c9a0dc;      /* heading underline */

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad-x: clamp(1.25rem, 3.5vw, 2.25rem);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
p { font-size: 16px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: #fff; padding: .75rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header (overlays hero) ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 40px; width: auto; }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  font-size: .8125rem;
  font-weight: 600;
  color: #111;
  transition: opacity .2s ease;
}
.site-nav a:hover { opacity: .65; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: #111; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  aspect-ratio: 725 / 475;
  min-height: 380px;
  max-height: 92vh;
  width: 100%;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-title {
  position: absolute;
  left: var(--pad-x);
  bottom: 27%;
  max-width: min(20ch, 42%);
  font-size: clamp(1.25rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.hero-play {
  position: absolute;
  background: rgba(255,255,255,.55);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.hero-play--1 { right: -1%; top: 31%; width: 8%; aspect-ratio: .9; }
.hero-play--2 { right: 4%;  top: 50%; width: 11%; aspect-ratio: .9; opacity: .8; }

.tri-left {
  position: absolute;
  left: 0;
  bottom: clamp(-90px, -9vw, -40px);
  width: clamp(70px, 14vw, 150px);
  height: auto;
  z-index: 2;
}

/* ---------- About blurb ---------- */
.about {
  padding: clamp(4rem, 9vw, 7rem) var(--pad-x) clamp(2.5rem, 5vw, 4rem);
}
.about-text {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 1.5rem;
}
.about-text strong { font-weight: 700; }

/* ---------- Video + intro ---------- */
.intro {
  padding: 1rem var(--pad-x) 0;
  overflow: clip;
}
.intro-grid {
  max-width: 880px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  margin-top: .5rem;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 340px;
  margin-inline: auto;
}
.intro-copy h2 {
  font-size: .9375rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  padding-bottom: .9rem;
  margin-bottom: 1rem;
  position: relative;
}
.intro-copy h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 44px; height: 2px;
  transform: translateX(-50%);
  background: var(--lavender);
}
.tri-pyramid {
  width: 277px;
  height: auto;
  margin-top: 1rem;
  transform: translate(-50%, 34.7%) rotate(-90deg); 
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 2.25rem var(--pad-x);
  font-size: .75rem;
  line-height: 1.7;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.follow { text-align: center; }
.follow-label { margin-bottom: .5rem; }
.social { display: flex; justify-content: center; gap: .6rem; }
.social a {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1.5px solid #fff;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}
.social a:hover { background: #fff; color: var(--dark); }
.icon-in { font-weight: 700; font-size: .85rem; line-height: 1; }
.legal { justify-self: end; margin-right: clamp(0rem, 4vw, 3rem); }
.legal a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .tri-pyramid { margin-bottom: 0; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,.96);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 1rem var(--pad-x); border-bottom: 1px solid #eee; }

  .hero-title { max-width: 70%; bottom: 18%; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .follow, .social { text-align: left; justify-content: flex-start; }
  .legal { justify-self: start; margin-right: 0; }
}

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

/* =========================================================
   Inner pages (About, Join, Events, Contact…)
   ========================================================= */

/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Header that sits in the page flow instead of over a hero */
.site-header--solid {
  position: relative;
  background: var(--bg);
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- About: mission ---------- */
.mission {
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x) clamp(2rem, 4vw, 3rem);
}
.mission-text {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 1.75rem;
}
.mission-text strong { font-weight: 700; }

/* ---------- About: pillars ---------- */
.pillars { padding: 0 var(--pad-x) clamp(3rem, 6vw, 4.5rem); }
.pillars-grid {
  max-width: 880px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.pillar {
  position: relative;
  overflow: hidden;
  background: #ebebeb;
  min-height: 240px;
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
}
.pillar h2 {
  position: relative;
  z-index: 1;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.pillar p {
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Decorative corners, clipped by the card */
.deco { position: absolute; height: auto; pointer-events: none; }
.deco--connect   { top: 0; left: 0; width: 42%; transform: translate(-12%, -4%); }
.deco--community { right: 0; bottom: 0; width: 45%; }
.deco--collab    { top: 0; left: 50%; width: 74%; transform: translate(-50%, 34.7%) rotate(-45deg); transform-origin: top center; }

.tagline {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .875rem;
}

@media (max-width: 720px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
}

/* =========================================================
   Contact page
   ========================================================= */
.site-header--border { border-bottom: 1px solid #e8e8e8; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contact {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) var(--pad-x) clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}
.contact-title {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.2;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.contact-title strong { font-weight: 700; }
.contact-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 64px; height: 4px;
  transform: translateX(-50%);
  background: var(--lavender);
}
.contact-lead {
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* Form */
.contact-form {
  display: grid;
  gap: .875rem;
  text-align: left;
}
.contact-form input:not(.hp),
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #ebebeb;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0 1rem;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:not(.hp) { height: 3rem; }

/* Message box: sits directly under Email with the same gap as other fields,
   with a sensible fixed minimum height, resizable vertically only */
.contact-form textarea {
  display: block;
  min-height: 9.5rem;
  max-height: 24rem;
  padding: .9rem 1rem;
  line-height: 1.5;
  resize: vertical;
}
.contact-form ::placeholder { color: #707070; opacity: 1; }
.contact-form input:not(.hp):focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text);
  background: #f2f2f2;
}

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

.btn-send {
  height: 3rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #000;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.btn-send:hover { opacity: .85; }
.btn-send:disabled { opacity: .6; cursor: progress; }

.form-status { min-height: 1.5em; text-align: center; }
.form-status.is-success { color: #1a7f37; }
.form-status.is-error { color: #c0392b; }

/* =========================================================
   Join page
   ========================================================= */
.join {
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad-x) clamp(3.5rem, 8vw, 6rem);
}
.page-title {
  text-align: center;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.2;
  padding-bottom: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.page-title strong { font-weight: 700; }
.page-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 64px; height: 4px;
  transform: translateX(-50%);
  background: var(--lavender);
}
.join-intro {
  text-align: center;
  line-height: 1.35;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}
.join-body {
  display: grid;
  gap: 1.75rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.4;
}
.join-body ul { list-style: disc inside; margin-top: .25rem; }
.join-body li { padding-left: 0; }
.join-body a { text-decoration: underline; text-underline-offset: 3px; }
.join-body a:hover { opacity: .7; }

/* =========================================================
   Events page 
   ========================================================= */
.events {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4.5vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}
.events .page-title { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.event-month + .event-month { margin-top: clamp(3rem, 6vw, 5rem); }
.event-month-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
} 
.event-month-title strong { font-weight: 700; }

/* Center one embed or a wrapped group of embeds */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 690px));
  gap: 1.5rem;
  justify-content: center;
}
.event-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 1px solid rgba(191, 203, 218, .5);
  border-radius: 6px;
  background: #2b2b2b;   /* shows while the embed loads */
}

/* Narrow screens: Luma stacks image above details, so it needs more height */
@media (max-width: 700px) {
  .event-embed iframe { height: 640px; }
}

/* =========================================================
   Legal pages (Privacy Policy, Cookie Policy)
   ========================================================= */
.legal-page {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad-x) clamp(3.5rem, 8vw, 6rem);
  font-size: 1rem;
  line-height: 1.7;
}
.legal-page .page-title { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.legal-page h2 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 2.5rem 0 .75rem;
}
.legal-page p { margin: 0 0 1rem; }
.legal-page .num { font-weight: 600; margin-right: .4em; }
.legal-page ul, .legal-page ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.legal-page li { margin-bottom: .6rem; padding-left: .25rem; }
.legal-page ol.alpha { list-style: lower-alpha; }
.legal-page ul.defs { list-style: none; padding-left: 0; }
.legal-page ul.defs li { padding-left: 0; }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal-page a:hover { opacity: .7; }

.legal a[aria-current="page"] { text-decoration: underline; }