:root {
  --ink: #303b50;
  --muted: #647084;
  --cream: #fdfbf7;
  --green: #263d55;
  --gold: #f0ad4e;
  --red: #b73438;
  --font: "Noto Sans Sinhala", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; color: var(--ink); background: white; font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 10px 24px; border: 1px solid var(--green); border-radius: 30px; color: white; background: var(--green); font-size: .88rem; font-weight: 700; transition: background .2s, color .2s, transform .2s; cursor: pointer; }
.button:hover { color: var(--green); background: white; transform: translateY(-2px); }

.header { position: absolute; z-index: 5; top: 0; right: 0; left: 0; transition: background .2s, box-shadow .2s; }
.header.scrolled { position: fixed; border-bottom: 1px solid rgba(48,59,80,.1); background: rgba(253,251,247,.96); box-shadow: 0 4px 18px rgba(20,30,40,.06); backdrop-filter: blur(12px); }
.nav { display: flex; height: 82px; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { display: block; width: 52px; height: 52px; flex: 0 0 auto; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { font-size: .83rem; font-weight: 800; line-height: 1.55; }
.brand-text small { display: block; color: #806048; font: 700 .59rem/1.5 "Plus Jakarta Sans", sans-serif; letter-spacing: .06em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink); font-size: .88rem; font-weight: 600; }
.nav-links a:hover { color: var(--red); }
.nav-end { display: flex; align-items: center; gap: 13px; }
.languages { display: flex; gap: 3px; padding: 3px; border: 1px solid rgba(48,59,80,.2); border-radius: 22px; background: rgba(255,255,255,.82); }
.languages button { min-width: 39px; padding: 6px 8px; border: 0; border-radius: 18px; color: var(--ink); background: transparent; font-size: .67rem; font-weight: 800; cursor: pointer; }
.languages button[aria-pressed="true"] { color: white; background: var(--green); }
.nav-book { min-height: 43px; padding-inline: 21px; color: var(--green); background: transparent; }
.nav-book:hover { color: white; background: var(--green); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid rgba(48,59,80,.2); border-radius: 50%; color: var(--green); background: white; cursor: pointer; }
.mobile-nav { display: none; }

.hero { position: relative; display: grid; min-height: min(770px, 100svh); min-height: min(770px, 100vh); min-height: min(770px, 100svh); place-items: center; overflow: hidden; background: #e8e7dd; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; animation: slow-zoom 12s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,249,250,.27), rgba(255,255,255,.30) 45%, rgba(19,31,42,.13)), linear-gradient(90deg, rgba(255,255,255,.12), transparent 50%, rgba(255,255,255,.12)); }
.hero-content { position: relative; z-index: 2; width: min(760px, calc(100% - 38px)); margin-top: 46px; text-align: center; }
.welcome { display: inline-block; margin: 0 0 18px; padding: 7px 15px; border: 1px solid rgba(48,59,80,.2); border-radius: 24px; color: var(--green); background: rgba(255,255,255,.52); box-shadow: 0 2px 6px rgba(24,36,48,.12); font: 700 .82rem/1.4 "Plus Jakarta Sans", var(--font); letter-spacing: .16em; }
.hero-subtitle { margin: 0 0 17px; font-size: clamp(.9rem, 2vw, 1.13rem); font-weight: 500; text-shadow: 0 1px 5px rgba(255,255,255,.7); }
.hero h1 { margin: 0; color: #303b50; font-size: clamp(2.8rem, 7.3vw, 5.5rem); font-weight: 800; line-height: 1.2; text-shadow: 0 2px 8px rgba(255,255,255,.65); }
.hero h1 span { display: block; margin-top: 5px; font-size: .58em; font-weight: 700; }
.hero-cta { min-height: 50px; margin-top: 24px; padding: 0 29px; }
.slide-controls { position: absolute; z-index: 3; right: 0; bottom: 24px; left: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.slide-arrow { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: var(--green); background: rgba(255,255,255,.7); font-size: 1.15rem; cursor: pointer; }
.slide-dots { display: flex; align-items: center; gap: 7px; }
.slide-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(38,61,85,.42); cursor: pointer; }
.slide-dot[aria-current="true"] { width: 23px; background: var(--green); }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }

.about { position: relative; overflow: hidden; padding: 84px 0 110px; background: #f0f1f7; }
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr .8fr; align-items: center; gap: 55px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font: 700 .78rem "Plus Jakarta Sans", var(--font); letter-spacing: .08em; }
.about h2, .section-heading h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.3; }
.about-copy p:not(.eyebrow) { margin: 0 0 15px; color: #536076; font-size: .92rem; line-height: 2; }
.seal { width: min(340px, 76vw); justify-self: center; }
.seal img { width: 100%; height: auto; }
.waves { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 230px; }

.sessions { padding: 70px 0 78px; background: white; }
.section-heading { margin-bottom: 26px; text-align: center; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.8; }
.quarter-tabs { display: grid; max-width: 720px; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 25px auto 26px; padding: 5px; border: 1px solid #e6e9ef; border-radius: 9px; background: #f2f4f7; }
.quarter-tab { min-height: 54px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; font-size: .8rem; font-weight: 700; line-height: 1.45; cursor: pointer; }
.quarter-tab[aria-selected="true"] { border-color: var(--gold); background: #ffe4a8; box-shadow: 0 2px 6px rgba(48,59,80,.09); }
.quarter-tab.upcoming:not([aria-selected="true"]) { background: #f0d7e3; }
.quarter-tab small { display: block; color: #854557; font-size: .63rem; font-style: italic; }
.schedule { max-width: 760px; margin: 0 auto; }
.schedule-list { display: grid; gap: 12px; }
.schedule-date { display: flex; min-height: 62px; align-items: center; justify-content: center; gap: 11px; padding: 14px 18px; border: 1px solid #edf0f4; border-radius: 6px; color: #59667b; background: #f2f4f7; font-size: .88rem; line-height: 1.75; text-align: center; }
.schedule-date::before { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); content: ""; }
.schedule-empty { margin: 0; padding: 28px 20px; border: 1px solid #edf0f4; border-radius: 6px; color: #59667b; background: #f2f4f7; font-size: .88rem; line-height: 1.8; text-align: center; }
.schedule-contact { display: flex; justify-content: center; margin-top: 21px; }
.schedule-contact .button { min-height: 44px; padding-inline: 22px; font-size: .81rem; }

.join { position: relative; overflow: hidden; padding: 74px 0 82px; background: linear-gradient(160deg, #fffdfa 12%, #fff5ec 78%, #fffdfa); text-align: center; }
.join-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.join-content { position: relative; z-index: 1; max-width: 660px; }
.join .section-heading { margin-bottom: 25px; }
.join .section-heading > p:last-child { max-width: 590px; margin-inline: auto; }
.join .button { border-color: var(--gold); background: var(--gold); }
.join .button:hover { color: #805317; background: white; }
.application-actions { display: grid; justify-items: center; gap: 12px; }
.join .application-actions .button { min-width: 190px; }
.application-online { color: var(--green); font-size: .75rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.application-online:hover { color: var(--red); }

.contact { position: relative; overflow: hidden; color: #f7f5ef; background: linear-gradient(120deg, #172b40, #263d55 65%, #304963); }
.contact::before { position: absolute; top: -150px; right: -80px; width: 390px; height: 390px; border: 1px solid rgba(240,173,78,.15); border-radius: 50%; box-shadow: 0 0 0 35px rgba(240,173,78,.035), 0 0 0 75px rgba(240,173,78,.025); content: ""; pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.45fr 1.3fr 1fr 1fr; gap: 36px; padding: 52px 0 48px; }
.footer-brand { align-self: start; }
.footer-brand-lockup { display: flex; align-items: center; gap: 13px; }
.footer-brand-copy { color: white; font-size: .83rem; font-weight: 800; line-height: 1.7; }
.footer-brand-copy span { display: block; color: #e4bd7e; font: 700 .58rem/1.6 "Plus Jakarta Sans", sans-serif; letter-spacing: .055em; }
.footer-logo { display: block; width: 68px; height: 68px; flex: 0 0 auto; padding: 5px; border-radius: 50%;}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #f7f5ef; transition: color .2s, background .2s, border-color .2s; }
.footer-socials a:hover { border-color: #f2c77f; color: #172b40; background: #f2c77f; }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-description { max-width: 290px; margin: 17px 0 16px; color: #d3dbe3; font-size: .74rem; line-height: 1.9; }
.contact-item { align-self: start; padding: 5px 0 5px 16px; border-left: 2px solid rgba(240,173,78,.65); color: #d3dbe3; font-size: .75rem; line-height: 1.9; overflow-wrap: anywhere; }
.contact-item strong { display: block; margin-bottom: 10px; color: #f2c77f; font-size: .76rem; font-weight: 700; }
.contact-item a { display: block; width: fit-content; }
.contact-item a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.bottom-bar { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.1); background: #142638; }
.bottom-inner { display: flex; justify-content: center; align-items: center; gap: 18px; color: #c4ced7; font-size: .7rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #f2c77f; }
.copyright { color: #c4ced7; text-align: center; }
.footer-credit { display: block; margin-top: 4px; }
.whatsapp { position: fixed; z-index: 6; right: 22px; bottom: 20px; display: grid; width: 56px; height: 56px; place-items: center; border: 3px solid white; border-radius: 50%; color: white; background: #20c86b; box-shadow: 0 7px 20px rgba(20,75,47,.23); transition: transform .2s; }
.whatsapp:hover { transform: translateY(-3px); }
.whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

:focus-visible { outline: 3px solid #d59a3d; outline-offset: 3px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 34px); }
  .nav { height: 72px; gap: 10px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-text { font-size: .72rem; }
  .brand-text small { font-size: .5rem; }
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .nav-book { display: none; }
  .menu-button { display: grid; place-items: center; }
  .mobile-nav { position: absolute; top: 72px; right: 0; left: 0; display: none; padding: 8px 22px 18px; background: rgba(253,251,247,.98); box-shadow: 0 10px 20px rgba(20,30,40,.08); }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(48,59,80,.1); font-size: .85rem; font-weight: 600; }
  .hero { min-height: 700px; min-height: 91svh; }
  .hero-content { margin-top: 35px; }
  .about { padding: 65px 0 90px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .seal { width: 210px; }
  .waves { height: 160px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; padding: 40px 0; }
  .bottom-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 460px) {
  .brand { gap: 7px; }
  .brand-logo { width: 39px; height: 39px; }
  .brand-text { font-size: .66rem; }
  .brand-text small { font-size: .46rem; }
  .nav-end { gap: 6px; }
  .languages button { min-width: 34px; padding-inline: 6px; }
  .menu-button { width: 38px; height: 38px; }
  .hero { min-height: 650px; min-height: 89svh; }
  .welcome { padding: 6px 10px; font-size: .64rem; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .hero-subtitle { font-size: .84rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-description { max-width: 100%; }
  .contact-item { font-size: .72rem; }
  .footer-links { gap: 17px; }
  .copyright { line-height: 1.7; }
  .whatsapp { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .quarter-tabs { grid-template-columns: repeat(2, 1fr); }
  .quarter-tab { min-height: 50px; }
  .schedule-date { min-height: 56px; padding-inline: 12px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
