/*
Theme Name: Bright Minds Online
Theme URI: https://brightmindscentre.org/
Author: Care Essence Support Ltd
Description: Standalone online assessment theme for Bright Minds Centre.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: brightminds-online
*/

:root {
  --bmc-ink: #12312f;
  --bmc-text: #39514f;
  --bmc-teal: #15998c;
  --bmc-teal-dark: #117f75;
  --bmc-blue: #2f6fb4;
  --bmc-mint: #e8f7f4;
  --bmc-sky: #eef6ff;
  --bmc-lilac: #f4f0ff;
  --bmc-gold: #fff4d8;
  --bmc-line: #d9e8e5;
  --bmc-cream: #fffaf0;
  --bmc-white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bmc-text);
  background: #f7fbfb;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--bmc-teal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #d99a22;
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--bmc-ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--bmc-line);
  box-shadow: 0 8px 24px rgba(18, 49, 47, .06);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 275px;
  color: var(--bmc-ink);
  text-decoration: none;
}

.brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  color: var(--bmc-teal);
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: .01em;
}

.brand span span {
  display: block;
  margin-top: 5px;
  color: #45615d;
  font-size: 13px;
  line-height: 1.2;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 2px solid var(--bmc-teal);
  border-radius: 8px;
  background: #fff;
  color: var(--bmc-ink);
  font-weight: 800;
  padding: 8px 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--bmc-ink);
  font-weight: 800;
  text-decoration: none;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-nav .nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bmc-teal);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus {
  background: var(--bmc-teal-dark);
  text-decoration: none;
}

main {
  background: #fff;
}

section {
  padding: 72px 22px;
}

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

h1,
h2,
h3 {
  margin: 0 0 16px;
  color: var(--bmc-ink);
  font-family: "Fredoka", Arial, sans-serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(38px, 5vw, 58px);
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 18px;
  font-size: 17px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--bmc-teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e9f8f5 0%, #f7fbff 52%, #fff7df 100%);
  padding-top: 86px;
}

.hero:after {
  content: "";
  position: absolute;
  right: 7%;
  top: 74px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #b7eee7 0, #b7eee7 42%, transparent 43%);
  opacity: .45;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: 42px;
  align-items: center;
}

.lead {
  max-width: 780px;
  color: #31514d;
  font-size: 22px;
}

.hero-media {
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(18, 49, 47, .16);
}

.hero-media img {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border: 2px solid var(--bmc-teal);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.btn.primary {
  background: var(--bmc-teal);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--bmc-ink);
}

.trust {
  background: #fff;
}

.trust-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -30px;
}

.trust-card,
.service-card,
.team-card,
.governance-card,
.contact-panel,
.contact-form-panel,
.content-card {
  border: 1px solid var(--bmc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 49, 47, .07);
}

.trust-card {
  padding: 24px;
  border-top: 5px solid var(--bmc-teal);
}

.trust-card:nth-child(2) {
  border-top-color: var(--bmc-blue);
}

.trust-card:nth-child(3) {
  border-top-color: #8062c9;
}

.trust-card:nth-child(4) {
  border-top-color: #d99a22;
}

.badge {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bmc-mint);
  color: var(--bmc-teal);
  font-weight: 900;
}

.services,
.team-list,
.content-section {
  background: #f7fbfb;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 560px;
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 28px;
}

