:root {
    --pink: #ea4aa6;
    --purple: #56268b;
    --blue: #2563eb;
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --border: rgba(15, 23, 42, 0.14);
    --text: #0f172a;
    --muted: rgba(15, 23, 42, 0.68);
    --radius: 16px;
    --shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  background: radial-gradient(1200px 700px at 10% 0%, rgba(234, 74, 166, 0.16), transparent 60%),
    radial-gradient(1000px 600px at 100% 20%, rgba(37, 99, 235, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg), #ffffff 60%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.8);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.main {
  padding: 1.25rem 0 3.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 999;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 0.5rem;
}

/* Header + nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo__image {
  display: block;
  height: 100px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.03);
  color: var(--text);
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
}

.site-nav.is-open {
  display: grid;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}

.site-nav a:hover {
  background: rgba(2, 6, 23, 0.04);
}

.nav-cta {
  margin-top: 0.25rem;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav a {
    padding: 0.5rem 0.7rem;
  }

  .nav-cta {
    margin-left: 0.35rem;
    margin-top: 0;
  }
}

/* Typography */
h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.muted {
  color: var(--muted);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.03);
  color: var(--text);
  margin-bottom: 6px;
}

.btn:hover {
  background: rgba(89, 154, 212, 0.7);
}

.btn-primary {
    /*border-color: transparent;*/
    background: #56268b;
    color: floralwhite;
}

    .btn-primary:hover {
        background: rgba(109, 63, 160, 0.8);
    }

.btn-secondary {
    /* border-color: rgba(37, 99, 235, 0.5);*/
    background: #599ad4;
    color: floralwhite;
}

.card             {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.1rem;
    margin-bottom:20px;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(234, 74, 166, 0.12), rgba(107, 78, 230, 0.12), rgba(37, 99, 235, 0.10));
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}

/* Sponsors (static placeholders) */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 800px) {
  .sponsors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sponsor-link {
  display: block;
  text-decoration: none;
}

.sponsor-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.8);
  outline-offset: 4px;
  border-radius: 18px;
}

.sponsor-placeholder {
  width: 100%;
  height: auto;
  display: block;
}

.sponsor-logo {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.75rem;
}

.sponsor-placeholder rect {
  fill: var(--bg-soft);
  stroke: var(--border);
}

.sponsor-placeholder text {
  fill: var(--muted);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.sponsor-link:hover .sponsor-placeholder rect {
  filter: brightness(0.98);
}

@media (min-width: 800px) {
  .hero {
    padding: 2rem;
  }
}

/* Forms */
form {
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(15, 23, 42, 0.48);
}

.validation-summary-errors,
.field-validation-error {
  color: #b42318;
}

.validation-summary-valid {
  display: none;
}

.alert {
  border: 1px solid rgba(122, 234, 190, 0.35);
  background: rgba(122, 234, 190, 0.12);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: #0b2a5a;
  color: #ffffff;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo__image {
  display: block;
  height: 70px;
  width: auto;
}

.footer-social {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  background: transparent;
}

.footer-social a:hover {
  background: transparent;
  opacity: 0.9;
}

.social-icon {
  width: 27px;
  height: 27px;
  fill: currentColor;
  display: block;
}

.footer-social__link--facebook {
  color: #1877f2;
}

.footer-social__link--linkedin .social-icon__bg {
  fill: #0a66c2;
}

.footer-social__link--linkedin .social-icon__fg {
  fill: #ffffff;
}

.footer-social__link--instagram .social-icon__bg {
  fill: url(#footerInstagramGradient);
}

.footer-social__link--instagram .social-icon__fg {
  fill: #ffffff;
}

.footer-links {
  display: grid;
  gap: 1rem;
}

.footer-links__group strong {
  display: block;
  margin-bottom: 0.35rem;
}

.footer-links__group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.footer-links__group a {
  text-decoration: none;
  color: inherit;
}

.footer-links__group a:hover {
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.74);
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.3fr 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

/* Accordion (native <details>/<summary>) */
.accordion-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.accordion summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  float: right;
  font-weight: 900;
  opacity: 0.75;
}

.accordion[open] summary::after {
  content: "–";
}

.accordion__content {
  padding: 0 1rem 1rem;
}

.accordion__content p:last-child {
  margin-bottom: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.header-brand__partner-logo {
  display: block;
  height: 80px;
  width: auto;
  margin-left: 5px; /* was 30px */
}
.header-brand__partner {
    display: block;
    max-width: 100%;
    height: auto;

    border: 1px solid var(--border);   /* fine grey border */
    border-radius: 18px;               /* complements existing rounded UI */
    background: rgba(255, 255, 255, 0.9);

    padding: 0.75rem;                  /* gives the border some breathing room */
    margin: 0.25rem auto 1rem;         /* centers image + adds spacing below */
}

/* Ensure the anchor section doesn't sit hidden under the sticky header */
#LucyHorobin {
  scroll-margin-top: 130px;
}

.video-player {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.04);
}

/* Team */
.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

@media (min-width: 800px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-member {
  text-align: center;
}

.team-member__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  object-fit: cover;
  display: block;
}

.team-member__name {
  margin: 0;
}

.team-member__title {
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.15rem;
}

.team-member__bio {
  margin-top: 0.75rem;
}

/* Founder story image (float right with text wrap) */
.founder-photo {
  float: right;
  margin: 0 0 25px 25px; /* 25px gap left + bottom, no gap on top/right */
  width: 220px;
  height: 220px;
  border-radius: 16px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .founder-photo {
    float: none;
    width: min(260px, 100%);
    height: auto;
    margin: 0 auto 1rem;
  }
}

.footer-regulator-logo {
  float: right;
  height: 44px;
  width: auto;
  margin-left: 1rem;
  margin-top: 0.1rem;
}

/* About: Mission card logo (right aligned, full card height) */
.mission-card__inner {
  display: flex;
  align-items: stretch; /* makes the right column match the content height */
  gap: 1rem;
}

.mission-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.mission-card__logo {
  flex: 0 0 auto;
  height: 80%;      /* was 100% */
  width: auto;
  max-width: 260px;
  object-fit: contain;
  align-self: center; /* center it vertically since it’s not full height */
}

/* Mobile: stack so it doesn’t dominate the card */
@media (max-width: 700px) {
  .mission-card__inner {
    flex-direction: column;
  }

  .mission-card__logo {
    height: 90px;
    width: auto;
    max-width: 100%;
  }
}

/* Home hero: buttons left, logo right (aligned with button row) */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions__buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-actions__logo {
  display: block;
  height: 74px; /* visually aligns with button height */
  width: auto;
}

@media (max-width: 700px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions__logo {
    align-self: flex-end; /* keep it ranged right on small screens */
    margin-top: 0.5rem;
  }
}
