/* Saksham Institute website. House colours: purple #2E1065 and gold. No italics anywhere. */
:root {
  --purple: #2E1065;
  --purple-2: #4A1E9E;
  --purple-soft: #EFE9FB;
  --gold: #D9A21B;
  --gold-2: #F2C14E;
  --gold-soft: #FFF5DC;
  --ink: #1D1430;
  --muted: #5E5670;
  --line: #E4DDF0;
  --bg: #FBF9F5;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(46, 16, 101, 0.10);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
em, i, cite, address, dfn, var { font-style: normal; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--purple-2); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
h1, h2, h3 { line-height: 1.2; color: var(--purple); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
address { margin-bottom: 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt { margin-top: 1.4em; }
.gold { color: var(--gold-2); }
.plain { font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--purple); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--purple); box-shadow: 0 6px 18px rgba(217, 162, 27, .35); }
.btn-gold:hover { background: var(--gold-2); color: var(--purple); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--purple); letter-spacing: .02em; text-transform: uppercase; }
.brand-tag { font-size: .78rem; color: var(--gold); font-weight: 600; letter-spacing: .03em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:not(.btn):hover { background: var(--purple-soft); color: var(--purple); }
.site-nav a[aria-current="page"] { color: var(--purple); background: var(--purple-soft); font-weight: 600; }
.nav-cta { margin-left: 8px; padding: 10px 18px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 11px; }
.menu-btn span { display: block; height: 2px; background: var(--purple); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(242,193,78,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(122,70,220,.35), transparent 60%),
    linear-gradient(135deg, #2E1065 0%, #3B1584 55%, #2A0E5C 100%);
  color: #fff; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 80px; }
.hero h1 { color: #fff; }
.lead { font-size: 1.12rem; color: inherit; opacity: .92; max-width: 640px; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.eyebrow.dark { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; opacity: .92; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); margin-right: 8px; vertical-align: middle; }
.hero-art { display: flex; justify-content: center; }
.seal-ring {
  position: relative; width: min(420px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: #fff; padding: 14px;
  box-shadow: 0 0 0 10px rgba(242,193,78,.25), 0 0 0 22px rgba(255,255,255,.06), 0 30px 60px rgba(0,0,0,.35);
  animation: float 6s ease-in-out infinite;
}
.seal-ring img { width: 100%; height: 100%; object-fit: contain; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, #2E1065 0%, #43198F 100%);
  color: #fff; padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; }
.page-hero.tall { padding: 110px 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.chip:hover { background: var(--gold); color: var(--purple); border-color: var(--gold); }

/* Sections */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head.left { text-align: left; margin: 30px 0 26px; max-width: none; }
.band { background: var(--purple); color: #fff; }
.band h2 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.card-grid { display: grid; gap: 22px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.prog-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .2s ease, border-color .2s ease;
}
.prog-card:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--ink); }
.prog-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.prog-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--purple-soft); display: grid; place-items: center; margin-bottom: 8px; }
.prog-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prog-icon svg .fill { fill: var(--purple); }
.tag { align-self: flex-start; font-size: .78rem; font-weight: 600; color: #7A5A00; background: var(--gold-soft); border: 1px solid #F1DB9F; padding: 3px 10px; border-radius: 999px; }
.link-more { font-weight: 600; color: var(--purple-2); }
.link-more::after { content: " \2192"; }

.material-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.material-list li { padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.material-list strong { color: var(--gold-2); }

.value-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value-card h3 { display: flex; align-items: center; gap: 10px; }
.value-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); flex: none; transform: rotate(45deg); }
.value-card p { color: var(--muted); margin: 0; }

.cta-band { background: linear-gradient(120deg, var(--gold-soft), #fff); border-top: 1px solid #F1DB9F; padding: 56px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: var(--purple); color: var(--purple); }
.cta-band .btn-ghost:hover { background: var(--purple); color: #fff; }

/* Courses */
.course-stack { display: grid; gap: 26px; }
.course { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.course-side { padding: 32px; background: var(--purple); color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.course-side h2 { color: #fff; margin: 6px 0 4px; }
.course-side p { opacity: .9; flex: 1; }
.course-body { padding: 32px; }
.course-body h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
#foundation { scroll-margin-top: 100px; }
.pill-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 6px 14px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-weight: 500; font-size: .95rem; }
.pill-list.small li { font-size: .85rem; padding: 4px 11px; }
.tick-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.tick-list li { position: relative; padding-left: 30px; }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.exam-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.exam-card p { color: var(--muted); font-size: .96rem; }
.exam-card .pill-list { margin-top: auto; margin-bottom: 0; }
.exam-card.highlight { background: var(--purple); color: #fff; border-color: var(--purple); }
.exam-card.highlight h3 { color: var(--gold-2); }
.exam-card.highlight p { color: rgba(255,255,255,.85); }
.exam-card.highlight .btn { margin-top: auto; align-self: flex-start; }

/* About */
.about-seal { display: flex; justify-content: center; }
.about-seal img { width: min(360px, 75vw); height: auto; aspect-ratio: 1; filter: drop-shadow(0 20px 40px rgba(46,16,101,.2)); }
.mv-card { padding: 32px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); }
.big { font-size: 1.2rem; line-height: 1.6; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info-card h2 { font-size: 1.05rem; margin-bottom: .4em; }
.info-card p:last-child, .info-card address:last-child { margin-bottom: 0; }
.info-card:last-child { grid-column: 1 / -1; }
.map-section { padding-top: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 7; background: var(--purple-soft); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--purple); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); }

/* Forms */
.panel { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; }
.form h2 { margin-bottom: 0; }
.form p { margin: 0; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #FDFCFF; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--purple-2); outline: none; box-shadow: 0 0 0 4px rgba(74,30,158,.12); }
.form textarea { resize: vertical; }

dialog.callback { border: 0; border-radius: 22px; padding: 0; width: min(460px, 100% - 24px); max-height: calc(100% - 24px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.callback::backdrop { background: rgba(20, 8, 45, .6); backdrop-filter: blur(3px); }
dialog.callback .form { padding: 30px; position: relative; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--purple-soft); color: var(--purple); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Footer */
.site-footer { background: #1C0A40; color: rgba(255,255,255,.82); padding-top: 60px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1.4fr; gap: 32px; }
.footer-brand img { width: 72px; height: 72px; margin-bottom: 10px; }
.footer-name { font-weight: 700; color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .3em; }
.footer-head { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
.socials a:hover { background: var(--gold); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.socials svg .fill { fill: #fff; stroke: none; }
.socials a:hover svg { stroke: var(--purple); }
.socials a:hover svg .fill { fill: var(--purple); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px 0 90px; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.06); }

/* Tablet */
@media (max-width: 1000px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Phone and small tablet: menu collapses */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 20px; box-shadow: 0 20px 30px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 36px; }
  .hero-art { order: -1; }
  .seal-ring { width: min(240px, 60vw); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .course { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .card-grid.four, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.02rem; }
  .brand-tag { font-size: .7rem; }
  .course-side, .course-body, .panel { padding: 24px; }
  .map-frame { aspect-ratio: 4 / 3; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
