/* ===========================================================
   Wisdom Rehabilitation Center — Main Stylesheet
   =========================================================== */

:root {
  --purple-dark: #3b1664;
  --purple: #6a1fb1;
  --purple-light: #9b4fd1;
  --teal: #1aa693;
  --pink: #e8408a;
  --yellow: #f6c445;
  --blue: #3aa0e0;
  --orange: #f0902e;
  --green: #35b07a;
  --ink: #241433;
  --muted: #6c6377;
  --body-text: #4a4356;
  --bg: #ffffff;
  --bg-soft: #faf7fd;
  --bg-card: #ffffff;
  --border: #ece4f5;
  --shadow: 0 10px 30px rgba(59, 22, 100, 0.08);
  --shadow-lg: 0 20px 50px rgba(59, 22, 100, 0.16);
  --radius: 18px;
  --container: 1200px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 800; line-height: 1.2; color: var(--purple-dark); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--body-text); line-height: 1.75; }

.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(135deg, var(--purple-dark), var(--purple)); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 3px;
  background: var(--yellow);
  border-radius: 3px;
  display: inline-block;
}

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 10px 25px rgba(232, 64, 138, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(232, 64, 138, .45); }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--purple); transform: translateY(-3px); }
.btn-ghost {
  background: #fff;
  color: var(--purple);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--purple); transform: translateY(-3px); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: relative;
  z-index: 1000;
  background: #fff;
  padding: 6px 0;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--purple-dark);
  background: #fff;
  border-radius: 50px;
  padding: 4px 16px 4px 4px;
  box-shadow: none;
  flex-shrink: 0;
}
.logo .logo-mark {
  width: var(--logo-size, 48px); height: var(--logo-size, 48px);
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  flex-shrink: 0;
}
.logo .logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.logo .logo-text { line-height: 1.15; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.logo .logo-text small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .08em; margin-top: 3px; }
header.site-header .logo .logo-mark { width: min(var(--logo-size, 48px), 48px); height: min(var(--logo-size, 48px), 48px); }

.nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 50px;
  padding: 4px 4px 4px 12px;
  box-shadow: none;
}

nav.main-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
nav.main-nav li { display: flex; align-items: center; }
nav.main-nav a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1;
  color: var(--ink);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
nav.main-nav a:hover {
  background: var(--bg-soft);
  color: var(--purple);
}
nav.main-nav a.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
}

.nav-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 40px; padding: 0 24px !important; display: inline-flex; align-items: center; line-height: 1; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--purple-dark); border-radius: 3px; }

/* ---------- Services dropdown ---------- */
.has-dropdown { position: relative; display: flex; align-items: center; }
.has-dropdown > .dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.has-dropdown .caret { font-size: .7rem; transition: transform .25s ease; line-height: 1; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 50;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  width: 100%;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  background: var(--purple-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 7s ease-out;
}
.hero-slide.active .slide-bg { transform: scale(1); }

.hero-slide .slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* "Show full" variant: whole video frame visible, letterboxed, no cropping */
.hero-slide-video-contain .slide-video {
  object-fit: contain;
  background: var(--purple-dark);
}

.hero-slide-video .slide-content {
  color: #fff;
}
.hero-slide-video .slide-content span.tag {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.hero-slide-video .slide-content h1,
.hero-slide-video .slide-content h2 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}
.hero-slide-video .slide-content p {
  color: #f1e8fb;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-slide-video .slide-content .btn-outline {
  background: rgba(59, 22, 100, .35);
  backdrop-filter: blur(2px);
}

.hero-slide .slide-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  padding: 0 24px;
  margin: 0;
  margin-left: clamp(24px, 6vw, 96px);
  margin-right: auto;
  color: var(--ink);
}
.hero-slide .slide-content span.tag {
  display: inline-block;
  background: rgba(106,31,177,.1);
  border: 1px solid rgba(106,31,177,.35);
  color: var(--purple);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
}
.hero-slide .slide-content h1,
.hero-slide .slide-content h2 {
  color: var(--purple-dark);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 2px 20px rgba(255,255,255,.6);
}
.hero-slide .slide-content p {
  color: var(--ink);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 2px 16px rgba(255,255,255,.5);
}
.hero-slide .slide-content .slide-btns {
  display: flex;
  gap: 14px;
  opacity: 0;
  transform: translateY(30px);
  flex-wrap: wrap;
}

