/* ==========================================================
   LEGACY AFRICA
   Strategic Opportunity Website
   ========================================================== */


/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
  --deep: #183b2e;
  --ink: #292822;

  --gold: #b49a63;
  --gold-soft: #e5dac4;

  --paper: #f1ece2;
  --bg: #f8f5ee;
  --white: #fffdf8;

  --muted: #6e6b63;
  --border: #d9d2c5;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}


/* ==========================================================
   RESET
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--ink);

  font-family: var(--sans);

  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
}

h1,
h2 {
  font-weight: 600;
}

p {
  line-height: 1.8;
}


/* ==========================================================
   GENERAL
   ========================================================== */

.container {
  width: min(1150px, calc(100% - 40px));
  margin: auto;
}

.dark {
  background: var(--deep);
  color: #fffaf1;
}

.paper {
  background: var(--paper);
}

.gold {
  color: var(--gold);
}

.kicker {
  font-size: 0.68rem;
  font-weight: 700;

  line-height: 1.4;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  padding: 20px 0;
}

.header-inner,
.footer-inner {
  display: flex;

  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;

  place-items: center;

  width: 38px;
  height: 38px;

  border: 1px solid var(--gold);

  font-family: var(--serif);

  font-size: 20px;

  letter-spacing: 0;
}

.brand-inverse {
  color: #fffaf1;
}

.header-link {
  font-size: 0.65rem;
  font-weight: 600;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  opacity: 0.75;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
  padding: 24px 0 96px;
}

.hero-grid {
  display: grid;

  grid-template-columns: 0.76fr 1.24fr;

  gap: 64px;
}

.hero-copy {
  padding-top: 50px;
}

.hero h1 {
  max-width: 700px;

  margin: 24px 0 0;

  font-size: clamp(3.2rem, 6vw, 5.7rem);

  line-height: 0.88;
}

.gold-rule {
  width: 250px;
  height: 1px;

  margin: 32px 0;

  background:
    linear-gradient(
      90deg,
      var(--gold),
      transparent
    );
}

.value {
  margin-bottom: 0;

  font-family: var(--serif);

  font-size: clamp(2rem, 3vw, 2.8rem);

  font-weight: 600;

  color: var(--gold-soft);
}

.hero-text {
  max-width: 600px;

  margin-top: 24px;

  font-size: 0.95rem;

  color: rgba(255, 250, 241, 0.75);
}

.descriptor {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 28px;

  font-size: 0.68rem;
  font-weight: 600;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(255, 250, 241, 0.6);
}

.descriptor span {
  display: block;

  width: 32px;
  height: 1px;

  background: var(--gold);
}


/* ==========================================================
   APPLICATION FORM
   ========================================================== */

.application-card {
  background: var(--white);

  color: var(--ink);

  box-shadow:
    0 30px 80px -30px rgba(10, 20, 15, 0.8);
}

.form-header {
  padding: 28px 32px;

  border-bottom: 1px solid var(--border);
}

.form-header h2 {
  margin: 8px 0;

  font-size: 2.4rem;

  line-height: 1;
}

.form-header p:last-child {
  margin: 0;

  font-size: 0.88rem;

  color: var(--muted);
}

.form-body {
  padding: 32px;
}

.form-section {
  margin-bottom: 42px;
}


/* Form section headings */

.section-title {
  display: flex;

  align-items: center;

  gap: 12px;

  padding-bottom: 12px;

  margin-bottom: 22px;

  border-bottom: 1px solid var(--border);
}

.section-title span,
.steps li > span {
  font-family: var(--serif);

  font-size: 1.4rem;

  color: var(--gold);
}

.section-title h3 {
  margin: 0;

  font-family: var(--sans);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--deep);
}


/* ==========================================================
   FORM GRID
   ========================================================== */

.form-grid {
  display: grid;

  gap: 24px;
}

.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.stack {
  display: grid;

  gap: 28px;
}


/* ==========================================================
   FORM LABELS
   ========================================================== */

label {
  display: block;

  font-size: 0.83rem;
  font-weight: 600;
}

label em {
  float: right;

  font-size: 0.6rem;
  font-style: normal;
  font-weight: 500;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--muted);
}


/* ==========================================================
   INPUTS
   ========================================================== */

input,
textarea {
  display: block;

  width: 100%;

  margin-top: 8px;

  padding: 12px 0;

  border: 0;
  border-bottom: 1px solid #c8c1b4;

  outline: 0;

  background: transparent;

  font: inherit;

  color: var(--ink);
}

input:focus,
textarea:focus {
  border-bottom-color: var(--deep);
}

textarea {
  min-height: 110px;

  resize: vertical;
}


