* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #344b67;
  background: #fffdf8;
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(1160px, calc(100% - 44px));
  margin: auto;
}
.topline {
  background: #244f78;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.top-inner {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 24px #334b6710;
}
.nav-wrap {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img {
  width: 190px;
  height: 120px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #355777;
}
.main-nav a {
  padding: 10px 0;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: #d89f42;
}
.main-nav a.active:after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e3b456;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
  color: #315b80;
}
.hero {
  min-height: 660px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f5eddf;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 40%;
  background: url("assets/images/children-learning.jpg") center 38% / cover
    no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #fbf5e9 0%,
    #fbf5e9 38%,
    rgba(251, 245, 233, 0.88) 49%,
    rgba(251, 245, 233, 0.06) 76%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 90px 0;
  max-width: 1160px;
}
.hero-content h1 {
  font:
    700 clamp(42px, 5.2vw, 68px)/1.12 "Playfair Display",
    serif;
  max-width: 610px;
  margin: 18px 0;
  color: #315b80;
}
.hero-content h1 em {
  color: #d9a447;
  font-style: normal;
}
.hero-content p {
  font-size: 21px;
  font-weight: 600;
  color: #476887;
  margin: 0 0 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #d49c3d;
}
.primary-btn {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  background: #315b80;
  color: white;
  padding: 14px 22px;
  border-radius: 3px;
  font-weight: 700;
  box-shadow: 0 10px 24px #315b8026;
}
.primary-btn:hover {
  background: #234765;
}
.hero-mark {
  position: absolute;
  right: 5%;
  bottom: 24px;
  width: 125px;
  height: 110px;
  z-index: 2;
}
.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.section-pad {
  padding: 100px 0;
}
.intro {
  background: #f7f0e4;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.intro h2,
.story h2,
.section-heading h2,
.kics-grid h2 {
  font:
    700 clamp(34px, 4vw, 48px)/1.16 "Playfair Display",
    serif;
  color: #315b80;
  margin: 12px 0;
}
.intro-copy p {
  font-size: 22px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.intro-copy .strong {
  font-size: 16px;
  font-weight: 700;
  color: #315b80;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-image {
  height: 470px;
  border-radius: 48% 48% 8px 8px;
  overflow: hidden;
  background: #eee;
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.story-copy p {
  color: #617187;
}
.mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.mini-points span {
  padding: 9px 13px;
  border: 1px solid #ead9b9;
  border-radius: 30px;
  color: #466583;
  font-size: 13px;
  font-weight: 700;
}
.services {
  background: #f7f0e4;
}
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-heading p {
  color: #65768a;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: #fffdf8;
  padding: 30px 27px;
  min-height: 220px;
  border: 1px solid #eee4d4;
  transition: 0.25s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px #3b567015;
}
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7e9c9;
  color: #bd852e;
  font-weight: 700;
  font-size: 13px;
}
.service-card h3 {
  font:
    700 19px "Playfair Display",
    serif;
  color: #315b80;
  margin: 19px 0 8px;
}
.service-card p {
  margin: 0;
  color: #65768a;
  font-size: 14px;
}
.image-band {
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eadfc9;
}
.image-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}
.image-band:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(249, 242, 228, 0.97),
    rgba(249, 242, 228, 0.86) 43%,
    rgba(249, 242, 228, 0.08)
  );
}
.image-band > div {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 44px));
  margin: auto;
}
.image-band h2 {
  font:
    700 clamp(34px, 4vw, 50px)/1.2 "Playfair Display",
    serif;
  color: #315b80;
  margin: 12px 0;
}
.about-kics {
  background: #fffdf8;
}
.kics-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 950px;
}
.kics-grid img {
  width: 170px;
  height: 170px;
  object-fit: contain;
}
.kics-grid p {
  color: #64768a;
  margin: 0;
}
.contact {
  position: relative;
  overflow: hidden;
  background: #f5ead6;
  padding: 95px 0;
}
.contact-photo {
  position: absolute;
  inset: 0 0 0 48%;
  background: url("assets/images/family-walk.jpg") center 30% / cover no-repeat;
}
.contact:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f7eddd 0%,
    #f7eddd 43%,
    rgba(247, 237, 221, 0.82) 56%,
    rgba(247, 237, 221, 0.08) 100%
  );
}
.contact-content {
  position: relative;
  z-index: 1;
}
.contact h2 {
  font:
    700 clamp(42px, 5vw, 62px)/1.1 "Playfair Display",
    serif;
  color: #d5a044;
  max-width: 530px;
  margin: 15px 0;
}
.contact-content > p {
  font-size: 20px;
  font-weight: 700;
  color: #315b80;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 30px;
  color: #315b80;
  font-weight: 600;
}
.contact-details a:hover,
.social-links a:hover {
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  color: #315b80;
  font-weight: 700;
  font-size: 14px;
}
.footer {
  background: #244f78;
  color: #fff;
}
.footer-inner {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer img {
  width: 95px;
  height: 65px;
  object-fit: contain;
  background: #fffdf8;
  border-radius: 4px;
}
.footer p {
  font-size: 13px;
  margin: 0;
}
.footer a {
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 800px) {
  .top-inner {
    font-size: 10px;
  }
  .nav-wrap {
    height: 76px;
  }
  .brand img {
    width: 125px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 18px 24px 24px;
    background: #fffdf8;
    box-shadow: 0 14px 20px #203c5618;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .main-nav.open {
    display: flex;
  }
  .hero {
    min-height: 620px;
  }
  .hero-photo {
    inset: 0;
    background-position: 60% center;
    opacity: 0.55;
  }
  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(251, 245, 233, 0.98),
      rgba(251, 245, 233, 0.84) 62%,
      rgba(251, 245, 233, 0.3)
    );
  }
  .hero-content h1 {
    max-width: 560px;
  }
  .hero-mark {
    width: 90px;
    height: 80px;
    right: 20px;
  }
  .intro-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-pad {
    padding: 72px 0;
  }
  .story-image {
    height: 390px;
    order: 2;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-photo {
    inset: 0;
    opacity: 0.22;
  }
  .contact:after {
    background: rgba(247, 237, 221, 0.86);
  }
  .kics-grid {
    grid-template-columns: 120px 1fr;
    gap: 25px;
  }
  .kics-grid img {
    width: 115px;
    height: 115px;
  }
}
@media (max-width: 520px) {
  .wrap {
    width: min(100% - 32px, 1160px);
  }
  .top-inner {
    justify-content: center;
  }
  .top-inner span:last-child {
    display: none;
  }
  .hero {
    min-height: 590px;
  }
  .hero-content {
    padding: 75px 0;
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .hero-mark {
    display: none;
  }
  .intro h2,
  .story h2,
  .section-heading h2,
  .kics-grid h2 {
    font-size: 34px;
  }
  .intro-copy p {
    font-size: 19px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 0;
  }
  .image-band {
    min-height: 330px;
  }
  .image-band > div {
    width: calc(100% - 32px);
  }
  .kics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .kics-grid img {
    width: 120px;
    height: 120px;
  }
  .contact {
    padding: 75px 0;
  }
  .contact h2 {
    font-size: 43px;
  }
  .social-links {
    flex-direction: column;
    gap: 8px;
  }
  .footer-inner {
    padding: 20px 0;
    flex-direction: column;
    text-align: center;
  }
  .footer img {
    width: 90px;
    height: 60px;
  }
}