.hero-slide.active .slide-content span.tag { animation: slideUpIn .8s ease .3s forwards; }
.hero-slide.active .slide-content h1,
.hero-slide.active .slide-content h2 { animation: slideUpIn .9s ease .5s forwards; }
.hero-slide.active .slide-content p { animation: slideUpIn .9s ease .7s forwards; }
.hero-slide.active .slide-content .slide-btns { animation: slideUpIn .9s ease .9s forwards; }

@keyframes slideUpIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--purple);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: background .25s, transform .25s, color .25s;
}
.hero-nav:hover { background: var(--purple); color: #fff; transform: translateY(-50%) scale(1.08); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(106,31,177,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.hero-dots button.active { background: var(--yellow); transform: scale(1.25); }

.hero-progress {
  position: absolute;
  z-index: 5;
  bottom: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  width: 0%;
}

/* ---------- Services Marquee (beside hero slider) ---------- */
.services-marquee {
  position: relative;
  z-index: 6;
  margin-top: 0;
  padding: 40px 0;
  background: var(--bg-soft);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
  padding: 0 20px;
  animation: marqueeLeft 28s linear infinite;
}
.services-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-card {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--purple-dark);
}
.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.marquee-card:hover img { transform: scale(1.08); }
.marquee-card .marquee-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, rgba(59,22,100,0) 40%, rgba(59,22,100,.85) 100%);
}
.marquee-card .marquee-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
}
@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .services-marquee { margin-top: 0; }
  .marquee-card { width: 170px; height: 130px; }
}

/* floating badges on hero */
.hero-float {
  position: absolute;
  z-index: 4;
  background: #fff;
  color: var(--purple-dark);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatY 4s ease-in-out infinite;
}
.hero-float .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.hero-float.f1 { bottom: 16%; right: 44%; animation-delay: 0s; }
.hero-float.f2 { bottom: 16%; right: 16%; animation-delay: 1.5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
  padding: 30px 24px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.trust-grid .num { font-size: 2.1rem; font-weight: 800; color: var(--purple); }
.trust-grid .label { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; min-width: 0; }
.grid-2 > * { min-width: 0; }

.service-card[style*="flex"] > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card.has-thumb { padding: 0 0 26px; }
.service-card .thumb {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  margin-bottom: 44px;
}
.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}
.service-card .icon svg { width: 28px; height: 28px; }
.service-card .thumb .icon {
  position: absolute;
  left: 26px;
  bottom: -28px;
  margin-bottom: 0;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}
.service-card .card-body { padding: 0 26px; }
.service-card a.more { font-weight: 700; color: var(--pink); display: inline-flex; align-items: center; gap: 6px; }
.service-card a.more svg { transition: transform .25s; }
.service-card:hover a.more svg { transform: translateX(5px); }

