/* =========================================================
   Meditech Nursing Institute — Landing Page
   Design language: deep botanical green + brass gold,
   Fraunces display type, arched image frames as signature.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --pine: #0d3a2c; /* darkest green — dark sections, headings */
  --forest: #17553f; /* mid green — accents, links */
  --herb: #2c7a5a; /* brighter green — hover */
  --sage: #dbe6dd; /* soft tint — section wash */
  --sage-2: #eef3ec; /* lighter tint */
  --ivory: #f7f4ec; /* page background (warm paper) */
  --paper: #fffdf8; /* card surface */
  --brass: #c19a45; /* gold accent */
  --brass-lt: #d9bd76; /* light gold */
  --ink: #16231d; /* body text */
  --ink-soft: #4a5b53; /* muted text */
  --line: rgba(13, 58, 44, 0.14);
  --line-gold: rgba(193, 154, 69, 0.45);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:
    "Instrument Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 14px;
  --arch: 190px; /* the signature arch radius */

  --shadow-sm: 0 2px 10px rgba(13, 58, 44, 0.06);
  --shadow-md: 0 18px 44px -22px rgba(13, 58, 44, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(13, 58, 44, 0.5);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(15px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--pine);
}
:focus-visible {
  outline: 2.5px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section {
  padding-block: var(--section-y);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--brass);
}
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--brass);
}
.eyebrow.center {
  justify-content: center;
}

.section-head {
  max-width: 640px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  margin-top: 0.5rem;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
  will-change: transform;
}
.btn i {
  font-size: 0.9em;
  transition: transform 0.3s var(--ease);
}
.btn:hover i {
  transform: translateX(3px);
}
.btn-gold {
  background: var(--brass);
  color: #2a2000;
  box-shadow: 0 12px 28px -12px rgba(193, 154, 69, 0.8);
}
.btn-gold:hover {
  background: var(--brass-lt);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--pine);
  color: var(--ivory);
}
.btn-dark:hover {
  background: var(--forest);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--pine);
}
.hero-actions .btn-ghost {
  background: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--pine);
  background: var(--pine);
  color: var(--ivory);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 1.05em 2em;
  font-size: 1rem;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--pine);
  color: var(--sage);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.announce .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}
.announce .marquee-mini {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
}
.announce .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
  animation: pulse 2s infinite;
}
/* Pause continuously-running background animations while a blurred
   overlay (nav drawer / modal) sits on top — a moving backdrop forces
   the browser to recompute backdrop-filter every frame, which is what
   caused the visible flicker/glitch behind the drawer. */
