/* ===== Design tokens ===== */
:root {
  --green: #006A4E;
  --red: #C8102E;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --off: #F9F9F9;
  --header-h: 84px;
  --ease: 0.5s ease-out;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: 'Inter', 'Hind Siliguri', sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.bn { font-family: 'Hind Siliguri', sans-serif; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); max-width: 16ch; }
h3 { font-size: 1.15rem; font-weight: 600; }
p + p { margin-top: 1em; }

/* ===== Buttons (sharp corners) ===== */
.btn { display: inline-block; padding: 14px 28px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; border-radius: 0; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--white); color: var(--red); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.site-header.scrolled { border-bottom-color: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: var(--header-h); transition: height 0.3s; }
.site-header.scrolled .header-inner { height: 64px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 32px; height: 32px; background: var(--red); border-radius: 50%; flex: none; }
.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.logo-text small { font-weight: 500; font-size: 0.68rem; letter-spacing: 0.02em; color: var(--green); }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 0.95rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color 0.25s; }
.nav a:hover { border-bottom-color: var(--green); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.phone { font-weight: 800; }
.header-cta .btn { padding: 11px 22px; }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform 0.25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.hero-left { background: var(--green); color: var(--white); display: flex; align-items: center; padding: 80px 0; }
.hero-copy { width: min(560px, 100% - 48px); margin-left: auto; margin-right: clamp(24px, 5vw, 72px); }
.hero h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.5; }
.hero-sub { margin: 28px 0 36px; font-size: 1.15rem; font-weight: 500; border-left: 4px solid var(--red); padding-left: 16px; }
.hero-right { background: var(--off); overflow: hidden; }
.hero-right svg { width: 100%; height: 100%; display: block; }

/* ===== Sections ===== */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.bg-white { background: var(--white); }
.bg-off { background: var(--off); }
.grid-2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.grid-2 p { max-width: 60ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.section h2 + .grid-3, .section h2 + .grid-4 { margin-top: 56px; }

/* Why choose us */
.feature { border-top: 3px solid var(--green); padding-top: 24px; }
.feature svg { width: 48px; height: 48px; color: var(--green); margin-bottom: 20px; }
.feature p { margin-top: 8px; font-size: 0.95rem; }

/* Courses */
.card { display: flex; flex-direction: column; gap: 12px; padding: 36px 28px; background: var(--white); border: 1px solid var(--ink); border-radius: 0; transition: transform 0.3s ease, border-color 0.3s ease, opacity var(--ease); }
.card.visible:hover { transform: scale(1.02); border-color: var(--green); }
.card .link { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--green); }
.card .link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Success stories */
.story img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
.story blockquote { margin: 20px 0 12px; font-size: 1.05rem; font-weight: 500; }
.story figcaption { font-size: 0.9rem; color: var(--green); }
.story figcaption strong { display: block; color: var(--ink); }

/* ===== Footer ===== */
.footer { background: var(--green); color: var(--white); padding: 80px 0 0; }
.footer .grid-3 { grid-template-columns: 1.4fr 1fr 1.2fr; }
.footer h3 { margin-bottom: 16px; }
.footer p { margin-top: 16px; max-width: 38ch; }
.footer li + li { margin-top: 8px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.logo-light .logo-text small { color: var(--white); }
.copyright { margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--white); font-size: 0.85rem; }

/* ===== Scroll reveal (toggled by script.js) ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--ease), transform var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--ink); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-bottom: 1px solid var(--off); }
  .header-cta { margin-left: auto; }
}
@media (max-width: 820px) {
  .hero, .grid-2, .grid-3, .footer .grid-3 { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-copy { margin: 0 auto; }
  .hero-right { aspect-ratio: 4 / 3; }
  .phone { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .logo-text small { display: none; }
}

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; margin-top: 56px; }
.g-item { padding: 0; border: 0; border-radius: 0; background: var(--ink); cursor: zoom-in; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.g-item:hover img { opacity: 0.85; }
.g-large { grid-column: span 2; grid-row: span 2; }
.lightbox { margin: auto; padding: 0; border: 0; background: var(--ink); color: var(--white); max-width: min(960px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(26, 26, 26, 0.85); }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.lightbox p { padding: 12px 20px; font-size: 0.9rem; }
.lb-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: var(--red); color: var(--white); border: 0; border-radius: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ===== Testimonials ===== */
.quote { padding: 8px 0 8px 24px; border-left: 4px solid var(--green); }
.quote blockquote { font-size: 1.1rem; font-weight: 500; line-height: 1.6; }
.quote figcaption { margin-top: 20px; font-size: 0.9rem; color: var(--green); }
.quote figcaption strong { display: block; color: var(--ink); }

/* ===== FAQ ===== */
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 40px 24px 0; max-width: 56ch; }

/* ===== Contact form ===== */
.contact-note { margin-top: 24px; max-width: 36ch; }
.form { display: flex; flex-direction: column; gap: 6px; padding: 40px; background: var(--off); border: 1px solid var(--ink); }
.form label { font-size: 0.9rem; font-weight: 600; margin-top: 12px; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form .invalid { border-color: var(--red); }
.form .btn { margin-top: 24px; align-self: flex-start; }
.form-status { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .form { padding: 24px; }
}
