/* Narayana College of Education — stylesheet */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --navy: #0d1b34;
  --navy-700: #16294a;
  --navy-50: #eef2f9;
  --gold: #e2661f;
  --gold-soft: #fdefe4;
  --ink: #121a28;
  --muted: #5b6b7d;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(13, 27, 52, 0.06);
  --shadow: 0 14px 40px rgba(13, 27, 52, 0.1);
  --shadow-lg: 0 26px 70px rgba(13, 27, 52, 0.16);
  --sp: 8px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); margin-top: 16px; }
.lead { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--primary { background: var(--gold); color: #ffffff; box-shadow: 0 12px 28px rgba(212, 160, 41, .32); }
.btn--primary:hover { background: #f0742c; }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 12px 28px rgba(13, 27, 52, .24); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); }
.btn--block { width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 52px; width: auto; display: block; }
.brand__logo--footer {
  background: #fff; border-radius: 10px; padding: 6px 10px; height: 58px;
}
@media (max-width: 640px) {
  .brand__logo { height: 42px; }
}
.brand__name { font-family: "Fraunces", serif; font-weight: 700; font-size: 17px; line-height: 1.1; }
.brand__sub { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(226,102,31,.3), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(37,99,235,.22), transparent 60%),
    linear-gradient(160deg, #0d1b34 0%, #14264a 55%, #0b1730 100%);
  padding: 72px 0 88px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.badge-pill b { color: var(--gold); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 24px 0 20px; }
.hero h1 span { color: var(--gold); }
.hero__text { color: rgba(255,255,255,.82); max-width: 560px; font-size: 17px; }
.hero__text strong { color: #fff; }
.course-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.course-pill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 12px 18px; transition: .25s;
}
.course-pill:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.course-pill b { display: block; font-family: "Fraunces", serif; font-size: 18px; color: var(--gold); }
.course-pill span { font-size: 12px; color: rgba(255,255,255,.75); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.trust-row li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #ffffff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.approval {
  margin-top: 32px; display: inline-flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 20px;
  border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: 14px; color: rgba(255,255,255,.85);
}
.approval strong { color: #fff; }

/* Form card */
.form-card {
  background: #fff; color: var(--ink); border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.5);
}
.form-card h3 { font-size: 24px; margin-bottom: 8px; }
.form-card .lead { font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
.field input, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: #fbfcfe; font: inherit; font-size: 15px; color: var(--ink); transition: .2s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(13,27,52,.08);
}
.field .error { display: none; color: #c0392b; font-size: 12.5px; margin-top: 6px; }
.field.is-invalid input, .field.is-invalid select { border-color: #c0392b; background: #fff6f5; }
.field.is-invalid .error { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: 14px; }
.form-status.is-success { display: block; background: #eaf7ef; color: #1c6b3c; border: 1px solid #bfe6cd; }
.form-status.is-error { display: block; background: #fdeceb; color: #a5342c; border: 1px solid #f4c7c3; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2);
  border-top-color: #ffffff; animation: spin .7s linear infinite; display: none;
}
.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Info strip */
.info-strip { margin-top: -46px; position: relative; z-index: 5; }
.info-strip__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.icon-box {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--navy-50); color: var(--navy); font-size: 19px;
}
.info-item b { display: block; font-size: 15px; }
.info-item span { font-size: 14px; color: var(--muted); }

/* About */
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 22px; box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4/3; width: 100%; }
.about__tag {
  position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-sm); font-size: 14px;
}
.about__tag strong { display: block; font-family: "Fraunces", serif; }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.mini-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: .25s; }
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); background: #fff; }
.mini-card b { display: block; margin-bottom: 6px; }
.mini-card span { font-size: 14px; color: var(--muted); }
.about p + p { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; transition: .3s; box-shadow: var(--shadow-sm);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(226,102,31,.5); }
.course-card__media { position: relative; }
.course-card__media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.chip {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: #ffffff;
  border-radius: 999px; padding: 5px 13px; font-size: 12px; font-weight: 700;
}
.num {
  position: absolute; right: 14px; bottom: -18px; width: 44px; height: 44px; border-radius: 14px;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 700;
}
.course-card__body { padding: 30px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course-card__body h3 { font-size: 22px; }
.course-card__body p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--navy-50); color: var(--navy-700); font-weight: 600; }
.help-banner {
  margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, var(--navy), var(--navy-700)); color: #fff;
  border-radius: 20px; padding: 26px 30px;
}
.help-banner b { font-family: "Fraunces", serif; font-size: 20px; display: block; }
.help-banner span { color: rgba(255,255,255,.78); font-size: 15px; }

/* Why us */
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature .n { font-family: "Fraunces", serif; color: var(--gold); font-size: 15px; font-weight: 700; }
.feature h3 { font-size: 18px; margin: 8px 0 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* Reviews */
.rating-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.rating-card .score { font-family: "Fraunces", serif; font-size: 34px; color: var(--navy); line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: .25s; }
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review p { color: var(--muted); font-size: 15px; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; }
.review__who b { display: block; font-size: 15px; }
.review__who span { font-size: 13px; color: var(--muted); }
.review--featured { border-color: rgba(226,102,31,.6); box-shadow: 0 18px 44px rgba(226,102,31,.14); }
.review__flag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* CTA */
.cta { background: linear-gradient(160deg, #0d1b34, #16294a); color: #fff; }
.cta__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta h2 span { color: var(--gold); }
.cta p { color: rgba(255,255,255,.8); margin-top: 16px; }
.cta .course-pills { margin-bottom: 8px; }

/* Footer */
.footer { background: #0a1428; color: rgba(255,255,255,.75); padding: 64px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer a:hover { color: var(--gold); }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer .brand__name, .footer .brand__sub { color: #fff; }
.footer__bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 14px;
}
.fab-bar {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: #fff; box-shadow: 0 12px 30px rgba(13,27,52,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13,27,52,.28); }
.fab--phone { background: var(--navy); }
.fab--whatsapp { background: #25d366; box-shadow: 0 12px 30px rgba(37,211,102,.35); }
.fab--whatsapp:hover { box-shadow: 0 16px 36px rgba(37,211,102,.45); }
.fab svg { flex: none; }


/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid, .about__grid, .why__grid, .cta__grid { grid-template-columns: 1fr; }
  .course-grid, .review-grid, .info-strip__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 4px; background: #fff; padding: 16px 20px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .header__cta .btn { display: none; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .course-grid, .review-grid, .info-strip__grid, .feature-grid, .mini-cards, .footer__grid { grid-template-columns: 1fr; }
  .info-strip { margin-top: -30px; }
  .form-card { padding: 24px; }
}

/* Popup modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 16, 32, .62); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; width: min(1000px, 100%); max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 26px;
  box-shadow: 0 40px 100px rgba(8,16,32,.45); animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal__aside {
  position: relative; overflow: hidden; color: #fff; padding: 44px 40px;
  background: radial-gradient(600px 320px at 10% 0%, rgba(226,102,31,.28), transparent 60%), linear-gradient(160deg, #0d1b34, #16294a);
}
.modal__mark { width: 62px; height: 62px; border-radius: 18px; background: var(--gold); display: grid; place-items: center; font-size: 26px; margin-bottom: 28px; }
.modal__aside .eyebrow { color: var(--gold); }
.modal__aside h3 { font-size: clamp(28px, 3.4vw, 40px); }
.modal__aside h3 span { color: var(--gold); display: block; }
.modal__aside p { color: rgba(255,255,255,.78); margin-top: 16px; font-size: 15px; }
.modal__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.modal__pills li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.modal__pills .tick { background: #21b26a; color: #fff; }
.modal__foot { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.modal__foot b { display: block; font-size: 15px; }
.modal__foot span { font-size: 13px; color: rgba(255,255,255,.7); }
.modal__body { padding: 44px 40px; }
.modal__body h3 { font-size: clamp(24px, 3vw, 34px); }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 20px; color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: .2s;
}
.modal__close:hover { background: var(--bg-alt); transform: rotate(90deg); }
.modal__talk { margin-top: 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-size: 14px; color: var(--muted); }
.modal__talk a { color: var(--navy); font-weight: 700; }
@media (max-width: 860px) {
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__aside { display: none; }
  .modal__body { padding: 40px 24px 28px; }
}
