/* =========================================================
   Nexora RevTech LLC - Complete Homepage Styles
   Brand palette inspired by the supplied Nexora logo
   ========================================================= */

:root {
  --primary: #1f6fb5;
  --primary-dark: #124d84;
  --secondary: #56c7e8;
  --aqua: #66d9d8;
  --accent: #7ed957;
  --accent-dark: #55ae37;
  --navy: #0d3b66;
  --navy-deep: #072b4d;
  --text: #25364a;
  --muted: #64748b;
  --light: #f5fbfd;
  --white: #ffffff;
  --border: #dfeaf1;
  --shadow-sm: 0 8px 22px rgba(13, 59, 102, 0.08);
  --shadow: 0 20px 55px rgba(13, 59, 102, 0.14);
  --radius: 18px;
  --radius-lg: 30px;
  --transition: 0.28s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 99999;
  background: var(--navy);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Top Bar */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.79rem;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar a:hover {
  color: var(--accent);
}

.topbar i {
  color: var(--secondary);
  margin-right: 6px;
}

.topbar-right a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 12px 32px rgba(13, 59, 102, 0.1);
  border-color: var(--border);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 160px;
  flex: 0 0 auto;
}

.brand img {
  max-height: 68px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy);
  transition: var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 99px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 800;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--aqua) 58%, var(--accent));
  box-shadow: 0 12px 25px rgba(31, 111, 181, 0.22);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(31, 111, 181, 0.3);
}

.btn-outline {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(31, 111, 181, 0.45);
}

.btn-outline:hover {
  color: var(--primary);
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* Hero */
.hero {
  min-height: 670px;
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at 10% 10%, rgba(86, 199, 232, 0.14), transparent 34%),
    radial-gradient(circle at 95% 82%, rgba(126, 217, 87, 0.16), transparent 28%),
    linear-gradient(115deg, #ffffff 0%, #f7fcfe 53%, #f4fbf2 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(31, 111, 181, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(31, 111, 181, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 80%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.4;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-one {
  width: 150px;
  height: 150px;
  background: rgba(86, 199, 232, 0.26);
  top: 70px;
  left: -55px;
}

.orb-two {
  width: 210px;
  height: 210px;
  background: rgba(126, 217, 87, 0.22);
  right: -80px;
  bottom: 35px;
  animation-delay: 1.5s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 58px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(126, 217, 87, 0.18);
}

.hero h1 {
  margin-top: 17px;
  max-width: 720px;
  font-family: "Poppins", sans-serif;
  color: var(--navy);
  font-size: clamp(2.45rem, 4.5vw, 4.55rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--primary);
  background: linear-gradient(90deg, var(--primary), #2ba9cb, var(--accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 680px;
  margin-top: 22px;
  color: #43556a;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin-top: 34px;
}

.hero-trust > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-trust i {
  color: var(--primary);
  font-size: 1.18rem;
}

.hero-trust strong {
  display: block;
  color: var(--navy);
}

.hero-visual {
  position: relative;
}

.visual-shell {
  position: relative;
  min-height: 560px;
}

.medical-illustration {
  position: absolute;
  inset: 26px 26px 20px 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 111, 181, 0.12);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.medical-illustration svg {
  width: 96%;
  animation: illustrationFloat 6s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: 180px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(13, 59, 102, 0.18);
  animation: cardFloat 5s ease-in-out infinite;
}

.floating-card > span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.floating-card strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-size: 1.32rem;
}

.floating-card small {
  color: var(--accent-dark);
  font-size: 0.69rem;
}

.card-revenue {
  top: 22px;
  right: -6px;
}

.card-rate {
  right: -12px;
  top: 218px;
  width: 160px;
  text-align: center;
  animation-delay: 1.1s;
}

.card-ar {
  right: 25px;
  bottom: 10px;
  animation-delay: 2.2s;
}

.sparkline {
  height: 37px;
  margin-top: 10px;
  display: flex;
  align-items: end;
  gap: 5px;
}

.sparkline span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--primary), var(--accent));
}

.donut {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 12px auto 7px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 74%, var(--primary) 74% 99%, #e7eef3 99% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
}

.donut b {
  position: relative;
  z-index: 1;
  color: var(--navy);
}

/* Trusted strip */
.trusted-strip {
  position: relative;
  z-index: 4;
  padding: 24px 0 27px;
  background: linear-gradient(120deg, var(--navy-deep), var(--primary-dark));
  color: white;
}

.trusted-strip p {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.8;
}

.trusted-logos {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}

.trusted-logos span {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  opacity: 0.88;
}

/* General section styles */
.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

.section-heading h2,
.why-intro h2,
.faq-intro h2 {
  margin-top: 10px;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.why-intro p,
.faq-intro p {
  margin-top: 14px;
  color: var(--muted);
}

/* Services */
.services {
  background: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 270px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 24px rgba(13, 59, 102, 0.05);
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(86, 199, 232, 0.55);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.4rem;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(86, 199, 232, 0.18), rgba(126, 217, 87, 0.18));
}

.service-card h3 {
  margin-top: 19px;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
}

.service-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.service-card a {
  position: absolute;
  left: 24px;
  bottom: 23px;
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 800;
}

.service-card a i {
  margin-left: 5px;
  transition: var(--transition);
}

.service-card a:hover i {
  transform: translateX(4px);
}

/* Why us */
.why-us {
  background: linear-gradient(135deg, #f6fbff, #f6fcf4);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 50px;
  align-items: center;
}

.why-intro {
  padding: 38px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(126,217,87,.35), transparent 32%),
    linear-gradient(145deg, var(--navy-deep), var(--primary-dark));
  box-shadow: var(--shadow);
}

.why-intro h2,
.why-intro p {
  color: white;
}

.why-intro p {
  opacity: 0.86;
}

