/* MDA-BIO — Apple Liquid Glass adaptation (ui-ux-pro-max)
   Material on chrome/controls only. Content stays opaque & readable.
   Brand accent retained from logo (#53CCA9). */

:root {
  /* Material system */
  --glass-bg: rgba(18, 18, 20, 0.55);
  --glass-bg-strong: rgba(12, 12, 14, 0.82);
  --glass-bg-light: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --glass-blur: 22px;
  --glass-saturate: 160%;
  --lens-glow: radial-gradient(
    120% 80% at 20% 0%,
    rgba(255, 255, 255, 0.18),
    transparent 45%
  ),
    radial-gradient(
      90% 70% at 80% 100%,
      rgba(83, 204, 169, 0.16),
      transparent 50%
    );

  /* Apple-like motion */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: var(--ease-apple);

  /* Softer geometry */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 980px;
  --header-h: 4.25rem;

  /* Typography — Plus Jakarta Sans (enterprise premium) */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Refined surfaces */
  --ink: #050506;
  --ink-soft: #0c0c0e;
  --paper: #f5f5f7;
  --paper-warm: #fbfbfd;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-muted: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 8px 40px rgba(0, 0, 0, 0.18);
  --shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body {
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  background: var(--paper);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* —— Liquid glass utility —— */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-soft);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lens-glow);
  pointer-events: none;
  opacity: 0.85;
}

.glass > * {
  position: relative;
  z-index: 1;
}

/* —— Header chrome (primary Liquid Glass surface) ——
   Always reads as black ink glass on home AND light inner pages.
   Semi-transparent dark over paper looked grey — use strong fill. */
/* Fixed — sticky failed inside [data-header] (wrapper only header-tall) */
[data-header] {
  position: relative;
  z-index: 200;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  overflow: visible;
}

body {
  padding-top: 0; /* heroes include header clearance */
}

main {
  position: relative;
  z-index: 1;
}

.site-header__inner {
  margin-top: 0.55rem;
  height: calc(var(--header-h) - 0.7rem);
  padding: 0 0.85rem 0 1rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  overflow: visible; /* allow dropdown menus to escape the pill */
}

/* Visual glass pill (does not clip dropdowns) — near-opaque black */
.site-header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%),
    rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  pointer-events: none;
  z-index: 0;
}

.site-header__inner > * {
  position: relative;
  z-index: 1;
}

.nav__link {
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  transition: background 0.25s var(--ease-apple), color 0.25s var(--ease-apple);
}

.nav__link:hover,
.nav__item:focus-within > .nav__link {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav__dropdown {
  top: calc(100% + 0.75rem);
  min-width: 16rem;
  padding: 0.45rem;
  border-radius: 18px;
  background: rgba(22, 22, 24, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  z-index: 120;
}

.nav__dropdown a {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.header-cta {
  border-radius: var(--radius-pill) !important;
  min-height: 2.35rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.nav-toggle {
  border-radius: 12px;
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

/* Mobile nav glass sheet */
.mobile-nav {
  z-index: 160;
  top: calc(var(--header-h) + 0.35rem);
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  border-radius: 24px;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 1.25rem 1.25rem 1.75rem;
}

/* —— Buttons —— */
.btn {
  border-radius: var(--radius-pill);
  min-height: 3.1rem;
  padding: 0.9rem 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease-apple), background 0.25s var(--ease-apple),
    border-color 0.25s var(--ease-apple), color 0.25s var(--ease-apple),
    box-shadow 0.25s var(--ease-apple);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #04201a;
  box-shadow: 0 8px 28px rgba(83, 204, 169, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  background: #67d8b6;
  box-shadow: 0 12px 36px rgba(83, 204, 169, 0.38);
}

.btn--secondary,
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--glass-border);
}

.btn--secondary:hover,
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(83, 204, 169, 0.55);
  color: var(--accent);
}

.btn--ghost {
  border-radius: var(--radius-pill);
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.btn--dark {
  border-radius: var(--radius-pill);
  background: #1d1d1f;
}

/* —— Surfaces & cards —— */
.division,
.segment,
.service-card,
.architecture,
.advantage,
.expertise,
.contact-channel,
.form-success,
.cert-placeholder,
.legal-placeholder,
.file-field {
  border-radius: 20px;
}

.division {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: clamp(1.6rem, 3vw, 2.1rem);
}

.section--dark .division,
.section--ink-soft .division {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border-soft);
  box-shadow: var(--shadow-glass);
}

.division:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 204, 169, 0.45);
}

.segment {
  border: 0;
  background: transparent;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
}

.segments {
  background: transparent;
  border: 0;
  gap: 0.65rem;
  display: grid;
}

@media (min-width: 800px) {
  .segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .segments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.segment {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.segment:hover {
  background: #fff;
}

.architecture {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-soft);
  box-shadow: var(--shadow-glass);
}

.architecture__label {
  border-radius: var(--radius-pill);
  background: rgba(83, 204, 169, 0.1);
}

.eco-chip {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-color: rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple);
}

.eco-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(83, 204, 169, 0.4);
}

.advantage {
  border-radius: 16px;
  border-top: 0;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
}

.process {
  background: transparent;
  border: 0;
  gap: 0.55rem;
}

