/* ============================================================
   Dr. Maneesh Kr. Srivastava — premium physician profile
   Bootstrap 5.3 + custom layer. No frameworks beyond that.
   ------------------------------------------------------------
   1.  Design tokens
   2.  Base & typography
   3.  Utilities (eyebrow, section titles, buttons, dividers)
   4.  Loader / progress / cursor glow
   5.  Navbar
   6.  Hero
   7.  Stats
   8.  About + timeline
   9.  Services
   10. Why choose / glass cards
   11. Achievements
   12. Certificates rail
   13. Gallery masonry
   14. Videos
   15. Events
   16. Awareness
   17. Testimonials
   18. CTA banner
   19. FAQ
   20. Contact
   21. Footer
   22. Floating actions & modals
   23. Responsive
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root{
  --brand:        #0D6EFD;
  --brand-2:      #00B4D8;
  --brand-soft:   #E8F1FF;
  --gold:         #C8992B;

  --navy:         #071B33;
  --navy-2:       #0C2748;
  --ink:          #0F1B2D;
  --body:         #566274;
  --line:         rgba(11,32,60,.10);

  --bg:           #FFFFFF;
  --bg-tint:      #F4F8FF;
  --surface:      #FFFFFF;
  --surface-2:    #FFFFFF;

  --radius:       22px;
  --radius-sm:    14px;
  --radius-lg:    32px;

  --shadow-sm:    0 2px 10px rgba(9,30,66,.06);
  --shadow:       0 18px 44px -18px rgba(9,30,66,.20);
  --shadow-lg:    0 40px 90px -30px rgba(9,30,66,.32);

  --grad:         linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-soft:    linear-gradient(160deg, #F7FBFF 0%, #EDF4FF 100%);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Poppins", system-ui, sans-serif;

  --nav-h:        84px;
  --ease:         cubic-bezier(.22,.68,.32,1);
}

/* Dark theme overrides */
[data-bs-theme="dark"]{
  --brand-soft:   rgba(13,110,253,.14);
  --ink:          #EDF2FA;
  --body:         #9AA9BF;
  --line:         rgba(255,255,255,.10);

  --bg:           #060F1D;
  --bg-tint:      #0A1729;
  --surface:      #0E1C31;
  --surface-2:    #122340;

  --shadow-sm:    0 2px 10px rgba(0,0,0,.30);
  --shadow:       0 18px 44px -18px rgba(0,0,0,.55);
  --shadow-lg:    0 40px 90px -30px rgba(0,0,0,.70);
  --grad-soft:    linear-gradient(160deg, #0A1729 0%, #0C1E36 100%);
}

/* ---------- 2. Base & typography ---------- */
*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  /* Belt-and-braces with body: nothing may ever scroll the page sideways */
  overflow-x: hidden;
}

body{
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
  /* Kill the grey flash Android/iOS paint over every tapped control */
  -webkit-tap-highlight-color: transparent;
}

/* Long unbroken strings (emails, IDs) must never widen a phone screen */
p, li, h1, h2, h3, h4, td{ overflow-wrap: break-word; }

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.15;
}

