:root {
  --ink: #151a1f;
  --muted: #65717c;
  --teal: #0d746c;
  --teal-2: #1fa091;
  --gold: #f2b632;
  --red: #b7192b;
  --paper: #f7f7f4;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(11, 27, 33, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #07191c;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.site-loader.active { opacity: 1; visibility: visible; }
.site-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader img {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(14px) saturate(1.05) brightness(.55);
  transform: scale(1.08);
}
.loader-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(13,116,108,.38), transparent 34%),
    linear-gradient(135deg, rgba(7,25,28,.7), rgba(7,25,28,.44));
}
.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 24px;
}
.loader-title {
  font-weight: 900;
  font-size: clamp(42px, 9vw, 118px);
  letter-spacing: 0;
  transform: scale(1.22);
  opacity: 0;
  animation: loaderZoom 1.15s cubic-bezier(.16,1,.3,1) .15s forwards;
}
.loader-tagline {
  min-height: 38px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(18px, 3vw, 32px);
}
.loader-tagline::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 5px;
  background: var(--gold);
  transform: translateY(3px);
  animation: blinkCursor .7s steps(1) infinite;
}
@keyframes loaderZoom { to { transform: scale(1); opacity: 1; } }
@keyframes blinkCursor { 50% { opacity: 0; } }

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,160,145,.18), transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  width: auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(13, 35, 39, .1);
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 900; min-width: 0; }
.brand img { width: 50px; height: 50px; object-fit: contain; border-radius: 50%; }
.nav {
  display: none;
  position: absolute;
  top: 76px;
  right: 0;
  width: min(360px, calc(100vw - 40px));
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 44px rgba(13, 35, 39, .16);
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  color: #223038;
  align-items: stretch;
}
.nav.open { display: flex; }
.nav a { padding: 12px 14px; border-radius: 14px; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--teal); }
.nav a:hover, .nav a.active { background: #eef7f5; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: var(--teal);
  color: white;
  border-radius: 999px;
  min-width: 104px;
  height: 46px;
  padding: 0 16px;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(13,116,108,.22);
}
.menu-icon { display: grid; gap: 4px; }
.menu-icon i { width: 18px; height: 2px; border-radius: 999px; background: white; display: block; }
.menu-text { line-height: 1; }

.section { position: relative; z-index: 1; padding: 110px 6vw; }
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(247,247,244,.92), rgba(255,255,255,.72)),
    radial-gradient(circle at 80% 10%, rgba(242,182,50,.38), transparent 36%),
    radial-gradient(circle at 5% 80%, rgba(13,116,108,.25), transparent 38%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .34; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, 400px); gap: 52px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 92px); line-height: .93; letter-spacing: 0; margin-bottom: 26px; max-width: 900px; }
