:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6472;
  --line: #e4e8f0;
  --green: #7caa3f;
  --blue: #163458;
  --shadow-soft: 0 12px 35px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbff 0%, #f5f7fb 35%, #eef2f9 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #000;
  color: #fff;
  z-index: 999;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.top-bar {
  background: #1b2230;
  color: #fff;
  font-size: 0.88rem;
}

.top-bar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar a {
  text-decoration: none;
  opacity: 0.95;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  transition: background-color 0.28s ease, box-shadow 0.28s ease;
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-logo {
  display: block;
  height: 53px;
  width: auto;
}

.brand-secondary {
  display: inline-flex;
  align-items: center;
  margin-left: .25rem;
  padding-left: .25rem;
  border-left: 0;
  text-decoration: none;
}

.brand-mark {
  color: var(--blue);
  font-size: 1.5rem;
}

.brand-text {
  color: var(--green);
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s;
}

.site-header.scrolled .site-nav a {
  color: #1e2734;
}

.site-nav a:hover {
  color: var(--green);
}

.site-nav a.active {
  color: var(--green);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  background: transparent;
  padding: 7px;
  cursor: pointer;
}

.site-header.scrolled .menu-toggle {
  border-color: #d6dde8;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
}

.site-header.scrolled .menu-toggle span {
  background: #1e2734;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.hero {
  position: relative;
  margin-top: -92px;
  padding-top: 170px;
  padding-bottom: 84px;
  background:
    linear-gradient(108deg, rgba(22, 52, 88, 0.84), rgba(10, 28, 50, 0.7)),
    radial-gradient(circle at 85% 28%, rgba(124, 170, 63, 0.6), transparent 42%),
    linear-gradient(130deg, #1f4675, #183453 55%, #152b44);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 88px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero h1,
.hero h2 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.15;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  margin-bottom: 0.85rem;
}

.hero p {
  font-size: 1.03rem;
  max-width: 72ch;
  margin: 0;
  opacity: 0.95;
}

.split-section {
  padding: 72px 0;
}

.split-section.alt {
  background: #f0f4fb;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.split-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.split-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.7rem;
  color: #13263d;
}

.split-content p {
  margin-top: 0;
  margin-bottom: 1.15rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  padding: 0.72rem 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #6f9a38;
}

.split-media {
  border-radius: 18px;
  min-height: 340px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px
  );
  background-size: 44px 44px;
}

.split-media::after {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.media-school {
  background: linear-gradient(145deg, #5787c2, #2a4d7b 60%, #1f395e);
}

.media-school::after {
  content: "Actividades extraescolares";
}

.media-basket {
  background: linear-gradient(145deg, #dd8a3f, #9d5224 60%, #78380d);
}

.media-basket::after {
  content: "Club de baloncesto";
}

.media-campus {
  background: linear-gradient(145deg, #8aac42, #5f7f28 60%, #435a1d);
}

.media-campus::after {
  content: "Campus de tecnificacion";
}

.contact {
  padding: 72px 0;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.contact-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.contact-box p {
  margin-top: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-estado {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.form-estado--ok {
  display: block;
  background: #eaf4d5;
  color: #3a6010;
  border: 1px solid #b7d97a;
}

.form-estado--error {
  display: block;
  background: #fdecea;
  color: #8b1a1a;
  border: 1px solid #f5b2ae;
}

.gform-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.gform-wrapper iframe {
  display: block;
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.contact-form label:last-of-type {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-form label:last-of-type input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact-form button {
  width: fit-content;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(124, 170, 63, 0.32);
  border-color: transparent;
}

.site-footer {
  margin-top: 14px;
}

.footer-logo {
  border-top: 1px solid #d8dfeb;
  border-bottom: 1px solid #d8dfeb;
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #193356;
}

.footer-logo img {
  display: block;
  height: 53px;
  width: auto;
}

.legal-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  padding: 1rem 0 2.1rem;
  font-size: 0.88rem;
  color: #4f5968;
}

.legal-strip a {
  color: #314862;
  text-decoration: none;
}

.legal-strip a:hover {
  text-decoration: underline;
}

.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.66rem 0.9rem 0.66rem 0.82rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  position: relative;
  margin-top: -92px;
  padding-top: 165px;
  padding-bottom: 74px;
  color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background:
    linear-gradient(110deg, rgba(22, 52, 88, 0.84), rgba(10, 28, 50, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(124, 170, 63, 0.46), transparent 42%),
    linear-gradient(130deg, #17385d, #132b45 55%, #0f2237);
}

.page-hero--with-image {
  background-image:
    linear-gradient(110deg, rgba(22, 52, 88, 0.78), rgba(10, 28, 50, 0.62)),
    radial-gradient(circle at 20% 20%, rgba(124, 170, 63, 0.38), transparent 42%),
    var(--page-hero-bg-image);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  margin-bottom: 0.65rem;
}

.page-hero p {
  max-width: 70ch;
  margin: 0;
  opacity: 0.95;
}

.section {
  padding: 68px 0;
}

.section-soft {
  background: #f0f4fb;
}

.center-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 1.3rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.image-panel,
.map-placeholder {
  border-radius: 18px;
  min-height: 320px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #d8e0ec;
}

.image-panel {
  background:
    radial-gradient(circle at 26% 26%, rgba(255, 255, 255, 0.34), transparent 45%),
    linear-gradient(145deg, #7ca7d9, #2f5e93 60%, #24436b);
}

.map-placeholder {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, #d3deef, #bccce3 65%, #a5b9d8),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.35) 8px,
      rgba(255, 255, 255, 0.15) 8px,
      rgba(255, 255, 255, 0.15) 16px
    );
}



.text-card,
.info-card,
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-icon {
  display: block;
  width: min(100%, 84px);
  height: auto;
  margin: 0 auto 0.9rem;
  color: var(--blue);
  flex-shrink: 0;
}

.text-card p,
.info-card li,
.service-card p {
  color: var(--muted);
}

.text-card ul,
.info-card ul,
.school-list {
  margin: 0.65rem 0 0;
  padding-left: 1.05rem;
}

.benefits-grid,
.services-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.benefits-grid {
  grid-template-columns: 1fr 1fr;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  border-radius: 16px;
  min-height: 165px;
  border: 1px solid #d8e0ec;
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
}

/* ── Jornada block ─────────────────────────────────────────── */
.jornada-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
  gap: 1rem;
}

.jornada-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.jornada-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.jornada-team {
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue, #1d3557);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jornada-badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.jornada-badge--home {
  background: #dcfce7;
  color: #166534;
}

.jornada-badge--away {
  background: #fee2e2;
  color: #991b1b;
}

.jornada-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .9rem;
  text-align: center;
  padding: .5rem 0;
  border-top: 1px solid var(--border, #e2e8f0);
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.jornada-versus span {
  font-weight: 600;
  flex: 1;
}

.jornada-versus span:first-child { text-align: right; }
.jornada-versus span:last-child  { text-align: left; }

.jornada-versus em {
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted, #64748b);
  flex-shrink: 0;
}

.jornada-meta {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.jornada-meta div {
  display: flex;
  gap: .4rem;
  font-size: .85rem;
}

.jornada-meta dt {
  color: var(--muted, #64748b);
  white-space: nowrap;
}

.jornada-meta dd {
  margin: 0;
  font-weight: 500;
}

.jornada-category-group {
  margin-bottom: 2rem;
}

.jornada-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue, #1d3557);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .4rem 1rem;
  margin: 0 0 1rem;
  border-left: 4px solid var(--accent, #e63946);
  background: var(--surface, #f8fafc);
  border-radius: 0 6px 6px 0;
}

/* ── Colegios block ────────────────────────────────────────── */
.colegios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
  justify-content: center;
  gap: 1.25rem;
}

.colegio-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1.25rem 1rem 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
  transition: transform .18s, box-shadow .18s;
}

.colegio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(29,53,87,.12);
}

.colegio-card-logo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5fb;
  flex-shrink: 0;
}

.colegio-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.colegio-card-logo--empty {
  font-size: 2.5rem;
  border: 1px dashed var(--border, #e2e8f0);
}

.colegio-card-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue, #1d3557);
  margin: 0;
  line-height: 1.3;
}

.colegio-card-btn {
  margin: .25rem 0 0;
}

/* ── Horario semanal ───────────────────────────────────────── */
.horario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.horario-equipo-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.horario-equipo-img {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
}
.horario-equipo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.horario-equipo-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
}
.horario-equipo-nombre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue, #1d3557);
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent, #e63946);
}
.horario-sesiones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
}
.horario-sesion-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  padding: .55rem .65rem;
}
.horario-sesion-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
}
.horario-dia-cell   { font-weight: 600; color: var(--blue, #1d3557); white-space: nowrap; }
.horario-hora-cell  { white-space: nowrap; color: var(--accent, #e63946); font-weight: 500; }
.horario-lugar-cell { color: var(--muted); font-size: .85rem; white-space: nowrap; }


  background: linear-gradient(130deg, #8cb3df, #4d77a8);
}

.gallery-item:nth-child(2) {
  background: linear-gradient(130deg, #d7a367, #a4662e);
}

.gallery-item:nth-child(3) {
  background: linear-gradient(130deg, #95b86a, #6e8e45);
}

.gallery-item:nth-child(4) {
  background: linear-gradient(130deg, #a28ec2, #6f5a94);
}

.schools-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schools-form .consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.schools-form .consent input {
  margin-top: 0.2rem;
}

.schools-form label:last-of-type {
  grid-column: auto;
}

.basket-image-panel {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.26), transparent 44%),
    linear-gradient(145deg, #e39b57, #a45d2a 60%, #794115);
}

.basket-image-panel--warm {
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.22), transparent 46%),
    linear-gradient(145deg, #d48045, #7a3a13 60%, #5b280d);
}

.cta-band {
  border-radius: 18px;
  border: 1px solid #d8e0ec;
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(110deg, rgba(23, 56, 93, 0.9), rgba(18, 44, 72, 0.9)),
    radial-gradient(circle at 88% 20%, rgba(124, 170, 63, 0.5), transparent 48%);
  color: #fff;
  text-align: center;
  padding: 2.2rem 1.4rem;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.cta-band p {
  margin: 0.7rem auto 1rem;
  max-width: 68ch;
  opacity: 0.95;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.team-chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.team-chip-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.center-copy {
  text-align: center;
  color: var(--muted);
  margin-top: -0.25rem;
  margin-bottom: 1.2rem;
}

.staff-grid,
.news-grid {
  display: grid;
  gap: 0.95rem;
}

.staff-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.news-card h3 {
  margin-top: 0;
}

.news-card p {
  margin: 0.5rem 0 0.8rem;
  color: var(--muted);
}

.news-card a {
  text-decoration: none;
  color: #20446f;
  font-weight: 600;
}

.news-card a:hover {
  color: var(--green);
}

.basket-gallery-item:nth-child(1) {
  background: linear-gradient(130deg, #d89a5e, #9f5d27);
}

.basket-gallery-item:nth-child(2) {
  background: linear-gradient(130deg, #4f7fb7, #2f4f78);
}

.basket-gallery-item:nth-child(3) {
  background: linear-gradient(130deg, #7faa5e, #507334);
}

.basket-gallery-item:nth-child(4) {
  background: linear-gradient(130deg, #a186bf, #6c4f8f);
}

/* ── Legal pages ─────────────────────────────────────────── */
.page-hero--legal {
  background: linear-gradient(135deg, var(--blue) 0%, #0d2240 100%);
}

.page-hero--legal.page-hero--with-image {
  background-image:
    linear-gradient(135deg, rgba(22, 52, 88, 0.82) 0%, rgba(13, 34, 64, 0.72) 100%),
    var(--page-hero-bg-image);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.8;
}

.legal-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--blue);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line);
}

.legal-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.legal-content ul {
  margin: 0.5rem 0 1.25rem 1.5rem;
  color: var(--muted);
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--green);
  word-break: break-all;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ── Block modal ─────────────────────────────── */
.block-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.block-modal-overlay.is-open {
  display: flex;
}
.block-modal-inner {
  background: #fff;
  border-radius: 12px;
  width: min(1200px, 96%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.block-modal-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: .5rem .75rem;
  border-bottom: 1px solid #e0e4ea;
  flex-shrink: 0;
}
.block-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 0 .25rem;
}
.block-modal-close:hover { color: #000; }
.block-modal-inner iframe {
  flex: 1;
  border: none;
  width: 100%;
  min-height: 480px;
}
.block-modal-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: auto;
}
.block-modal-img-wrap img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .split-grid {
    grid-template-columns: 1fr;
  }

  .split-grid.reverse {
    display: flex;
    flex-direction: column;
  }

  .split-media {
    min-height: 240px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .two-col,
  .benefits-grid,
  .gallery-grid,
  .schools-form,
  .teams-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-panel,
  .map-placeholder {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .top-bar {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand-logo {
    height: 45px;
  }

  .footer-logo img {
    height: 47px;
  }

  .site-nav {
    position: absolute;
    right: 4vw;
    top: calc(100% - 8px);
    width: min(92vw, 420px);
    padding: 0.9rem;
    border-radius: 14px;
    border: 1px solid #d8e0ec;
    box-shadow: var(--shadow-soft);
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-nav a,
  .site-header.scrolled .site-nav a {
    color: #1f2a38;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    margin-top: 0;
    padding-top: 96px;
  }

  .page-hero {
    margin-top: 0;
    padding-top: 96px;
  }

  .whatsapp-fab span {
    display: none;
  }

  .whatsapp-fab {
    width: 54px;
    height: 54px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
}
