:root {
  --ink: #102127;
  --muted: #5d6d73;
  --teal: #0f5c5c;
  --teal-dark: #083f44;
  --marigold: #f2b544;
  --coral: #d85f4f;
  --mint: #d9eee7;
  --cream: #fffaf0;
  --paper: #ffffff;
  --line: #dce7e3;
  --shadow: 0 18px 48px rgba(16, 33, 39, 0.14);
  --radius: 8px;
  --container: 1640px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

main {
  overflow-x: clip;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100% - 32px, var(--container));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #25383f;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-menu a {
  padding: 0.25rem 0;
}

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

.nav-call {
  color: var(--teal);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 104px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 40, 45, 0.96) 0%, rgba(8, 58, 62, 0.82) 42%, rgba(8, 58, 62, 0.22) 100%),
    url("assets/bright-minds-hero.png") center right / cover no-repeat;
}

.hero-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 4rem 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: var(--marigold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.btn-primary {
  background: var(--marigold);
  color: #1d2424;
  box-shadow: 0 10px 24px rgba(242, 181, 68, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffc85f;
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.btn-light {
  background: #fff;
  color: var(--teal-dark);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-badges {
  max-width: 740px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.92rem;
}

.quick-strip {
  width: min(100% - 32px, var(--container));
  margin: -34px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-item {
  min-height: 104px;
  padding: 1.15rem;
  display: grid;
  align-content: center;
  gap: 0.2rem;
}

.quick-item + .quick-item {
  border-left: 1px solid var(--line);
}

.quick-item strong {
  color: var(--teal);
  font-size: 1.25rem;
  line-height: 1.2;
}

.quick-item span {
  color: var(--muted);
  font-size: 0.96rem;
}

.section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--container)) / 2));
  padding-right: max(16px, calc((100% - var(--container)) / 2));
  background: linear-gradient(180deg, #f6fbf9 0%, #fff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.1rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.class-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.class-card,
.benefit-card {
  min-height: 210px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.class-card {
  border-top: 5px solid var(--teal);
}

.class-card:nth-child(2) {
  border-top-color: var(--marigold);
}

.class-card:nth-child(3) {
  border-top-color: var(--coral);
}

.class-card span {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: var(--teal);
  font-weight: 900;
  font-size: 1.45rem;
}

.class-card p,
.benefit-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.subject-grid span {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--marigold);
  border-radius: var(--radius);
  background: #fff;
  color: #23373d;
  font-weight: 800;
}

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

.benefit-card {
  background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 2rem;
  align-items: start;
  padding: 5rem max(16px, calc((100% - var(--container)) / 2));
  background: var(--teal-dark);
  color: #fff;
}

.contact-copy {
  max-width: 700px;
  min-width: 0;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

address {
  margin: 1.6rem 0;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

address strong {
  display: block;
  color: #fff;
}

.enquiry-form {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.enquiry-form h3 {
  margin-bottom: 1rem;
}

.enquiry-form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: var(--marigold);
  box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.18);
}

.enquiry-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.footer {
  padding: 2rem 1rem;
  text-align: center;
  background: #071f22;
  color: rgba(255, 255, 255, 0.76);
}

.footer p {
  margin-bottom: 0.4rem;
}

.footer strong,
.footer a {
  color: #fff;
}

.copyright {
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid rgba(242, 181, 68, 0.8);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 16px 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 33, 39, 0.1);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(8, 40, 45, 0.97) 0%, rgba(8, 58, 62, 0.9) 56%, rgba(8, 58, 62, 0.45) 100%),
      url("assets/bright-minds-hero.png") 64% center / cover no-repeat;
  }

  .hero-inner {
    padding: 4.4rem 0;
  }

  .quick-strip,
  .class-grid,
  .benefit-grid,
  .subject-grid,
  .contact-band {
    grid-template-columns: 1fr 1fr;
  }

  .quick-item + .quick-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .quick-item:first-child {
    grid-column: 1 / -1;
  }

  .contact-band {
    gap: 2.2rem;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 24px, var(--container));
    min-height: 66px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .nav-menu {
    top: 66px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(8, 40, 45, 0.96) 0%, rgba(8, 58, 62, 0.92) 62%, rgba(8, 58, 62, 0.72) 100%),
      url("assets/bright-minds-hero.png") 68% center / cover no-repeat;
  }

  .hero-inner {
    width: min(100% - 24px, var(--container));
    padding: 3.5rem 0;
  }

  .hero-actions,
  .contact-links {
    align-items: stretch;
  }

  .hero-actions .btn,
  .contact-links .btn {
    flex: 1 1 100%;
  }

  .hero-badges span {
    width: 100%;
  }

  .quick-strip {
    width: min(100% - 24px, var(--container));
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .quick-item {
    min-height: 86px;
  }

  .section {
    width: min(100% - 24px, var(--container));
    padding: 4rem 0;
  }

  .section-muted {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .class-grid,
  .benefit-grid,
  .subject-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .class-card,
  .benefit-card {
    min-height: 0;
  }

  .subject-grid span {
    min-height: 58px;
  }

  .contact-band {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