body.overlay-open .announce .dot,
body.overlay-open .marquee-track,
body.overlay-open .about-media .stamp {
  animation-play-state: paused;
}
.announce b {
  color: #fff;
  font-weight: 600;
}
.announce .a-contact {
  display: flex;
  gap: 1.4rem;
  flex: none;
}
.announce .a-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--sage);
  transition: color 0.25s;
}
.announce .a-contact a:hover {
  color: var(--brass-lt);
}
.announce .a-contact i {
  font-size: 13px;
  opacity: 0.8;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 236, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.35s var(--ease),
    border-color 0.35s,
    background 0.35s;
}
.header.scrolled {
  box-shadow: 0 6px 30px -18px rgba(13, 58, 44, 0.4);
  border-color: var(--line);
  background: rgba(247, 244, 236, 0.94);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex: none;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* Real logo image, once dropped in, takes over automatically. If it 404s,
   .no-logo (set via onerror) reveals the fallback icon underneath — both
   share the same grid cell so swapping is instant with no layout shift. */
.brand-mark .brand-logo,
.brand-mark .brand-fallback-icon {
  grid-area: 1 / 1;
}
.brand-logo {
  width: 92%;
  height: 92%;
  object-fit: contain;
}
.brand-fallback-icon {
  display: none;
}
.brand-mark.no-logo .brand-logo {
  display: none;
}
.brand-mark.no-logo .brand-fallback-icon {
  display: block;
}
.brand-mark i {
  font-size: 25px;
}
.brand-txt strong {
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--pine);
  line-height: 1;
  display: block;
  letter-spacing: -0.01em;
}
.brand-txt span {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-menu a {
  padding: 0.5em 0.9em;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  transition:
    color 0.25s,
    background 0.25s;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--forest);
  background: var(--sage-2);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pine);
  margin: 4px auto;
  transition: 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Arched frame (signature) ---------- */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: var(--arch) var(--arch) var(--radius) var(--radius);
  background: linear-gradient(
    160deg,
    var(--herb),
    var(--pine)
  ); /* fallback if img fails */
  box-shadow: var(--shadow-md);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s var(--ease),
    opacity 0.5s;
}
.arch::after {
  /* thin gold inner keyline */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: calc(var(--arch) - 8px) calc(var(--arch) - 8px) 8px 8px;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: var(--section-y);
  /* Full-bleed backdrop photo. If the file is ever removed/renamed, the
     browser simply paints nothing here — no broken-image icon, no alt
     text — so this degrades to a plain section with no extra markup.
     The gradient isn't a flat wash over the whole photo — it's a
     left-to-right fade: strong where the text sits so copy stays
     readable, fully transparent by the time it reaches the arch photo
     so the backdrop shows through at full strength there. */
  background-image: linear-gradient(
      90deg,
      rgba(247, 244, 236, 0.97) 0%,
      rgba(247, 244, 236, 0.94) 30%,
      rgba(247, 244, 236, 0.55) 48%,
      rgba(247, 244, 236, 0.08) 66%,
      rgba(247, 244, 236, 0) 78%
    ),
    url("assets/images/MNICollege.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  /* soft radial atmosphere */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      60% 55% at 82% 12%,
      rgba(193, 154, 69, 0.14),
      transparent 60%
    ),
    radial-gradient(50% 50% at 8% 90%, rgba(44, 122, 90, 0.12), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  margin: 1.1rem 0 0;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--forest);
}
.hero-copy .lead {
  margin-top: 1.4rem;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.4rem;
  /* flex-wrap: wrap; */
}
.hero-trust .ht {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-trust .ht i {
  font-size: 18px;
  color: var(--forest);
  flex: none;
}
.hero-trust .div {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.hero-visual {
  position: relative;
}
.hero-visual .arch {
  aspect-ratio: 4/5;
}
.hero-visual .arch img {
  transform: scale(1.02);
}
.hero-badge {
  position: absolute;
  left: -8%;
  bottom: 9%;
  background: var(--paper);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--line);
}
.hero-badge .seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 30% 30%, var(--brass-lt), var(--brass));
  display: grid;
  place-items: center;
  color: #3a2c00;
}
.hero-badge .seal i {
  font-size: 20px;
}
.hero-badge strong {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--pine);
  display: block;
  line-height: 1.1;
}
.hero-badge span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.hero-float {
  position: absolute;
  right: -6%;
  top: 8%;
  background: var(--pine);
  color: var(--ivory);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero-float b {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--brass-lt);
  display: block;
  line-height: 1;
}
.hero-float span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Accreditation marquee ---------- */
.creds {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.creds .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.1rem;
}
.creds .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex: none;
}
.marquee {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll 26s linear infinite;
}
.creds:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--forest);
  white-space: nowrap;
  opacity: 0.8;
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--pine);
  color: var(--ivory);
}
.stats .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 3vw, 40px);
}
.stat {
  text-align: center;
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(-1 * clamp(8px, 1.5vw, 20px));
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.stat b {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--brass-lt);
  display: block;
  line-height: 1;
}
.stat span {
  font-size: 0.82rem;
  color: var(--sage);
  margin-top: 0.5rem;
  display: block;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media .arch {
  aspect-ratio: 3/4;
}
.about-media .stamp {
  position: absolute;
  right: -7%;
  top: 8%;
  width: 118px;
  height: 118px;
  color: var(--forest);
  animation: spin 22s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-media .stamp {
    animation: none;
  }
}
.about-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-top: 0.6rem;
}
.about-copy > p {
  margin-top: 1.2rem;
  color: var(--ink-soft);
}
.pillars {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.pillar {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.pillar:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}
.pillar .ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--sage-2);
  color: var(--forest);
}
.pillar .ic i {
  font-size: 19px;
}
.pillar h4 {
  font-size: 1.05rem;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ---------- Courses ---------- */
.courses {
  background: linear-gradient(180deg, var(--sage-2), var(--ivory));
}
.courses-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.course {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s;
}
.course:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-gold);
}
.course-media {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: linear-gradient(160deg, var(--herb), var(--pine));
}
.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.course:hover .course-media img {
  transform: scale(1.06);
}
.course-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(13, 58, 44, 0.88);
  color: var(--brass-lt);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4em 0.8em;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.course-body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-body h3 {
  font-size: 1.4rem;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.2rem;
}
.course-meta li {
  font-size: 0.78rem;
  color: var(--forest);
  background: var(--sage-2);
  padding: 0.35em 0.75em;
  border-radius: 8px;
}
.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.course-foot .seats {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.course-foot .seats b {
  color: var(--pine);
  font-family: var(--display);
  font-size: 1.1rem;
}
.course-foot .more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  transition: gap 0.3s var(--ease);
}
.course-foot .more:hover {
  gap: 0.7em;
}
.course-foot .more i {
  font-size: 13px;
}

