/* ZAOPA — Zimbabwe Aircraft Owners and Pilots Association */

:root {
  --navy-900: #081c33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --navy-100: #dce7f5;
  --gold: #f0a500;
  --gold-dark: #c98a00;
  --green: #009739;
  --ink: #1d2733;
  --muted: #5a6a7d;
  --paper: #ffffff;
  --paper-alt: #f3f6fa;
  --line: #e2e8f0;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(8, 28, 51, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a { color: var(--navy-700); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

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

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

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy-800);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: var(--navy-900); }

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-navy { background: var(--navy-800); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
}

/* Rotating background slideshow (replicates the old Elementor hero:
   5s per slide, 0.5s crossfade, slow Ken Burns zoom-in). */

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 28, 51, 0.78), rgba(8, 28, 51, 0.62));
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Flags with bottom-heavy designs (e.g. Zambia's tricolour block) must
   stay anchored to the bottom edge when the hero crops them. */
.hero-slide.pos-bottom { background-position: center bottom; }

.hero-slide.active {
  opacity: 1;
  animation: hero-zoom 7s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.active { animation: none; }
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 110px;
  max-width: 860px;
  text-align: center;
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  margin: 14px 0 18px;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--navy-100);
  margin-bottom: 34px;
}

.hero .tagline strong { color: #fff; }

.slogan-mark {
  display: block;
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.slogan-words {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.slogan-words b { color: var(--gold); font-weight: 800; }

.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-alt { background: var(--paper-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--navy-800);
  margin: 8px 0 10px;
}

.section-head p { color: var(--muted); }

/* ---------- Apps ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card.coming { background: var(--navy-700); opacity: 0.92; }

.app-card h3 { font-size: 1.35rem; }

.app-card p { color: var(--navy-100); flex-grow: 1; }

.app-card .btn { align-self: flex-start; }

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-900);
}

.badge.soon { background: rgba(255, 255, 255, 0.18); color: #fff; }

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

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.svc-card .icon { font-size: 1.9rem; }

.svc-card h3 {
  color: var(--navy-800);
  font-size: 1.08rem;
  margin: 10px 0 6px;
}

.svc-card p { color: var(--muted); font-size: 0.92rem; }

.svc-card .status {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Community gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery figure:hover img { transform: scale(1.05); }

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(8, 28, 51, 0.85));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Membership ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.tier h3 { color: var(--navy-800); font-size: 1.3rem; }

.tier .blurb { color: var(--muted); font-size: 0.94rem; margin: 10px 0 18px; }

.tier ul { list-style: none; flex-grow: 1; }

.tier li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.94rem;
}

.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.tier .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--navy-800);
  color: #fff;
}

.newsletter .wrap {
  max-width: 640px;
  text-align: center;
}

.newsletter h2 { font-size: 1.7rem; margin-bottom: 10px; }

.newsletter p { color: var(--navy-100); margin-bottom: 26px; }

.newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter input {
  flex: 1 1 280px;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
}

.newsletter .form-note { font-size: 0.85rem; color: var(--navy-100); margin-top: 14px; }

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

.site-footer {
  background: var(--navy-900);
  color: var(--navy-100);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 8px; }

.site-footer a { color: var(--navy-100); text-decoration: none; }

.site-footer a:hover { color: var(--gold); }

.footer-brand img { height: 40px; width: auto; margin-bottom: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: #8fa3bd;
}

/* ---------- Inner pages ---------- */

.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }

.page-hero p { color: var(--navy-100); max-width: 620px; margin: 12px auto 0; }

.page-body .wrap { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }

.page-body h2 { color: var(--navy-800); margin: 28px 0 10px; }

.page-body p { margin-bottom: 14px; }

.notice {
  background: var(--paper-alt);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--muted);
}

/* ---------- Member area ---------- */

.member-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  max-width: 460px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-alt);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

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

.form-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}

.form-field input:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.form-error {
  color: #b3261e;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.member-card .form-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.account-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 18px 0;
}

.account-facts dt { font-weight: 700; color: var(--navy-800); }

.account-facts dd { margin: 0; }

.verify-box {
  background: #fff8e6;
  border: 1px solid #f0d48a;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 18px 0;
}

.verify-box .verify-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

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

.pw-wrap {
  position: relative;
  display: block;
}

.pw-wrap input { padding-right: 64px; }

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--navy-700);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px 8px;
}

.pw-toggle:hover { color: var(--gold-dark); }

/* ---------- Entrance animations ---------- */
/* JS (js/main.js) assigns .anim + a direction class and observes
   visibility; without JS nothing is hidden. */

.anim {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--anim-delay, 0s);
}

.anim-up { transform: translateY(30px); }
.anim-left { transform: translateX(-40px); }
.anim-right { transform: translateX(40px); }

.anim.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 10px 0; width: 100%; }

  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }

  section { padding: 52px 0; }
}