.process__step {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.accordion__item {
  border-color: rgba(0, 0, 0, 0.08);
}

.note {
  border-radius: 14px;
  border-left-width: 3px;
}

.trust {
  background: #050506;
  border: 0;
  padding: 0 0 2.5rem;
  margin: 0;
  width: 100%;
}

.trust > .container {
  margin-inline: auto;
  width: min(100% - (var(--gutter) * 2), var(--container));
}

.trust .container {
  width: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.trust .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lens-glow);
  pointer-events: none;
}

.trust .container > * {
  position: relative;
  z-index: 1;
}

.trust__item {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* Forms */
.field input,
.field select,
.field textarea {
  border-radius: 14px;
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(83, 204, 169, 0.7);
  box-shadow: 0 0 0 4px rgba(83, 204, 169, 0.18);
}

/* Footer */
.site-footer {
  background: #050506;
  border-top: 1px solid var(--glass-border-soft);
}

/* Cinema liquid refinements */
.cine-hero {
  background:
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(83, 204, 169, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255, 255, 255, 0.05), transparent 50%),
    #050506;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 6rem;
}

.cine-hero__frame {
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.cine-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22),
    transparent 35%,
    transparent 65%,
    rgba(83, 204, 169, 0.12)
  );
  mix-blend-mode: soft-light;
}

.visual-panel {
  border-radius: inherit;
}

.hero__cap {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.95rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple),
    transform 0.25s var(--ease-apple);
}

.hero__cap:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(83, 204, 169, 0.45);
  transform: translateY(-2px);
}

.cine-pin__marker {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.cine-pin__orb {
  border-color: rgba(83, 204, 169, 0.28);
  box-shadow: inset 0 0 60px rgba(83, 204, 169, 0.08),
    0 0 80px rgba(83, 204, 169, 0.08);
}

.cine-panel__media,
.reveal-frame,
.cine-process__visual,
.ops-map {
  border-radius: 24px;
  overflow: hidden;
  border-color: var(--glass-border-soft);
  box-shadow: var(--shadow-glass);
}

.cine-hscroll {
  background:
    radial-gradient(ellipse at top, #ffffff, var(--paper) 55%);
}

.cine-process__step {
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  border: 1px solid transparent;
  border-top: 1px solid transparent;
}

.cine-process__step.is-active {
  background: rgba(83, 204, 169, 0.08);
  border-color: rgba(83, 204, 169, 0.28);
}

.cine-process__visual {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(245, 245, 247, 0.9));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.cine-parallax {
  border-radius: 0;
}

.cta-band {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(83, 204, 169, 0.18), transparent 45%),
    #050506;
}

.scroll-progress {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #9aefd4);
  z-index: 300;
}

.scroll-cue {
  left: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

/* Light paper sections */
.section--paper {
  background: var(--paper);
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* —— Inner pages: cinematic hero + premium surfaces —— */
.page-hero {
  padding: calc(var(--header-h) + clamp(3.5rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(83, 204, 169, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 12% 85%, rgba(255, 255, 255, 0.05), transparent 50%),
    #050506;
  border-bottom: 1px solid var(--glass-border-soft);
}

.page-hero .grid-motif {
  opacity: 0.45;
}

.page-hero h1 {
  max-width: 18ch;
  letter-spacing: -0.04em;
}

.page-hero .lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.breadcrumb a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s var(--ease-apple);
}

.service-grid {
  gap: 0.85rem;
  background: transparent;
  border: 0;
}

.service-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 1.75rem 1.55rem;
  transition: transform 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(83, 204, 169, 0.4);
}

.expertise {
  border-radius: 16px;
  border-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.03);
  padding: 1.35rem 1.25rem;
}

.contact-channel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.03);
  padding: 1.35rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s var(--ease-apple), transform 0.25s var(--ease-apple);
}

.contact-channel:hover {
  border-color: rgba(83, 204, 169, 0.4);
  transform: translateY(-2px);
}

.contact-channels {
  gap: 0.75rem;
}

.content-block {
  max-width: 48rem;
}

.content-block p {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.cap-list li {
  position: relative;
  border-radius: 12px;
  padding: 0.9rem 1.15rem 0.9rem 2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.cap-list li::before {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 2px;
  margin: 0;
  background: var(--accent);
}

.checklist li {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.04);
  align-items: center;
}

.checklist li::before {
  margin-top: 0;
}

.cert-placeholder,
.legal-placeholder,
.form-success,
.file-field {
  border-radius: 18px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.03);
}

.note {
  background: rgba(83, 204, 169, 0.08);
  border-left-color: var(--accent);
}

.split-grid .ops-map {
  border-radius: 24px;
  border: 1px solid var(--glass-border-soft);
  background:
    radial-gradient(circle at 50% 45%, rgba(83, 204, 169, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.04);
}

/* Solution / industry detail pages */
.section .section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Sticky header over light paper: keep pill black (already strong fill) */
body:not([data-cinema]) .site-header__inner::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(8, 8, 10, 0.96);
}

/* Reduced transparency fallback */
@media (prefers-reduced-transparency: reduce) {
  .site-header__inner::before,
  .nav__dropdown,
  .mobile-nav,
  .trust .container,
  .division,
  .architecture,
  .service-card,
  .expertise,
  .contact-channel,
  .btn--secondary,
  .btn--ghost-light {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header__inner::before,
  .mobile-nav,
  .trust .container {
    background: #0c0c0e;
  }

  .division,
  .service-card,
  .expertise,
  .contact-channel {
    background: #ffffff;
  }

  .architecture {
    background: #141416;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .division:hover,
  .hero__cap:hover,
  .eco-chip:hover {
    transform: none;
  }
}