.bg-teal { background: linear-gradient(135deg, var(--teal), #0d7d6e); }
.bg-pink { background: linear-gradient(135deg, var(--pink), #b32768); }
.bg-orange { background: linear-gradient(135deg, var(--orange), #c76c10); }
.bg-purple { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); }
.bg-blue { background: linear-gradient(135deg, var(--blue), #1f6fa8); }
.bg-green { background: linear-gradient(135deg, var(--green), #1f7d53); }

/* About / image-text split with scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.left { transform: translateX(-50px); }
.reveal.left.in-view { transform: translateX(0); }
.reveal.right { transform: translateX(50px); }
.reveal.right.in-view { transform: translateX(0); }

.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; transition: transform .6s ease; }
.img-frame:hover img { transform: scale(1.05); }

.badge-float {
  position: absolute;
  bottom: -24px; left: -24px;
  background: #fff;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}
.badge-float .circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}
.check-list li .tick {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  margin-top: 2px;
}
/* Items with a bold "Label: description" shape (e.g. services/approach lists) get the
   label on its own line so it doesn't run on into the description mid-sentence. */
.check-list li strong {
  display: block;
  color: var(--purple-dark);
  margin-bottom: 2px;
}
.section-dark .check-list li { color: #fff; }
.section-dark .check-list li strong { color: #fff; }

/* Approach steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.section-dark .step-card h3 { color: var(--purple-dark); }
.section-dark .step-card p { color: var(--muted); }
.step-card .step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* Testimonials */
.testimonial-slider { position: relative; max-width: 780px; margin: 0 auto; min-height: 240px; }
.testimonial-item {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
  text-align: center;
}
.testimonial-item.active { opacity: 1; visibility: visible; position: relative; }
.testimonial-item .stars { color: var(--yellow); font-size: 1.2rem; margin-bottom: 14px; }
.testimonial-item p.quote { font-size: 1.2rem; font-style: italic; color: var(--ink); }
.testimonial-item .name { font-weight: 800; color: var(--purple-dark); }
.testimonial-item .role { font-size: .85rem; color: var(--muted); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.testimonial-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: var(--border); cursor: pointer;
}
.testimonial-dots button.active { background: var(--pink); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--pink), var(--purple) 60%, var(--purple-dark));
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-band::before { width: 260px; height: 260px; top: -100px; left: -60px; }
.cta-band::after { width: 180px; height: 180px; bottom: -80px; right: -40px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f3e8ff; }

/* Breadcrumb / page hero (sub-pages) */
.page-hero {
  background: linear-gradient(120deg, var(--purple-dark), var(--purple) 70%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 0 0 14px; line-height: 1.2; }
.page-hero p.lead { margin: 0; line-height: 1.6; }
.page-hero::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(246,196,69,.25), transparent 70%);
  top: -120px; right: -80px;
}
.page-hero .crumbs { font-size: .85rem; color: #e9defa; margin-bottom: 14px; }
.page-hero .crumbs a { color: #fff; font-weight: 600; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p.lead { color: #e9defa; max-width: 680px; font-size: 1.1rem; }

/* Footer */
footer.site-footer { background: linear-gradient(180deg, var(--purple-dark), #2a0f48); color: #d9c9ef; padding-top: 64px; position: relative; }
footer.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--yellow), var(--pink), var(--purple)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 56px; padding-bottom: 48px; align-items: start; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin: 0 0 22px; line-height: 1.2; position: relative; padding-bottom: 12px; }
.footer-grid h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--yellow); }
.footer-grid p { color: #c6b6dd; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 12px; line-height: 1.5; }
.footer-grid ul a { color: #c6b6dd; transition: color .2s, padding-left .2s; }
.footer-grid ul a:hover { color: var(--yellow); padding-left: 4px; }
.footer-grid > div:first-child .logo { display: inline-flex; padding: 0; gap: 12px; background: transparent; box-shadow: none; border-radius: 0; }
.footer-grid > div:first-child .logo .logo-mark { width: 44px; height: 44px; background: #fff; border: 2px solid rgba(255,255,255,.25); }
.footer-grid > div:first-child .logo .logo-text { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-grid > div:first-child .logo .logo-text small { font-size: .66rem; color: var(--yellow); letter-spacing: .12em; margin-top: 4px; }
.footer-about { margin: 18px 0 0; max-width: 340px; font-size: .93rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--yellow); color: var(--purple-dark); transform: translateY(-3px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact .fi { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.footer-contact li > span:last-child { padding-top: 6px; }
.footer-grid .footer-contact a:hover { padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .86rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; color: #a893c4; }

/* About: Mission & Vision cards (full-width, equal two-column) */
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; align-items: stretch; }
.mv-card { display: flex; align-items: center; gap: 22px; padding: 28px 32px !important; text-align: left; }
.mv-card .icon { flex: 0 0 64px; width: 64px; height: 64px; margin: 0 !important; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
.mv-card .mv-text { min-width: 0; }
.mv-card strong { display: block; font-size: 1.2rem; color: var(--purple-dark); margin-bottom: 6px; }
.mv-card p { margin: 0; font-size: 1rem; line-height: 1.6; }
@media (max-width: 700px) { .mv-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; } .mv-card { padding: 22px !important; } }
/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  border: none;
  font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-slider { height: 580px; }
}

@media (max-width: 860px) {
  nav.main-nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 340px; height: 100vh;
    background: #fff; flex-direction: column; padding: 100px 30px 30px; transition: right .35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 1001; }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  nav.main-nav li { align-items: stretch; }
  nav.main-nav a { height: auto; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav-divider { display: none; }
  .nav-bar { padding: 8px; }

  .has-dropdown { width: 100%; flex-direction: column; align-items: stretch; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-soft);
    display: none;
    margin-top: 4px;
    padding: 6px;
  }
  .has-dropdown.open .dropdown-menu { display: flex; }
  .has-dropdown .caret { margin-left: auto; }
  .has-dropdown > .dropdown-toggle { display: flex; justify-content: space-between; }

  .nav-wrap { padding: 0 14px; gap: 8px; }
  .logo { padding: 6px 14px 6px 6px; gap: 8px; min-width: 0; }
  .logo .logo-mark { width: var(--logo-size-mobile, 38px); height: var(--logo-size-mobile, 38px); font-size: 1.05rem; }
  .logo .logo-text { font-size: .82rem; white-space: normal; }
  .logo .logo-text small { font-size: .6rem; white-space: normal; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 0 14px !important; font-size: .82rem; }
}

@media (max-width: 420px) {
  .nav-cta .btn-primary { display: none; }
}

@media (max-width: 700px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .hero-slider { height: auto; min-height: 444px; padding: 0; overflow: visible; }
  .hero-slide { position: relative; inset: auto; display: block; min-height: 444px; }
  .hero-slide.active { position: relative; }
  .hero-slide:not(.active) { display: none; }
  .hero-slide .slide-bg,
  .hero-slide .slide-video { position: absolute; inset: 0; height: 100%; object-position: right center; }
  .hero-slide .slide-content {
    margin: 0;
    padding: 0 20px;
    max-width: 100%;
  }
  .hero-slide .slide-content span.tag { display: none; }
  .hero-slide .slide-content h1,
  .hero-slide .slide-content h2 {
    font-size: 1.85rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.8);
  }
  .hero-slide .slide-content p { display: none; }
  .hero-slide .slide-btns { flex-wrap: wrap; margin-top: 4px; }

  .hero-slide { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-slide .slide-content { padding-bottom: 36px; }
  .hero-float { display: none !important; }

  .hero-nav { width: 40px; height: 40px; font-size: 1rem; top: 16px; transform: none; }
  .hero-dots { display: none; }

  /* Service cards become their own clean, clearly separated section on mobile
     instead of overlapping the hero image via a negative margin. */
  .services-marquee {
    margin-top: 0;
    padding: 28px 0 24px;
    background: var(--bg-soft);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cta-band { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Inner page hero banner (e.g. pages/*.php): give it proper breathing room
     below the fixed header and above the next section on mobile. */
  .page-hero { padding: 36px 0 40px; }
  .page-hero .crumbs { margin-bottom: 18px; }
  .page-hero h1 { font-size: 1.7rem; margin-bottom: 14px; }
  .page-hero p.lead { font-size: 1rem; }
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.gallery-filter-btn {
  padding: 9px 20px;
  border-radius: 50px;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.gallery-filter-btn:hover { border-color: var(--purple); color: var(--purple); }
.gallery-filter-btn.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-color: transparent;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(59,22,100,0) 40%, rgba(59,22,100,.85) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  padding: 16px;
  text-align: center;
}
.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay { opacity: 1; }
.gallery-zoom-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid #fff;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gallery-zoom-icon svg { width: 20px; height: 20px; }
.gallery-item-title { color: #fff; font-weight: 700; font-size: .9rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 8, 36, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption { color: #fff; margin-top: 16px; font-weight: 600; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Home: Our Promise ---------- */
.promise-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.promise-body, .promise-media { min-width: 0; text-align: left; }
.promise-body h2 { margin-bottom: 16px; }
.promise-intro { font-size: 1.02rem; line-height: 1.7; margin-bottom: 26px; }
.promise-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px 28px 14px;
  box-shadow: var(--shadow);
}
.promise-list-card h3 { font-size: 1.1rem; margin: 0 0 16px; color: var(--purple-dark); }
.promise-list-card .check-list { margin: 0; padding: 0; }
.promise-media .img-frame img { display: block; width: 100%; }
.promise-closing { margin: 22px 0 0; font-size: 1rem; line-height: 1.7; }
@media (max-width: 1024px) {
  .promise-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Home: What We Offer ---------- */
.offer-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.offer-text, .offer-card { min-width: 0; text-align: left; }
.offer-lead { font-size: 1.12rem; line-height: 1.7; color: var(--purple-dark); font-weight: 500; margin: 0 0 18px; padding-left: 18px; border-left: 4px solid var(--yellow); }
.offer-closing { font-size: 1rem; line-height: 1.75; margin: 0 0 26px; }
.offer-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 30px 12px; }
.offer-card h3 { font-size: 1.15rem; color: var(--purple-dark); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { display: flex; align-items: flex-start; gap: 14px; padding: 0 0 18px; line-height: 1.55; }
.offer-list .tick { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--green)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; margin-top: 1px; }
.offer-list .offer-item { min-width: 0; color: var(--ink); font-size: .97rem; }
.offer-list .offer-item strong { display: block; color: var(--purple-dark); font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 1024px) { .offer-split { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; } }
@media (max-width: 560px) { .offer-card { padding: 22px 20px 6px; } }

/* ---------- Home: Our Approach ---------- */
.approach-dark { position: relative; overflow: hidden; }
.approach-dark::before { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(246,196,69,.22), transparent 70%); pointer-events: none; }
.approach-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.approach-intro, .approach-steps { min-width: 0; text-align: left; }
.approach-intro h2 { margin-bottom: 18px; }
.approach-lead { font-size: 1.1rem; line-height: 1.7; color: #fff; margin: 0 0 16px; }
.approach-closing { font-size: .98rem; line-height: 1.75; color: #e9defa !important; margin: 0; }
.approach-steps { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 30px 30px 16px; backdrop-filter: blur(4px); }
.approach-steps h3 { font-size: 1.15rem; margin: 0 0 22px; color: var(--yellow) !important; }
.approach-list { list-style: none; margin: 0; padding: 0; position: relative; }
.approach-list li { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 20px; position: relative; }
.approach-list li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: rgba(255,255,255,.2); }
.approach-list .num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--purple-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.approach-list .txt { padding-top: 6px; line-height: 1.55; color: #fff; font-weight: 500; }

.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.dev-card { position: relative; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--pink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 30px 28px; text-align: left; overflow: hidden; }
.dev-card:nth-child(2) { border-top-color: var(--purple); }
.dev-card .dev-num { position: absolute; right: 22px; top: 12px; font-size: 3rem; font-weight: 800; color: rgba(106,31,177,.08); line-height: 1; }
.dev-card h3 { font-size: 1.2rem; color: var(--purple-dark); margin: 0 0 12px; position: relative; }
.dev-card p { margin: 0; line-height: 1.75; position: relative; }
@media (max-width: 1024px) { .approach-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 700px) { .dev-grid { grid-template-columns: 1fr; gap: 18px; } .approach-steps { padding: 24px 20px 10px; } }