h2 { font-size: clamp(30px, 4vw, 58px); line-height: 1.02; letter-spacing: 0; }
h3 { font-size: 22px; }
.lead { font-size: clamp(17px, 2vw, 22px); line-height: 1.65; color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 900; border: 1px solid transparent; }
.btn.primary { background: var(--teal); color: white; box-shadow: 0 16px 35px rgba(13,116,108,.28); }
.btn.ghost { background: rgba(255,255,255,.72); border-color: rgba(21,26,31,.12); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-strip span { padding: 10px 14px; border-radius: 999px; background: white; color: #34414a; font-size: 13px; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.05); }
.hero-card, .hero-media-stack, .video-frame { position: relative; transform-style: preserve-3d; min-width: 0; }
.hero-card img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: contain; object-position: center; background: white; }
.hero-media-stack { width: min(100%, 360px); justify-self: end; }
.floating-badge { position: absolute; right: -18px; bottom: 42px; padding: 16px 18px; background: var(--red); color: white; border-radius: 18px; font-weight: 900; box-shadow: var(--shadow); }
.video-frame {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #07191c;
  border: 8px solid rgba(255,255,255,.88);
  width: 100%;
  height: 460px;
  max-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07191c;
}

.page-hero {
  min-height: 62vh;
  display: grid;
  align-items: end;
  padding-top: 170px;
  background:
    linear-gradient(135deg, rgba(247,247,244,.94), rgba(255,255,255,.74)),
    radial-gradient(circle at 82% 18%, rgba(242,182,50,.33), transparent 30%),
    radial-gradient(circle at 10% 75%, rgba(13,116,108,.24), transparent 34%);
}
.page-hero h1 { max-width: 1050px; }
.page-hero-copy { max-width: 1120px; }

.section-head { max-width: 980px; margin-bottom: 42px; }
.intro-layout, .cucom-panel, .split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.feature-image, .glass-panel, .cucom-panel, .service-card, .advantage, .step, .enquiry-form, .quick-card, .college-card, .update-card {
  border: 1px solid rgba(21,26,31,.08);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 60px rgba(16, 43, 49, .09);
}
.feature-image { border-radius: 30px; padding: 10px; object-fit: contain; max-height: 760px; width: 100%; background: white; }
.glass-panel { border-radius: 30px; padding: clamp(26px, 4vw, 52px); }
.glass-panel p, .cucom-panel p, .enquiry-copy p { color: var(--muted); line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.metric-grid div { padding: 18px; border-radius: 18px; background: #f2f7f6; }
.metric-grid strong { display: block; color: var(--teal); font-size: 28px; }
.metric-grid span { font-weight: 800; }

.page-band { background: linear-gradient(135deg, #ffffff, #edf5f3); }
.quick-grid, .missing-grid, .updates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quick-card, .update-card { border-radius: 24px; padding: 26px; min-height: 210px; transition: transform .25s ease, border-color .25s ease; }
.quick-card:hover, .update-card:hover { transform: translateY(-6px); border-color: rgba(13,116,108,.24); }
.quick-card span, .update-card span { color: var(--teal); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.quick-card p, .update-card p { color: var(--muted); line-height: 1.65; }

.services { background: #10272b; color: white; }
.services-page { padding-top: 90px; }
.services .eyebrow { color: var(--gold); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { border-radius: 24px; padding: 28px; background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.12); min-height: 230px; transition: transform .25s ease, background .25s ease; }
.service-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.13); }
.service-card span { color: var(--gold); font-size: 30px; }
.service-card p { color: rgba(255,255,255,.74); line-height: 1.6; }

.cucom-panel { border-radius: 34px; padding: clamp(24px, 4vw, 48px); grid-template-columns: .85fr 1fr; overflow: visible; }
.cucom-panel img { border-radius: 24px; max-height: 720px; width: 100%; object-fit: contain; object-position: center; background: white; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.advantage { border-radius: 22px; padding: 22px; }
.advantage strong { display: block; color: var(--red); font-size: 28px; margin-bottom: 7px; }
.advantage span { color: var(--muted); font-weight: 700; }

.college-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.college-card { border-radius: 24px; padding: 22px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.college-card.facilities-card { grid-template-columns: 1fr; align-items: start; }
.college-card.facilities-card p { max-width: 860px; }
.college-card img { border-radius: 18px; aspect-ratio: 3/4; object-fit: contain; object-position: center; background: white; }
.college-card p { color: var(--muted); line-height: 1.62; }

.pathways { background: linear-gradient(135deg, #fff, #f5efe0); }
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.step { border-radius: 22px; padding: 22px; display: grid; gap: 8px; }
.step b { color: var(--teal); font-size: 20px; }
.step span { color: var(--muted); line-height: 1.55; }

.update-card a { color: var(--teal); font-weight: 900; }
.cta-strip { display: flex; justify-content: space-between; align-items: center; gap: 28px; background: #07191c; color: white; }
.cta-strip h2 { max-width: 900px; }
.cta-strip .eyebrow { color: var(--gold); }

.enquiry { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; background: #e9f2f0; }
.enquiry-form { border-radius: 28px; padding: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 900; color: #31404a; }
input, select, textarea { width: 100%; border: 1px solid rgba(21,26,31,.12); border-radius: 15px; padding: 14px 15px; font: inherit; outline: none; background: white; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,116,108,.1); }
.full { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -9999px; }
.contact-note { border-radius: 22px; padding: 22px; margin-top: 24px; }
.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.7);
}
.contact-lines p { margin: 0; }

.gallery-section, .testimonials-section { background: #ffffff; }
.ridgeway-gallery-band { background: linear-gradient(135deg, #ffffff, #edf5f3); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.category-card {
  position: relative;
  min-height: 250px;
  border-radius: 24px;
  overflow: hidden;
  background: #07191c;
  box-shadow: 0 18px 50px rgba(16,43,49,.12);
}
.category-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: .82;
  transition: transform .35s ease, opacity .35s ease;
}
.category-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
.category-card:hover img { transform: scale(1.05); opacity: .96; }
.compact-page-hero { min-height: 46vh; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px;
}
.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(16,43,49,.1);
  background: white;
  padding: 10px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: white;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.02); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px;
}
.testimonial-video {
  padding: 16px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 50px rgba(16,43,49,.1);
}
.testimonial-video video {
  width: 100%;
  height: 360px;
  border-radius: 18px;
  background: #07191c;
  object-fit: contain;
}
.testimonial-video h3 { margin: 14px 4px 4px; font-size: 18px; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 34px 6vw; background: #07191c; color: white; }
.footer img { width: 76px; background: white; border-radius: 14px; padding: 6px; margin-bottom: 10px; }
.footer p { margin: 0; color: rgba(255,255,255,.7); }
.footer-links { display: grid; gap: 10px; justify-items: end; font-weight: 800; }
.footer-links a:hover { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { top: 10px; left: 12px; right: 12px; border-radius: 24px; }
  .brand span { font-size: 15px; }
  .brand img { width: 46px; height: 46px; }
  .nav { left: 0; right: 0; width: auto; }
  .hero-grid, .intro-layout, .cucom-panel, .split-section, .enquiry { grid-template-columns: 1fr; }
  .service-grid, .advantage-grid, .timeline, .quick-grid, .missing-grid, .updates-grid, .college-grid { grid-template-columns: 1fr; }
  .gallery-grid, .video-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .college-card { grid-template-columns: 1fr; }
  .section { padding: 88px 20px; }
  .page-hero { min-height: 56vh; padding-top: 140px; }
  .hero { padding-top: 140px; }
  h1 { font-size: clamp(38px, 12vw, 58px); overflow-wrap: anywhere; }
  h2 { font-size: clamp(28px, 9vw, 42px); overflow-wrap: anywhere; }
  .lead { font-size: 17px; }
  .hero-card, .hero-media-stack { max-width: 330px; width: 100%; margin: 0 auto; justify-self: center; }
  .video-frame { height: 420px; max-height: 64vh; }
  .testimonial-video video { height: 300px; }
  .floating-badge { right: 10px; bottom: 16px; max-width: calc(100% - 20px); font-size: 13px; }
  .enquiry-form { grid-template-columns: 1fr; }
  .cta-strip { align-items: flex-start; flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-items: start; }
}

@media (max-width: 430px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .trust-strip span { width: 100%; text-align: center; }
  .metric-grid { grid-template-columns: 1fr; }
  .gallery-grid, .video-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .category-card, .category-card img { min-height: 170px; }
  .category-card span { left: 8px; right: 8px; bottom: 8px; padding: 10px; font-size: 12px; }
  .gallery-item { padding: 6px; border-radius: 16px; }
  .testimonial-video { padding: 8px; border-radius: 16px; }
  .testimonial-video video { height: 260px; border-radius: 12px; }
  .testimonial-video h3 { font-size: 12px; margin-top: 8px; }
}
