/* Shared "fun, tutor-y" design system
   Palette + reusable components used across the site (index, tuition,
   oxbridge, contact). Mirrors the styling approach introduced on
   about.html/about.css, same fonts, same palette, same playful motifs. */

:root {
  --hjh-ink: #073b4c;
  --hjh-teal: #0f6b7c;
  --hjh-blue: #118ab2;
  --hjh-green: #06d6a0;
  --hjh-yellow: #ffd166;
  --hjh-pink: #ef476f;

  --hjh-cream: #fdf6ee;
  --hjh-mint: #eef8f6;
}

main h1,
main h2 {
  color: var(--hjh-ink);
}

/* ---------- layout helpers ---------- */

.section-pad {
  padding: 5.5rem 0;
}

.tint-cream { background: var(--hjh-cream); }
.tint-mint  { background: var(--hjh-mint); }
.tint-white { background: #ffffff; }
.tint-sky   { background: #eaf4f9; }

/* ---------- headings ---------- */

.section-eyebrow {
  display: inline-block;
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: var(--hjh-yellow);
  margin-bottom: 14px;
}

.section-eyebrow.c-blue   { background: var(--hjh-blue); }
.section-eyebrow.c-green  { background: var(--hjh-green); }
.section-eyebrow.c-pink   { background: var(--hjh-pink); }

.chalk-heading {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

/* ---------- page hero (non-homepage pages) ---------- */

.page-hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(6, 214, 160, 0.14), transparent 60%),
    radial-gradient(45% 50% at 6% 90%, rgba(255, 209, 102, 0.18), transparent 60%),
    #ffffff;
}

.page-hero h1 {
  font-family: 'HJHFont', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.page-hero .lead {
  color: var(--hjh-teal);
}

/* ---------- buttons ---------- */

.btn-pill {
  display: inline-block;
  background: var(--hjh-yellow);
  border: none;
  color: var(--hjh-ink) !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 2.25rem;
  box-shadow: 0 10px 24px rgba(255, 209, 102, 0.35);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-pill:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.btn-pill-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--hjh-ink);
  color: var(--hjh-ink) !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.75rem;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.btn-pill-outline:hover {
  background: var(--hjh-ink);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ---------- photo frame ---------- */

.photo-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 10px;
  background: #fff;
  border-radius: 26px;
  transform: rotate(-3deg);
  box-shadow: 0 22px 45px rgba(7, 59, 76, 0.18);
  border: 3px solid var(--frame-accent, var(--hjh-yellow));
  transition: transform 0.35s ease;
}

.photo-frame:hover { transform: rotate(0deg); }

.photo-frame img {
  display: block;
  max-width: 100%;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.photo-frame.tilt-r { transform: rotate(3deg); }
.photo-frame.tilt-r:hover { transform: rotate(0deg); }

.photo-frame.accent-green { --frame-accent: var(--hjh-green); }
.photo-frame.accent-blue  { --frame-accent: var(--hjh-blue); }
.photo-frame.accent-pink  { --frame-accent: var(--hjh-pink); }

/* ---------- image placeholder ---------- */

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  height: 100%;
  border-radius: 22px;
  border: 3px dashed rgba(7, 59, 76, 0.28);
  background:
    repeating-linear-gradient(135deg, rgba(7, 59, 76, 0.035) 0 12px, transparent 12px 24px),
    #ffffff;
  color: var(--hjh-teal);
  text-align: center;
  padding: 2rem;
}

.img-placeholder svg {
  width: 38px;
  height: 38px;
  opacity: 0.55;
}

.img-placeholder span {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.05rem;
}

/* ---------- badge card (icon + text card) ---------- */

.badge-card {
  height: 100%;
  border: none;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 59, 76, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.badge-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 20px 34px rgba(7, 59, 76, 0.14);
}

.badge-card.tilt-r:hover {
  transform: translateY(-6px) rotate(1deg);
}

.badge-card .card-title {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.3rem;
  color: var(--hjh-ink);
}

.icon-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px auto 0;
  background: rgba(17, 138, 178, 0.14);
}

.icon-circle img {
  width: 40px !important;
  margin: 0 !important;
}

.icon-circle.c-blue   { background: rgba(17, 138, 178, 0.14); }
.icon-circle.c-green  { background: rgba(6, 214, 160, 0.16); }
.icon-circle.c-yellow { background: rgba(255, 209, 102, 0.28); }
.icon-circle.c-pink   { background: rgba(239, 71, 111, 0.14); }

/* Letter badge, used where no icon asset exists */

.letter-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px auto 0;
  font-family: 'HJHFont', sans-serif;
  font-size: 2rem;
  color: #fff;
}

