/* GEMS home page, blue palette. Loaded only by index.php.
   To match the logo exactly, change these five colours. */
body.page-home{
  --deep:#0A2A66;      /* dark blue: headings, footer, enquiry section */
  --amethyst:#1565C0;  /* main blue: buttons, links */
  --citrine:#5BC8F5;   /* light blue: accents */
  --citrine-2:#8AD8F8; /* light blue hover */
  --violet-soft:#E6F2FD; /* pale blue backgrounds */
  --paper:#F4F9FE; --line:#D9E6F4; --ink:#0F1B33; --muted:#4F6080;
}

.page-home .enquire-grid{align-items:center}

.page-home .notice-bar{background:var(--deep);color:#fff}
.page-home .btn-gold{color:#06224F}
.page-home .mobile-bar .mb-main{color:#06224F}
.page-home .site-footer{background:#071A3F}
.btn-blue{background:var(--amethyst);color:#fff}
.btn-blue:hover{background:var(--deep)}

/* shared bits */
.hm-sec{padding:96px 0}
.hm-eyebrow{font-weight:700;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--amethyst);margin-bottom:12px}
.hm-head{max-width:680px;margin-bottom:44px}
.hm-head-row{max-width:none;display:flex;justify-content:space-between;align-items:end;gap:24px}
.hm-sec h2{font-size:var(--step-3);max-width:20ch;color:var(--deep)}
.hm-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--violet-soft);color:var(--amethyst);flex:none}
.hm-ic .ic{width:24px;height:24px}

/* hero */
.hm-hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#E1F0FC 0%,#F4F9FE 100%);padding:72px 0 120px}
.hm-hero::before{content:"";position:absolute;right:-140px;top:-180px;width:620px;height:620px;border-radius:50%;background:radial-gradient(circle,#B5E0F9 0%,rgba(181,224,249,0) 70%)}
.hm-hero-grid{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}
.hm-badge{display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);color:var(--deep);font-weight:600;font-size:15px;padding:7px 14px;border-radius:999px;margin-bottom:26px}
.hm-badge span{width:8px;height:8px;border-radius:50%;background:var(--citrine);box-shadow:0 0 0 4px rgba(91,200,245,.3)}
.hm-hero h1{font-size:clamp(2.5rem,5vw,4.3rem);font-weight:800;letter-spacing:-.03em;line-height:1.04;color:var(--deep);max-width:15ch}
.hm-lead{font-size:19px;color:var(--muted);max-width:50ch;margin-top:22px}
.hm-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.hm-points{list-style:none;padding:0;margin:30px 0 0;display:grid;gap:10px}
.hm-points li{display:flex;align-items:center;gap:10px;font-weight:500;color:var(--ink)}
.hm-points .ic{width:22px;height:22px;padding:4px;border-radius:50%;background:var(--amethyst);color:#fff;stroke-width:3}
.hm-visual{position:relative}
.hm-photo-main{border-radius:28px;overflow:hidden;aspect-ratio:5/6;background:linear-gradient(160deg,#5BC8F5,#1565C0);box-shadow:0 40px 70px -35px rgba(10,42,102,.55)}
.hm-photo-main img{width:100%;height:100%;object-fit:cover}
.hm-photo-empty{display:grid;place-items:center;color:rgba(255,255,255,.85)}
.hm-photo-empty .ic{width:96px;height:96px}
.hm-photo-sub{position:absolute;left:-36px;bottom:-34px;width:46%;aspect-ratio:4/3;border-radius:20px;overflow:hidden;border:6px solid #fff;box-shadow:0 20px 40px -20px rgba(10,42,102,.5)}
.hm-photo-sub img{width:100%;height:100%;object-fit:cover}
.hm-chip{position:absolute;right:-14px;top:36px;display:flex;align-items:center;gap:12px;background:var(--deep);color:#fff;padding:12px 18px 12px 12px;border-radius:14px;box-shadow:0 16px 30px -14px rgba(10,42,102,.7)}
.hm-chip .ic{width:34px;height:34px;padding:7px;border-radius:50%;background:var(--citrine);color:var(--deep);stroke-width:3}
.hm-chip span{display:flex;flex-direction:column;font-weight:700;line-height:1.25}
.hm-chip small{font-weight:400;font-size:13px;color:rgba(255,255,255,.75)}

/* info boxes */
.hm-facts{position:relative;z-index:2;margin-top:-56px}
.hm-facts ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 50px -30px rgba(10,42,102,.4);overflow:hidden}
.hm-facts li{display:flex;gap:14px;align-items:center;padding:24px 22px}
.hm-facts li+li{border-left:1px solid var(--line)}
.hm-facts strong{display:block;color:var(--deep);line-height:1.25}
.hm-facts small{display:block;color:var(--muted);font-size:14px;margin-top:2px;line-height:1.4}

/* about */
.hm-about{background:#fff}
.hm-about-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:72px;align-items:center}
.hm-about-img{position:relative}
.hm-about-img::before{content:"";position:absolute;left:-18px;top:-18px;right:18px;bottom:18px;border-radius:24px;background:var(--violet-soft)}
.hm-about-img img{position:relative;width:100%;border-radius:22px;border:1px solid var(--line);background:#fff}
.hm-about-text h2{margin-bottom:18px}
.hm-mission{font-size:19px;color:var(--deep);font-weight:500}
.hm-about-text p{margin-bottom:16px;color:var(--muted);max-width:60ch}
.hm-about-text .hm-mission{color:var(--deep)}
.hm-about-text .btn{margin-top:8px}

/* how we teach */
.hm-teach{background:var(--paper)}
.hm-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.hm-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px}
.hm-card h3{font-size:19px;margin:18px 0 8px;color:var(--deep)}
.hm-card p{color:var(--muted);font-size:16px}

/* programmes */
.hm-courses{background:var(--violet-soft)}
.hm-course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.hm-course{display:flex;flex-direction:column;align-items:flex-start;gap:14px;background:#fff;border-radius:18px;padding:28px;border-top:5px solid var(--amethyst)}
.hm-course:nth-child(2){border-top-color:var(--citrine)}
.hm-course:nth-child(3){border-top-color:var(--deep)}
.hm-for{font-weight:700;font-size:14px;color:var(--amethyst)}
.hm-course h3{font-size:1.5rem;color:var(--deep)}
.hm-course>p:not(.hm-for){color:var(--muted)}
.hm-course .chips{margin:0}
.hm-course .btn{margin-top:auto}

/* visit */
.hm-visit{background:#fff}
.hm-visit-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:64px;align-items:center}
.hm-visit-lead{color:var(--muted);margin:16px 0 24px;max-width:46ch}
.hm-contact{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:14px}
.hm-contact li{display:flex;gap:14px;align-items:flex-start}
.hm-contact .ic{width:22px;height:22px;color:var(--amethyst);margin-top:3px}
.hm-contact a{font-weight:600}
.hm-map{width:100%;height:420px;border:0;border-radius:20px;box-shadow:0 24px 50px -30px rgba(10,42,102,.4)}

/* tablet and phone */
@media (max-width:1020px){
  .hm-hero-grid,.hm-about-grid,.hm-visit-grid{grid-template-columns:1fr;gap:48px}
  .hm-visual{max-width:520px}
  .hm-facts ul{grid-template-columns:1fr 1fr}
  .hm-facts li:nth-child(3){border-left:0}
  .hm-facts li:nth-child(n+3){border-top:1px solid var(--line)}
  .hm-cards{grid-template-columns:1fr 1fr}
  .hm-course-grid{grid-template-columns:1fr;max-width:640px}
}
@media (max-width:720px){
  .hm-hero{padding:40px 0 96px}
  .hm-lead{font-size:17px}
  .hm-actions .btn{flex:1 1 100%}
  .hm-photo-sub{left:-8px;bottom:-24px}
  .hm-chip{right:8px;top:16px}
  .hm-sec{padding:64px 0}
  .hm-head-row{flex-direction:column;align-items:start;gap:8px}
  .hm-facts{margin-top:-48px}
  .hm-facts ul{grid-template-columns:1fr}
  .hm-facts li+li{border-left:0;border-top:1px solid var(--line)}
  .hm-cards{grid-template-columns:1fr}
  .hm-map{height:300px}
}