/* =========================================================
   Icchetori Shishu Academy — icchetori.com
   ========================================================= */

:root {
  --green: #135e33;
  --green-2: #1b7a43;
  --green-dark: #0c3f22;
  --red: #c62828;
  --amber: #f0a817;
  --leaf: #4cb848;
  --cyan: #18aed6;
  --blue: #2e5eaa;
  --purple: #8e44ad;
  --sky: #e8f5fd;
  --cream: #fbfaf5;
  --ink: #1d2a22;
  --muted: #5b6b61;
  --line: #e3ebe5;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(19, 94, 51, .10);
  --font-body: "Hind Siliguri", system-ui, sans-serif;
  --font-head: "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--green-dark); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.rainbow-text {
  background: linear-gradient(90deg, var(--red) 0%, #e8590c 18%, var(--amber) 34%, var(--leaf) 52%, var(--cyan) 70%, var(--blue) 85%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(19, 94, 51, .3); }
.btn-primary:hover { background: var(--green-2); }
.btn-ghost { background: #fff; color: var(--green); border-color: var(--green); }
.btn-sm { padding: .35em 1.1em; font-size: 1rem; }
.btn-block { width: 100%; margin-top: .6rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--leaf), var(--cyan), var(--blue));
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-bn { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.brand-en { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }.nav a:not(.btn) {
  font-weight: 600; color: var(--ink); text-decoration: none;
  padding: .4em .8em; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:not(.btn):hover, .nav a.active { background: var(--sky); color: var(--green); }
.nav .btn { margin-left: 6px; }

.header-actions { display: flex; align-items: center; gap: 6px; order: 3; }
.lang-switch {
  display: inline-flex; align-items: center; padding: 3px; border-radius: 999px;
  background: var(--sky); border: 1.5px solid #bfe6f7; font-weight: 700; font-size: .9rem; line-height: 1;
}
.lang-switch > * { padding: .45em .8em; border-radius: 999px; text-decoration: none; }
.lang-switch .lang-current { background: var(--green); color: #fff; }
.lang-switch a { color: var(--green); transition: background .15s; }
.lang-switch a:hover { background: #fff; }

/* Bangla subtitles on the English page: no letter-spacing (it breaks Bangla conjuncts) */
.lang-en .brand-en, .lang-en .card .en { letter-spacing: 0; text-transform: none; }
.lang-en .brand-en { font-size: .85rem; }
.lang-en .card .en { font-size: .95rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--green); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #d9effc 0%, var(--sky) 55%, #f4fbff 100%);
  padding: 70px 0 150px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; margin-bottom: .2em; line-height: 1.15; }
.tagline { font-family: var(--font-head); font-size: 1.45rem; color: var(--green); font-weight: 700; margin-bottom: .6em; }
.lead { font-size: 1.1rem; color: #33443a; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }

.pill {
  display: inline-block; font-weight: 700; font-family: var(--font-head);
  padding: .35em 1.1em; border-radius: 999px; margin-bottom: 1rem;
}
.pill-cloud { background: #fff; color: #d6336c; box-shadow: 0 4px 14px rgba(24, 174, 214, .25); border: 2px solid #bfe6f7; }

.dots { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; color: #33443a; }
.dots li { display: flex; align-items: center; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: inline-block; }

.hero-art { position: relative; }
.hero-card {
  background: #fff; border-radius: 32px; padding: 34px 28px;
  box-shadow: 0 24px 60px rgba(46, 94, 170, .18);
  transform: rotate(-1.5deg);
}
.hero-badge {
  position: absolute; right: -10px; top: -22px;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--amber); color: #3b2800;
  display: grid; place-content: center; text-align: center; line-height: 1.1;
  font-family: var(--font-head); box-shadow: 0 10px 24px rgba(240, 168, 23, .45);
  transform: rotate(10deg);
}
.hero-badge strong { font-size: .95rem; }
.hero-badge span { font-size: 1.7rem; font-weight: 800; }

.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .85; z-index: 1; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 180px; height: 54px; top: 60px; left: -40px; animation: drift 38s linear infinite; }
.cloud.c1::before { width: 80px; height: 80px; top: -40px; left: 30px; }
.cloud.c1::after { width: 60px; height: 60px; top: -26px; left: 90px; }
.cloud.c2 { width: 140px; height: 44px; top: 40%; right: 6%; animation: drift 46s linear infinite reverse; }
.cloud.c2::before { width: 64px; height: 64px; top: -32px; left: 22px; }
.cloud.c2::after { width: 50px; height: 50px; top: -22px; left: 70px; }
.cloud.c3 { width: 120px; height: 38px; bottom: 140px; left: 38%; opacity: .6; animation: drift 52s linear infinite; }
.cloud.c3::before { width: 54px; height: 54px; top: -27px; left: 18px; }
.cloud.c3::after { width: 42px; height: 42px; top: -18px; left: 60px; }
@keyframes drift { from { transform: translateX(-30px); } 50% { transform: translateX(40px); } to { transform: translateX(-30px); } }

.flowers {
  position: absolute; left: 0; right: 0; bottom: 0; height: 106px; z-index: 2;
  background: url("../img/flowers.png") repeat-x bottom left / auto 106px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--cream); }
.section-green { background: radial-gradient(circle at 10% 0%, var(--green-2), var(--green) 45%, var(--green-dark)); color: #e9f5ee; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); }
.section-head.light h2 { color: #fff; }
.section-head.light p:last-child { color: #cfe7d8; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  color: var(--green-2); background: #e4f4ea; padding: .2em .9em; border-radius: 999px; margin-bottom: .8rem;
}
.section-green .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.hl { color: var(--red); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo > img:first-child { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-sticker { position: absolute; width: 140px; right: -24px; bottom: -40px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .15)); }
.stats { display: flex; gap: 14px; margin-top: 1.6rem; flex-wrap: wrap; }
.stats div { flex: 1 1 120px; background: var(--sky); border-radius: 16px; padding: 14px 16px; text-align: center; }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--blue); line-height: 1.2; }
.stats span { font-size: .92rem; color: var(--muted); font-weight: 600; }

/* Courses */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px 26px 22px;
  border: 1px solid var(--line); border-top: 6px solid var(--c);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem;
  background: color-mix(in srgb, var(--c) 14%, #fff); margin-bottom: 14px;
}
.card h3 { color: var(--c); margin-bottom: 0; font-size: 1.45rem; }
.card .en { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .6em; }
.card p:last-child { margin: 0; color: #3d4c43; }

/* Features */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features li { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--sky); }
.features li:nth-child(2n) { background: #fff6e0; }
.features li:nth-child(3n) { background: #eaf7e8; }
.features span { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; opacity: .35; }
.features h3 { margin-bottom: .2em; }
.features p { margin: 0; color: #3d4c43; }

/* Events */
.events { display: grid; gap: 28px; }
.event {
  display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px; padding: 24px;
}
.event-img img { border-radius: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); max-height: 360px; width: 100%; object-fit: cover; object-position: top; transition: transform .2s; }
.event-img:hover img { transform: scale(1.02); }
.event time { display: inline-block; background: var(--amber); color: #3b2800; font-weight: 700; border-radius: 999px; padding: .1em .9em; margin-bottom: .6rem; }
.event h3 { color: #fff; font-size: 1.5rem; }
.event ul { padding-left: 1.2em; margin: 0; }
.event li { margin: .25em 0; }
.event strong { color: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery a { border-radius: 16px; overflow: hidden; display: block; background: var(--line); }
.gallery a.wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.06); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 24px; }
.person { background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: #fff;
  background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, #fff);
}
.person .role { font-weight: 700; color: var(--green-2); margin-bottom: .3em; }
.person p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* Admission */
.admission { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px dashed #b9d7c4; }
.steps b {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 1.3rem;
}
.steps h3 { margin-bottom: .15em; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
.admission-card {
  position: sticky; top: 100px;
  background: linear-gradient(160deg, #fff 0%, var(--sky) 100%);
  border: 2px solid #bfe6f7; border-radius: 28px; padding: 30px;
  box-shadow: 0 18px 44px rgba(24, 174, 214, .18);
}
.groups { list-style: none; padding: 0; margin: 0 0 1rem; }
.groups li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #d8eef8; font-weight: 600; }
.groups span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--font-head); font-weight: 800; }
.muted { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; }
.ci { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.contact-list h3 { font-size: 1.05rem; margin: 0; }
.contact-list p { margin: 0; }
.contact-list a { text-decoration: none; font-weight: 600; }

.contact-form { background: #fff; padding: 30px; border-radius: 24px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400;
  padding: .65em .9em; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfdfc;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(76, 184, 72, .18); }
.contact-form .invalid { border-color: var(--red); }
.form-note { margin: .8rem 0 0; font-size: .92rem; color: var(--muted); min-height: 1.5em; }

.map-wrap { margin-top: 48px; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; border-radius: 24px; box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--green-dark); color: #cfe7d8; padding: 56px 0 24px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--leaf), var(--cyan), var(--blue));
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid img { width: 64px; background: #fff; border-radius: 16px; padding: 6px; margin-bottom: 10px; }
.footer-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0; }
.muted-light { color: #9fc4ae; font-size: .95rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; align-content: start; }
.site-footer a { color: #e9f5ee; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer p { margin: 0 0 .4em; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; font-size: .9rem; color: #8fb59e; text-align: center; }

/* Floating call */
.fab {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--leaf); color: #fff;
  place-items: center; font-size: 1.6rem; text-decoration: none; box-shadow: 0 10px 24px rgba(76, 184, 72, .45);
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 24, 15, .92); display: grid; place-items: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .7em 1em; }
  .nav .btn { margin: 8px 0 0; }
}

@media (max-width: 860px) {

  .hero { padding: 40px 0 130px; text-align: center; }
  .hero-grid, .about-grid, .admission, .contact-grid { grid-template-columns: 1fr; }
  .hero-cta, .dots { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-art { max-width: 440px; margin: 0 auto; }
  .hero-badge { width: 84px; height: 84px; right: 4px; top: -30px; }
  .hero-badge span { font-size: 1.35rem; }
  .about-sticker { width: 100px; right: -6px; }
  .event { grid-template-columns: 1fr; }
  .event-img img { max-height: 420px; }
  .admission-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid img { margin-inline: auto; }
  .footer-links { justify-items: center; }
  .fab { display: grid; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-en, .lang-en .brand-en { display: none; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-text { min-width: 0; }
  .brand-bn { font-size: 1rem; line-height: 1.15; max-width: 150px; }
  .lang-switch { font-size: .82rem; }
  .lang-switch > * { padding: .4em .65em; }
  .nav-toggle { padding: 8px 4px; }
  .cards, .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .team { grid-template-columns: 1fr; }
  .lightbox { padding: 20px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