.letter-badge.c-blue   { background: var(--hjh-blue); }
.letter-badge.c-green  { background: var(--hjh-green); }
.letter-badge.c-pink   { background: var(--hjh-pink); }
.letter-badge.c-yellow { background: var(--hjh-yellow); color: var(--hjh-ink); }

.icon-circle.sm {
  width: 56px;
  height: 56px;
  margin: 0;
  flex-shrink: 0;
}

.icon-circle.sm img {
  width: 26px !important;
}

/* ---------- spotlight panel + supporting list (asymmetric, replaces
   an even 3-tile grid with one large callout + a simple text list) ---------- */

.spotlight-panel {
  background: linear-gradient(160deg, #ffffff 55%, var(--hjh-cream) 100%);
  border: 3px solid var(--hjh-yellow);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 16px 34px rgba(7, 59, 76, 0.1);
}

.spotlight-panel .icon-circle {
  margin: 0 0 20px;
}

.spotlight-panel h5 {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.5rem;
  color: var(--hjh-ink);
}

.spec-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.spec-item h5 {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.2rem;
  color: var(--hjh-ink);
  margin-bottom: 4px;
}

.spec-item p {
  margin: 0;
}

@media (max-width: 992px) {
  .spec-list {
    margin-top: 2rem;
  }
}

/* ---------- section subtitle ---------- */

.section-subtitle {
  color: var(--hjh-teal);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ---------- credential grid (outlined, evenly-sized cards, replaces a
   plain 3-tile grid) ---------- */

.credential-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .credential-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.credential-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 28px;
  padding: 2.25rem 1.85rem;
  background: #fff;
  border: 2px solid var(--block-accent, var(--hjh-blue));
  box-shadow: 0 12px 26px rgba(7, 59, 76, 0.08);
}

.credential-block.c-blue  { --block-accent: var(--hjh-blue); }
.credential-block.c-pink  { --block-accent: #d6436a; }
.credential-block.c-green { --block-accent: #059669; }

.credential-block .icon-circle {
  margin: 0 0 20px;
}

.credential-block h5 {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.35rem;
  color: var(--hjh-ink);
}

.credential-block p {
  color: var(--hjh-teal);
  margin-bottom: 0;
}

/* ---------- chip list ---------- */

.chip-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-list li {
  background: #fff;
  border: 2px solid rgba(7, 59, 76, 0.12);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 500;
  color: var(--hjh-ink);
  box-shadow: 0 6px 14px rgba(7, 59, 76, 0.06);
}

.chip-list li.c-blue   { border-color: rgba(17, 138, 178, 0.35); }
.chip-list li.c-green  { border-color: rgba(6, 214, 160, 0.4); }
.chip-list li.c-yellow { border-color: rgba(255, 209, 102, 0.55); }
.chip-list li.c-pink   { border-color: rgba(239, 71, 111, 0.35); }

/* ---------- CTA panel ---------- */

.cta-panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-radius: 36px;
  background: var(--hjh-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 90% 0%, rgba(6, 214, 160, 0.25), transparent 60%),
    radial-gradient(40% 60% at 5% 100%, rgba(255, 209, 102, 0.2), transparent 60%);
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  font-family: 'HJHFontSubtitle', sans-serif;
  color: #fff;
}

.cta-panel .lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Featurettes already sit inside a padded section, cancel Bootstrap's
   carousel.css extra top margin so spacing doesn't double up. */
@media (min-width: 62em) {
  .section-pad .featurette-heading {
    margin-top: 0;
  }
}

/* ---------- decorative chemistry strip ---------- */

.chem-strip {
  height: 220px;
  background-image: url('../images/ChemEquipment.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .chem-strip { height: 130px; }
}

/* ---------- footer ---------- */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(7, 59, 76, 0.1);
}

/* ---------- responsive ---------- */

@media (max-width: 768px) {
  .page-hero { padding: 6.5rem 0 4rem; }

  .photo-frame,
  .photo-frame.tilt-r {
    transform: none;
  }
  .photo-frame:hover,
  .photo-frame.tilt-r:hover {
    transform: none;
  }

  .sticky-card,
  .sticky-card.tilt-l,
  .sticky-card.tilt-r {
    transform: none !important;
  }

  .cta-panel {
    border-radius: 24px;
    padding: 3rem 1.5rem;
  }
}

/* ---------- oxbridge campus banner ---------- */

.campus-banner {
  height: clamp(230px, 34vw, 500px);
  background-image: url('../images/oxbridge-banner.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  box-shadow: inset 0 14px 18px -14px rgba(7, 59, 76, 0.25);
}

/* ---------- wide photo (training camp) ---------- */

.wide-photo {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 3px solid var(--hjh-green);
  box-shadow: 0 22px 45px rgba(7, 59, 76, 0.18);
  background: #fff;
  padding: 10px;
}

.wide-photo img {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 18px;
}

/* ---------- student portal screenshots ---------- */

.portal-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.portal-shot .shot-window {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(7, 59, 76, 0.12);
  box-shadow: 0 24px 48px rgba(7, 59, 76, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-shot:hover .shot-window {
  transform: translateY(-6px);
  box-shadow: 0 30px 56px rgba(7, 59, 76, 0.22);
}

.shot-window .shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1ece2;
  border-bottom: 1px solid rgba(7, 59, 76, 0.08);
}

.shot-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef476f;
}
.shot-bar i:nth-child(2) { background: #ffd166; }
.shot-bar i:nth-child(3) { background: #06d6a0; }

.shot-window img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-caption {
  margin-top: 0.9rem;
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.15rem;
  color: var(--hjh-ink);
  text-align: center;
}

.portal-modal .modal-content { background: transparent; border: 0; }
.portal-modal img { width: 100%; height: auto; border-radius: 14px; }

/* ---------- subjects taught ----------
   Side by side on desktop: a light GCSE card (all four subjects + exam
   boards) and a dark ink Sixth Form card (same palette as .cta-panel) for
   the Chemistry specialism. Stacks on smaller screens. */

.tier-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin-bottom: 1.4rem;
}

.tier-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'HJHFont', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  background: var(--hjh-blue);
}

.tier-label h3 {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.75rem;
  color: var(--hjh-ink);
  margin: 0;
  line-height: 1.1;
}

.gcse-tier,
.specialism-tier {
  border-radius: 28px;
  padding: 2rem;
}

.gcse-tier {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7, 59, 76, 0.08);
}

/* GCSE subjects: compact 2x2 rows */

.subject-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .subject-tiles { grid-template-columns: 1fr 1fr; }
}

.subject-tile {
  --tile-accent: var(--hjh-blue);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: var(--hjh-cream);
  border-left: 5px solid var(--tile-accent);
  transition: transform 0.25s ease;
}

.subject-tile:hover { transform: translateY(-3px); }

.subject-tile.c-green  { --tile-accent: var(--hjh-green); }
.subject-tile.c-pink   { --tile-accent: var(--hjh-pink); }
.subject-tile.c-yellow { --tile-accent: var(--hjh-yellow); }

.subject-tile .letter-badge {
  width: 42px;
  height: 42px;
  margin: 0;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.subject-tile h4,
.course-card h4 {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.3rem;
  color: var(--hjh-ink);
  margin: 0;
  line-height: 1.15;
}

.subject-tile p,
.course-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hjh-teal);
}