/* ---------- Why choose ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: clamp(32px, 4vw, 56px);
}
.feature {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s,
    background 0.35s,
    color 0.35s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature.dark {
  background: var(--pine);
  color: var(--sage);
  border-color: transparent;
}
.feature.dark h4 {
  color: #fff;
}
.feature.dark .fic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brass-lt);
}
.fic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sage-2);
  color: var(--forest);
  margin-bottom: 1.1rem;
}
.fic i {
  font-size: 22px;
}
.feature h4 {
  font-size: 1.2rem;
}
.feature p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: inherit;
  opacity: 0.9;
}
.feature.dark p {
  color: var(--sage);
}

/* ---------- Admission process ---------- */
.process {
  background: var(--pine);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 60% at 85% 10%,
    rgba(193, 154, 69, 0.16),
    transparent 60%
  );
}
.process .section-head h2 {
  color: #fff;
}
.process .eyebrow {
  color: var(--brass-lt);
}
.process .eyebrow::before,
.process .eyebrow.center::after {
  background: var(--brass);
}
.process .section-head p {
  color: var(--sage);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: clamp(36px, 4vw, 60px);
  position: relative;
}
.step {
  position: relative;
}
.step .num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--brass);
  line-height: 1;
}
.step h4 {
  color: #fff;
  margin: 0.8rem 0 0.5rem;
  font-size: 1.2rem;
}
.step p {
  font-size: 0.9rem;
  color: var(--sage);
}
.step .bar {
  height: 3px;
  width: 44px;
  background: var(--brass);
  border-radius: 2px;
  margin-top: 1.1rem;
  opacity: 0.6;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 56px);
}
.gitem {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: linear-gradient(160deg, var(--herb), var(--pine));
}
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gitem:hover img {
  transform: scale(1.08);
}
.gitem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 58, 44, 0.4));
  opacity: 0;
  transition: opacity 0.4s;
}
.gitem:hover::after {
  opacity: 1;
}
.gitem.tall {
  grid-row: span 2;
}
.gitem.wide {
  grid-column: span 2;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: linear-gradient(180deg, var(--ivory), var(--sage-2));
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
  margin-top: clamp(32px, 4vw, 56px);
}
.tcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.8rem;
  position: relative;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}
.tcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.tcard .quote {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--brass);
  opacity: 0.5;
  height: 1rem;
}
.tcard p {
  margin: 1.2rem 0 1.5rem;
  color: var(--ink);
  font-size: 1rem;
}
.tcard .who {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.tcard .who .av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--herb), var(--pine));
  color: var(--brass-lt);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.1rem;
  flex: none;
}
.tcard .who strong {
  font-size: 0.95rem;
  color: var(--pine);
  display: block;
}
.tcard .who span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.tcard .stars {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  color: var(--brass);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: var(--section-y);
}
.cta-inner {
  background: linear-gradient(140deg, var(--forest), var(--pine));
  border-radius: 28px;
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 80% at 50% 0%,
    rgba(193, 154, 69, 0.22),
    transparent 60%
  );
}
.cta-inner .eyebrow {
  color: var(--brass-lt);
  justify-content: center;
}
.cta-inner .eyebrow::before {
  background: var(--brass);
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0.8rem auto 0;
  max-width: 16ch;
}
.cta-inner p {
  color: var(--sage);
  margin: 1rem auto 0;
  max-width: 52ch;
  position: relative;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--pine);
  color: var(--sage);
  padding-top: clamp(56px, 7vw, 88px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .brand-txt strong {
  color: #fff;
}
.footer .brand-txt span {
  color: var(--sage);
}
.footer .f-about {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--sage);
  max-width: 34ch;
}
.f-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.f-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: var(--sage);
  transition: 0.3s var(--ease);
}
.f-social a:hover {
  background: var(--brass);
  color: #2a2000;
  border-color: var(--brass);
  transform: translateY(-3px);
}
.f-social i {
  font-size: 15px;
}
.f-col h5 {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin-bottom: 1.1rem;
}
.f-col ul {
  display: grid;
  gap: 0.65rem;
}
.f-col a {
  font-size: 0.92rem;
  color: var(--sage);
  transition:
    color 0.25s,
    padding 0.25s;
}
.f-col a:hover {
  color: #fff;
  padding-left: 4px;
}
.f-contact li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--sage);
  margin-bottom: 0.9rem;
  max-width: 100%;
}
.f-contact li a,
.f-contact li span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.f-contact i {
  font-size: 15px;
  color: var(--brass-lt);
  flex: none;
  margin-top: 4px;
  width: 17px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.6rem;
  font-size: 0.82rem;
  color: var(--sage);
}
.footer-bottom .links {
  display: flex;
  gap: 1.4rem;
}
.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Floating enquiry button ---------- */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--brass);
  color: #2a2000;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85em 1.3em;
  border-radius: 100px;
  box-shadow: 0 16px 34px -12px rgba(193, 154, 69, 0.9);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
  animation: fabIn 0.6s 0.8s both;
}
.fab:hover {
  transform: translateY(-3px) scale(1.03);
}
.fab.is-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.fab i {
  font-size: 16px;
}
@keyframes fabIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .fab i {
    font-size: 19px;
  }
  .fab-label {
    display: none;
  }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.open {
  display: grid;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 30, 23, 0.55);
  backdrop-filter: blur(4px);
  animation: fade 0.3s;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  animation: pop 0.4s var(--ease);
}
@keyframes pop {
  from {
    transform: translateY(24px) scale(0.97);
    opacity: 0;
  }
}
.modal-card h3 {
  font-size: 1.6rem;
}
.modal-card > p {
  color: var(--ink-soft);
  margin-top: 0.5rem;
  font-size: 0.92rem;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sage-2);
  color: var(--pine);
  display: grid;
  place-items: center;
  transition: 0.25s;
  font-size: 16px;
}
.modal-close:hover {
  background: var(--pine);
  color: #fff;
}
.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pine);
}
.field input,
.field select {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--ivory);
  color: var(--ink);
  transition:
    border 0.25s,
    box-shadow 0.25s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44, 122, 90, 0.15);
}
.form .btn {
  justify-content: center;
  width: 100%;
  margin-top: 0.4rem;
}
.form-note {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.form-success.show {
  display: block;
  animation: pop 0.4s var(--ease);
}
.form-success .tick {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--sage-2);
  color: var(--forest);
  display: grid;
  place-items: center;
}
.form-success .tick i {
  font-size: 26px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}
