/* Dagenham Tuition Centre — child-friendly theme */
:root{
  --sky:#EAF7FF; --blue:#3BA9E6; --sun:#FFC93C; --grass:#5DBE6E; --coral:#FF6B6B;
  --purple:#8E5BE0; --navy:#23305E; --white:#FFFFFF; --soft:#5A6488;
  --head:"Fredoka", "Arial Rounded MT Bold", Arial, sans-serif;
  --body:"Nunito", Verdana, Arial, sans-serif;
  color-scheme: light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}*{animation:none!important}}
body{margin:0;background:var(--white);color:var(--navy);font-family:var(--body);font-size:1.0625rem;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue)}
a:focus-visible,button:focus-visible{outline:3px solid var(--purple);outline-offset:3px;border-radius:8px}
h1,h2,h3{font-family:var(--head);line-height:1.15;margin:0 0 .5em;color:var(--navy)}
h1{font-size:clamp(2.1rem,5vw,3.6rem);font-weight:700}
h2{font-size:clamp(1.6rem,3.2vw,2.4rem);font-weight:600}
h3{font-size:1.35rem;font-weight:600}
p{margin:0 0 1em;max-width:66ch}
.wrap{width:min(1140px,100% - 2.5rem);margin-inline:auto}
.skip{position:absolute;left:-999px}
.skip:focus{left:1rem;top:1rem;background:var(--sun);padding:.5rem 1rem;z-index:99}
.mascot{width:100%;height:auto;overflow:visible}

