/* ==========================================================================
   MeDenX Solutions — Design System
   Colors sampled from the MeDenX brand icon (blue/green gradients).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Brand blue (sampled ~#0082D6 / #006DE8) */
  --blue-900:#0A2F5C;
  --blue-700:#0058A8;
  --blue-600:#0072CE;
  --blue-500:#0082E0;
  --blue-400:#29A9FF;
  --blue-100:#E7F3FE;

  /* Brand green (sampled ~#1DCA63 / #42E377) */
  --green-700:#0F8A44;
  --green-600:#17A855;
  --green-500:#1FB65C;
  --green-400:#4CD888;
  --green-100:#E7F9EE;

  /* Dark navy — footer & premium contrast sections */
  --navy-900:#08152A;
  --navy-800:#0B1E38;
  --navy-700:#122A4A;

  /* Neutrals */
  --ink:#101B2D;
  --body:#42506B;
  --muted:#6B7A94;
  --border:#E3E9F1;
  --bg-soft:#F6F9FC;
  --white:#FFFFFF;

  --font-head:'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body:'Inter', 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,27,45,0.06), 0 1px 1px rgba(16,27,45,0.04);
  --shadow-md: 0 8px 24px rgba(16,27,45,0.08), 0 2px 6px rgba(16,27,45,0.05);
  --shadow-lg: 0 24px 48px -12px rgba(10,47,92,0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1200px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--body);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* Grid/flex items shrink below their content's intrinsic width by default */
.hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
.footer-top > *, .pillars > *, .form-grid > *, .case-steps > *,
.process > *, .nav-wrap > * { min-width:0; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--ink);
  line-height:1.2;
  margin:0 0 16px;
  font-weight:700;
  letter-spacing:-0.01em;
}
p{ margin:0 0 16px; }
button{ font-family:inherit; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

section{ padding:88px 0; }
@media (max-width:768px){ section{ padding:56px 0; } }

.section-soft{ background:var(--bg-soft); }
.section-navy{ background:var(--navy-900); color:#C7D3E8; }
.section-navy h2, .section-navy h3{ color:#fff; }

/* -------------------- Type helpers -------------------- */
.eyebrow{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  max-width:100%;
  font-family:var(--font-head);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--blue-600);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:linear-gradient(90deg, var(--blue-500), var(--green-500));
  border-radius:2px;
}
.section-navy .eyebrow{ color:var(--blue-400); }

h2{ font-size:clamp(28px,3.4vw,40px); }
h3{ font-size:22px; }
.section-head{ max-width:720px; margin-bottom:48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.lead{ font-size:18px; color:var(--body); }
.text-muted{ color:var(--muted); }

/* Gradient text accent for key words */
.grad-text{
  background:linear-gradient(90deg, var(--blue-600), var(--green-600));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* -------------------- Buttons -------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-family:var(--font-head);
  font-weight:700;
  font-size:15px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(120deg, var(--blue-600), var(--blue-500) 60%, var(--green-500));
  color:#fff;
  box-shadow:0 10px 24px -8px rgba(0,114,206,0.55);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -10px rgba(0,114,206,0.6); }

.btn-secondary{
  background:#fff;
  color:var(--blue-700);
  border-color:var(--border);
  box-shadow:var(--shadow-sm);
}
.btn-secondary:hover{ border-color:var(--blue-400); transform:translateY(-2px); }

.btn-ghost-light{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,0.35);
}
.btn-ghost-light:hover{ background:rgba(255,255,255,0.08); border-color:#fff; }

.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:14px; }

/* -------------------- Header / Nav -------------------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:84px;
}
.brand{
  display:flex;
  align-items:end;
  gap: 5px;
}
.brand img{ height:52px; width:auto; }
.brand-text{ display:flex; flex-direction:column; align-items:center; }
.brand-word{ font-family:var(--font-head); font-weight:800; font-size:25px; line-height:1; white-space:nowrap; }
.brand-word .c-blue{ color:var(--blue-600); }
.brand-word .c-green{ color:var(--green-600); }
.brand-word .c-ink{ color:var(--ink); }
.brand-sub{
  display:block;
  font-family:var(--font-head);
  font-size:8.5px;
  font-weight:700;
  letter-spacing:0.7em;
  color:var(--blue-600);
  margin-top:1px;
  text-align:left;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
}
.nav-links a{
  font-family:var(--font-head);
  font-weight:600;
  font-size:15px;
  color:var(--ink);
  position:relative;
  padding:6px 0;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:2px;
  background:linear-gradient(90deg,var(--blue-500),var(--green-500));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ transform:scaleX(1); }
.nav-links a.active{ color:var(--blue-600); }

.nav-actions{ display:flex; align-items:center; gap:18px; }

.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  align-items:center; justify-content:center;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width:20px; height:2px;
  background:var(--ink);
  position:relative;
  transition:all .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width:960px){
  .nav-links{
    position:absolute;
    top:84px; left:0; right:0;
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    border-bottom:1px solid var(--border);
    box-shadow:var(--shadow-md);
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
  }
  .nav-links.open{ max-height:420px; }
  .nav-links a{ width:100%; padding:16px 24px; border-bottom:1px solid var(--border); }
  .nav-links a::after{ display:none; }
  .nav-actions .btn-primary{ display:none; }
  .nav-toggle{ display:flex; }
}

/* -------------------- Hero -------------------- */
.hero{
  position:relative;
  overflow:hidden;
  padding:96px 0 100px;
  background:
    radial-gradient(760px 420px at 85% -10%, rgba(31,182,92,0.14), transparent 60%),
    radial-gradient(900px 560px at -10% 10%, rgba(0,114,206,0.14), transparent 55%),
    var(--white);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.hero h1{ font-size:clamp(34px,4.6vw,56px); margin-bottom:20px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:32px; }
.hero-stats{
  display:flex;
  gap:32px;
  margin-top:48px;
  flex-wrap:wrap;
  max-width:100%;
}
.hero-stats .stat{ min-width:0; }
.hero-stats .stat b{ display:block; font-family:var(--font-head); font-size:26px; color:var(--ink); }
.hero-stats .stat span{ font-size:13px; color:var(--muted); }

.hero-visual{
  position:relative;
  width:100%;
  max-width:100%;
  border-radius:var(--radius-lg);
  background:linear-gradient(160deg, var(--navy-900), var(--blue-700) 130%);
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.hero-visual::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(320px 220px at 20% 15%, rgba(76,216,136,0.25), transparent 60%),
    radial-gradient(360px 260px at 85% 85%, rgba(41,169,255,0.3), transparent 60%);
}
.hero-visual img{ width:52%; position:relative; z-index:1; filter:drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }
.hero-visual .pulse-line{
  position:absolute; inset:0;
  opacity:0.5;
}

/* Floating Medical/Dental, IT and Business icons — layered above the hero logo,
   drifting freely across the whole .hero-visual box (which already has
   overflow:hidden, so they stay contained). */
.float-icon{
  position:absolute; z-index:2;
  width:58px; height:58px;
  border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 14px 26px -10px rgba(0,0,0,.4);
}
.float-icon svg{ width:26px; height:26px; stroke:#fff; }
.icon-medical{ background:rgba(41,169,255,.28); animation:driftA 9s ease-in-out infinite; }
.icon-it{ background:rgba(23,168,85,.28); animation:driftB 10.5s ease-in-out infinite; }
.icon-business{ background:rgba(76,216,136,.28); animation:driftC 8.2s ease-in-out infinite; }

@keyframes driftA{
  0%   { left:8%;  top:12%; }
  25%  { left:60%; top:8%;  }
  55%  { left:48%; top:66%; }
  80%  { left:14%; top:52%; }
  100% { left:8%;  top:12%; }
}
@keyframes driftB{
  0%   { left:72%; top:62%; }
  30%  { left:16%; top:58%; }
  60%  { left:30%; top:14%; }
  85%  { left:70%; top:20%; }
  100% { left:72%; top:62%; }
}
@keyframes driftC{
  0%   { left:38%; top:74%; }
  35%  { left:78%; top:34%; }
  65%  { left:56%; top:10%; }
  90%  { left:16%; top:30%; }
  100% { left:38%; top:74%; }
}

@media (prefers-reduced-motion: reduce){
  .float-icon{ animation:none !important; }
  .icon-medical{ left:10%; top:14%; }
  .icon-it{ left:68%; top:60%; }
  .icon-business{ left:40%; top:76%; }
}
@media (max-width:560px){
  .float-icon{ width:44px; height:44px; }
  .float-icon svg{ width:20px; height:20px; }
}

@media (max-width:960px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ min-height:300px; }
}

/* -------------------- Cards / Grids -------------------- */
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
@media (max-width:960px){ .grid-4{ grid-template-columns:repeat(2,1fr); } .grid-3{ grid-template-columns:1fr; } .grid-2{ grid-template-columns:1fr; } }
@media (max-width:600px){ .grid-4{ grid-template-columns:1fr; } }

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:32px 28px;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent; }

.icon-tile{
  width:52px; height:52px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  background:linear-gradient(135deg, var(--blue-500), var(--green-500));
  box-shadow:0 8px 18px -6px rgba(0,114,206,0.45);
}
.icon-tile svg{ width:26px; height:26px; stroke:#fff; }

.card h3{ margin-bottom:10px; font-size:19px; }
.card p{ font-size:15px; margin-bottom:14px; }
.card-link{
  font-family:var(--font-head);
  font-weight:700;
  font-size:14px;
  color:var(--blue-600);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.card-link svg{ width:14px; height:14px; transition:transform .18s ease; }
.card:hover .card-link svg{ transform:translateX(3px); }

.pill-list{ margin-top:14px; }
.pill-list li{
  font-size:14px;
  color:var(--body);
  padding:6px 0 6px 22px;
  position:relative;
}
.pill-list li::before{
  content:"";
  position:absolute; left:0; top:14px;
  width:8px; height:8px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--blue-500),var(--green-500));
}

/* -------------------- Process steps -------------------- */
.process{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
  counter-reset:step;
}
@media (max-width:960px){ .process{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .process{ grid-template-columns:1fr; } }
.process-step{
  position:relative;
  padding:28px 22px;
  border-radius:var(--radius-md);
  background:#fff;
  border:1px solid var(--border);
}
.process-step .num{
  font-family:var(--font-head);
  font-weight:800;
  font-size:28px;
  background:linear-gradient(120deg,var(--blue-600),var(--green-600));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  margin-bottom:10px;
  display:block;
}
.process-step h3{ font-size:17px; margin-bottom:8px; }
.process-step p{ font-size:14px; margin:0; }

/* -------------------- People / Process / Tech --------------------- */
.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:860px){ .pillars{ grid-template-columns:1fr; } }
.pillar{
  border-radius:var(--radius-lg);
  padding:36px 30px;
  color:#fff;
  position:relative;
  overflow:hidden;
  min-height:220px;
}
.pillar h3{ color:#fff; font-size:22px; }
.pillar p{ color:rgba(255,255,255,0.85); margin:0; font-size:15px; }
.pillar-people{ background:linear-gradient(160deg,var(--blue-700),var(--blue-500)); }
.pillar-process{ background:linear-gradient(160deg,var(--navy-800),var(--navy-700)); }
.pillar-tech{ background:linear-gradient(160deg,var(--green-700),var(--green-500)); }

/* -------------------- People / Process / Technology — 3D (homepage) -------------------- */
.p3d-section{ padding:100px 0 112px; overflow:hidden; isolation:isolate; }
.section-navy.p3d-section{
  background:
    radial-gradient(1000px 460px at 18% -8%, rgba(0,130,224,.16), transparent 60%),
    radial-gradient(900px 420px at 86% 6%, rgba(31,182,92,.13), transparent 60%),
    linear-gradient(180deg, #0A1B34 0%, var(--navy-900) 55%, #060F20 100%);
}
.p3d-section .lead{ color:#9FB1D2; }

.p3d-stage-wrap{ position:relative; perspective:1500px; padding:70px 10px 30px; }
.p3d-canvas{ position:absolute; inset:-40px 0 0 0; width:100%; height:calc(100% + 40px); z-index:0; opacity:.8; }
.p3d-spotlight{
  position:absolute; inset:0; z-index:2; pointer-events:none;
  background:radial-gradient(460px circle at var(--mx,50%) var(--my,10%), rgba(255,255,255,.09), transparent 62%);
}
.p3d-floor{
  position:absolute; left:6%; right:6%; bottom:-6px; height:230px; z-index:1; pointer-events:none;
  background-image:
    linear-gradient(rgba(130,180,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,180,255,.16) 1px, transparent 1px);
  background-size:46px 46px;
  transform:rotateX(80deg);
  transform-origin:bottom center;
  -webkit-mask-image:linear-gradient(to top, rgba(0,0,0,.85), transparent 88%);
          mask-image:linear-gradient(to top, rgba(0,0,0,.85), transparent 88%);
}

.p3d-stage{ position:relative; z-index:3; display:grid; grid-template-columns:repeat(3,1fr); gap:34px; perspective:1200px; }
.p3d-stage > *{ min-width:0; }

.p3d-links{ position:absolute; inset:-30px 0 0 0; width:100%; height:calc(100% + 30px); overflow:visible; pointer-events:none; z-index:0; }
.p3d-links path{ fill:none; stroke-width:1.6; stroke-linecap:round; stroke:url(#p3dLinkGrad); opacity:0.65; }
.p3d-links .glow{ stroke-width:7; opacity:.16; filter:blur(3px); }
.p3d-links .pulse{
  stroke-width:2.6; stroke-dasharray:10 240;
  animation:p3dPulse 4s linear infinite;
  filter:drop-shadow(0 0 5px rgba(76,216,136,0.75));
}
.p3d-links path:nth-child(4).pulse{ animation-delay:-2s; }
@keyframes p3dPulse{ to{ stroke-dashoffset:-250; } }
.p3d-particle-dot{ filter:drop-shadow(0 0 5px rgba(255,255,255,1)) drop-shadow(0 0 14px rgba(76,216,136,.85)); }

.p3d-card{
  position:relative; z-index:1;
  transform-style:preserve-3d;
  transform:rotateY(var(--tilt,0deg)) rotateX(6deg) translateZ(0);
  transition:transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
  opacity:0; translate:0 26px;
}
.p3d-stage.is-in .p3d-card{ opacity:1; translate:0 0; }
.p3d-stage.is-in .p3d-card[data-pillar="process"]{ transition-delay:.08s; }
.p3d-stage.is-in .p3d-card[data-pillar="technology"]{ transition-delay:.16s; }

.p3d-float{ transform-style:preserve-3d; animation:p3dFloat 6.4s ease-in-out infinite; }
.p3d-card[data-pillar="people"] .p3d-float{ animation-delay:0s; }
.p3d-card[data-pillar="process"] .p3d-float{ animation-delay:-2.1s; }
.p3d-card[data-pillar="technology"] .p3d-float{ animation-delay:-4.2s; }
@keyframes p3dFloat{
  0%,100%{ transform:translateY(0) rotateZ(0deg); }
  50%{ transform:translateY(-10px) rotateZ(.6deg); }
}

.p3d-card-inner{
  position:relative;
  background:linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  -webkit-backdrop-filter:blur(18px) saturate(140%);
          backdrop-filter:blur(18px) saturate(140%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-lg);
  padding:40px 30px 36px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 2px 4px rgba(0,0,0,.25),
    0 30px 60px -24px rgba(0,0,0,.65);
  transform:translateZ(18px);
  transition:transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .3s ease;
  text-align:center; height:100%; overflow:hidden;
}
.p3d-card-inner::before{
  content:""; position:absolute; left:14%; right:14%; bottom:-46px; height:60px; z-index:-1;
  background:radial-gradient(closest-side, var(--glow,rgba(0,130,224,.55)), transparent 75%);
  filter:blur(10px); opacity:.7;
}
.p3d-card[data-pillar="people"] .p3d-card-inner{ --glow:rgba(0,130,224,.55); }
.p3d-card[data-pillar="process"] .p3d-card-inner{ --glow:rgba(76,216,136,.5); }
.p3d-card[data-pillar="technology"] .p3d-card-inner{ --glow:rgba(41,169,255,.55); }
.p3d-card-inner::after{
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(115deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  transform:translateX(-120%);
  transition:transform .8s ease;
}
.p3d-card:hover .p3d-card-inner::after{ transform:translateX(120%); }

.p3d-stage:has(.p3d-card:hover) .p3d-card:not(:hover) .p3d-card-inner{ transform:translateZ(6px) scale(.965); opacity:.7; }
.p3d-stage:has(.p3d-card:hover) .p3d-links path{ opacity:.2; }
.p3d-card:hover .p3d-card-inner{
  transform:translateZ(64px) scale(1.045);
  border-color:rgba(255,255,255,.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 2px 4px rgba(0,0,0,.3),
    0 40px 74px -22px rgba(0,0,0,.72);
}

.p3d-cube-wrap{ width:66px; height:66px; margin:0 auto 24px; perspective:340px; transform:translateZ(26px); }
.p3d-cube{
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d;
  transform:rotateX(-10deg) rotateY(0deg);
  animation:p3dCubeSpin 10s linear infinite;
}
@keyframes p3dCubeSpin{ from{ transform:rotateX(-10deg) rotateY(0deg); } to{ transform:rotateX(-10deg) rotateY(360deg); } }
.p3d-cube .face{ position:absolute; inset:0; border-radius:16px; display:flex; align-items:center; justify-content:center; backface-visibility:hidden; }
.p3d-cube .face svg{ width:28px; height:28px; stroke:#fff; }
.p3d-cube .front{ background:linear-gradient(135deg,var(--blue-500),var(--green-500)); transform:translateZ(33px); box-shadow:inset 0 0 22px rgba(255,255,255,.3); }
.p3d-cube .back{ background:linear-gradient(135deg,var(--blue-900),var(--green-700)); transform:rotateY(180deg) translateZ(33px); }
.p3d-cube .right{ background:linear-gradient(135deg,var(--blue-600),var(--green-600)); transform:rotateY(90deg) translateZ(33px); opacity:.88; }
.p3d-cube .left{ background:linear-gradient(135deg,var(--blue-700),var(--green-700)); transform:rotateY(-90deg) translateZ(33px); opacity:.72; }
.p3d-cube .top{ background:linear-gradient(135deg,var(--blue-400),var(--green-400)); transform:rotateX(90deg) translateZ(33px); opacity:.95; }
.p3d-cube .bottom{ background:linear-gradient(135deg,var(--blue-900),#063a20); transform:rotateX(-90deg) translateZ(33px); opacity:.55; }
.p3d-card:hover .p3d-cube{ animation-play-state:paused; }

.p3d-card-inner h3{ font-size:20px; margin-bottom:10px; color:#F4F8FF; transform:translateZ(14px); }
.p3d-card-inner p{ font-size:14.5px; margin:0; color:#A9B7D6; transform:translateZ(10px); }

.p3d-plus{
  position:absolute; top:52%; z-index:2;
  width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:800; font-size:14px; color:#CFE0FF;
  transform:translate(-50%,-50%);
}

@media (prefers-reduced-motion: reduce){
  .p3d-card, .p3d-card-inner, .p3d-float, .p3d-cube{ transition:none !important; animation:none !important; }
  .p3d-cube{ transform:rotateX(-10deg) rotateY(-28deg) !important; }
  .p3d-links .pulse{ animation:none !important; }
  .p3d-particle-dot{ display:none; }
  .p3d-stage .p3d-card{ opacity:1 !important; translate:0 !important; }
}

@media (max-width:860px){
  .p3d-stage{ grid-template-columns:1fr; perspective:none; gap:20px; }
  .p3d-card{ transform:none !important; }
  .p3d-card-inner{ transform:none !important; }
  .p3d-card:hover .p3d-card-inner{ transform:translateY(-3px) !important; }
  .p3d-float{ animation:none !important; }
  .p3d-cube{ animation:none !important; transform:rotateX(-10deg) rotateY(-24deg) !important; }
  .p3d-links, .p3d-canvas, .p3d-floor, .p3d-spotlight{ display:none; }
  .p3d-plus{ display:none; }
}

/* ---- 5-step variant (About page "Our Approach" process) ---- */
.p3d-stage--5{ grid-template-columns:repeat(5,1fr); gap:18px; }
.p3d-stage--5 .p3d-card-inner{ padding:28px 18px 26px; }
.p3d-stage--5 .p3d-cube-wrap{ width:52px; height:52px; margin:0 auto 18px; }
.p3d-stage--5 .p3d-cube .face .num{ font-size:19px; }
.p3d-stage--5 .p3d-card-inner h3{ font-size:17px; margin-bottom:8px; }
.p3d-stage--5 .p3d-card-inner p{ font-size:13.5px; }
.p3d-cube .face .num{ font-family:var(--font-head); font-weight:800; color:#fff; }

.p3d-card[data-step="1"] .p3d-card-inner{ --glow:rgba(0,130,224,.55); }
.p3d-card[data-step="2"] .p3d-card-inner{ --glow:rgba(41,169,255,.5); }
.p3d-card[data-step="3"] .p3d-card-inner{ --glow:rgba(31,182,146,.5); }
.p3d-card[data-step="4"] .p3d-card-inner{ --glow:rgba(76,216,136,.5); }
.p3d-card[data-step="5"] .p3d-card-inner{ --glow:rgba(23,168,85,.55); }
.p3d-stage.is-in .p3d-card[data-step="2"]{ transition-delay:.06s; }
.p3d-stage.is-in .p3d-card[data-step="3"]{ transition-delay:.12s; }
.p3d-stage.is-in .p3d-card[data-step="4"]{ transition-delay:.18s; }
.p3d-stage.is-in .p3d-card[data-step="5"]{ transition-delay:.24s; }
.p3d-card[data-step="1"] .p3d-float{ animation-delay:0s; }
.p3d-card[data-step="2"] .p3d-float{ animation-delay:-1.28s; }
.p3d-card[data-step="3"] .p3d-float{ animation-delay:-2.56s; }
.p3d-card[data-step="4"] .p3d-float{ animation-delay:-3.84s; }
.p3d-card[data-step="5"] .p3d-float{ animation-delay:-5.12s; }

@media (max-width:1180px) and (min-width:861px){
  .p3d-stage--5{ grid-template-columns:repeat(3,1fr); }
  .p3d-stage--5 .p3d-links{ display:none; }
}
@media (max-width:860px){
  .p3d-stage--5{ grid-template-columns:1fr; }
}

/* -------------------- CTA banner -------------------- */
.cta-banner{
  border-radius:var(--radius-lg);
  padding:56px;
  background:linear-gradient(120deg, var(--navy-900), var(--blue-700));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  position:relative;
  overflow:hidden;
}
.cta-banner::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(420px 240px at 90% 0%, rgba(76,216,136,0.28), transparent 60%);
}
.cta-banner h2{ color:#fff; margin-bottom:8px; }
.cta-banner p{ color:rgba(255,255,255,0.82); margin:0; max-width:520px; }
.cta-content, .cta-actions{ position:relative; z-index:1; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* -------------------- Logos / trust strip -------------------- */
.trust-strip{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:24px;
  padding:28px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.trust-strip span{ font-family:var(--font-head); font-weight:700; font-size:13px; letter-spacing:.06em; color:var(--muted); text-transform:uppercase; }

/* -------------------- Tables / dividers -------------------- */
.divider{ height:1px; background:var(--border); margin:56px 0; }

/* -------------------- Breadcrumb / page header -------------------- */
.page-hero{
  padding:64px 0 56px;
  background:linear-gradient(180deg, var(--bg-soft), #fff);
  border-bottom:1px solid var(--border);
}
.page-hero h1{ font-size:clamp(30px,4vw,44px); margin-bottom:14px; }
.page-hero p{ max-width:680px; font-size:17px; }
.breadcrumb{ font-size:13px; color:var(--muted); margin-bottom:18px; }
.breadcrumb a{ color:var(--blue-600); font-weight:600; }

/* -------------------- Services page -------------------- */
.service-block{ padding:64px 0; border-bottom:1px solid var(--border); }
.service-block:last-child{ border-bottom:none; }
.service-block-head{ display:flex; align-items:flex-start; gap:20px; margin-bottom:36px; }
.service-block-head .icon-tile{ margin-bottom:0; flex-shrink:0; }
.service-items{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:760px){ .service-items{ grid-template-columns:1fr; } }
.service-item{
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:22px 24px;
  background:#fff;
}
.service-item h4{ font-family:var(--font-head); font-size:16px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.service-item p{ font-size:14px; margin:0; color:var(--body); }

.jump-nav{
  display:flex; gap:10px; flex-wrap:wrap;
  padding:16px 0;
  position:sticky; top:85px; z-index:40;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--border);
}
.jump-nav a{
  font-family:var(--font-head); font-weight:600; font-size:13.5px;
  padding:8px 16px; border-radius:999px; border:1px solid var(--border); color:var(--ink);
}
.jump-nav a:hover{ border-color:var(--blue-400); color:var(--blue-600); }

/* -------------------- Insights / Articles -------------------- */
.article-card{
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
  background:#fff;
  transition:transform .2s ease, box-shadow .2s ease;
}
.article-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.article-media{
  height:170px;
  background:linear-gradient(135deg,var(--blue-600),var(--green-500));
  position:relative;
}
.article-media span{
  position:absolute; top:14px; left:14px;
  background:rgba(8,21,42,0.55);
  color:#fff;
  font-family:var(--font-head); font-weight:700; font-size:11.5px;
  letter-spacing:.05em; text-transform:uppercase;
  padding:6px 12px; border-radius:999px;
}
.article-body{ padding:22px 22px 24px; }
.article-meta{ font-size:12.5px; color:var(--muted); margin-bottom:10px; display:flex; gap:10px; flex-wrap:wrap; }
.article-body h3{ font-size:18px; margin-bottom:10px; }
.article-body p{ font-size:14.5px; margin-bottom:16px; }

.category-strip{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:44px; }
.category-chip{
  font-family:var(--font-head); font-weight:700; font-size:13.5px;
  padding:10px 18px; border-radius:999px;
  border:1px solid var(--border);
  color:var(--ink);
}
.category-chip.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

/* -------------------- Article template -------------------- */
.article-header{ max-width:760px; margin:0 auto 40px; text-align:center; }
.article-header .article-meta{ justify-content:center; }
.article-header h1{ font-size:clamp(28px,4vw,40px); }
.article-hero-img{
  height:340px; border-radius:var(--radius-lg);
  background:linear-gradient(135deg,var(--navy-900),var(--blue-600));
  margin-bottom:48px;
}
.article-content{ max-width:760px; margin:0 auto; }
.article-content h2{ font-size:24px; margin-top:40px; }
.article-content h3{ font-size:19px; margin-top:28px; }
.article-content p, .article-content li{ font-size:16.5px; color:var(--body); }
.article-content ul{ margin:0 0 20px; padding-left:0; }
.article-content li{ position:relative; padding-left:24px; margin-bottom:10px; }
.article-content li::before{ content:""; position:absolute; left:0; top:10px; width:7px; height:7px; border-radius:50%; background:var(--blue-500); }
.article-content blockquote{
  border-left:3px solid var(--blue-500);
  padding:4px 0 4px 22px;
  margin:28px 0;
  font-size:19px; font-family:var(--font-head); font-weight:600;
  color:var(--ink);
}
.article-summary{
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:26px 28px;
  margin-bottom:36px;
}
.article-summary h4{ font-family:var(--font-head); font-size:14px; text-transform:uppercase; letter-spacing:.06em; color:var(--blue-600); margin-bottom:10px; }
.article-refs{ font-size:14px; color:var(--muted); }
.article-refs li{ margin-bottom:8px; }
.article-share{ display:flex; gap:12px; margin:32px 0; }
.related-strip{ margin-top:64px; }

/* -------------------- Case studies -------------------- */
.case-card{
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:36px;
  background:#fff;
}
.case-tag{
  display:inline-block;
  font-family:var(--font-head); font-weight:700; font-size:12px;
  letter-spacing:.05em; text-transform:uppercase;
  color:var(--green-700); background:var(--green-100);
  padding:6px 12px; border-radius:999px; margin-bottom:16px;
}
.case-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:22px; }
@media (max-width:760px){ .case-steps{ grid-template-columns:1fr 1fr; } }
.case-steps div{ border-top:3px solid var(--blue-500); padding-top:10px; }
.case-steps h4{ font-family:var(--font-head); font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink); margin-bottom:6px; }
.case-steps p{ font-size:13.5px; margin:0; color:var(--body); }

/* -------------------- Forms -------------------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1/-1; }
.field label{ font-family:var(--font-head); font-weight:600; font-size:13.5px; color:var(--ink); }
.field input, .field select, .field textarea{
  font-family:var(--font-body);
  font-size:15px;
  padding:13px 16px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--ink);
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--blue-500);
  box-shadow:0 0 0 4px var(--blue-100);
}
.field textarea{ resize:vertical; min-height:120px; }
.field-error{ font-size:12.5px; color:#C0392B; min-height:15px; display:block; }
.phone-field{ display:flex; gap:10px; }
.phone-field select{ flex:0 0 110px; min-width:0; }
.phone-field input{ flex:1 1 auto; min-width:0; }
.field.invalid .phone-field select, .field.invalid .phone-field input{ border-color:#C0392B; }
.field.invalid input, .field.invalid select, .field.invalid textarea{ border-color:#C0392B; }
.field.invalid input:focus, .field.invalid select:focus, .field.invalid textarea:focus{ border-color:#C0392B; box-shadow:0 0 0 4px rgba(192,57,43,0.12); }

.contact-info-card{
  background:linear-gradient(160deg,var(--navy-900),var(--blue-700));
  color:#fff;
  border-radius:var(--radius-lg);
  padding:36px 32px;
}
.contact-info-card h3{ color:#fff; }
.contact-info-row{ display:flex; gap:14px; padding:16px 0; border-top:1px solid rgba(255,255,255,0.15); }
.contact-info-row:first-of-type{ border-top:none; }
.contact-info-row b{ display:block; font-family:var(--font-head); font-size:14px; }
.contact-info-row span{ font-size:14px; color:rgba(255,255,255,0.75); }

/* -------------------- Footer -------------------- */
.site-footer{ background:var(--navy-900); color:#9AAAC5; padding:72px 0 28px; }
.footer-top{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr 1.1fr;
  gap:32px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
@media (max-width:900px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-top{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:34px; }
.footer-brand span{ font-family:var(--font-head); font-weight:800; color:#fff; font-size:18px; }
.footer-col h4{ font-family:var(--font-head); color:#fff; font-size:14px; letter-spacing:.04em; text-transform:uppercase; margin-bottom:16px; }
.footer-col li{ margin-bottom:11px; font-size:14.5px; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
  padding-top:26px; font-size:13px;
}
.footer-legal{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-legal a:hover{ color:#fff; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.18);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ background:rgba(255,255,255,0.08); }
.social-row svg{ width:16px; height:16px; stroke:#fff; }

/* -------------------- Misc -------------------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.mb-0{ margin-bottom:0; }
