/* DScE public website. Self-contained: no framework required. */
:root {
    --ink: #14221f;
    --muted: #5a6a66;
    --paper: #fbfaf6;
    --sand: #f3efe5;
    --line: #e4dfd2;
    --green: #0d5c4f;
    --green-d: #083f36;
    --green-soft: #e3efea;
    --gold: #d29a2c;
    --gold-soft: #f7ead0;
    --white: #fff;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(20, 34, 31, .05), 0 8px 24px rgba(20, 34, 31, .07);
    --serif: "Young Serif", Georgia, serif;
    --sans: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; left: -9999px; }
.sr-only:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: .5rem 1rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-d); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #bf8a20; color: var(--ink); }
.btn-line { border-color: currentColor; color: var(--green); background: transparent; }
.btn-line:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--green-d); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 34, 31, .05); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.brand-sub { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav .link { padding: .5rem .9rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav .link:hover { background: var(--sand); }
.nav .link.active { color: var(--green); background: var(--green-soft); }
.nav-actions { margin-left: .75rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; padding: 10px; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem 1.25rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20, 34, 31, .08); display: none; }
    .nav.open { display: flex; }
    .nav .link { padding: .8rem 1rem; border-radius: 12px; }
    .nav-actions { margin: .5rem 0 0; }
    .nav-actions .btn { width: 100%; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 20%, var(--green-soft) 0, transparent 70%), radial-gradient(40% 50% at 0% 100%, var(--gold-soft) 0, transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-disc { position: absolute; inset: 6%; border-radius: 50%; background: var(--green); overflow: hidden; }
.hero-disc svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-badge { position: absolute; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1.1rem; display: flex; gap: .75rem; align-items: center; max-width: 250px; }
.hero-badge b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; line-height: 1.2; }
.hero-badge small { color: var(--muted); font-size: .85rem; line-height: 1.3; display: block; }
.hero-badge .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--green-d); }
.hero-badge .ico svg { width: 22px; height: 22px; }
.hero-badge.b1 { left: -4%; bottom: 14%; }
.hero-badge.b2 { right: -2%; top: 8%; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: clamp(2.5rem, 6vw, 4rem); }
.fact { background: var(--white); padding: 1.3rem 1.4rem; }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--green); line-height: 1.1; }
.fact span { font-size: .93rem; color: var(--muted); }

/* Why choose us */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.features { display: grid; gap: 1rem; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: #cfd9d4; box-shadow: var(--shadow); }
.feature h3 { margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--muted); }
.feature .num { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-family: var(--serif); font-size: 1.2rem; }

/* Certified band */
.certified { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; background: var(--green-d); color: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); position: relative; overflow: hidden; }
.certified::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .05); }
.certified h2 { color: var(--white); margin-bottom: .4rem; }
.certified p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 640px; }
.seal { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--green-d); box-shadow: 0 0 0 8px rgba(210, 154, 44, .2); }
.seal svg { width: 46px; height: 46px; }

/* Programme cards */
.programmes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.prog { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; transition: transform .2s, box-shadow .2s; }
.prog:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prog .level { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.prog h3 { margin: .4rem 0 .6rem; }
.prog p { color: var(--muted); flex: 1; }
.prog ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .4rem; }
.prog li { display: flex; gap: .5rem; font-size: .95rem; }
.prog li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: .6em; }
.prog .more { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }

/* Vision */
.vision { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.quote { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; border-left: 3px solid var(--gold); padding-left: 1.5rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip { display: inline-block; padding: .4rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .93rem; }

/* CTA band */
.cta { text-align: center; background: var(--gold-soft); border-radius: var(--radius-lg); padding: clamp(2.25rem, 5vw, 3.5rem) 1.5rem; }
.cta p { max-width: 560px; margin-inline: auto; color: var(--muted); }
.cta .hero-cta { justify-content: center; }

/* Inner page head */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); background: linear-gradient(180deg, var(--green-soft), var(--paper)); }
.page-head .lead { max-width: 640px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.card p:last-child { margin-bottom: 0; }
.card.wide { grid-column: 1 / -1; }
.card .eyebrow { margin-bottom: .5rem; }

/* Courses */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: 500 .95rem var(--sans); padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.course { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course[hidden] { display: none; }
.course-top { padding: 1.4rem 1.5rem 1.1rem; background: var(--green-d); color: var(--white); position: relative; overflow: hidden; min-height: 132px; }
.course-top::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 130px; height: 130px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .07); }
.course-top .tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.course-top h3 { color: var(--white); margin: .45rem 0 0; font-size: 1.25rem; position: relative; z-index: 1; }
.course-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.course-body p { color: var(--muted); flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.course-meta span { font-size: .85rem; padding: .25rem .7rem; border-radius: 999px; background: var(--sand); }
.note { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--sand); color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info { display: grid; gap: 1rem; }
.info-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.info-item .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.info-item p { margin: 0; color: var(--muted); }
.info-item a { font-weight: 600; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field textarea, .field select { width: 100%; font: 400 1rem var(--sans); color: var(--ink); padding: .75rem .95rem; border: 1px solid #d6d0c1; border-radius: 12px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(13, 92, 79, .15); background: var(--white); }
.field textarea { resize: vertical; min-height: 140px; }
.form .hint { font-size: .88rem; color: var(--muted); margin: 1rem 0 0; }
.map { margin-top: clamp(2rem, 5vw, 3rem); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Footer */
.site-footer { background: var(--green-d); color: rgba(255, 255, 255, .78); padding: 4rem 0 1.5rem; margin-top: clamp(3rem, 7vw, 5rem); }
.site-footer .brand { color: var(--white); }
.site-footer .brand-sub { color: rgba(255, 255, 255, .65); }
.site-footer h3 { color: var(--white); font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .04em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 1.5rem; font-size: .9rem; }

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

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

@media (max-width: 1000px) {
    .courses, .programmes { grid-template-columns: repeat(2, 1fr); }
    .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .hero-grid, .why, .vision, .contact-grid, .about-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 360px; }
    .certified { grid-template-columns: 1fr; text-align: left; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .courses, .programmes, .form-grid { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr 1fr; }
    .fact { padding: 1rem; }
    .fact b { font-size: 1.3rem; }
    .hero-badge { max-width: 210px; padding: .7rem .85rem; }
    .hero-badge.b1 { left: 0; }
    .hero-badge.b2 { right: 0; }
    .hero-cta .btn { flex: 1 1 100%; }
    .foot-grid { grid-template-columns: 1fr; }
    .map iframe { height: 300px; }
    .brand-sub { display: none; }
}
