/*
Theme Name: UAH Group Theme
Theme URI: https://ultraelaj.com/
Author: OpenAI Codex
Description: Custom WordPress theme for Ultra Elaj and the ULTRA-AFRICA HEALTHCARE initiative.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: uah-group-theme
*/

:root {
  --bg: #081f28;
  --bg-soft: #123846;
  --panel: rgba(255, 250, 242, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8f3ea;
  --muted: #c5d0d2;
  --accent: #f0a22e;
  --accent-soft: #ffd7a0;
  --signal-soft: rgba(42, 169, 164, 0.18);
  --danger-soft: rgba(240, 96, 84, 0.14);
  --danger: #ffc7be;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  --radius: 28px;
  --content: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(240, 162, 46, 0.2), transparent 28%),
    radial-gradient(circle at 10% 20%, rgba(42, 169, 164, 0.14), transparent 24%),
    linear-gradient(180deg, #0a2732 0%, #081f28 30%, #09232c 100%);
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header,
.section,
.partner-belt,
.site-footer,
.page-shell {
  width: min(calc(100% - 2.4rem), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(8, 31, 40, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.brand-kicker {
  font-size: 0.7rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
  content: "";
}

.nav-toggle-icon::before {
  transform: translateY(-6px);
}

.nav-toggle-icon::after {
  transform: translateY(4px);
}

.nav-open .nav-toggle-icon {
  background: transparent;
}

.nav-open .nav-toggle-icon::before {
  transform: translateY(0) rotate(45deg);
}

.nav-open .nav-toggle-icon::after {
  transform: translateY(-2px) rotate(-45deg);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.92rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.header-cta:hover,
.button:hover,
.header-cta:focus-visible,
.button:focus-visible {
  transform: translateY(-2px);
}

.header-cta,
.button-primary {
  color: #082029;
  background: linear-gradient(135deg, var(--accent) 0%, #f7c46c 100%);
  box-shadow: 0 20px 34px rgba(240, 162, 46, 0.2);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 233, 201, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.section {
  padding: 5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding-top: 4.2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  max-width: 14ch;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

p,
li,
span,
label {
  line-height: 1.75;
}

.hero-lead,
.stack p,
.delivery-copy p,
.access-card p,
.page-content p {
  color: var(--muted);
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1rem;
}

.micro-note {
  font-size: 0.92rem;
  color: rgba(248, 243, 234, 0.74);
}

.hero-panel,
.about-group-card,
.component-card,
.impact-card,
.access-card,
.delivery-shell,
.metrics-grid article,
.page-content,
.submission-feedback {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
}

.panel-topline,
.aside-label,
.component-tag,
.card-badge,
.form-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: rgba(240, 162, 46, 0.14);
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-art {
  margin: 1.2rem auto 0;
  width: min(100%, 420px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-aside {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-aside strong {
  font-size: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.metrics-grid article {
  padding: 1.3rem;
}

.metrics-grid span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metrics-grid strong {
  font-size: clamp(2rem, 3vw, 3rem);
  font-family: "Fraunces", serif;
}

.metrics-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.partner-belt {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.4rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.partner-belt h2 {
  max-width: 11ch;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.partner-logos figure {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  min-height: 170px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
}

.partner-logos img {
  max-height: 74px;
  width: auto;
  object-fit: contain;
}

.partner-logos figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.two-column,
.rollout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: start;
}

.stack {
  display: grid;
  gap: 1rem;
}

.about-group-card {
  padding: 1.7rem;
}

.about-group-card ul,
.delivery-points {
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.component-grid,
.impact-grid,
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.component-card {
  overflow: hidden;
}

.component-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.component-card div {
  display: grid;
  gap: 0.7rem;
  padding: 1.4rem;
}

.component-card p {
  margin: 0;
  color: var(--muted);
}

.rollout-copy {
  display: grid;
  gap: 1rem;
}

.year-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.year-track div,
.rollout-splits article {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.year-track span,
.rollout-splits span {
  display: block;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.year-track strong,
.rollout-splits strong,
.impact-card strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.8rem;
  font-family: "Fraunces", serif;
}

.rollout-splits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.rollout-splits p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.rollout-art {
  position: relative;
  padding: 1.3rem;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(42, 169, 164, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.rollout-art img {
  width: 100%;
  border-radius: 26px;
}

.impact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-card {
  padding: 1.4rem;
}

.impact-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.delivery-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  padding: 1.7rem;
}

.access-card {
  padding: 1.8rem;
}

.access-card.highlight {
  background:
    linear-gradient(180deg, rgba(240, 162, 46, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.access-intro {
  margin: 0 0 1.25rem;
}

.submission-feedback {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
}

.submission-feedback strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
  color: var(--text);
}

.submission-feedback p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.submission-feedback.is-success {
  border-color: rgba(42, 169, 164, 0.42);
  background:
    linear-gradient(180deg, rgba(42, 169, 164, 0.14), rgba(255, 255, 255, 0.03)),
    var(--signal-soft);
}

.submission-feedback.is-error {
  border-color: rgba(255, 122, 107, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 122, 107, 0.1), rgba(255, 255, 255, 0.02)),
    var(--danger-soft);
}

.submission-feedback.is-error p,
.submission-feedback.is-error strong {
  color: var(--danger);
}

.access-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field,
.field-full,
.check-field {
  display: grid;
  gap: 0.38rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-full label,
.check-field label {
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.field-full input,
.field-full select,
.field-full textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field textarea,
.field-full textarea {
  min-height: 148px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.field-full input::placeholder,
.field-full textarea::placeholder {
  color: rgba(248, 243, 234, 0.56);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.field-full input:focus,
.field-full select:focus,
.field-full textarea:focus {
  border-color: rgba(240, 162, 46, 0.5);
  box-shadow: 0 0 0 4px rgba(240, 162, 46, 0.12);
  background: rgba(255, 255, 255, 0.075);
}

.check-field {
  align-items: start;
  grid-template-columns: 20px 1fr;
}

.check-field input {
  margin-top: 0.35rem;
}

.check-field label {
  color: var(--muted);
  font-weight: 500;
}

.form-note {
  margin: 0;
  color: rgba(248, 243, 234, 0.74);
  font-size: 0.88rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  font-weight: 700;
}

.page-shell {
  padding: 4rem 0 5rem;
}

.page-content {
  padding: 2rem;
}

.page-content h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.motion-enabled .reveal {
  opacity: 0.02;
  transform: translateY(26px);
}

.motion-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .site-nav-shell {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero,
  .partner-belt,
  .two-column,
  .rollout-grid,
  .delivery-shell {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header,
  .section,
  .partner-belt,
  .site-footer,
  .page-shell {
    width: min(calc(100% - 1.2rem), var(--content));
  }

  .site-header {
    position: static;
    padding: 1rem;
    align-items: flex-start;
  }

  .brand {
    width: 100%;
  }

  .brand-copy strong {
    font-size: 0.82rem;
  }

  .site-nav-shell {
    width: 100%;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(8, 31, 40, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 0.66rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
  }

  .header-cta,
  .button {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 2rem;
  }

  .metrics-grid,
  .component-grid,
  .impact-grid,
  .access-grid,
  .partner-logos,
  .rollout-splits,
  .year-track,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .component-card img {
    height: 180px;
  }

  .site-footer {
    flex-direction: column;
  }
}