/* Top strip */
.callbar{background:var(--navy);color:#fff;text-align:center;font-family:var(--head);font-weight:600;padding:.45rem 1rem;letter-spacing:.02em}
.callbar a{color:var(--sun);text-decoration:none}

/* Header */
.site-head{position:sticky;top:0;z-index:30;background:#fff;box-shadow:0 3px 0 var(--sun)}
.head-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem 0}
.brand{display:flex;align-items:center;gap:.8rem;text-decoration:none}
.brand img{width:56px;height:auto;border-radius:8px}
.brand-name{font-family:var(--head);font-weight:700;font-size:1.25rem;color:var(--navy);line-height:1.1}
.brand-name small{display:block;font-family:var(--body);font-style:italic;font-weight:600;font-size:.85rem;color:var(--coral)}
.nav>ul{list-style:none;margin:0;padding:0;display:flex;gap:.2rem;align-items:center}
.nav a{display:block;padding:.5rem .8rem;border-radius:999px;text-decoration:none;font-family:var(--head);font-weight:600;color:var(--navy)}
.nav a:hover{background:var(--sky)}
.nav a[aria-current="page"]{background:var(--blue);color:#fff}
.has-sub{position:relative}
.sub{list-style:none;margin:0;padding:.5rem;position:absolute;top:100%;left:0;min-width:230px;background:#fff;border:3px solid var(--sun);border-radius:16px;display:none}
.has-sub:hover .sub,.has-sub:focus-within .sub{display:block}
.sub a{border-radius:10px;font-size:.95rem}
.menu-btn{display:none;font:600 1rem var(--head);background:var(--sun);color:var(--navy);border:0;border-radius:999px;padding:.5rem 1.1rem;cursor:pointer}
@media (max-width:960px){
  .menu-btn{display:block}
  .head-row{flex-wrap:wrap}
  .nav{display:none;width:100%}
  .nav.open{display:block}
  .nav>ul{flex-direction:column;align-items:stretch;padding-bottom:.8rem}
  .sub{position:static;display:block;border:0;padding:0 0 0 1rem;min-width:0}
}

/* Hero */
.hero{background:var(--sky);position:relative;overflow:hidden;padding:clamp(2.5rem,6vw,4.5rem) 0 clamp(5rem,9vw,7rem)}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:60px;background:#fff;
  -webkit-mask:radial-gradient(40px 30px at 40px 0,transparent 98%,#000) 0 0/80px 60px repeat-x;
          mask:radial-gradient(40px 30px at 40px 0,transparent 98%,#000) 0 0/80px 60px repeat-x}
.hero-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:2rem;align-items:center}
.hero .small{font-family:var(--head);font-weight:600;color:var(--purple);font-size:1.2rem;margin-bottom:.4rem}
.hero .lead{font-size:1.2rem;color:var(--soft)}
.hero-art{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;max-width:440px;justify-self:center}
.hero-art .mascot:nth-child(1){animation:bob 3.2s ease-in-out infinite}
.hero-art .mascot:nth-child(2){animation:bob 3.2s ease-in-out .8s infinite}
.hero-art .mascot:nth-child(3){animation:bob 3.2s ease-in-out 1.6s infinite}
.hero-art .mascot:nth-child(4){animation:bob 3.2s ease-in-out 2.4s infinite}
@keyframes bob{50%{transform:translateY(-10px)}}
@media (max-width:820px){.hero-grid{grid-template-columns:1fr}.hero-art{max-width:300px}}

/* Buttons */
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.4rem}
.btn{display:inline-block;padding:.85rem 1.5rem;border-radius:999px;font-family:var(--head);font-weight:600;font-size:1.05rem;text-decoration:none;box-shadow:0 4px 0 rgba(35,48,94,.25)}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(35,48,94,.25)}
.btn-sun{background:var(--sun);color:var(--navy)}
.btn-white{background:#fff;color:var(--navy)}
.btn-blue{background:var(--blue);color:#fff}

/* Sections */
section.block{padding:clamp(3rem,7vw,5rem) 0}
section.tint{background:var(--sky)}
.center{text-align:center}
.center p{margin-inline:auto}

/* Big tiles (centre / online) */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.tile{display:grid;grid-template-columns:120px 1fr;gap:1rem;align-items:center;padding:1.6rem;border-radius:28px;text-decoration:none;color:var(--navy)}
.tile h2{font-size:1.6rem;margin-bottom:.3rem}
.tile p{margin:0}
.tile .plus{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;font:700 1.5rem var(--head);margin-top:.7rem}
.tile-sun{background:var(--sun)}
.tile-grass{background:var(--grass);color:#fff}
.tile-grass h2{color:#fff}
.tile-grass .plus{color:var(--grass)}
@media (max-width:760px){.tiles{grid-template-columns:1fr}.tile{grid-template-columns:90px 1fr}}

/* Year cards */
.years{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;margin-top:2rem}
.year{border-radius:24px;padding:1.2rem 1rem 1.4rem;text-align:center;color:var(--navy);text-decoration:none;display:flex;flex-direction:column;align-items:center}
.year .mascot{max-width:110px;margin-bottom:.5rem}
.year .pill{background:#fff;border-radius:999px;padding:.15rem .7rem;font-weight:700;font-size:.85rem;margin-bottom:.5rem}
.year p{font-size:.95rem;margin:0}
.c1{background:#FFE3E3}.c2{background:#FFF1C9}.c3{background:#E3F4FF}.c4{background:#E0F5E4}.c5{background:#EEE5FC}
.year:hover{transform:rotate(-1.5deg)}
@media (max-width:980px){.years{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.years{grid-template-columns:1fr}}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2rem}
.gallery img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:20px;border:5px solid #fff;box-shadow:0 6px 0 var(--sun)}
.gallery img:nth-child(even){box-shadow:0 6px 0 var(--blue)}
@media (max-width:700px){.gallery{grid-template-columns:repeat(2,1fr)}}

/* Quote */
.quote{background:var(--purple);color:#fff;padding:clamp(3rem,7vw,4.5rem) 0}
.quote .wrap{display:grid;grid-template-columns:140px 1fr;gap:2rem;align-items:center}
.quote blockquote{margin:0;font-family:var(--head);font-size:clamp(1.4rem,3vw,2.1rem);font-weight:500;line-height:1.3}
.quote cite{display:block;margin-top:.8rem;font-style:normal;color:var(--sun);font-family:var(--body);font-weight:700}
@media (max-width:600px){.quote .wrap{grid-template-columns:1fr}.quote .mascot{max-width:110px}}

/* Inner pages */
.page-hero{background:var(--sky);padding:clamp(2.5rem,6vw,4rem) 0}
.page-hero .wrap{display:grid;grid-template-columns:1fr 160px;gap:1.5rem;align-items:center}
.page-hero p{font-size:1.15rem;color:var(--soft)}
@media (max-width:600px){.page-hero .wrap{grid-template-columns:1fr}.page-hero .mascot{max-width:120px}}
.two{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
@media (max-width:760px){.two{grid-template-columns:1fr}}
.card{background:#fff;border:3px solid var(--sky);border-radius:24px;padding:1.6rem}
.card.sun{border-color:var(--sun)}
.ticks{list-style:none;padding:0;margin:0 0 1em}
.ticks li{padding-left:2rem;position:relative;margin-bottom:.5rem}
.ticks li::before{content:"★";position:absolute;left:0;color:var(--sun);font-size:1.2rem;line-height:1.3}

.stage{display:grid;grid-template-columns:130px 1fr;gap:1.5rem;align-items:start;padding:2rem;border-radius:28px;margin-bottom:1.5rem;scroll-margin-top:110px}
.stage .pill{display:inline-block;background:#fff;border-radius:999px;padding:.15rem .8rem;font-weight:700;margin-bottom:.6rem}
@media (max-width:600px){.stage{grid-template-columns:1fr}.stage .mascot{max-width:100px}}
.jump{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.jump a{padding:.4rem 1rem;border-radius:999px;background:#fff;text-decoration:none;font-family:var(--head);font-weight:600;color:var(--navy)}

.team{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem}
.person{background:#fff;border:3px solid var(--sky);border-radius:24px;padding:1.4rem;text-align:center}
.person .mascot{max-width:100px;margin:0 auto .6rem}
.person .role{color:var(--coral);font-weight:700}

.contact-list{list-style:none;padding:0;margin:0}
.contact-list li{background:var(--sky);border-radius:20px;padding:1rem 1.2rem;margin-bottom:.8rem}
.contact-list strong{display:block;font-family:var(--head);font-weight:600}
.big-link{font-size:1.3rem;font-weight:800;word-break:break-word}

.fill-in{background:var(--sun);color:var(--navy);padding:0 .3em;border-radius:4px}

/* Footer */
.site-foot{background:var(--navy);color:#fff;padding:3rem 0 2rem}
.site-foot a{color:#fff}
.site-foot h2{color:var(--sun);font-size:1.2rem}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem}
@media (max-width:760px){.foot-grid{grid-template-columns:1fr}}
.site-foot ul{list-style:none;padding:0;margin:0}
.site-foot li{margin-bottom:.35rem}
.copy{margin-top:2rem;opacity:.8;font-size:.9rem}

/* Real photos at the top of the homepage */
.hero-photos{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;max-width:520px;justify-self:end;width:100%}
.hero-photos img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:22px;border:5px solid #fff;box-shadow:0 6px 0 var(--sun)}
.hero-photos img:first-child{grid-column:1/-1;aspect-ratio:16/10;box-shadow:0 6px 0 var(--blue)}
.hero-photos img:nth-child(3){box-shadow:0 6px 0 var(--coral)}
@media (max-width:820px){.hero-photos{justify-self:stretch;max-width:none}}
.photos-top{padding-top:1rem}
.photos-top .gallery{margin-top:1.2rem}

/* ---- Added for full-content version ---- */
.why{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1.5rem}
.why div{background:#fff;border-radius:22px;padding:1.2rem;text-align:center;border:3px solid var(--sun)}
.why .mascot{max-width:64px;margin:0 auto .4rem}
.why strong{display:block;font-family:var(--head);font-size:1.2rem;font-weight:600}
@media (max-width:860px){.why{grid-template-columns:1fr 1fr}}
.news{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.5rem;text-align:left}
.news div{background:#fff;border-radius:22px;padding:1.3rem;border-top:8px solid var(--coral)}
.news div:nth-child(2){border-top-color:var(--blue)}
.news div:nth-child(3){border-top-color:var(--grass)}
.news .tag{font-family:var(--head);font-weight:600;color:var(--purple)}
.news .date{font-size:.9rem;color:var(--soft);margin:0}
@media (max-width:760px){.news{grid-template-columns:1fr}}
.photo{width:100%;border-radius:24px;border:5px solid #fff;box-shadow:0 6px 0 var(--blue);object-fit:cover}
.includes{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem;margin-top:1.5rem}
.includes div{background:var(--sky);border-radius:22px;padding:1.3rem}
.includes h3{font-size:1.15rem;margin-bottom:.3rem}
.includes p{margin:0}
.schools{columns:2;gap:2rem;padding-left:1.2rem;margin:.5rem 0 1em}
@media (max-width:600px){.schools{columns:1}}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1rem;padding:0;list-style:none}
.chips li{background:#fff;border:2px solid var(--blue);border-radius:999px;padding:.25rem .9rem;font-weight:700}
.quote.q-blue{background:var(--blue)}
.quote.q-grass{background:var(--grass)}
.stage h3{margin-top:1rem}
.tiles-one{grid-template-columns:1fr}