.board-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(7, 59, 76, 0.2);
}

.board-strip-label {
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.1rem;
  color: var(--hjh-ink);
}

.subject-tiles { margin-bottom: 1.4rem; }
.board-strip .chip-list { margin: 0; gap: 6px; }
.board-strip .chip-list li { padding: 0.25rem 0.8rem; font-size: 0.85rem; }

/* Sixth Form specialism */

.specialism-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hjh-ink);
  color: #fff;
  border: 5px solid var(--hjh-yellow);
  box-shadow: 0 24px 48px rgba(7, 59, 76, 0.28);
}

/* Taller than the GCSE card on desktop so it reads as the step up. */
@media (min-width: 992px) {
  .specialism-tier {
    margin: -1rem 0;
    height: calc(100% + 2rem) !important;
    padding-top: 2.4rem;
  }
}

.specialism-tier::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(17, 138, 178, 0.35), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(6, 214, 160, 0.16), transparent 60%);
  pointer-events: none;
}

.specialism-tier > * { position: relative; }

.specialism-tier .tier-num { background: var(--hjh-yellow); color: var(--hjh-ink); }
.specialism-tier .tier-label h3 { color: #fff; }

.specialism-tag {
  display: inline-block;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  background: var(--hjh-yellow);
  color: var(--hjh-ink);
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.05rem;
  transform: rotate(-2deg);
}

.course-cards {
  display: grid;
  gap: 0.75rem;
}

.course-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  color: var(--hjh-ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.course-card:hover { transform: translateX(5px); }

.course-card p.course-levels {
  display: inline-block;
  margin-top: 4px;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.14);
  color: var(--hjh-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

/* A-Level is the preferred course, so it gets a yellow ring. */
.course-card.is-featured {
  box-shadow: 0 0 0 3px var(--hjh-yellow), 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* Dotted connector from the GCSE card to the Sixth Form card: horizontal
   across the gutter side by side, vertical above the card when stacked. */
.sixth-col { position: relative; }

.sixth-col::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3rem;
  height: 3rem;
  border-left: 3px dashed rgba(7, 59, 76, 0.28);
}

@media (min-width: 992px) {
  .sixth-col::before {
    left: -1.5rem;
    top: 50%;
    width: 3rem;
    height: 0;
    border-left: 0;
    border-top: 3px dashed rgba(7, 59, 76, 0.28);
  }
}

.course-card .icon-circle.sm { width: 44px; height: 44px; }
.course-card .icon-circle.sm img { width: 22px !important; }

.specialism-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.specialism-links a,
.specialism-links span {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
}

.specialism-links a:hover {
  background: var(--hjh-yellow);
  border-color: var(--hjh-yellow);
  color: var(--hjh-ink);
}

@media (max-width: 575px) {
  .gcse-tier,
  .specialism-tier { padding: 1.5rem 1.25rem; border-radius: 24px; }
}

/* ---------- privacy policy ---------- */

.privacy-updated { color: var(--hjh-teal); font-size: 0.95rem; }

.privacy-doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 2.75rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7, 59, 76, 0.08);
  line-height: 1.7;
}

.privacy-doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: 'HJHFontSubtitle', sans-serif;
  font-size: 1.75rem;
  color: var(--hjh-ink);
}

.privacy-doc h2:first-child { margin-top: 0; }

.privacy-doc h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hjh-ink);
}

.privacy-doc p, .privacy-doc li { color: #29505e; }
.privacy-doc a { color: var(--hjh-blue); }
.privacy-doc ul { padding-left: 1.3rem; }
.privacy-address { padding: 1rem 1.25rem; border-left: 4px solid var(--hjh-yellow); border-radius: 12px; background: var(--hjh-cream); }

@media (max-width: 576px) {
  .privacy-doc { padding: 1.75rem 1.25rem; border-radius: 22px; }
}
