/* ==========================================================
   Noisy Equations Tutoring: stylesheet
   Colours are defined once below; change them here to
   re-theme the whole site.
   ========================================================== */

:root {
  --black: #111114;
  --charcoal: #24242a;
  --grey-800: #3a3a42;
  --grey-600: #5f5f69;
  --grey-300: #d4d4d9;
  --grey-100: #f1f1f3;
  --white: #ffffff;

  --purple: #6d3fc0; /* main highlight colour */
  --purple-dark: #52289e;
  --purple-light: #ece4fa;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 17, 20, 0.08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--purple);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}
.small {
  font-size: 0.9rem;
}
.muted {
  color: var(--grey-600);
}
.accent {
  color: var(--purple);
  font-style: italic;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 0.6rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--grey-800);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--purple);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-300);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
}
.brand em {
  color: var(--purple);
  font-style: normal;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a:not(.btn) {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a:not(.btn):hover {
  color: var(--purple);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero banner ---------- */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.8) 60%,
      rgba(255, 255, 255, 0.55) 100%
    ),
    url("images/blackboard.jpg") center / cover no-repeat,
    var(--grey-300);
  border-bottom: 4px solid var(--purple);
}
.hero-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}

.hero-logo {
  background: var(--white);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 20px 45px rgba(17, 17, 20, 0.18);
  transform: rotate(-2deg);
}
.hero-logo img {
  border-radius: 12px;
}

/* Banner text: darker shades so it stands out against the blackboard */
.hero .eyebrow {
  color: var(--purple-dark);
}
.hero h1 {
  color: var(--black);
}
.hero-text .lead {
  max-width: 560px;
  color: var(--black);
  font-weight: 500;
}

/* Contact details in the banner */
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.8rem;
}
.hero-contact-item {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  background: var(--black);
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
  min-width: 0;
}
.hero-contact-item:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}
.hero-contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.hero-contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  word-break: break-word;
}

/* ---------- Strips under the banner ---------- */
.strip {
  padding: 22px 0;
}

/* Strip 1: levels and subjects */
.strip-levels {
  background: var(--black);
  color: var(--white);
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
}
.strip-row .dot {
  color: var(--purple-light);
}
.strip-subjects {
  margin-left: 10px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--purple);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* Strip 2: qualifications */
.strip-quals {
  background: var(--grey-100);
  border-bottom: 1px solid var(--grey-300);
  padding: 28px 0;
}
.strip-quals-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.strip-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--purple-dark);
}
.quals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.quals li {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 10px;
}
.quals strong {
  color: var(--black);
  font-size: 0.98rem;
}
.quals span {
  color: var(--grey-600);
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}
.section-alt {
  background: var(--grey-100);
}
.section-dark {
  background: var(--charcoal);
  color: var(--grey-300);
}
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}
.section-dark .eyebrow {
  color: #b79cf0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
}
.prose p {
  margin: 0 0 1.1em;
}

/* Subject cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}
.card p {
  margin: 0;
  color: var(--grey-800);
}
.card-featured {
  border-top: 4px solid var(--purple);
}
.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-dark);
  background: var(--purple-light);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.feature p {
  margin: 0;
  color: var(--grey-600);
  font-size: 0.97rem;
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--purple);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps li {
  background: var(--grey-800);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.steps p {
  margin: 0;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* FAQ */
details {
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  padding: 0 22px;
  margin-top: 14px;
  background: var(--white);
}
details:first-of-type {
  margin-top: 36px;
}
summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--black);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--purple);
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  margin: 0 0 18px;
  color: var(--grey-800);
}

/* Contact */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 20px;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.contact-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
}
.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-600);
  font-weight: 600;
}
.contact-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  word-break: break-word;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--grey-300);
  padding: 28px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--white);
  text-decoration: none;
}
.site-footer a:hover {
  color: #b79cf0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    grid-template-columns: 260px 1fr;
    gap: 36px;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-300);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a:not(.btn) {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--grey-100);
  }
  .nav-links .btn {
    margin-top: 14px;
  }

  .hero {
    padding: 48px 0 60px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-logo {
    max-width: 230px;
    margin: 0 auto;
  }
  .hero-text .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-contact {
    justify-content: center;
  }

  .strip-row {
    font-size: 1.15rem;
  }
  .strip-subjects {
    margin-left: 0;
  }
  .strip-quals-inner {
    flex-direction: column;
    gap: 16px;
  }
  .quals {
    flex-direction: column;
    width: 100%;
  }
  .quals li {
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }
  .two-col,
  .cards,
  .steps,
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
  }
  .brand span {
    font-size: 1rem;
  }
}
