/* =========================================================
   STEMeUp landing page styles
   Palette:
     bg            #260b37   deep purple
     text          #ffffff
     primary CTA   #F6BD00   gold (ENG-01)
     pillar SCI    #B3EDD1   mint
     pillar ENG    #F6BD00   gold
     pillar MAT    #F7CFC6   soft pink
   Fonts:
     headings  ITC Ronda
     body      Poppins Light (300) / Poppins Regular (400)
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "ITC Ronda";
  src: url("ITC%20Ronda%20Regular/itc-ronda-regular.woff2") format("woff2"),
       url("ITC%20Ronda%20Regular/itc-ronda-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("Nunito,Passion_One,Poppins/Poppins/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("Nunito,Passion_One,Poppins/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("Nunito,Passion_One,Poppins/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

html { overflow-x: hidden; }

body {
  margin: 0;
  background: #260b37;
  color: #ffffff;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, li, a, label { overflow-wrap: break-word; }

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

a {
  color: #F7CFC6;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover, a:focus-visible { color: #F6BD00; }

p { margin: 0 0 1.2em; }

strong { font-weight: 500; }

/* Brand exponent: STEMe<sup>Up</sup> — body text only.
   Plain <sup> elements (those without a nested anchor) keep the brand mark
   readable and proportionate. Citation <sup> elements have anchors and pick
   up the gold treatment below instead. */
sup {
  font-size: 0.68em;
  vertical-align: super;
  line-height: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

sup a {
  color: #F6BD00;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78em;
  padding: 0 1px;
}
sup a:hover { text-decoration: underline; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #F6BD00;
  color: #260b37;
  padding: 0.6em 1em;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 720px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 1.5rem 0;
}
.site-header__logo {
  display: inline-block;
  padding-left: 1.5rem;
}
.site-header__logo img {
  height: 84px;
  width: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 5rem;
}

.hero__h1 {
  font-family: "ITC Ronda", "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 1.4rem;
  max-width: 100%;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.hero__small {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: #F6BD00;
  color: #260b37;
  border-color: #F6BD00;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: #ffd23f;
  border-color: #ffd23f;
  color: #260b37;
}

.btn--secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
  border-top: 1px solid rgba(247, 207, 198, 0.12);
}

.section__h2 {
  font-family: "ITC Ronda", "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 4.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  max-width: 100%;
}

.section__h3 {
  font-family: "ITC Ronda", "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
  margin: 2.5rem 0 0.9rem;
  color: #F7CFC6;
}

.section__intro {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

/* ---------- Approach / pillars ---------- */
.pillar {
  margin: 2.4rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid transparent;
}

.pillar__num {
  display: inline-block;
  font-family: "ITC Ronda", "Poppins", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
}

.pillar__h3 {
  font-family: "ITC Ronda", "Poppins", sans-serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  margin: 0 0 0.8rem;
}

.pillar--sci { border-left-color: #B3EDD1; }
.pillar--sci .pillar__num { color: #B3EDD1; }

.pillar--eng { border-left-color: #F6BD00; }
.pillar--eng .pillar__num { color: #F6BD00; }

.pillar--mat { border-left-color: #F7CFC6; }
.pillar--mat .pillar__num { color: #F7CFC6; }

.approach__underneath {
  margin-top: 3rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Audience list ---------- */
.audience-list {
  list-style: none;
  margin: 1.5rem 0 1.8rem;
  padding: 0;
}
.audience-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: 1px solid rgba(247, 207, 198, 0.12);
}
.audience-list li:last-child { border-bottom: none; }
.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  background: #F7CFC6;
  border-radius: 50%;
}

.audience__rollout {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

/* ---------- Forms ---------- */
.form {
  margin-top: 1.8rem;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.field {
  margin-bottom: 1.3rem;
}

.field label {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #F7CFC6;
}

.field__optional {
  color: rgba(247, 207, 198, 0.6);
  font-weight: 300;
  font-size: 0.88rem;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(247, 207, 198, 0.35);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #F6BD00;
  background: rgba(255, 255, 255, 0.09);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #F7CFC6 50%),
                    linear-gradient(135deg, #F7CFC6 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.field select option {
  background: #260b37;
  color: #ffffff;
}

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

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.4rem 0 1.6rem;
}

.field--checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: #F6BD00;
  cursor: pointer;
}

.field--checkbox label {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.55;
  cursor: pointer;
}

.field--checkbox label a {
  color: #F6BD00;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.2em;
  color: #F7CFC6;
}
.form__status[data-error] { color: #ff9c80; }

.form__success {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: rgba(246, 189, 0, 0.12);
  border: 1px solid rgba(246, 189, 0, 0.4);
  border-radius: 10px;
}
.form__success p { margin: 0; }

/* ---------- Contact section ---------- */
.section--contact {
  background: rgba(255, 255, 255, 0.025);
}

.contact__intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Newsletter ---------- */
.section--newsletter {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.newsletter__h3 {
  font-family: "ITC Ronda", "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}

.newsletter__line {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.newsletter__row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-end;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.newsletter__row .field {
  flex: 1 1 240px;
  margin-bottom: 0;
}
.newsletter__row .btn {
  flex: 0 0 auto;
}

/* ---------- References ---------- */
.section--references {
  padding: 3rem 0 2rem;
}

.references__h3 {
  font-family: "ITC Ronda", "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.75);
}

.references {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.references li { margin-bottom: 0.7rem; }
.references em { font-style: italic; }
.references a { color: rgba(247, 207, 198, 0.8); word-break: break-word; }
.references a:hover { color: #F6BD00; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(247, 207, 198, 0.15);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__brand { margin-bottom: 1rem; }
.site-footer__logo {
  height: 40px;
  width: auto;
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 0 0.7rem;
}

.site-footer__meta { margin: 0 0 0.7rem; color: rgba(255, 255, 255, 0.6); }

.site-footer__links { margin: 0 0 0.9rem; }
.site-footer__links a {
  color: rgba(247, 207, 198, 0.85);
  margin-right: 0.4rem;
}
.site-footer__links span { color: rgba(255, 255, 255, 0.4); margin: 0 0.4rem 0 0; }

.site-footer__copyright { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }

  .container { padding: 0 1.1rem; }

  .site-header { padding: 1rem 0; }
  .site-header__logo { padding-left: 1.1rem; }
  .site-header__logo img { height: 66px; }

  .hero { padding: 2.5rem 0 3.5rem; }
  .section { padding: 3rem 0; }
  .section--newsletter { padding: 2.5rem 0; }

  .pillar { padding-left: 1rem; }

  .newsletter__row { gap: 0.6rem; }
  .newsletter__row .btn { width: 100%; }

  .references a { font-size: 0.9em; }
}

@media (max-width: 380px) {
  .container { padding: 0 0.9rem; }
  .site-header__logo { padding-left: 0.9rem; }
  .hero__h1 { font-size: 1.55rem; }
  .pillar { padding-left: 0.85rem; }
  .pillar__h3 { font-size: 1.15rem; }
}

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