.reveal.d4 {
  transition-delay: 0.32s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 460px;
    margin-inline: auto;
  }
  /* Below this width the copy stacks full-width above the photo, so a
     left-to-right fade leaves the right edge of the text unreadable —
     switch to a top-to-bottom fade sized to the copy block instead. */
  .hero {
    background-image: linear-gradient(
        180deg,
        rgba(247, 244, 236, 0.97) 0%,
        rgba(247, 244, 236, 0.97) 60%,
        rgba(247, 244, 236, 0.55) 78%,
        rgba(247, 244, 236, 0.1) 92%,
        rgba(247, 244, 236, 0) 100%
      ),
      url("assets/images/MNICollege.webp");
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 440px;
  }
  .course-grid,
  .why-grid,
  .t-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats .grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.4rem;
  }
  .stat:nth-child(3)::after {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1180px) {
  /* backdrop-filter on .header creates a CSS containing block for
     position:fixed descendants, which traps the nav drawer inside the
     header's own box instead of the full viewport — drop it here. */
  .header {
    backdrop-filter: none;
    background: rgba(247, 244, 236, 0.97);
  }
  .header.scrolled {
    background: rgba(247, 244, 236, 0.98);
  }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84%);
    max-width: 84vw;
    background: var(--ivory);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 88px 24px 24px;
    gap: 0.4rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 70;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open {
    transform: none;
  }
  .nav-menu a {
    padding: 0.9em 1em;
    font-size: 1rem;
    border-radius: 12px;
    display: block;
  }
  .nav-toggle {
    display: block;
    z-index: 71;
  }
  .nav .btn-gold {
    display: none;
  }
  .nav-scrim {
    /* Must stay below .header's stacking context (z-index:60) — .header
       creates its own stacking context (position:sticky + z-index), so
       nothing nested inside it (the drawer, the toggle button) can ever
       out-rank a sibling that sits above that context, regardless of
       their own z-index. A higher value here silently traps clicks on
       the drawer/close button behind the scrim. */
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(11, 30, 23, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav-scrim.open {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 820px) {
  .announce .a-contact {
    display: none;
  }
  .creds .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gitem.wide {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .about-media .stamp {
    right: 0;
    width: 92px;
    height: 92px;
  }
}
@media (max-width: 420px) {
  .brand-txt span {
    display: none;
  }
}
@media (max-width: 560px) {
  :root {
    --arch: 150px;
  }
  .course-grid,
  .why-grid,
  .t-grid,
  
   .grid {
    grid-template-columns: 1fr ;
  }

  .stat::after {
    display: none !important;
  }
  .stats .grid ,
  .steps{
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-top > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .footer .brand {
    justify-content: center;
  }
  .footer .f-about {
    margin-inline: auto;
    max-width: 100%;
  }
  .f-social {
    justify-content: center;
  }
  .f-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .f-col ul {
    max-width: 100%;
  }
  .f-contact li {
    justify-content: center;
  }
  .hero-copy h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .form .row {
    grid-template-columns: 1fr;
  }
  .hero-badge {
    left: 0;
  }
  .hero-float {
    right: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-bottom .links {
    justify-content: center;
  }
}