.why-intro .section-kicker {
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 800;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.benefit {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  transition: var(--transition);
}

.benefit:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.benefit > i {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(86, 199, 232, 0.15);
}

.benefit h3 {
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-size: 0.96rem;
}

.benefit p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Process */
.process {
  background: white;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.process-step {
  position: relative;
  padding: 26px 19px;
  text-align: center;
  border-radius: 18px;
  background: var(--light);
  border: 1px solid var(--border);
}

.process-step > span {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(31, 111, 181, 0.18);
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(31, 111, 181, 0.18);
  border-radius: 50%;
  color: var(--primary);
  background: white;
  font-size: 1.55rem;
  box-shadow: var(--shadow-sm);
}

.process-step h3 {
  color: var(--navy);
  font-size: 0.93rem;
}

.process-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Specialties */
.specialties {
  background: linear-gradient(to bottom, #fbfdff, #f6fbfe);
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.specialty {
  min-height: 106px;
  padding: 15px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  transition: var(--transition);
}

.specialty:hover {
  transform: translateY(-5px);
  color: var(--primary);
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.specialty i {
  color: var(--primary);
  font-size: 1.28rem;
}

.specialty span {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Stats */
.stats-section {
  padding: 36px 0;
  color: white;
  background: linear-gradient(120deg, var(--navy-deep), var(--primary-dark), var(--navy));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.stat:last-child {
  border-right: 0;
}

.stat > i {
  color: var(--accent);
  font-size: 2rem;
}

.stat strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
}

.stat p {
  font-size: 0.75rem;
  opacity: 0.82;
}

/* Testimonials */
.testimonials {
  background: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(150deg, white, #f8fcfe);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f3ad18;
  letter-spacing: 3px;
}

.testimonial > p {
  margin-top: 16px;
  color: #52657a;
  font-size: 0.91rem;
}

.client {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.client strong,
.client span {
  display: block;
}

.client strong {
  color: var(--navy);
  font-size: 0.86rem;
}

.client span {
  color: var(--muted);
  font-size: 0.72rem;
}

/* FAQ */
.faq-section {
  background: linear-gradient(135deg, #f6fbff, #f5fcf2);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 55px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
}

.faq-question {
  width: 100%;
  min-height: 58px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  color: var(--navy);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.faq-question i {
  transition: var(--transition);
}

.faq-item.open .faq-question i {
  transform: rotate(45deg);
  color: var(--accent-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* CTA */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  color: white;
  background:
    radial-gradient(circle at 10% 70%, rgba(86,199,232,.25), transparent 26%),
    radial-gradient(circle at 90% 20%, rgba(126,217,87,.25), transparent 24%),
    linear-gradient(120deg, var(--navy-deep), var(--primary-dark));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.section-kicker.light {
  color: var(--accent);
}

.cta-inner h2 {
  margin-top: 8px;
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.cta-inner p {
  margin-top: 8px;
  opacity: 0.82;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding-top: 58px;
  color: rgba(255, 255, 255, 0.78);
  background: #062746;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.9fr 1fr;
  gap: 42px;
}

.footer-brand img {
  width: 170px;
  max-height: 110px;
  object-fit: contain;
  padding: 4px;
  border-radius: 12px;
  background: white;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 17px;
  font-size: 0.84rem;
}

.site-footer h3 {
  margin-bottom: 16px;
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.site-footer .footer-grid > div:not(.footer-brand) a,
.site-footer .footer-grid > div:not(.footer-brand) p {
  display: block;
  margin: 9px 0;
  font-size: 0.83rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.footer-bottom {
  min-height: 74px;
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* V8.2: keep the back-to-top control clear of the persistent action dock. */
.back-to-top{right:24px;bottom:152px;z-index:1601}
@media(max-width:900px){.back-to-top{right:11px;bottom:126px}}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes floatOrb {
  50% { transform: translateY(22px) translateX(10px); }
}

@keyframes illustrationFloat {
  50% { transform: translateY(-9px); }
}

@keyframes cardFloat {
  50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 1100px) {
  .header-cta {
    display: none;
  }

  .main-nav {
    gap: 22px;
  }

  .hero-grid {
    gap: 26px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specialty-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar-left span,
  .topbar-right {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .main-nav {
    position: fixed;
    top: 122px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: var(--transition);
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 13px 14px;
    border-radius: 10px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    background: var(--light);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-grid,
  .why-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    max-width: 620px;
    margin-inline: auto;
    margin-top: 32px;
    text-align: left;
  }

  .visual-shell {
    max-width: 620px;
    margin-inline: auto;
  }

  .why-intro {
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    text-align: center;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 26px, 1180px);
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-left {
    gap: 12px;
  }

  .topbar-left a:last-of-type {
    display: none;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand {
    width: 130px;
  }

  .main-nav {
    top: 112px;
    left: 13px;
    right: 13px;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 54px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .visual-shell {
    min-height: 455px;
  }

  .medical-illustration {
    inset: 45px 0 20px;
  }

  .card-revenue {
    top: 10px;
    right: 4px;
  }

  .card-rate {
    top: 206px;
    right: 2px;
  }

  .card-ar {
    bottom: 1px;
    left: 4px;
    right: auto;
  }

  .trusted-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 70px 0;
  }

  .service-grid,
  .benefit-grid,
  .process-grid,
  .specialty-grid {
    grid-template-columns: 1fr;
  }

  .specialty {
    min-height: 82px;
    flex-direction: row;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    padding: 20px 0;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Inner pages */
.page-hero{padding:90px 0 72px;background:linear-gradient(135deg,#f7fcfe,#f4fbf2);text-align:center}
.page-hero h1{font-family:"Poppins",sans-serif;color:var(--navy);font-size:clamp(2.4rem,5vw,4.2rem);line-height:1.08}
.page-hero p{max-width:760px;margin:18px auto 0;color:var(--muted);font-size:1.05rem}
.content-section{padding:80px 0}
.content-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.content-card{padding:30px;border:1px solid var(--border);border-radius:18px;background:white;box-shadow:var(--shadow-sm)}
.content-card h2,.content-card h3{font-family:"Poppins",sans-serif;color:var(--navy)}
.content-card p,.content-card li{color:var(--muted)}
.content-card ul{padding-left:20px;margin-top:14px}
.check-list{display:grid;gap:10px;list-style:none;padding:0!important}
.check-list li{display:flex;gap:10px}.check-list li:before{content:"✓";color:var(--accent-dark);font-weight:800}
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:30px}
.contact-form{display:grid;gap:16px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.contact-form input,.contact-form textarea,.contact-form select{width:100%;padding:14px 15px;border:1px solid var(--border);border-radius:10px;background:white}
.contact-form textarea{min-height:150px;resize:vertical}
.legal-content{max-width:900px;margin:auto}.legal-content h2{margin:28px 0 10px;color:var(--navy)}.legal-content p,.legal-content li{color:var(--muted)}
@media(max-width:800px){.content-grid,.contact-grid,.form-row{grid-template-columns:1fr}}


/* =========================================================
   Premium Final Refinements
   ========================================================= */

:root {
  --header-height: 76px;
}

.phone-ext,
.footer-ext {
  font-size: 0.72rem;
  opacity: 0.82;
  font-weight: 600;
}

.site-header {
  background: rgba(255,255,255,0.97);
}

.nav-wrap {
  min-height: var(--header-height);
}

.brand {
  width: 190px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.08);
  transform-origin: left center;
}

.main-nav {
  gap: 26px;
}

.main-nav a {
  font-size: 0.92rem;
}

.header-cta {
  min-height: 46px;
  padding: 10px 22px;
}

.hero {
  min-height: 640px;
  padding: 58px 0 54px;
}

.hero-grid {
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
}

.hero h1 {
  font-size: clamp(2.7rem, 4.2vw, 4.35rem);
  max-width: 680px;
}

.hero-lead {
  max-width: 650px;
  font-size: 1.02rem;
}

.visual-shell {
  min-height: 520px;
}

.medical-illustration {
  inset: 18px 18px 12px 12px;
  border: 1px solid rgba(31,111,181,0.14);
  box-shadow:
    0 28px 70px rgba(13,59,102,0.16),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.floating-card {
  box-shadow: 0 18px 50px rgba(13,59,102,0.2);
}

.hero-trust > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,111,181,0.08);
}

.trusted-strip {
  padding: 20px 0 23px;
}

.section {
  padding: 84px 0;
}

.service-card {
  min-height: 280px;
  border-radius: 20px;
}

.why-intro,
.content-card,
.testimonial,
.faq-item {
  box-shadow: 0 16px 40px rgba(13,59,102,0.08);
}

.process-step,
.specialty {
  background: linear-gradient(145deg, #ffffff, #f8fcfe);
}

.cta-section {
  padding: 64px 0;
}

.site-footer {
  padding-top: 62px;
}

@media (max-width: 1100px) {
  .brand {
    width: 165px;
  }
}

@media (max-width: 900px) {
  .brand {
    width: 150px;
  }
  .main-nav {
    top: 114px;
  }
}

@media (max-width: 650px) {
  .brand {
    width: 138px;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
}

/* Requested header logo correction: show the complete supplied logo clearly */
.nav-wrap { min-height: 126px; }
.brand { width: 100px; min-width: 100px; height: 116px; display: flex; align-items: center; justify-content: flex-start; overflow: visible; }
.brand img { display: block; width: auto; height: 112px; max-height: 112px; object-fit: contain; object-position: center; transform: none; filter: drop-shadow(0 5px 10px rgba(13,59,102,.13)); }

/* Expandable specialties */
.specialty-extra { display: none; opacity: 0; transform: translateY(10px); }
.specialty-extra.is-visible { display: flex; animation: specialtyIn .3s ease forwards; }
.specialty-more { width: 100%; font: inherit; cursor: pointer; border-style: dashed; border-color: rgba(31,111,181,.45); }
.specialty-more:hover,.specialty-more:focus-visible { outline: none; border-color: var(--primary); background: #f2fbff; }
@keyframes specialtyIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width:1100px) {
  .nav-wrap { min-height: 112px; }
  .brand { width: 88px; min-width: 88px; height: 102px; }
  .brand img { height: 98px; max-height: 98px; }
  .main-nav { gap: 18px; }
}
@media (max-width:900px) { .main-nav { top: 150px; } }
@media (max-width:650px) {
  .nav-wrap { min-height: 92px; }
  .brand { width: 70px; min-width: 70px; height: 84px; }
  .brand img { height: 80px; max-height: 80px; }
  .main-nav { top: 130px; }
}

/* =========================================================
   Reference-inspired 2026 homepage redesign
   ========================================================= */
body { background:#f7f9fc; color:#071b42; }
.topbar { background:#041d4b; }
.topbar-inner { min-height:44px; }
.site-header { position:sticky; top:0; background:#fff; border-bottom:1px solid #e6ebf2; }
.nav-wrap { min-height:94px; }
.brand { width:155px; height:86px; min-width:155px; }
.brand img { width:auto; height:82px; max-height:82px; transform:none; object-fit:contain; filter:none; }
.main-nav a { color:#071b42; font-size:.93rem; }
.header-cta { border-radius:6px; background:#05275c; box-shadow:none; }
.header-cta:hover { background:#0b438d; }

.hero { min-height:500px; padding:0; color:#fff; background:#052759; position:relative; }
.hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#03245a 0%,#052c65 37%,rgba(4,39,88,.7) 50%,rgba(4,39,88,0) 70%); z-index:1; }
.hero::after { content:""; position:absolute; inset:0; background:url("../images/hero-medical-team.webp") center right/cover no-repeat; z-index:0; }
.hero-orb { display:none; }
.hero-grid { position:relative; z-index:2; min-height:500px; display:block; }
.hero-copy { width:48%; padding:48px 0 72px; }
.hero-visual { display:none; }
.eyebrow { padding:0; background:none; color:#fff; border-radius:0; font-size:.78rem; letter-spacing:.32em; text-transform:uppercase; }
.hero h1 { margin-top:22px; color:#fff; font-size:clamp(2.5rem,4vw,4.3rem); line-height:1.08; letter-spacing:-.035em; }
.hero h1 span { display:block; margin-top:5px; color:#fff; }
.hero-lead { max-width:560px; margin-top:22px; color:rgba(255,255,255,.92); font-size:1rem; line-height:1.7; }
.hero-actions { margin-top:30px; }
.hero .btn { border-radius:5px; min-height:48px; }
.hero .btn-primary { color:#07479e; background:#fff; box-shadow:none; }
.hero .btn-outline { color:#fff; background:transparent; border-color:#fff; }

.performance-strip { position:relative; z-index:5; padding:0; margin:-56px auto 0; background:transparent; }
.performance-grid { min-height:104px; display:grid; grid-template-columns:repeat(5,1fr); align-items:center; padding:20px 30px; background:#fff; border-radius:12px; box-shadow:0 20px 50px rgba(5,35,83,.14); }
.performance-item { display:flex; align-items:center; justify-content:center; gap:15px; padding:0 18px; border-right:1px solid #e1e7ef; }
.performance-item:last-child { border:0; }
.performance-item > i { width:48px; height:48px; display:grid; place-items:center; flex:0 0 48px; border-radius:50%; color:#fff; background:#05275c; font-size:1.2rem; }
.performance-item span { display:flex; flex-direction:column; color:#21314d; font-size:.76rem; font-weight:700; white-space:nowrap; }
.performance-item strong { color:#061a40; font-family:"Poppins",sans-serif; font-size:1.45rem; line-height:1.2; }

.services { padding:78px 0 88px; background:linear-gradient(120deg,#f8faff,#eef3f8); }
.reference-heading { max-width:620px; margin:0 0 34px; text-align:left; }
.reference-heading h2 { color:#092453; font-size:clamp(2rem,3vw,3rem); font-weight:500; line-height:1.2; }
.reference-heading h2 strong { font-weight:800; }
.reference-heading p { margin:16px 0 0; color:#53627a; }
.service-grid { grid-template-columns:repeat(4,1fr); gap:14px; }
.service-card { min-height:205px; padding:24px; border:1px solid #e9edf4; border-radius:8px; box-shadow:0 8px 24px rgba(6,34,78,.05); }
.service-card:hover { transform:translateY(-5px); box-shadow:0 15px 32px rgba(5,39,92,.11); }
.service-icon { width:44px; height:44px; border:0; border-radius:0; background:transparent; color:#073674; font-size:1.5rem; }
.service-card h3 { font-size:.98rem; }
.service-card p { font-size:.78rem; line-height:1.55; }
.service-card a { margin-top:auto; font-size:.73rem; }
.service-collaboration { margin-top:32px; display:grid; grid-template-columns:minmax(0,1fr) 300px; border-radius:10px; overflow:hidden; background:#062a62; box-shadow:0 18px 40px rgba(5,37,86,.13); }
.collaboration-copy { min-height:176px; display:flex; align-items:center; gap:22px; padding:32px; color:#fff; }
.collaboration-icon { width:58px; height:58px; flex:0 0 58px; display:grid; place-items:center; border-radius:50%; background:#fff; color:#073674; font-size:1.5rem; }
.collaboration-copy h3 { font-family:"Poppins",sans-serif; font-size:1.12rem; }
.collaboration-copy p { margin-top:7px; color:rgba(255,255,255,.78); font-size:.82rem; }
.collaboration-copy .btn { margin-left:auto; white-space:nowrap; border-radius:5px; }
.service-collaboration img { width:100%; height:100%; min-height:176px; object-fit:cover; }

@media(max-width:1100px) {
  .performance-grid { grid-template-columns:repeat(3,1fr); gap:20px 0; }
  .performance-item:nth-child(3) { border-right:0; }
  .performance-item { justify-content:flex-start; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .collaboration-copy { flex-wrap:wrap; }
}
@media(max-width:900px) {
  .brand { width:105px; min-width:105px; height:78px; }
  .brand img { height:74px; max-height:74px; }
  .main-nav { top:138px; }
  .hero::after { background-position:62% center; }
  .hero::before { background:linear-gradient(90deg,rgba(3,36,90,.98),rgba(3,36,90,.9) 55%,rgba(3,36,90,.45)); }
  .hero-copy { width:70%; }
  .performance-strip { margin-top:-30px; }
  .service-collaboration { grid-template-columns:1fr; }
  .service-collaboration img { height:280px; }
}
@media(max-width:650px) {
  .nav-wrap { min-height:84px; }
  .brand { width:75px; min-width:75px; height:76px; }
  .brand img { height:72px; max-height:72px; }
  .main-nav { top:128px; }
  .hero { min-height:570px; }
  .hero-grid { min-height:570px; }
  .hero::after { background-position:64% center; }
  .hero::before { background:linear-gradient(90deg,rgba(3,32,79,.98),rgba(3,32,79,.88)); }
  .hero-copy { width:100%; padding:55px 0 110px; }
  .hero h1 { font-size:2.55rem; }
  .performance-grid { grid-template-columns:1fr 1fr; padding:18px; }
  .performance-item,.performance-item:nth-child(3) { border:0; padding:10px 6px; }
  .performance-item:last-child { grid-column:1/-1; }
  .performance-item > i { width:40px; height:40px; flex-basis:40px; }
  .performance-item strong { font-size:1.15rem; }
  .service-grid { grid-template-columns:1fr; }
  .collaboration-copy { padding:26px 22px; }
  .collaboration-copy .btn { margin-left:0; }
}

/* V8.1 shared header correction (kept here so every page receives it). */
.brand img{
  display:block;
  filter:contrast(1.16) saturate(1.08);
  image-rendering:auto;
  -webkit-font-smoothing:antialiased;
  backface-visibility:hidden;
}
.topbar-right a,.socials a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  text-align:center;
}
.topbar-right a i,.socials a i{
  display:block;
  width:auto;
  margin:0;
  padding:0;
  line-height:1;
  text-align:center;
  transform:none;
}

/* Image fitting and premium interior-page system */
.hero::after { background-size:auto 100%; background-position:right center; background-color:#edf3f7; }
.service-collaboration { grid-template-columns:minmax(0,1fr) minmax(360px,42%); }
.service-collaboration img { height:auto; min-height:0; aspect-ratio:1.75/1; object-fit:contain; object-position:center; background:#eef4f8; }
.image-page-hero { position:relative; min-height:390px; padding:0; display:flex; align-items:center; overflow:hidden; text-align:left; background:#052759; isolation:isolate; }
.image-page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background-repeat:no-repeat; background-position:right center; background-size:auto 100%; }
.image-page-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#03245a 0%,#052c65 38%,rgba(4,39,88,.78) 52%,rgba(4,39,88,0) 76%); }
.about-page-hero::before,.legal-page-hero::before { background-image:url("../images/about-team.webp"); }
.services-page-hero::before,.specialties-page-hero::before { background-image:url("../images/specialties-team.webp"); }
.contact-page-hero::before { background-image:url("../images/contact-support.webp"); }
.image-page-hero .container { width:100%; }
.image-page-hero .container > * { max-width:620px; }
.image-page-hero .section-kicker { color:#9de47e; letter-spacing:.2em; }
.image-page-hero h1 { margin:14px 0 0; color:#fff; font-size:clamp(2.4rem,4vw,4rem); line-height:1.12; letter-spacing:-.035em; }
.image-page-hero p { margin:18px 0 0; color:rgba(255,255,255,.9); font-size:1rem; line-height:1.7; }
.content-section { padding:76px 0 90px; background:linear-gradient(135deg,#f8faff,#eef3f8); }
.content-grid { align-items:stretch; }
.content-card { padding:34px; border:1px solid #e4eaf2; border-radius:10px; background:#fff; box-shadow:0 14px 35px rgba(5,38,87,.07); }
.content-card h2 { color:#082754; font-size:1.45rem; }
.content-card p { color:#56647a; line-height:1.75; }
.content-photo-card { grid-column:1/-1; min-height:360px; overflow:hidden; border-radius:12px; box-shadow:0 20px 45px rgba(5,38,87,.12); background:#eaf1f7; }
.content-photo-card img { width:100%; height:100%; max-height:500px; display:block; object-fit:contain; object-position:center; }
.content-section .service-grid { grid-template-columns:repeat(3,1fr); }
.content-section .service-card { border-top:3px solid #0c58a7; }
.content-section .specialty-grid { grid-template-columns:repeat(4,1fr); gap:15px; }
.content-section .specialty { min-height:120px; border-radius:10px; box-shadow:0 8px 24px rgba(5,38,87,.05); }
.contact-grid { align-items:start; }
.contact-grid .content-card { min-height:100%; }
.contact-form input,.contact-form textarea,.contact-form select { border-radius:6px; border:1px solid #dbe3ee; background:#f9fbfd; }
.legal-content { padding:44px 52px; border-radius:12px; border:1px solid #e4eaf2; background:#fff; box-shadow:0 18px 45px rgba(5,38,87,.08); }
.legal-content h2 { color:#082754; }
@media(max-width:1100px) { .content-section .service-grid { grid-template-columns:repeat(2,1fr); } .content-section .specialty-grid { grid-template-columns:repeat(3,1fr); } .service-collaboration { grid-template-columns:1fr; } .service-collaboration img { width:100%; max-height:430px; } }
@media(max-width:900px) { .hero::after { background-size:cover; background-position:62% center; } .image-page-hero::before { background-size:cover; background-position:65% center; } .image-page-hero::after { background:linear-gradient(90deg,rgba(3,36,90,.98),rgba(3,36,90,.82)); } .content-section .specialty-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:650px) { .image-page-hero { min-height:440px; } .image-page-hero::before { background-position:66% center; } .image-page-hero::after { background:rgba(3,32,79,.86); } .image-page-hero h1 { font-size:2.45rem; } .content-section { padding:55px 0 65px; } .content-section .service-grid,.content-section .specialty-grid { grid-template-columns:1fr; } .content-photo-card { min-height:0; } .content-photo-card img { height:auto; } .legal-content { padding:28px 22px; } }

/* FINAL CASCADE LOCK — reviewed desktop and mobile layout */
.image-page-hero .container{width:min(1180px,calc(100% - 48px));max-width:1180px;margin-inline:auto;padding-inline:0}
.about-page-hero::before{background-image:url("../images/about-team.webp")}
.services-page-hero::before{background-image:url("../images/specialties-team.webp")}
.specialties-page-hero::before{background-image:url("../images/specialties-exclusive.webp")}
.contact-page-hero::before{background-image:url("../images/contact-support.webp")}
.privacy-page-hero::before{background-image:url("../images/privacy-exclusive.webp")}
.terms-page-hero::before{background-image:url("../images/terms-exclusive.webp")}
.service-detail-page-hero::before{background-image:url("../images/service-detail-exclusive.webp")}
.specialty-detail-page-hero::before{background-image:url("../images/specialty-detail-exclusive.webp")}
.about-operations-photo{position:relative;min-height:480px;background:#dfeaf2}
.about-operations-photo img{width:100%;height:100%;max-height:none;min-height:480px;object-fit:cover;object-position:center}
.photo-caption{position:absolute;left:24px;right:24px;bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:18px 22px;border:1px solid rgba(255,255,255,.35);border-radius:10px;color:#fff;background:rgba(3,30,70,.86);backdrop-filter:blur(10px);box-shadow:0 16px 36px rgba(2,22,52,.24)}
.photo-caption strong{font:700 1.05rem/1.35 "Poppins",sans-serif}.photo-caption span{max-width:570px;color:rgba(255,255,255,.84);font-size:.9rem;line-height:1.55}
@media(max-width:800px){.image-page-hero .container{width:min(100% - 36px,1180px)}.image-page-hero h1 br{display:none}.about-operations-photo,.about-operations-photo img{min-height:330px}.photo-caption{position:relative;left:auto;right:auto;bottom:auto;margin:-1px 0 0;border-radius:0;flex-direction:column;align-items:flex-start;gap:5px}}
@media(max-width:480px){.image-page-hero .container{width:calc(100% - 28px)}.image-page-hero h1{font-size:clamp(2.15rem,11vw,3rem)}.about-operations-photo,.about-operations-photo img{min-height:250px}}

/* Expert QA overrides — intentionally last to defeat legacy duplicate rules */
.image-page-hero .container {
  width:min(1180px,calc(100% - 48px));
  max-width:1180px;
  margin-inline:auto;
  padding-inline:0;
}
.about-page-hero::before { background-image:url("../images/about-team.webp"); }
.services-page-hero::before { background-image:url("../images/specialties-team.webp"); }
.specialties-page-hero::before { background-image:url("../images/specialties-exclusive.webp"); }
.contact-page-hero::before { background-image:url("../images/contact-support.webp"); }
.privacy-page-hero::before { background-image:url("../images/privacy-exclusive.webp"); }
.terms-page-hero::before { background-image:url("../images/terms-exclusive.webp"); }
.service-detail-page-hero::before { background-image:url("../images/service-detail-exclusive.webp"); }
.specialty-detail-page-hero::before { background-image:url("../images/specialty-detail-exclusive.webp"); }
.about-operations-photo { position:relative; min-height:480px; background:#dfeaf2; }
.about-operations-photo img { width:100%; height:100%; max-height:none; min-height:480px; object-fit:cover; object-position:center; }
.photo-caption { position:absolute; left:24px; right:24px; bottom:22px; display:flex; align-items:center; justify-content:space-between; gap:28px; padding:18px 22px; border:1px solid rgba(255,255,255,.35); border-radius:10px; color:#fff; background:rgba(3,30,70,.86); backdrop-filter:blur(10px); box-shadow:0 16px 36px rgba(2,22,52,.24); }
.photo-caption strong { font:700 1.05rem/1.35 "Poppins",sans-serif; }
.photo-caption span { max-width:570px; color:rgba(255,255,255,.84); font-size:.9rem; line-height:1.55; }
.card-eyebrow { display:block; margin-bottom:8px; color:#1f6fb5; font-size:.72rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.commitment-card { position:relative; overflow:hidden; border-color:rgba(31,111,181,.2); background:linear-gradient(145deg,#fff 0%,#f1f8ff 100%); }
.commitment-card::before { content:""; position:absolute; width:180px; height:180px; right:-76px; top:-78px; border-radius:50%; background:radial-gradient(circle,rgba(102,217,216,.24),transparent 68%); }
.commitment-icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:18px; border-radius:50%; color:#fff; background:linear-gradient(135deg,#0b4f9c,#189fa3); box-shadow:0 12px 25px rgba(11,79,156,.22); }
.commitment-points { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:20px; color:#0b386c; font-size:.84rem; font-weight:700; }
.commitment-points i { margin-right:5px; color:#55b947; }
@media(max-width:800px) {
  .image-page-hero .container { width:min(100% - 36px,1180px); }
  .image-page-hero h1 br { display:none; }
  .about-operations-photo,.about-operations-photo img { min-height:330px; }
  .photo-caption { position:relative; left:auto; right:auto; bottom:auto; margin:-1px 0 0; border-radius:0; flex-direction:column; align-items:flex-start; gap:5px; }
}
@media(max-width:480px) {
  .image-page-hero .container { width:calc(100% - 28px); }
  .image-page-hero h1 { font-size:clamp(2.15rem,11vw,3rem); }
  .about-operations-photo,.about-operations-photo img { min-height:250px; }
}

/* All-pages premium motion and exclusive page imagery */
.about-page-hero::before { background-image:url("../images/about-team.webp"); }
.services-page-hero::before { background-image:url("../images/specialties-team.webp"); }
.specialties-page-hero::before { background-image:url("../images/specialties-exclusive.webp"); }
.contact-page-hero::before { background-image:url("../images/contact-support.webp"); }
.privacy-page-hero::before { background-image:url("../images/privacy-exclusive.webp"); }
.terms-page-hero::before { background-image:url("../images/terms-exclusive.webp"); }
.service-detail-page-hero::before { background-image:url("../images/service-detail-exclusive.webp"); }
.specialty-detail-page-hero::before { background-image:url("../images/specialty-detail-exclusive.webp"); }

.image-page-hero { perspective:1200px; }
.image-page-hero::before { transform:scale(1.045); animation:page-hero-drift 16s ease-in-out infinite alternate; will-change:transform; }
.image-page-hero::after { box-shadow:inset 0 -70px 90px rgba(2,23,55,.18); }
.image-page-hero .container { position:relative; transform-style:preserve-3d; transition:transform .18s ease-out; will-change:transform; }
.image-page-hero .container::before { content:""; position:absolute; width:260px; height:260px; left:-90px; top:50%; border:1px solid rgba(102,205,255,.18); border-radius:50%; transform:translateY(-50%) translateZ(-35px); box-shadow:0 0 80px rgba(51,168,255,.11), inset 0 0 50px rgba(88,207,255,.08); pointer-events:none; animation:ambient-orbit 10s ease-in-out infinite; }
.content-section { position:relative; overflow:hidden; }
.content-section::before { content:""; position:absolute; width:440px; height:440px; right:-270px; top:9%; border-radius:50%; background:radial-gradient(circle,rgba(50,173,255,.09),transparent 68%); pointer-events:none; animation:ambient-float 9s ease-in-out infinite alternate; }
.motion-reveal-item { opacity:0; transform:translate3d(0,28px,0) scale(.985); transition:opacity .7s ease,transform .75s cubic-bezier(.2,.7,.2,1); transition-delay:var(--motion-delay,0ms); }
.motion-reveal-item.motion-in { opacity:1; transform:translate3d(0,0,0) scale(1); }
.motion-tilt { position:relative; transform:perspective(900px) rotateX(var(--rotate-x,0deg)) rotateY(var(--rotate-y,0deg)) translateZ(0); transform-style:preserve-3d; transition:transform .2s ease,box-shadow .3s ease; will-change:transform; }
.motion-tilt:hover { box-shadow:0 24px 55px rgba(5,38,87,.16); }
.motion-tilt::after { content:""; position:absolute; inset:0; border-radius:inherit; opacity:0; background:radial-gradient(circle at var(--glow-x,50%) var(--glow-y,50%),rgba(255,255,255,.36),transparent 38%); pointer-events:none; transition:opacity .25s ease; }
.motion-tilt:hover::after { opacity:.65; }
.legal-content,.contact-form { transform-style:preserve-3d; }
.detail-cta { position:relative; overflow:hidden; }
.detail-cta::after { content:""; position:absolute; width:220px; height:220px; right:-60px; bottom:-130px; border:1px solid rgba(255,255,255,.2); border-radius:50%; animation:ambient-orbit 8s ease-in-out infinite; }
@keyframes page-hero-drift { from { transform:scale(1.045) translate3d(0,0,0); } to { transform:scale(1.095) translate3d(-1.2%,0,0); } }
@keyframes ambient-orbit { 0%,100% { transform:translateY(-50%) rotate(0deg) scale(1); } 50% { transform:translateY(-54%) rotate(12deg) scale(1.06); } }
@keyframes ambient-float { from { transform:translate3d(0,-15px,0); } to { transform:translate3d(-25px,35px,0); } }
@media (prefers-reduced-motion:reduce) { .image-page-hero::before,.image-page-hero .container::before,.content-section::before,.detail-cta::after { animation:none!important; } .motion-reveal-item { opacity:1; transform:none; transition:none; } .motion-tilt { transform:none!important; transition:none; } }

/* Detailed service and specialty content — uses the existing visual system */
.specialty[role="link"] { cursor:pointer; }
.specialty[role="link"]:focus-visible { outline:3px solid rgba(31,111,181,.3); outline-offset:3px; }
.detail-page { padding-top:72px; }
.detail-intro-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:stretch; }
.detail-intro-grid .content-card { display:flex; flex-direction:column; align-items:flex-start; }
.detail-intro-grid .content-card h2 { margin:8px 0 14px; }
.detail-intro-grid .content-card .btn { margin-top:auto; }
.detail-checks { display:grid; gap:13px; margin-top:8px; }
.detail-checks li { display:flex; gap:11px; align-items:flex-start; color:#4f6078; text-transform:capitalize; }
.detail-checks i { margin-top:4px; color:var(--accent-dark); }
.detail-section { margin-top:74px; }
.detail-steps { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.detail-step { min-height:220px; padding:24px 20px; border:1px solid #e2e9f1; border-radius:10px; background:#fff; box-shadow:0 10px 28px rgba(5,38,87,.06); }
.detail-step > span { display:inline-grid; place-items:center; width:42px; height:42px; margin-bottom:18px; border-radius:50%; color:#fff; background:#082f68; font-weight:800; }
.detail-step h3 { color:#082754; font-size:.95rem; }
.detail-step p { margin-top:9px; color:#627087; font-size:.78rem; line-height:1.65; }
.detail-entities { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; }
.detail-entities li { position:relative; padding-left:18px; color:#53627a; }
.detail-entities li::before { content:""; position:absolute; left:0; top:.55em; width:7px; height:7px; border-radius:50%; background:var(--accent); }
.detail-faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.detail-faq { padding:24px; border:1px solid #e3eaf2; border-radius:10px; background:#fff; }
.detail-faq h3 { color:#082754; font-size:.95rem; }
.detail-faq p { margin-top:9px; color:#627087; font-size:.82rem; line-height:1.65; }
.detail-cta { margin-top:72px; padding:38px 42px; display:flex; align-items:center; justify-content:space-between; gap:30px; border-radius:12px; color:#fff; background:linear-gradient(120deg,#04265a,#0a4c96); }
.detail-cta h2 { margin-top:7px; color:#fff; font-family:"Poppins",sans-serif; font-size:clamp(1.6rem,3vw,2.35rem); }
.detail-cta p { margin-top:7px; color:rgba(255,255,255,.78); }
.detail-cta .btn { flex:0 0 auto; }
@media(max-width:1100px) { .detail-steps { grid-template-columns:repeat(3,1fr); } }
@media(max-width:800px) { .detail-intro-grid,.detail-faq-grid { grid-template-columns:1fr; } .detail-steps { grid-template-columns:1fr 1fr; } .detail-cta { align-items:flex-start; flex-direction:column; } }
@media(max-width:520px) { .detail-steps,.detail-entities { grid-template-columns:1fr; } .detail-cta { padding:30px 24px; } }

/* =========================================================
   Premium 3D motion, cinematic sliders and depth effects
   ========================================================= */
.hero { perspective:1400px; }
.hero::after { display:none; }
.hero-slideshow { position:absolute; inset:0; z-index:0; overflow:hidden; background:#052759; }
.hero-slide { position:absolute; inset:-2%; opacity:0; transform:scale(1.06); background-position:right center; background-repeat:no-repeat; background-size:auto 100%; transition:opacity 1.2s ease,transform 7s ease; will-change:opacity,transform; }
.hero-slide.is-active { opacity:1; transform:scale(1); }
.hero-slideshow::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#03245a 0%,#052c65 38%,rgba(4,39,88,.76) 53%,rgba(4,39,88,.08) 78%); }
.hero-slide-dots { position:absolute; z-index:6; left:max(24px,calc((100vw - 1370px)/2)); bottom:28px; display:flex; gap:9px; }
.hero-slide-dots button { width:9px; height:9px; padding:0; border:0; border-radius:99px; cursor:pointer; background:rgba(255,255,255,.45); transition:.35s ease; }
.hero-slide-dots button.is-active { width:30px; background:var(--accent); }
.hero-copy { transition:transform .25s ease-out; will-change:transform; }
.hero h1 span { background:linear-gradient(90deg,#fff,#9be9f1,#9ce66f,#fff); background-size:220% auto; -webkit-background-clip:text; background-clip:text; color:transparent; animation:headlineShine 7s linear infinite; }
@keyframes headlineShine { to { background-position:220% center; } }

.slider-controls { display:flex; justify-content:flex-end; gap:9px; }
.service-slider-controls { margin:-68px 0 26px; }
.testimonial-slider-controls { margin:20px 0 18px; }
.slider-controls button { width:46px; height:46px; display:grid; place-items:center; border:1px solid #d9e4ef; border-radius:50%; cursor:pointer; color:#082f68; background:#fff; box-shadow:0 8px 22px rgba(5,38,87,.09); transition:.3s ease; }
.slider-controls button:hover { color:#fff; border-color:#0b4b95; background:#0b4b95; transform:translateY(-3px) scale(1.04); }
.motion-service-slider,.motion-testimonial-slider { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding:8px 3px 24px; }
.motion-service-slider::-webkit-scrollbar,.motion-testimonial-slider::-webkit-scrollbar { display:none; }
.motion-service-slider .service-card { flex:0 0 calc((100% - 48px)/4); scroll-snap-align:start; }
.motion-testimonial-slider .testimonial { flex:0 0 calc((100% - 32px)/3); scroll-snap-align:start; }

.motion-tilt { --rotate-x:0deg; --rotate-y:0deg; --glow-x:50%; --glow-y:50%; position:relative; transform-style:preserve-3d; transform:perspective(900px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translateZ(0); transition:transform .16s ease,box-shadow .25s ease; overflow:hidden; }
.motion-tilt::after { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0; background:radial-gradient(circle at var(--glow-x) var(--glow-y),rgba(102,217,216,.22),transparent 42%); transition:opacity .25s ease; }
.motion-tilt:hover::after { opacity:1; }
.motion-tilt:hover { box-shadow:0 26px 52px rgba(5,38,87,.16); }
.motion-tilt > * { position:relative; z-index:1; transform:translateZ(18px); }
.service-icon,.process-step .step-icon,.specialty i { filter:drop-shadow(0 8px 10px rgba(31,111,181,.15)); }
.performance-item > i { animation:iconFloat 4s ease-in-out infinite; }
.performance-item:nth-child(2) > i { animation-delay:.5s; }.performance-item:nth-child(3) > i { animation-delay:1s;}.performance-item:nth-child(4) > i { animation-delay:1.5s;}.performance-item:nth-child(5) > i { animation-delay:2s; }
@keyframes iconFloat { 0%,100%{transform:translateY(0) rotateY(0)}50%{transform:translateY(-6px) rotateY(10deg)} }
.cta-section { position:relative; overflow:hidden; }
.cta-section::before { content:""; position:absolute; width:380px; height:380px; top:-240px; right:4%; border-radius:50%; background:rgba(102,217,216,.16); filter:blur(8px); animation:ctaOrb 8s ease-in-out infinite alternate; }
@keyframes ctaOrb { to { transform:translate3d(-90px,80px,0) scale(1.25); } }

@media(max-width:1100px) { .motion-service-slider .service-card { flex-basis:calc((100% - 32px)/3); } .motion-testimonial-slider .testimonial { flex-basis:calc((100% - 16px)/2); } }
@media(max-width:800px) { .hero-slide { background-size:cover; background-position:64% center; } .hero-slideshow::after { background:rgba(3,32,79,.82); } .motion-service-slider .service-card { flex-basis:calc((100% - 16px)/2); } .service-slider-controls { margin:0 0 18px; } }
@media(max-width:560px) { .motion-service-slider .service-card,.motion-testimonial-slider .testimonial { flex-basis:88%; } .hero-slide-dots { bottom:70px; } }
@media(prefers-reduced-motion:reduce) { .hero-slide,.hero h1 span,.performance-item > i,.cta-section::before { animation:none!important; transition:none!important; } .motion-tilt { transform:none!important; } }

/* Image fitting and premium interior-page system */
.hero::after { background-size:auto 100%; background-position:right center; background-color:#edf3f7; }
.service-collaboration { grid-template-columns:minmax(0,1fr) minmax(360px,42%); }
.service-collaboration img { height:auto; min-height:0; aspect-ratio:1.75/1; object-fit:contain; object-position:center; background:#eef4f8; }
.image-page-hero { position:relative; min-height:390px; padding:0; display:flex; align-items:center; overflow:hidden; text-align:left; background:#052759; isolation:isolate; }
.image-page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background-repeat:no-repeat; background-position:right center; background-size:auto 100%; }
.image-page-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#03245a 0%,#052c65 38%,rgba(4,39,88,.78) 52%,rgba(4,39,88,0) 76%); }
.about-page-hero::before,.legal-page-hero::before { background-image:url("../images/about-team.webp"); }
.services-page-hero::before,.specialties-page-hero::before { background-image:url("../images/specialties-team.webp"); }
.contact-page-hero::before { background-image:url("../images/contact-support.webp"); }
.image-page-hero .container { width:100%; }
.image-page-hero .container > * { max-width:620px; }
.image-page-hero .section-kicker { color:#9de47e; letter-spacing:.2em; }
.image-page-hero h1 { margin:14px 0 0; color:#fff; font-size:clamp(2.4rem,4vw,4rem); line-height:1.12; letter-spacing:-.035em; }
.image-page-hero p { margin:18px 0 0; color:rgba(255,255,255,.9); font-size:1rem; line-height:1.7; }
.content-section { padding:76px 0 90px; background:linear-gradient(135deg,#f8faff,#eef3f8); }
.content-grid { align-items:stretch; }
.content-card { padding:34px; border:1px solid #e4eaf2; border-radius:10px; background:#fff; box-shadow:0 14px 35px rgba(5,38,87,.07); }
.content-card h2 { color:#082754; font-size:1.45rem; }
.content-card p { color:#56647a; line-height:1.75; }
.content-photo-card { grid-column:1/-1; min-height:360px; overflow:hidden; border-radius:12px; box-shadow:0 20px 45px rgba(5,38,87,.12); background:#eaf1f7; }
.content-photo-card img { width:100%; height:100%; max-height:500px; display:block; object-fit:contain; object-position:center; }
.content-section .service-grid { grid-template-columns:repeat(3,1fr); }
.content-section .service-card { border-top:3px solid #0c58a7; }
.content-section .specialty-grid { grid-template-columns:repeat(4,1fr); gap:15px; }
.content-section .specialty { min-height:120px; border-radius:10px; box-shadow:0 8px 24px rgba(5,38,87,.05); }
.contact-grid { align-items:start; }
.contact-grid .content-card { min-height:100%; }
.contact-form input,.contact-form textarea,.contact-form select { border-radius:6px; border:1px solid #dbe3ee; background:#f9fbfd; }
.legal-content { padding:44px 52px; border-radius:12px; border:1px solid #e4eaf2; background:#fff; box-shadow:0 18px 45px rgba(5,38,87,.08); }
.legal-content h2 { color:#082754; }
@media(max-width:1100px) { .content-section .service-grid { grid-template-columns:repeat(2,1fr); } .content-section .specialty-grid { grid-template-columns:repeat(3,1fr); } .service-collaboration { grid-template-columns:1fr; } .service-collaboration img { width:100%; max-height:430px; } }
@media(max-width:900px) { .hero::after { background-size:cover; background-position:62% center; } .image-page-hero::before { background-size:cover; background-position:65% center; } .image-page-hero::after { background:linear-gradient(90deg,rgba(3,36,90,.98),rgba(3,36,90,.82)); } .content-section .specialty-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:650px) { .image-page-hero { min-height:440px; } .image-page-hero::before { background-position:66% center; } .image-page-hero::after { background:rgba(3,32,79,.86); } .image-page-hero h1 { font-size:2.45rem; } .content-section { padding:55px 0 65px; } .content-section .service-grid,.content-section .specialty-grid { grid-template-columns:1fr; } .content-photo-card { min-height:0; } .content-photo-card img { height:auto; } .legal-content { padding:28px 22px; } }