/* Hidden anti-spam field */

.honeypot {
  position: absolute;

  left: -9999px;
}


/* ==========================================================
   CONSENT
   ========================================================== */

.consent-wrap {
  padding-top: 28px;

  border-top: 1px solid var(--border);
}

.checkbox-label {
  display: flex;

  gap: 12px;

  font-size: 0.72rem;
  font-weight: 400;

  line-height: 1.7;

  color: var(--muted);
}

.checkbox-label input {
  flex: none;

  width: 16px;
  height: 16px;

  margin: 2px 0;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  min-height: 50px;

  padding: 14px 24px;

  border: 0;

  background: var(--deep);

  color: #fff;

  font-family: var(--sans);

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.full {
  width: 100%;

  margin-top: 26px;
}

.gold-button {
  background: var(--gold);

  color: #211f19;
}

.fine-print {
  margin: 14px 0 0;

  text-align: center;

  font-size: 0.67rem;

  line-height: 1.6;

  color: var(--muted);
}

.fine-print.left {
  text-align: left;
}

.form-message {
  margin: 12px 0 0;

  font-size: 0.78rem;

  color: #9a3028;
}


/* ==========================================================
   MAIN SECTIONS
   ========================================================== */

.section {
  padding: 112px 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 16px 0 0;

  font-size: clamp(2.7rem, 5vw, 4rem);

  line-height: 0.98;

  color: var(--deep);
}

.two-column {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 80px;
}

.section > .container > .two-column,
.thinking {
  margin-top: 56px;
}

.lead {
  font-size: 1.05rem;

  line-height: 2;

  color: var(--muted);
}


/* ==========================================================
   CHECK LIST
   ========================================================== */

.check-list,
.x-list {
  padding: 0;

  margin: 32px 0 0;

  list-style: none;
}

.check-list {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 0 24px;
}

.check-list li,
.x-list li {
  padding: 14px 0;

  border-top: 1px solid var(--border);

  font-size: 0.82rem;

  line-height: 1.6;
}

.check-list li::before {
  content: "✓";

  margin-right: 10px;

  color: var(--gold);

  font-weight: 700;
}

.x-list li::before {
  content: "×";

  margin-right: 10px;

  color: var(--gold);

  font-size: 1.2rem;
}


/* ==========================================================
   PAPER BOX
   ========================================================== */

.paper-box {
  padding: 36px;

  background: var(--paper);
}

.pullquote {
  margin: 28px 0 0;

  padding-top: 26px;

  border-top: 1px solid var(--border);

  font-family: var(--serif);

  font-size: 1.7rem;

  line-height: 1.1;

  color: var(--deep);
}


/* ==========================================================
   OPPORTUNITY CARDS
   ========================================================== */

.cards {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1px;

  margin-top: 56px;

  background: var(--border);
}

.card {
  padding: 38px;

  background: var(--bg);
}

.card-dark {
  background: var(--deep);

  color: #fff;
}

.number {
  font-family: var(--serif);

  font-size: 4.2rem;

  color: var(--gold);
}

.number.soft {
  color: var(--gold-soft);
}

.card h3 {
  margin: 22px 0 10px;

  font-size: 1.8rem;

  color: var(--deep);
}

.card-dark h3 {
  color: #fff;
}

.card p {
  font-size: 0.82rem;

  color: var(--muted);
}

.card-dark p {
  color: rgba(255, 250, 241, 0.7);
}


/* ==========================================================
   FOUNDER
   ========================================================== */

.founder {
  display: grid;

  grid-template-columns: 1fr 1fr;
}

.founder-image {
  min-height: 740px;

  background:
    #284237
    url("assets/owam-hoyi-founder.jpeg")
    center / cover
    no-repeat;
}

.founder-copy {
  display: flex;

  align-items: center;

  padding:
    80px
    clamp(35px, 6vw, 95px);
}

.founder-copy h2 {
  font-size: clamp(2.8rem, 5vw, 4rem);

  line-height: 0.95;
}

.founder-text {
  padding-left: 24px;

  border-left: 1px solid var(--gold);

  font-size: 0.85rem;

  color: rgba(255, 250, 241, 0.7);
}

.founder-text .bright {
  color: #fff;
}


/* ==========================================================
   THE THINKING
   ========================================================== */

.copy {
  font-size: 1rem;

  color: var(--muted);
}

.copy p {
  margin-bottom: 20px;
}

.strong {
  font-weight: 700;

  color: var(--deep);
}


/* ==========================================================
   THE PROMISE
   ========================================================== */

.questions {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1px;

  margin-top: 32px;

  background: var(--border);
}

.questions div {
  padding: 24px;

  background: var(--bg);

  font-family: var(--serif);

  font-size: 1.6rem;
  font-weight: 600;

  color: var(--deep);
}


/* ==========================================================
   PLAN
   ========================================================== */

.bordered {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 42px 32px;

  margin: 56px 0 0;

  padding: 0;

  list-style: none;
}

.steps li {
  padding-top: 18px;

  border-top: 1px solid rgba(24, 59, 46, 0.3);
}

.steps h3 {
  display: inline-block;

  margin: 0 0 0 12px;

  font-family: var(--sans);

  font-size: 0.78rem;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.steps p {
  margin: 14px 0 0;

  font-size: 0.8rem;

  color: var(--muted);
}


/* ==========================================================
   LEGACY AFRICA STORY
   ========================================================== */

.brand-story {
  padding-left: 40px;

  border-left: 1px solid var(--gold);
}

.brand-tagline {
  margin: 38px 0 22px;

  font-family: var(--serif);

  font-size: 2.8rem;
  font-weight: 600;

  line-height: 1;

  color: var(--deep);
}

.brand-story p:not(.brand-tagline) {
  font-size: 0.82rem;

  color: var(--muted);
}


/* ==========================================================
   CTA
   ========================================================== */

.cta {
  padding: 112px 0;

  text-align: center;
}

.narrow {
  max-width: 850px;
}

.cta h2 {
  margin: 20px 0;

  font-size: clamp(3.2rem, 6vw, 5rem);

  line-height: 0.95;
}

.cta > div > p:not(.kicker):not(.fine-print) {
  max-width: 650px;

  margin: 28px auto;

  color: rgba(255, 250, 241, 0.7);
}


/* ==========================================================
   FAQ
   ========================================================== */

.faq-layout {
  display: grid;

  grid-template-columns: 0.65fr 1.35fr;

  gap: 80px;
}

.faq {
  border-top: 1px solid var(--border);
}

details {
  border-bottom: 1px solid var(--border);
}

summary {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding: 24px 0;

  cursor: pointer;

  font-size: 0.86rem;
  font-weight: 700;

  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  color: var(--gold);

  transition: transform 0.2s ease;
}

details[open] summary span {
  transform: rotate(180deg);
}

details p {
  margin: 0;

  padding:
    0
    30px
    24px
    0;

  font-size: 0.82rem;

  color: var(--muted);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  padding: 38px 0;

  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;

  font-size: 0.72rem;

  color: var(--muted);
}


/* ==========================================================
   HERO ANIMATION
   ========================================================== */

.reveal {
  animation: rise 0.7s ease-out both;
}

@keyframes rise {

  from {
    opacity: 0;

    transform: translateY(14px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }

}


/* ==========================================================
   SUCCESS STATE
   For later when we add JavaScript/backend
   ========================================================== */

.success-state {
  display: flex;

  flex-direction: column;

  justify-content: center;

  min-height: 34rem;

  padding: 70px 40px;
}

.success-icon {
  display: grid;

  place-items: center;

  width: 48px;
  height: 48px;

  margin-bottom: 25px;

  border: 1px solid var(--gold);

  color: var(--gold);

  font-size: 22px;
}

.success-state h2 {
  max-width: 600px;

  font-size: clamp(2.6rem, 5vw, 4rem);

  line-height: 0.95;

  color: var(--deep);
}

.success-state p:last-child {
  max-width: 600px;

  color: var(--muted);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

  .hero-grid,
  .founder,
  .two-column,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .application-card {
    margin-top: 10px;
  }

  .founder-image {
    min-height: 500px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-layout {
    gap: 45px;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 620px) {

  .container {
    width: min(100% - 28px, 1150px);
  }


  /* Header */

  .header-link {
    display: none;
  }


  /* Hero */

  .hero {
    padding-bottom: 55px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }


  /* Form */

  .form-header,
  .form-body {
    padding: 24px 20px;
  }

  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }


  /* Sections */

  .section {
    padding: 78px 0;
  }

  .section-heading h2 {
    font-size: 2.8rem;
  }


  /* Lists */

  .check-list {
    grid-template-columns: 1fr;
  }


  /* Founder */

  .founder-copy {
    padding: 60px 24px;
  }

  .founder-image {
    min-height: 420px;
  }


  /* Questions */

  .questions {
    grid-template-columns: 1fr;
  }


  /* Plan */

  .steps {
    grid-template-columns: 1fr;
  }


  /* Brand story */

  .brand-story {
    padding-left: 24px;
  }


  /* Footer */

  .footer-inner {
    flex-direction: column;

    align-items: flex-start;

    gap: 20px;
  }


  /* Success state */

  .success-state {
    padding: 55px 20px;
  }

}