a{ color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover{ color: var(--brand-2); }

img{ max-width: 100%; height: auto; }

::selection{ background: var(--brand); color: #fff; }

/* Custom scrollbar (desktop) */
@media (pointer: fine){
  ::-webkit-scrollbar{ width: 11px; }
  ::-webkit-scrollbar-track{ background: var(--bg-tint); }
  ::-webkit-scrollbar-thumb{ background: linear-gradient(var(--brand), var(--brand-2)); border-radius: 10px; border: 3px solid var(--bg-tint); }
}

.skip-link{
  position: fixed; top: 12px; left: 12px; z-index: 3000;
  background: var(--brand); color:#fff; padding:.6rem 1rem; border-radius: 10px;
}

/* ---------- 3. Utilities ---------- */
.section{ padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.section--tint{ background: var(--grad-soft); }
.section--dark{ background: var(--navy); }
.section--dark h2, .section--dark h3{ color:#fff; }

.eyebrow{
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(13,110,253,.18);
  padding: .45rem 1rem; border-radius: 100px; margin-bottom: 1.1rem;
}
.eyebrow--light{ color:#8FD4FF; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

.section__title{
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  margin-bottom: 1.1rem;
}
.section__title--light{ color:#fff; }

.section__lead{
  max-width: 720px; margin-inline: auto; font-size: 1.05rem;
}
.section__lead--light{ color: rgba(255,255,255,.72); }

.grad-text{
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.pill{
  display: inline-flex; align-items:center; gap:.5rem;
  font-size:.82rem; font-weight:600; font-family: var(--font-display);
  color: var(--brand);
  background: var(--brand-soft);
  border:1px solid rgba(13,110,253,.2);
  padding:.5rem 1.05rem; border-radius:100px; margin-bottom:1.5rem;
}
.pill i{ color: var(--gold); }

.tag{
  display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.06em;
  text-transform: uppercase; padding:.18rem .6rem; border-radius:6px; vertical-align: middle;
  font-family: var(--font-display);
}
.tag--gold{ background: rgba(200,153,43,.16); color: var(--gold); }

/* Buttons */
.btn{
  font-family: var(--font-display); font-weight: 600;
  border-radius: 100px; padding: .72rem 1.5rem;
  display: inline-flex; align-items: center; justify-content:center; gap: .55rem;
  border: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-lg{ padding: .92rem 1.9rem; font-size: 1rem; }

.btn-brand{
  background: var(--grad); color:#fff;
  box-shadow: 0 12px 26px -10px rgba(13,110,253,.65);
}
.btn-brand:hover{ color:#fff; transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(13,110,253,.75); }

.btn-ghost{
  background: transparent; color: var(--ink);
  border: 1.6px solid var(--line);
}
.btn-ghost:hover{ color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }

.btn-theme{
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(13,110,253,.18);
}
.btn-theme:hover{ background: var(--brand); color: #fff; transform: rotate(-25deg); }

/* Wave divider */
.wave-divider{ position:absolute; bottom:-1px; left:0; width:100%; line-height:0; pointer-events:none; }
.wave-divider svg{ width:100%; height: clamp(50px, 7vw, 110px); display:block; }
.wave-divider path{ fill: var(--bg); }

/* ---------- 4. Loader / progress / glow ---------- */
.loader{
  position: fixed; inset: 0; z-index: 4000;
  display: grid; place-items: center;
  background: var(--navy);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-done{ opacity: 0; visibility: hidden; }
.loader__inner{ text-align: center; }
.loader__pulse{
  width: 78px; height: 78px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 2rem;
  animation: pulseRing 1.6s var(--ease) infinite;
}
@keyframes pulseRing{
  0%,100%{ box-shadow: 0 0 0 0 rgba(0,180,216,.55); transform: scale(1); }
  50%    { box-shadow: 0 0 0 22px rgba(0,180,216,0); transform: scale(1.06); }
}
.loader__name{
  font-family: var(--font-display); font-weight: 700; color:#fff;
  letter-spacing: .04em; margin-bottom: 1rem;
}
.loader__bar{ display:block; width: 190px; height: 3px; background: rgba(255,255,255,.16); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.loader__bar i{ display:block; height:100%; width: 40%; background: var(--grad); border-radius:3px; animation: barSlide 1.2s var(--ease) infinite; }
@keyframes barSlide{ 0%{ transform: translateX(-100%);} 100%{ transform: translateX(350%);} }

.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad); z-index: 2100; transition: width .1s linear;
}

.cursor-glow{
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(13,110,253,.13) 0%, rgba(0,180,216,.06) 42%, transparent 70%);
  transform: translate(-50%,-50%);
  transition: opacity .4s var(--ease);
}

/* ---------- 5. Navbar ---------- */
.site-nav{
  height: var(--nav-h);
  background: transparent;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease), height .4s var(--ease);
  z-index: 1050;
}
.site-nav.is-stuck{
  height: 72px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 30px -14px rgba(9,30,66,.28);
  border-bottom: 1px solid var(--line);
}

.brand{ display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark{
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 44px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.2rem;
  box-shadow: 0 10px 22px -10px rgba(13,110,253,.7);
}
.brand__text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong{
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  color: var(--ink); letter-spacing: -.02em;
}
.brand__text small{ font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); font-weight: 600; }

.site-nav__menu .nav-link{
  font-family: var(--font-display); font-weight: 600; font-size: .93rem;
  color: var(--ink); padding: .5rem .82rem; position: relative; opacity: .82;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.site-nav__menu .nav-link::after{
  content:''; position:absolute; left: .82rem; right: .82rem; bottom: .18rem; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.site-nav__menu .nav-link:hover,
.site-nav__menu .nav-link.is-active{ opacity: 1; color: var(--brand); }
.site-nav__menu .nav-link.is-active::after{ transform: scaleX(1); }

.navbar-toggler{ border: 1px solid var(--line); border-radius: 12px; padding: .35rem .6rem; color: var(--ink); font-size: 1.4rem; }
.navbar-toggler:focus{ box-shadow: none; }

/* ---------- 6. Hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 clamp(110px, 14vw, 180px);
  overflow: hidden;
  background: var(--grad-soft);
}
.hero__inner{ position: relative; z-index: 2; }
.hero__bg{ position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero__grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .6;
}

.blob{ position:absolute; border-radius: 50%; filter: blur(70px); opacity: .40; }
.blob--1{ width: 480px; height: 480px; background: var(--brand);   top: -14%; right: -6%;  animation: drift 22s var(--ease) infinite; }
.blob--2{ width: 400px; height: 400px; background: var(--brand-2); bottom: -12%; left: -8%; animation: drift 27s var(--ease) infinite reverse; }
.blob--3{ width: 300px; height: 300px; background: #7CC6FF;        top: 38%; left: 42%;     animation: drift 19s var(--ease) infinite; opacity:.28; }
@keyframes drift{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%    { transform: translate(46px,-34px) scale(1.12); }
  66%    { transform: translate(-32px,28px) scale(.92); }
}

.particles{ position:absolute; inset:0; }
.particle{
  position:absolute; border-radius:50%;
  background: var(--brand-2); opacity:.35;
  animation: floatUp linear infinite;
}
@keyframes floatUp{
  0%   { transform: translateY(0) scale(1); opacity:0; }
  10%  { opacity:.4; }
  90%  { opacity:.4; }
  100% { transform: translateY(-90vh) scale(.4); opacity:0; }
}

.hero__copy h1{ font-size: clamp(2.3rem, 5.2vw, 4.15rem); margin-bottom: 1.3rem; }
.hero__lead{ font-size: 1.08rem; max-width: 560px; margin-bottom: 1.6rem; }
.hero__lead strong{ color: var(--ink); font-weight: 600; }

.hero__facts{ list-style: none; padding: 0; margin: 0 0 2rem; }
.hero__facts li{
  display: flex; align-items: center; gap: .65rem;
  font-size: .93rem; padding: .3rem 0; color: var(--body);
}
.hero__facts i{ color: var(--brand); font-size: 1.05rem; flex: 0 0 auto; }

.hero__cta{ display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero__trust{ display: flex; align-items: center; gap: 1rem; }
.hero__trust-avatars{ display: flex; }
.hero__trust-avatars img{
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg); margin-left: -14px; box-shadow: var(--shadow-sm);
}
.hero__trust-avatars img:first-child{ margin-left: 0; }
.hero__trust p{ margin: 0; font-size: .88rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.hero__trust span{ color: var(--body); font-weight: 400; font-size: .82rem; }

/* Portrait */
.hero__portrait{ position: relative; max-width: 470px; margin-inline: auto; }
.hero__portrait img{
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
  object-fit: cover; aspect-ratio: 3/4;
}
.hero__portrait-ring{
  position: absolute; inset: -22px;
  border-radius: calc(var(--radius-lg) + 18px);
  background: var(--grad);
  opacity: .16;
  animation: breathe 6s var(--ease) infinite;
}
@keyframes breathe{ 0%,100%{ transform: scale(1); opacity:.16; } 50%{ transform: scale(1.035); opacity:.26; } }

.float-card{
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .7rem;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .72rem .95rem;
  box-shadow: var(--shadow);
  animation: bob 5s var(--ease) infinite;
}
.float-card i{ font-size: 1.35rem; color: var(--brand); }
.float-card strong{ display:block; font-family: var(--font-display); font-size: .84rem; color: var(--ink); font-weight:700; line-height:1.2; }
.float-card small{ font-size: .7rem; color: var(--body); }
.float-card--a{ top: 7%;  left: -8%;  animation-delay: 0s; }
.float-card--a i{ color: var(--gold); }
.float-card--b{ bottom: 24%; right: -10%; animation-delay: .9s; }
.float-card--c{ bottom: 4%; left: 2%;  animation-delay: 1.7s; }
@keyframes bob{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-11px);} }

/* ---------- 7. Stats ---------- */
.stats{ position: relative; margin-top: -70px; z-index: 5; }
.stats__card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat{
  text-align: center; padding: 2.1rem 1rem;
  border-right: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.stat:last-child{ border-right: none; }
.stat:hover{ background: var(--brand-soft); }
.stat i{ font-size: 1.6rem; color: var(--brand); display:block; margin-bottom: .55rem; }
.stat__num{
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1.1;
}
.stat p{ margin: .3rem 0 0; font-size: .84rem; font-weight: 500; letter-spacing: .02em; }

/* ---------- 8. About + timeline ---------- */
.about__collage{ position: relative; padding-bottom: 60px; padding-right: 40px; }
.about__img{ border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main{ width: 100%; aspect-ratio: 4/5; }
.about__img--sub{
  position: absolute; right: 0; bottom: 0;
  width: 52%; aspect-ratio: 1/1;
  border: 8px solid var(--bg);
  border-radius: var(--radius);
}
.about__badge{
  position: absolute; top: 22px; left: -18px;
  background: var(--grad); color: #fff;
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  box-shadow: 0 18px 34px -14px rgba(13,110,253,.7);
  text-align: center; animation: bob 6s var(--ease) infinite;
}
.about__badge-num{ display:block; font-family: var(--font-display); font-weight:800; font-size: 1.7rem; line-height:1; }
.about__badge-txt{ display:block; font-size: .66rem; letter-spacing:.09em; text-transform: uppercase; opacity:.9; margin-top:.25rem; }

.mini-card{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.35rem;
  height: 100%; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.mini-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.mini-card i{ font-size: 1.5rem; color: var(--brand); }
.mini-card h3{ font-size: 1.02rem; margin: .55rem 0 .35rem; }
.mini-card p{ font-size: .87rem; margin: 0; }

.cred-strip{ display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.7rem; }
.cred-strip span{
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 500;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(13,110,253,.16);
  padding: .35rem .85rem; border-radius: 100px;
}

/* Timeline */
.timeline{ position: relative; max-width: 860px; margin-inline: auto; padding-left: 8px; }
.timeline::before{
  content:''; position:absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--brand), var(--brand-2), transparent);
  opacity: .28;
}
.timeline__item{ position: relative; padding-left: 76px; padding-bottom: 2.2rem; }
.timeline__item:last-child{ padding-bottom: 0; }
.timeline__dot{
  position:absolute; left: 0; top: 2px;
  width: 56px; height: 56px; border-radius: 17px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--surface); color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.timeline__item:hover .timeline__dot{ background: var(--grad); color:#fff; transform: scale(1.08) rotate(-6deg); }
.timeline__body{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.3rem 1.5rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.timeline__item:hover .timeline__body{ transform: translateX(6px); box-shadow: var(--shadow); }
.timeline__year{
  display:inline-block; font-family: var(--font-display); font-weight:700;
  font-size:.74rem; letter-spacing:.09em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom:.3rem;
}
.timeline__body h3{ font-size: 1.12rem; margin-bottom: .35rem; }
.timeline__body p{ margin: 0; font-size: .9rem; }

/* ---------- 9. Services ---------- */
.svc{
  position: relative; height: 100%; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.7rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.svc::before{
  content:''; position:absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--svc-accent, var(--grad)); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.svc::after{
  content:''; position:absolute; right:-60px; top:-60px; width:180px; height:180px; border-radius:50%;
  background: var(--svc-glow, rgba(13,110,253,.12)); filter: blur(28px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.svc:hover{ transform: translateY(-9px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc:hover::before{ transform: scaleX(1); }
.svc:hover::after{ opacity: 1; }

.svc__icon{
  position: relative; z-index:1;
  width: 62px; height: 62px; border-radius: 19px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--svc-glow, rgba(13,110,253,.12));
  color: var(--svc-color, var(--brand));
  margin-bottom: 1.1rem;
  transition: transform .4s var(--ease);
}
.svc:hover .svc__icon{ transform: scale(1.1) rotate(-7deg); }
.svc h3{ position:relative; z-index:1; font-size: 1.14rem; margin-bottom: .5rem; }
.svc p{ position:relative; z-index:1; font-size: .89rem; margin-bottom: 1rem; }
.svc__tag{
  position: relative; z-index:1;
  display:inline-block; font-family: var(--font-display);
  font-size:.68rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color: var(--svc-color, var(--brand));
  background: var(--svc-glow, rgba(13,110,253,.10));
  padding:.28rem .7rem; border-radius:7px;
}

/* Per-card accent colours — every card gets its own identity */
.svc--rose  { --svc-color:#E5397A; --svc-glow:rgba(229,57,122,.12); --svc-accent:linear-gradient(90deg,#E5397A,#FF7EB3); }
.svc--amber { --svc-color:#D98200; --svc-glow:rgba(217,130,0,.13);  --svc-accent:linear-gradient(90deg,#D98200,#FFC46B); }
.svc--violet{ --svc-color:#7B4DE3; --svc-glow:rgba(123,77,227,.12); --svc-accent:linear-gradient(90deg,#7B4DE3,#B79BFF); }
.svc--cyan  { --svc-color:#0093B8; --svc-glow:rgba(0,147,184,.13);  --svc-accent:linear-gradient(90deg,#0093B8,#6FE3FF); }
.svc--teal  { --svc-color:#0F9B8E; --svc-glow:rgba(15,155,142,.13); --svc-accent:linear-gradient(90deg,#0F9B8E,#6FE0D4); }
.svc--orange{ --svc-color:#E2661A; --svc-glow:rgba(226,102,26,.12); --svc-accent:linear-gradient(90deg,#E2661A,#FFAB73); }
.svc--indigo{ --svc-color:#3E52C4; --svc-glow:rgba(62,82,196,.12);  --svc-accent:linear-gradient(90deg,#3E52C4,#8E9CFF); }
.svc--slate { --svc-color:#5A6B85; --svc-glow:rgba(90,107,133,.14); --svc-accent:linear-gradient(90deg,#5A6B85,#A3B4CC); }
.svc--pink  { --svc-color:#C43E9B; --svc-glow:rgba(196,62,155,.12); --svc-accent:linear-gradient(90deg,#C43E9B,#FF9BDE); }
.svc--red   { --svc-color:#D93A3A; --svc-glow:rgba(217,58,58,.12);  --svc-accent:linear-gradient(90deg,#D93A3A,#FF8B8B); }
.svc--green { --svc-color:#2E9E52; --svc-glow:rgba(46,158,82,.13);  --svc-accent:linear-gradient(90deg,#2E9E52,#84E0A2); }
.svc--blue  { --svc-color:#0D6EFD; --svc-glow:rgba(13,110,253,.12); --svc-accent:var(--grad); }

/* ---------- 10. Why choose / glass cards ---------- */
.section--why{
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(13,110,253,.42), transparent 62%),
    radial-gradient(880px 480px at 88% 108%, rgba(0,180,216,.34), transparent 62%),
    var(--navy);
  position: relative; overflow: hidden;
}
.glass-card{
  position: relative; height: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 2.1rem 1.6rem 1.7rem;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.glass-card:hover{ transform: translateY(-9px); background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.26); }
.glass-card__no{
  position:absolute; top: .7rem; right: 1.1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 3.2rem;
  color: rgba(255,255,255,.08); line-height:1;
}
.glass-card i{ font-size: 1.9rem; color:#8FD4FF; display:block; margin-bottom: .9rem; }
.glass-card h3{ color:#fff; font-size: 1.1rem; margin-bottom: .5rem; }
.glass-card p{ color: rgba(255,255,255,.72); font-size: .88rem; margin: 0; }

/* ---------- 11. Achievements ---------- */
.ach{
  text-align:center; height:100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ach:hover{ transform: translateY(-8px); box-shadow: var(--shadow); }
.ach i{ font-size: 1.9rem; color: var(--gold); display:block; margin-bottom:.5rem; }
.ach p{ margin:.25rem 0 0; font-size:.84rem; }

.ach-detail{
  height:100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.6rem;
  border-left: 4px solid var(--brand);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ach-detail:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.ach-detail i{ font-size:1.7rem; color: var(--brand); }
.ach-detail h3{ font-size:1.1rem; margin:.6rem 0 .45rem; }
.ach-detail p{ font-size:.89rem; margin:0; }
.ach-detail--gold{ border-left-color: var(--gold); }
.ach-detail--gold i{ color: var(--gold); }

/* ---------- 12. Certificates rail ---------- */
.cert-rail{ position: relative; margin-top: 2.5rem; }
.cert-rail__track{
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.6rem; scroll-behavior: smooth;
  scrollbar-width: none;
}
.cert-rail__track::-webkit-scrollbar{ display: none; }

.cert-card{
  flex: 0 0 clamp(240px, 30vw, 320px); scroll-snap-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  text-align: left; padding: 0;
}
.cert-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cert-card__img{ position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-tint); }
.cert-card__img img{ width:100%; height:100%; object-fit: cover; transition: transform .6s var(--ease); }
.cert-card:hover .cert-card__img img{ transform: scale(1.07); }
.cert-card__zoom{
  position:absolute; inset: auto 12px 12px auto;
  width: 38px; height: 38px; border-radius: 50%;
  display:grid; place-items:center; color:#fff; font-size:.95rem;
  background: rgba(7,27,51,.62); backdrop-filter: blur(8px);
  opacity: 0; transform: scale(.7); transition: all .35s var(--ease);
}
.cert-card:hover .cert-card__zoom{ opacity:1; transform: scale(1); }
.cert-card__body{ padding: 1.1rem 1.2rem 1.3rem; }
.cert-card__body h3{ font-size: .98rem; margin-bottom: .25rem; }
.cert-card__body p{ font-size: .8rem; margin: 0; }

.rail-btn{
  position:absolute; top: 42%; z-index: 4;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display:grid; place-items:center; font-size: 1.1rem;
  transition: all .3s var(--ease);
}
.rail-btn:hover{ background: var(--grad); color:#fff; border-color: transparent; }
.rail-btn--prev{ left: -14px; }
.rail-btn--next{ right: -14px; }

/* Scanned document cards */
.doc-card{
  width:100%; text-align:left;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; display:flex; align-items:center; gap:.9rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.doc-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.doc-card i{ font-size: 1.7rem; color:#D93A3A; }
.doc-card strong{ display:block; font-family: var(--font-display); font-size:.92rem; color: var(--ink); }
.doc-card small{ font-size:.76rem; color: var(--body); }

/* ---------- 13. Gallery ---------- */
.filter-bar{ display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem; margin: 2rem 0 2.5rem; }
.filter-btn{
  font-family: var(--font-display); font-weight:600; font-size:.86rem;
  background: transparent; color: var(--body);
  border: 1.5px solid var(--line); border-radius: 100px; padding:.5rem 1.25rem;
  transition: all .3s var(--ease);
}
.filter-btn:hover{ color: var(--brand); border-color: var(--brand); }
.filter-btn.is-active{ background: var(--grad); color:#fff; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(13,110,253,.6); }

.masonry{ column-count: 3; column-gap: 1.25rem; }
.masonry__item{
  break-inside: avoid; margin-bottom: 1.25rem;
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
  cursor: pointer; display: block; width: 100%; padding: 0; border: none; background: none;
  box-shadow: var(--shadow-sm);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.masonry__item img{ width:100%; display:block; transition: transform .7s var(--ease), filter .5s var(--ease); }
.masonry__item:hover img{ transform: scale(1.08); }
.masonry__item::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(7,27,51,.85) 0%, rgba(7,27,51,.15) 45%, transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.masonry__item:hover::after{ opacity: 1; }
.masonry__cap{
  position:absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2;
  color:#fff; text-align:left;
  opacity:0; transform: translateY(12px);
  transition: all .4s var(--ease);
}
.masonry__item:hover .masonry__cap{ opacity:1; transform: translateY(0); }
.masonry__cap strong{ display:block; font-family: var(--font-display); font-size:.92rem; }
.masonry__cap small{ font-size:.75rem; opacity:.8; }
.masonry__item.is-hidden{ display: none; }

/* ---------- 14. Videos ---------- */
.video-grid{
  display: grid; gap: 1.25rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.video-card{
  position: relative; aspect-ratio: 9/14; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; padding: 0; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(160deg, #0F2A4A 0%, #071B33 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: left; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.video-card::before{
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 50% 32%, rgba(0,180,216,.30), transparent 62%);
  transition: opacity .45s var(--ease);
}
.video-card:hover{ transform: translateY(-8px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.video-card__play{
  position:absolute; top: 42%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items:center; font-size: 1.4rem; color:#fff;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px);
  transition: all .4s var(--ease);
}
.video-card:hover .video-card__play{ background: var(--grad); border-color: transparent; transform: translate(-50%,-50%) scale(1.14); }
.video-card__meta{ position: relative; z-index:2; padding: 1.1rem 1.15rem; }
.video-card__meta strong{ display:block; font-family: var(--font-display); font-size:.92rem; color:#fff; }
.video-card__meta small{ font-size:.76rem; color: rgba(255,255,255,.6); }
.video-card__quote{
  position:absolute; top: 1rem; left: 1.1rem; z-index:2;
  font-size: 1.5rem; color: rgba(255,255,255,.22);
}

/* ---------- 15. Events ---------- */
.events{ display:grid; gap: 1.5rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); }
.event-card{
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius); overflow:hidden; height:100%;
  display:flex; flex-direction:column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.event-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.event-card__img{ position:relative; aspect-ratio: 16/10; overflow:hidden; }
.event-card__img img{ width:100%; height:100%; object-fit: cover; transition: transform .7s var(--ease); }
.event-card:hover .event-card__img img{ transform: scale(1.08); }
.event-card__date{
  position:absolute; top: .9rem; left: .9rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 10px; padding: .3rem .75rem;
  font-family: var(--font-display); font-size:.74rem; font-weight:700;
  color: var(--brand); border: 1px solid var(--line);
}
.event-card__body{ padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.event-card__body h3{ font-size:1.06rem; margin-bottom:.45rem; }
.event-card__body p{ font-size:.87rem; margin:0; }

/* ---------- 16. Awareness ---------- */
.aware-card{
  height:100%; background: var(--surface); border:1px solid var(--line);
  border-radius: var(--radius); overflow:hidden; cursor:pointer;
  padding: 0; text-align:left; width:100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.aware-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.aware-card__img{ aspect-ratio: 4/3; overflow:hidden; background: var(--bg-tint); }
.aware-card__img img{ width:100%; height:100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.aware-card:hover .aware-card__img img{ transform: scale(1.06); }
.aware-card__body{ padding: 1.2rem 1.35rem 1.4rem; }
.aware-card__body h3{ font-size:1.02rem; margin-bottom:.35rem; }
.aware-card__body p{ font-size:.85rem; margin:0; }

/* ---------- 17. Testimonials ---------- */
.testimonial-carousel{ max-width: 860px; margin: 3rem auto 0; }
.tst{
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  text-align: center;
}
.tst__quote{ font-size: 2rem; color:#8FD4FF; opacity:.6; }
.tst__text{
  font-size: clamp(1rem, 1.7vw, 1.24rem); color: #fff; font-weight: 300;
  line-height: 1.75; margin: .8rem 0 1.5rem;
}
.tst__stars{ color: #FFC94D; font-size: 1rem; letter-spacing: .15em; margin-bottom: .9rem; }
.tst__who{ display:flex; align-items:center; justify-content:center; gap:.85rem; }
.tst__avatar{
  width: 52px; height: 52px; border-radius: 50%; display:grid; place-items:center;
  background: var(--grad); color:#fff; font-family: var(--font-display); font-weight:700; font-size:1.15rem;
}
.tst__who strong{ display:block; color:#fff; font-family: var(--font-display); font-size:.98rem; }
.tst__who small{ color: rgba(255,255,255,.6); font-size:.8rem; }

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next{
  width: 46px; height: 46px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  border-radius: 50%; opacity: 1; color:#fff; font-size:1.05rem;
  display: grid; place-items: center;
  transition: background .3s var(--ease);
}
.testimonial-carousel .carousel-control-prev{ left: -18px; }
.testimonial-carousel .carousel-control-next{ right: -18px; }
.testimonial-carousel .carousel-control-prev:hover,
.testimonial-carousel .carousel-control-next:hover{ background: var(--grad); }
.testimonial-carousel .carousel-indicators{ bottom: -46px; margin: 0; }
.testimonial-carousel .carousel-indicators [data-bs-target]{
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.32); opacity:1; margin: 0 5px;
  transition: all .3s var(--ease);
}
.testimonial-carousel .carousel-indicators .active{ background: #8FD4FF; width: 26px; border-radius: 6px; }

/* ---------- 18. CTA banner ---------- */
.cta-banner{ position: relative; overflow: hidden; padding: clamp(56px, 7vw, 92px) 0; color:#fff; }
.cta-banner__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(700px 380px at 15% 0%, rgba(0,180,216,.55), transparent 60%),
    linear-gradient(115deg, #0B3FA8 0%, #0D6EFD 48%, #00B4D8 100%);
}
.cta-banner__bg::after{
  content:''; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 24px 24px; opacity:.5;
}
.cta-banner h2{ color:#fff; font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin-bottom:.6rem; }
.cta-banner p{ color: rgba(255,255,255,.85); margin:0; font-size: .98rem; }
.cta-banner .btn-light{ color: var(--brand); font-weight: 700; }
.cta-banner .btn-light:hover{ transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(0,0,0,.4); }

/* ---------- 19. FAQ ---------- */
.faq-accordion .accordion-item{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important; margin-bottom: .9rem; overflow: hidden;
}
.faq-accordion .accordion-button{
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--ink); background: transparent; padding: 1.15rem 1.4rem;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed){ color: var(--brand); background: var(--brand-soft); }
.faq-accordion .accordion-button::after{
  width: 1.1rem; height: 1.1rem; background-size: 1.1rem;
}
.faq-accordion .accordion-body{ padding: 0 1.4rem 1.35rem; font-size: .92rem; }

/* ---------- 20. Contact ---------- */
.contact-panel, .form-panel{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem);
  height: 100%; box-shadow: var(--shadow-sm);
}
.contact-row{ display:flex; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.contact-row:nth-last-child(2){ border-bottom: none; margin-bottom: .5rem; }
.contact-row__icon{
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
  display:grid; place-items:center; font-size:1.15rem;
  background: var(--brand-soft); color: var(--brand);
}
.contact-row h3{ font-size:.98rem; margin-bottom:.25rem; }
.contact-row p{ margin:0; font-size:.88rem; }
.contact-row em{ font-style: normal; color: var(--brand-2); font-size:.82rem; }

.map-wrap{ border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); margin-top: 1rem; }
.map-wrap iframe{ width:100%; height: 260px; border: 0; display:block; filter: saturate(.9); }
[data-bs-theme="dark"] .map-wrap iframe{ filter: invert(.9) hue-rotate(180deg) saturate(.7); }

.form-panel h3{ font-size: 1.3rem; margin-bottom: .35rem; }
.form-panel__note{ font-size:.86rem; margin-bottom: 1.4rem; }
.form-panel__legal{ font-size:.76rem; color: var(--body); margin: .4rem 0 0; opacity:.85; }

.form-label{ font-family: var(--font-display); font-weight:600; font-size:.83rem; color: var(--ink); margin-bottom:.35rem; }
.form-control, .form-select{
  background: var(--bg-tint); border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: .72rem .95rem; font-size:.92rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.form-control::placeholder{ color: var(--body); opacity:.6; }
.form-control:focus, .form-select:focus{
  background: var(--surface); border-color: var(--brand); color: var(--ink);
  box-shadow: 0 0 0 4px rgba(13,110,253,.13);
}

/* ---------- 21. Footer ---------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,.62); padding: clamp(56px, 7vw, 86px) 0 0; }
.site-footer h4{
  color:#fff; font-size:.82rem; letter-spacing:.12em; text-transform: uppercase;
  margin-bottom: 1.1rem; font-weight: 700;
}
.brand--footer{ margin-bottom: 1.1rem; }
.brand--footer .brand__text strong{ color:#fff; }
.brand--footer .brand__text small{ color:#8FD4FF; }
.footer__blurb{ font-size:.88rem; max-width: 340px; }
.footer__links{ list-style:none; padding:0; margin:0; }
.footer__links li{ margin-bottom:.55rem; }
.footer__links a{ color: rgba(255,255,255,.62); font-size:.89rem; transition: all .25s var(--ease); display:inline-block; }
.footer__links a:hover{ color:#fff; transform: translateX(5px); }
.footer__addr{ font-size:.88rem; margin-bottom:1rem; }
.footer__addr a{ color:#8FD4FF; }

.social{ display:flex; gap:.6rem; margin-top:1.1rem; }
.social a{
  width: 42px; height:42px; border-radius: 50%; display:grid; place-items:center;
  background: rgba(255,255,255,.08); color:#fff; font-size:1.05rem;
  border: 1px solid rgba(255,255,255,.12);
  transition: all .3s var(--ease);
}
.social a:hover{ background: var(--grad); transform: translateY(-4px); border-color: transparent; }

.footer__bar{
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem; padding: 1.6rem 0;
  display:flex; flex-wrap: wrap; gap:.5rem 1.5rem; justify-content: space-between; align-items:center;
}
.footer__bar p{ margin:0; font-size:.8rem; }
.footer__disclaimer{ opacity:.65; }

/* ---------- 22. Floating actions & modals ---------- */
/* All floating icons live on the right, stacked above the back-to-top button. */
.floaties{
  position: fixed; right: 20px; bottom: 84px; z-index: 1040;
  display:flex; flex-direction: column; align-items: flex-end; gap:.7rem;
}
.floatie{
  display:flex; align-items:center; justify-content: flex-start;
  flex-direction: row-reverse;              /* icon pinned right, label reveals leftward */
  width: 52px; height: 52px; border-radius: 100px;
  color:#fff; font-size:1.25rem; overflow:hidden; white-space: nowrap;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.45);
  transition: width .38s var(--ease), transform .3s var(--ease);
}
/* The icon is a fixed square exactly the size of the collapsed circle,
   so its glyph is always centred and can never be clipped. */
.floatie i{
  flex: 0 0 52px; height: 52px;
  display: grid; place-items: center;
}
.floatie span{
  font-family: var(--font-display); font-size:.86rem; font-weight:600;
  padding-left: 1rem; opacity: 0;
  transition: opacity .28s var(--ease);
}
.floatie:hover{ width: 172px; color:#fff; transform: translateY(-3px); }
.floatie:hover span{ opacity: 1; }
.floatie--wa  { background: linear-gradient(135deg,#25D366,#0FA95A); }
.floatie--call{ background: linear-gradient(135deg,#0D6EFD,#0044C4); }
.floatie--book{ background: linear-gradient(135deg,#00B4D8,#0086A8); }

.back-to-top{
  position: fixed; right: 20px; bottom: 22px; z-index: 1040;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--grad); color:#fff; font-size:1.15rem;
  box-shadow: 0 12px 26px -10px rgba(13,110,253,.7);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .4s var(--ease);
}
.back-to-top.is-visible{ opacity:1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ transform: translateY(-4px); }

/* Modals */
.lightbox-modal .modal-content,
.video-modal .modal-content,
.doc-modal .modal-content{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.lightbox-modal img{ width:100%; max-height: 78vh; object-fit: contain; background: var(--bg-tint); display:block; }
.lightbox-modal__caption{ padding: 1.1rem 1.4rem 1.3rem; }
.lightbox-modal__caption h5{ font-family: var(--font-display); font-size:1.05rem; margin-bottom:.2rem; color: var(--ink); }
.lightbox-modal__caption p{ margin:0; font-size:.87rem; color: var(--body); }

.btn-close-custom{
  position:absolute; top: 12px; right: 12px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(7,27,51,.6); color:#fff; font-size:.95rem;
  backdrop-filter: blur(10px);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn-close-custom:hover{ background: #D93A3A; transform: rotate(90deg); }

.lightbox-nav{
  position:absolute; top: 50%; transform: translateY(-50%); z-index: 9;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(7,27,51,.55); color:#fff; font-size:1.1rem;
  backdrop-filter: blur(10px); transition: background .3s var(--ease);
}
.lightbox-nav:hover{ background: var(--brand); }
.lightbox-nav--prev{ left: 12px; }
.lightbox-nav--next{ right: 12px; }

.video-modal video{ width:100%; height:100%; background:#000; }
.video-modal__caption{ padding: 1rem 1.3rem 1.2rem; }
.video-modal__caption h5{ font-family: var(--font-display); font-size:1rem; margin:0; color: var(--ink); }

.doc-modal iframe{ width:100%; height: 82vh; border: 0; display:block; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1399.98px){
  .site-nav__menu .nav-link{ padding: .5rem .62rem; font-size: .88rem; }
}

@media (max-width: 1199.98px){
  .navbar-collapse{
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); margin-top: .8rem; padding: .8rem;
    box-shadow: var(--shadow);
  }
  .site-nav__menu{ margin: 0 !important; }
  .site-nav__menu .nav-link{ padding: .62rem .9rem; }
  .site-nav__menu .nav-link::after{ display: none; }
  .site-nav.is-stuck{ height: auto; min-height: 72px; }
  .hero{ min-height: auto; }
  .masonry{ column-count: 2; }
  .float-card--a{ left: 0; }
  .float-card--b{ right: 0; }
}

@media (max-width: 991.98px){
  .hero{ text-align: center; padding-top: calc(var(--nav-h) + 32px); }
  .hero__lead{ margin-inline: auto; }
  .hero__facts li{ justify-content: center; }
  .hero__cta{ justify-content: center; }
  .hero__trust{ justify-content: center; }
  .hero__portrait{ margin-top: 3rem; max-width: 380px; }
  .about__collage{ max-width: 460px; margin-inline: auto; }
  .stat{ border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n){ border-right: none; }
  .testimonial-carousel .carousel-control-prev{ left: -6px; }
  .testimonial-carousel .carousel-control-next{ right: -6px; }
  .cta-banner{ text-align: center; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 767.98px){
  :root{ --nav-h: 74px; }

  .masonry{ column-count: 1; }

  /* Arrows sat on top of the first card. Touch users swipe the rail instead. */
  .rail-btn{ display: none; }
  .cert-rail__track{ padding-inline: 0; scroll-padding-inline: 0; }

  .float-card{ padding: .5rem .65rem; gap: .5rem; }
  .float-card i{ font-size: 1rem; }
  .float-card strong{ font-size: .7rem; }
  .float-card small{ font-size: .6rem; }
  .float-card--a{ top: 3%; left: -2%; }
  .float-card--b{ bottom: 18%; right: -2%; }
  .float-card--c{ display: none; }

  .timeline__item{ padding-left: 62px; }
  .timeline::before{ left: 22px; }
  .timeline__dot{ width: 46px; height: 46px; border-radius: 14px; font-size: 1.05rem; }

  .footer__bar{ justify-content: center; text-align: center; }

  /* The "MD" badge overhung the collage and clipped off-screen */
  .about__collage{ padding-right: 24px; padding-bottom: 48px; }
  .about__badge{ left: 6px; top: 12px; padding: .7rem .85rem; }
  .about__badge-num{ font-size: 1.35rem; }

  /* Carousel arrows overlapped the quote text — move them under the card */
  .testimonial-carousel{ padding-bottom: 62px; }
  .testimonial-carousel .carousel-control-prev,
  .testimonial-carousel .carousel-control-next{
    top: auto; bottom: 0; transform: none;
    width: 42px; height: 42px;
    background: rgba(255,255,255,.14);
  }
  .testimonial-carousel .carousel-control-prev{ left: calc(50% - 58px); }
  .testimonial-carousel .carousel-control-next{ right: calc(50% - 58px); }
  .testimonial-carousel .carousel-indicators{ bottom: 12px; }

  /* Stats sit 2×2 — the last row must not carry a trailing rule */
  .stat:nth-last-child(-n+2){ border-bottom: none; }

  .contact-row{ gap: .8rem; }
  .map-wrap iframe{ height: 220px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 479.98px){
  .section{ padding: 62px 0; }
  .hero__cta .btn{ width: 100%; }
  .hero__trust{ flex-direction: column; text-align: center; gap: .6rem; }
  .filter-bar{ gap: .4rem; }
  .filter-btn{ padding: .45rem 1rem; font-size: .8rem; }
  .glass-card, .svc{ padding: 1.6rem 1.25rem 1.4rem; }
  .contact-panel, .form-panel{ padding: 1.35rem 1.15rem; }
  .float-card--b{ display: none; }   /* one floating chip is enough at this width */
  .stat{ padding: 1.5rem .75rem; }
  .footer__bar p{ font-size: .74rem; }
}

/* ---------- Touch-friendly controls (any pointer that isn't a mouse) ---------- */
@media (hover: none){
  /* Hover-to-expand pills never expand on touch — keep them as round icons
     with the glyph centred in the circle. */
  .floatie{ width: 52px; height: 52px; justify-content: center; }
  .floatie i{ flex: 0 0 auto; height: auto; }
  .floatie span{ display: none; }
  .floatie:hover{ width: 52px; transform: none; }

  /* Hover-reveal captions are unreachable on touch, so show them by default */
  .masonry__item::after{ opacity: 1; }
  .masonry__cap{ opacity: 1; transform: none; }
  .cert-card__zoom{ opacity: 1; transform: scale(1); }
}

/* ---------- Mobile safe areas & iOS input zoom ---------- */
@media (max-width: 991.98px){
  /* Respect the notch and home indicator; keep the stack above back-to-top */
  .floaties{
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px);
    gap: .55rem;
  }
  .back-to-top{
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  /* iOS Safari auto-zooms into any field smaller than 16px. Keep them at 16. */
  .form-control, .form-select{ font-size: 16px; }

  /* Minimum 44px touch targets */
  .navbar-toggler{ min-width: 44px; min-height: 44px; }
  .site-nav__menu .nav-link{ min-height: 44px; display: flex; align-items: center; }
  .footer__links a{ padding: .15rem 0; }

  /* A long menu must scroll rather than run off a short screen */
  .navbar-collapse{ max-height: 72vh; overflow-y: auto; }
}

/* ----------------------------------------------------------
   AOS slides elements in from ±100px horizontally. On a phone
   that offset is a large fraction of the screen and briefly
   widens the page, so swap the horizontal entrances for
   vertical ones below tablet width.
   (style.css loads after aos.css, so equal specificity wins.)
   ---------------------------------------------------------- */
@media (max-width: 991.98px){
  [data-aos="fade-left"][data-aos="fade-left"],
  [data-aos="fade-right"][data-aos="fade-right"],
  [data-aos="fade-up-left"][data-aos="fade-up-left"],
  [data-aos="fade-up-right"][data-aos="fade-up-right"]{
    transform: translate3d(0, 26px, 0);
  }
  [data-aos="fade-down-left"][data-aos="fade-down-left"],
  [data-aos="fade-down-right"][data-aos="fade-down-right"]{
    transform: translate3d(0, -26px, 0);
  }
  /* The settled state must still win once AOS adds .aos-animate */
  [data-aos][data-aos].aos-animate{ transform: translate3d(0, 0, 0); }
}

/* ---------- Phone in landscape ---------- */
@media (max-height: 520px) and (orientation: landscape){
  .hero{ min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .floaties{ flex-direction: row; }
  .loader__pulse{ width: 56px; height: 56px; font-size: 1.5rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cursor-glow, .particles{ display: none !important; }
}

/* ---------- Print ---------- */
@media print{
  .site-nav, .floaties, .back-to-top, .scroll-progress, .loader, .cursor-glow,
  .hero__bg, .video-grid, .map-wrap{ display: none !important; }
  body{ background:#fff; color:#000; }
  .section{ padding: 24px 0; break-inside: avoid; }
}