.service-card:nth-child(1) {
  background: linear-gradient(180deg, #fff, #eefaf8);
}

.service-card:nth-child(2) {
  background: linear-gradient(180deg, #fff, #eef6ff);
}

.service-card:nth-child(3) {
  background: linear-gradient(180deg, #fff, #fff8e6);
}

ul.clean {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

ul.clean li {
  position: relative;
  padding-left: 28px;
  margin: 11px 0;
  line-height: 1.5;
}

ul.clean li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bmc-teal);
  box-shadow: 0 0 0 4px rgba(21, 153, 140, .14);
}

.notice {
  padding: 26px 28px;
  border: 1px solid #f1c76f;
  border-left: 7px solid #d99a22;
  border-radius: 14px;
  background: #fff8e7;
  box-shadow: 0 12px 26px rgba(80, 55, 8, .06);
}

.journey {
  background: #103f3b;
  color: #e9fffb;
}

.journey h2,
.journey h3 {
  color: #fff;
}

.journey p {
  color: #d7efec;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  counter-reset: step;
}

.step {
  min-height: 120px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  counter-increment: step;
}

.step:before {
  content: counter(step);
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #103f3b;
  font-weight: 900;
}

.fees {
  background: #f7fbff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bmc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(18, 49, 47, .07);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}

th {
  padding: 16px;
  background: var(--bmc-ink);
  color: #fff;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 16px;
  border-top: 1px solid #e7efed;
  vertical-align: top;
}

tr:nth-child(even) td {
  background: #fbfdfd;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

details {
  padding: 18px 20px;
  border: 1px solid var(--bmc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 49, 47, .05);
}

summary {
  color: var(--bmc-ink);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

details p {
  margin: 14px 0 0;
}

.governance,
.team-hero,
.contact-hero {
  background: linear-gradient(135deg, #eaf7f4, #f7fbff);
}

.governance-card,
.content-card {
  padding: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.team-card {
  padding: 26px;
}

.team-photo {
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #a8cac5;
  border-radius: 14px;
  background: linear-gradient(135deg, #eefaf8, #eef6ff);
  color: #4f6b67;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.team-role {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bmc-mint);
  color: var(--bmc-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.contact-section {
  background: linear-gradient(135deg, #f4fbfa 0%, #eef6ff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-panel,
.contact-form-panel {
  padding: 28px;
}

.contact-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--bmc-teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.contact-list li {
  margin: 12px 0;
  font-size: 16px;
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--bmc-ink);
  font-size: 15px;
}

.contact-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid #d99a22;
  border-radius: 10px;
  background: #fff8e7;
  color: #5b4b20;
}

.contact-form-panel label {
  display: block;
  margin-bottom: 14px;
  color: var(--bmc-ink);
  font-size: 15px;
  font-weight: 700;
}

.contact-form-panel input:not([type=submit]),
.contact-form-panel textarea,
.contact-form-panel select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #cddedb;
  border-radius: 10px;
  background: #fff;
  color: var(--bmc-ink);
  font: inherit;
}

.contact-form-panel textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form-panel input[type=submit] {
  min-height: 48px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--bmc-teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.contact-form-panel .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b42318;
  font-weight: 700;
}

.content-section {
  min-height: 60vh;
}

.content-card {
  max-width: 900px;
}

.site-footer {
  padding: 68px 22px 40px;
  border-top: 6px solid var(--bmc-teal);
  background: #0d2f2b;
  color: #f2fffc;
  box-shadow: 0 -18px 36px rgba(8, 33, 31, .16);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer p,
.site-footer li {
  color: #eefaf8;
  font-size: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.footer-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 9px 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.footer-links a:hover,
.footer-links a:focus {
  color: #d7fffa;
  border-bottom-color: #d7fffa;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.footer-note p {
  margin: 0;
  color: #f2fffc;
  font-size: 14px;
}

@media (max-width: 980px) {
  .nav-wrap {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

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

  .site-nav a {
    padding: 10px 12px;
    border: 1px solid var(--bmc-line);
    border-radius: 8px;
    text-align: center;
  }

  .site-nav .nav-cta {
    grid-column: 1 / -1;
  }

  .hero-grid,
  .section-head,
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero:after {
    display: none;
  }

  .trust-grid,
  .service-grid,
  .steps,
  .faq-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  section {
    padding: 54px 18px;
  }

  .nav-wrap {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand strong {
    font-size: 27px;
  }

  .brand span span {
    font-size: 12px;
  }

  .site-nav,
  .trust-grid,
  .service-grid,
  .steps,
  .faq-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}
