/*!
Theme Name:        Medsafe
Theme URI:         https://medsafbiopharma.com/
Author:            Medsaf Biopharma
Description:       A high-performance WordPress theme for Medsaf Biopharma. Warm biopharma palette, split hero layout, service cards, testimonial carousel, modal details and AJAX contact form.
Version:           1.0.0
Requires at least: 6.5
Tested up to:      6.9
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       medsafe
Tags:              one-page, business, portfolio, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog
*/

/* ============================================================
   Medsafe — Biopharma / Life Sciences
   Warm cream + deep teal + coral accent
   ============================================================ */

:root {
  --bg: #faf8f4;
  --bg-soft: #eef6f2;
  --bg-soft-2: #f3ebe3;
  --bg-tint: #f5faf8;

  --title: #0f2f2a;
  --text: #3f534d;
  --text-light: #667a72;

  --primary: #15655c;
  --primary-2: #1f8578;
  --primary-3: #0d4a42;
  --primary-soft: rgba(21, 101, 92, 0.08);

  --secondary: #e8764b;
  --secondary-hover: #d4623a;
  --secondary-soft: rgba(232, 118, 75, 0.14);

  --accent: #d4a84b;
  --accent-hover: #c49535;
  --accent-soft: rgba(212, 168, 75, 0.18);

  --accent-lime: #d4a84b;
  --accent-lime-soft: rgba(212, 168, 75, 0.14);

  --dark: #0d4a42;
  --dark-soft: #15655c;
  --darker: #062f2a;

  --border: #d5e3dc;
  --border-soft: #e6f0eb;

  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 6px 18px rgba(13, 74, 66, 0.08);
  --shadow: 0 24px 60px rgba(13, 74, 66, 0.12);
  --shadow-lg: 0 40px 90px rgba(13, 74, 66, 0.22);
  --shadow-teal: 0 18px 38px rgba(232, 118, 75, 0.28);

  --grad-cta: linear-gradient(135deg, #0d4a42 0%, #15655c 55%, #e8764b 100%);
  --grad-cta-hover: linear-gradient(135deg, #e8764b 0%, #d4623a 100%);

  --grad-dark:
    radial-gradient(900px 520px at 90% 0%, rgba(232, 118, 75, 0.16), transparent 55%),
    radial-gradient(700px 480px at 0% 100%, rgba(212, 168, 75, 0.12), transparent 60%),
    linear-gradient(135deg, #062f2a 0%, #0d4a42 50%, #15655c 100%);

  --grad-soft: linear-gradient(180deg, #faf8f4 0%, #eef6f2 100%);
  --grad-mint: linear-gradient(180deg, #f3ebe3 0%, #eef6f2 100%);
  --grad-hero:
    radial-gradient(900px 480px at 15% 0%, rgba(212, 168, 75, 0.12), transparent 60%),
    radial-gradient(700px 460px at 100% 100%, rgba(21, 101, 92, 0.08), transparent 65%),
    linear-gradient(180deg, #faf8f4 0%, #eef6f2 100%);

  --grad-hero-dark:
    radial-gradient(ellipse 900px 620px at 12% 42%, rgba(212, 168, 75, 0.18), transparent 68%),
    radial-gradient(ellipse 640px 480px at 88% 88%, rgba(232, 118, 75, 0.14), transparent 70%),
    linear-gradient(135deg, #062f2a 0%, #0d4a42 35%, #15655c 70%, #1f8578 100%);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-heading: "Sora", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

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

.hero-grid > *,
.about-grid > *,
.split-grid > *,
.contact-grid > * { min-width: 0; }

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

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #1b237b;
  color: #ffffff;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  position: relative;
}

h1, h2, h3 {
  margin: 0 0 0.9rem;
  color: var(--title);
  font-family: var(--font-heading);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow: visible;
}

h1 { font-size: clamp(1.85rem, 3.6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 1.9vw, 1.3rem); font-weight: 600; }

.eyebrow {
  display: inline-block;
  color: var(--secondary-hover);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.85rem;
  background: var(--secondary-soft);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-intro { color: var(--text); }

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--text);
  max-width: 58ch;
}

/* ============================================================ BUTTONS ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.9rem 1.7rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.25s ease;
}

.btn-primary {
  background: var(--grad-cta);
  background-size: 200% 200%;
  background-position: 0% 0%;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(45, 212, 191, 0.32), 0 6px 14px rgba(27, 35, 123, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-position 0.6s var(--ease);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(45, 212, 191, 0.42), 0 8px 18px rgba(27, 35, 123, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(27, 35, 123, 0.22);
  padding: 0.78rem 1.3rem;
}
.btn-ghost:hover {
  background: var(--secondary-soft);
  border-color: var(--secondary);
  color: var(--secondary-hover);
}
.consulting .btn-ghost,
.contact .btn-ghost,
.hero.hero-dark .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}
.consulting .btn-ghost:hover,
.contact .btn-ghost:hover,
.hero.hero-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* ============================================================ HEADER ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 244, 0.98);
  box-shadow: 0 8px 28px rgba(13, 74, 66, 0.1);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 180px;
  height: auto;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--title);
  font-weight: 600;
  position: relative;
  padding: 0.3rem 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}
.site-nav a.nav-accent,
.site-nav a.active,
.site-nav .current-menu-item > a {
  color: var(--secondary);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }

.header-cta { margin-left: 0.5rem; padding: 0.65rem 1.25rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  margin-left: auto;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--title);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ HERO ============================================================ */
.hero {
  background: var(--grad-hero);
  overflow: hidden;
  position: relative;
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.hero.hero-split {
  background: var(--grad-hero);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  min-height: min(76vh, 740px);
}
.hero.hero-split .hero-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  gap: clamp(1.4rem, 2.8vw, 2.4rem);
}
.hero.hero-split .hero-copy {
  order: 2;
  align-self: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero.hero-split .hero-copy h1,
.hero.hero-split .hero-title .word:not(.accent) {
  color: var(--title);
}
.hero.hero-split .hero-title .word.accent {
  background: none;
  -webkit-text-fill-color: var(--secondary);
  color: var(--secondary);
}
.hero.hero-split .badge {
  background: var(--secondary-soft);
  border: 1px solid rgba(232, 118, 75, 0.28);
  color: var(--secondary-hover);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}
.hero.hero-split .badge .dot { display: none; }
.hero.hero-split .hero-media {
  order: 1;
  position: relative;
  max-width: none;
  width: 100%;
  aspect-ratio: unset;
  min-height: clamp(380px, 52vh, 580px);
  height: 100%;
  align-self: stretch;
  overflow: visible;
}
.hero.hero-split .hero-frame {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: transparent;
  clip-path: none;
  animation: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero.hero-split .hero-frame::before { display: none; }
.hero.hero-split .hero-frame img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: translate3d(0, var(--hero-img-y, 0), 0);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.hero.hero-split .hero-frame:hover img {
  transform: translate3d(0, var(--hero-img-y, 0), 0) scale(1.03);
}
.hero.hero-split .float-card {
  background: #ffffff;
  border: 1px solid var(--border);
  z-index: 3;
}
.hero.hero-split .float-card-1 {
  top: 10%;
  left: 5%;
  right: auto;
}
.hero.hero-split .float-card-2 {
  bottom: 10%;
  right: 5%;
  left: auto;
}
.hero.hero-split .orb-1 {
  background: radial-gradient(circle, rgba(212, 168, 75, 0.35), transparent 62%);
  top: -80px; left: -60px; right: auto;
}
.hero.hero-split .orb-2 {
  background: radial-gradient(circle, rgba(232, 118, 75, 0.25), transparent 62%);
  bottom: -80px; right: -60px; left: auto;
}
.hero.hero-split .hero-trust {
  border-top-color: var(--border);
}
.hero.hero-split .hero-trust strong { color: var(--primary); }

.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.55), transparent 60%);
  top: -120px; right: -100px;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(27, 35, 123, 0.45), transparent 60%);
  bottom: -120px; left: -80px;
}

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(27, 35, 123, 0.10) 1px, transparent 1.4px),
    linear-gradient(rgba(27, 35, 123, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 35, 123, 0.05) 1px, transparent 1px);
  background-size: 28px 28px, 80px 80px, 80px 80px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.75), transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 3.5vw, 3.5rem);
  align-items: center;
}

.hero-copy { color: var(--text); }
.hero-copy h1 { color: var(--primary); }
.hero-copy .lead { color: var(--text); margin: 1rem 0 1.8rem; max-width: 52ch; }

.hero-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1.1rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-right: 0.28em;
}
.hero-title .word-wrap:last-child { margin-right: 0; }
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.hero-title .word.accent {
  background: none;
  -webkit-text-fill-color: var(--secondary);
  color: var(--secondary);
}
.no-motion .hero-title .word { transform: translateY(0); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary-hover);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(232, 118, 75, 0.28);
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(232, 118, 75, 0.24);
}
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.32); }
  50%      { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(27, 35, 123, 0.14);
}
.hero-trust strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.15rem;
}
.hero-trust span { color: var(--text-light); font-size: 0.85rem; }

.hero-media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.hero-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary);
  box-shadow: 0 30px 80px rgba(27, 35, 123, 0.28), 0 0 0 1px rgba(45, 212, 191, 0.18);
  border: 6px solid #ffffff;
  clip-path: inset(0 0 100% 0);
  animation: heroReveal 1.2s cubic-bezier(0.77, 0, 0.18, 1) 0.2s forwards;
}
@keyframes heroReveal {
  to { clip-path: inset(0 0 0% 0); }
}
.no-motion .hero-frame { clip-path: none; animation: none; }
.hero-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 26, 96, 0.55) 100%);
  z-index: 1;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1);
  transition: transform 1.5s var(--ease);
}
.hero-frame:hover img { transform: scale(1.04); }
.hero.hero-dark .hero-frame:hover img {
  transform: translate3d(0, var(--hero-img-y, 0), 0);
}

.float-card {
  position: absolute;
  background: #ffffff;
  padding: 0.85rem 1.05rem;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(27, 35, 123, 0.18), 0 0 0 1px rgba(45, 212, 191, 0.14);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--title);
  z-index: 2;
  animation: floaty 5s var(--ease) infinite;
}
.float-card strong { display: block; font-weight: 700; color: var(--primary); }
.float-card small { color: var(--text-light); font-size: 0.78rem; }
.float-card-1 { top: 12%; left: -8%; }
.float-card-2 { bottom: 8%; right: -10%; animation-delay: 1s; }

.float-icon {
  background: var(--grad-cta);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(45, 212, 191, 0.40);
}
.float-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.30);
  animation: pulse-green 1.8s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.30); }
  50%      { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================================ STATS ============================================================ */
.stats {
  background: var(--grad-dark);
  color: #ffffff;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  border: 0;
}
.stats .stat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.stats .stat-card p { color: rgba(255, 255, 255, 0.72); }
.stats .stat-card h2,
.stats .stat-card span {
  background: linear-gradient(135deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.stat-card h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0;
  display: inline;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-card span {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}
.stat-card p { margin: 0.4rem 0 0; color: var(--text-light); font-weight: 500; }

/* ============================================================ ABOUT ============================================================ */
.about {
  background:
    radial-gradient(600px 380px at 100% 0%, rgba(232, 118, 75, 0.08), transparent 60%),
    radial-gradient(700px 460px at 0% 100%, rgba(21, 101, 92, 0.08), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.about-grid .about-content { order: 1; }
.about-grid .about-media { order: 2; }
.about-media { position: relative; }
.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(27, 35, 123, 0.22);
  aspect-ratio: 4 / 5;
  border: 6px solid #ffffff;
  outline: 1px solid rgba(45, 212, 191, 0.20);
  outline-offset: -7px;
}
.about-image-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  right: -12px;
  bottom: -18px;
  background: var(--grad-cta);
  color: #ffffff;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 18px 40px rgba(45, 212, 191, 0.40);
  border: 4px solid #ffffff;
}
.about-image-badge strong {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #ffffff;
  line-height: 1;
}
.about-image-badge span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.about-content .lead { margin-bottom: 1.5rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}
.pillar {
  padding: 1.15rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}
.pillar h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--primary); }
.pillar p { margin: 0; font-size: 0.92rem; color: var(--text-light); }

/* ============================================================ SERVICES — CARD GRID ============================================================ */
.services { background: var(--bg); }

.service-grid.bento-grid,
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.4rem;
}

.service-grid .bento-card,
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--border);
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  box-shadow: var(--shadow-sm);
}
.bento-card.is-visible,
.no-motion .bento-card {
  opacity: 1;
  transform: none;
}
.bento-card.bento-tall,
.bento-card.bento-wide,
.bento-card:nth-child(n) {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
}

.bento-card img {
  position: relative;
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  z-index: 0;
}
.bento-card::after { display: none; }
.bento-overlay {
  position: relative;
  inset: auto;
  z-index: 2;
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  color: var(--title);
}
.bento-tag {
  display: inline-block;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: max-content;
  margin-bottom: 0.6rem;
}
.bento-overlay h3 {
  color: var(--title);
  margin: 0 0 0.45rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}
.bento-overlay p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.92rem;
  max-width: none;
  opacity: 1;
  max-height: none;
  overflow: visible;
}
.bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 0.9rem;
  opacity: 1;
  transform: none;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.bento-card:hover img { transform: scale(1.04); }
.bento-card:hover .bento-cta { color: var(--secondary-hover); }
.bento-card:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* ============================================================ HIGHLIGHTS ============================================================ */
.highlights { background: var(--bg-soft-2); }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.check-list {
  padding: 0;
  list-style: none;
  margin: 1rem 0 0;
}
.check-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2.4rem;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-cta);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"),
    var(--grad-cta);
  background-size: 13px 13px, 100% 100%;
  background-repeat: no-repeat;
  background-position: center, center;
  box-shadow: 0 6px 14px rgba(45, 212, 191, 0.34);
}
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.partners img {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem;
  width: 100%;
  height: auto;
  aspect-ratio: 190 / 80;
  object-fit: contain;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.partners img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--secondary);
}

/* ============================================================ AGENDA ============================================================ */
.agenda {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
}
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.agenda-card {
  position: relative;
  padding: 2rem 1.4rem 1.6rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  overflow: visible;
}
.agenda-card h3 {
  line-height: 1.4;
  overflow: visible;
}
.section-head h2 {
  line-height: 1.35;
  overflow: visible;
}
.agenda-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.agenda-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.agenda-card:hover::before { transform: scaleX(1); }
.agenda-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  background: var(--grad-cta);
  font-weight: 700;
  margin-bottom: 0.9rem;
  box-shadow: 0 10px 22px rgba(45, 212, 191, 0.36);
}

/* ============================================================ CONSULTING (DARK) ============================================================ */
.consulting {
  background:
    radial-gradient(900px 520px at 90% 0%, rgba(45, 212, 191, 0.20), transparent 55%),
    radial-gradient(700px 480px at 10% 85%, rgba(94, 234, 212, 0.14), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.4px),
    linear-gradient(135deg, #141a60 0%, #1b237b 50%, #2a359a 100%);
  background-size: auto, auto, 26px 26px, auto;
  color: #d3d8f0;
}
.consulting h2, .consulting .eyebrow { color: #ffffff; }
.consulting .eyebrow {
  background: rgba(45, 212, 191, 0.20);
  border-color: rgba(45, 212, 191, 0.42);
  color: #5eead4;
}
.bullet-grid {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.bullet-grid li {
  position: relative;
  color: #d3d8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.3rem 1.2rem 1.3rem 3.4rem;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}
.bullet-grid li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2 4 6v6c0 5 3.5 9.5 8 10 4.5-.5 8-5 8-10V6l-8-4z'/><polyline points='9 12 11 14 15 10'/></svg>") center / 18px 18px no-repeat,
    linear-gradient(135deg, var(--secondary), var(--secondary-hover));
  box-shadow: 0 6px 14px rgba(45, 212, 191, 0.36);
}
.bullet-grid li:hover {
  border-color: rgba(45, 212, 191, 0.58);
  transform: translateY(-3px);
  background: rgba(45, 212, 191, 0.08);
}
.bullet-grid li strong { color: #ffffff; display: block; margin-bottom: 0.3rem; }

/* ============================================================ TESTIMONIALS ============================================================ */
.testimonials { background: var(--bg-soft); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.testimonial {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.8rem;
  right: 1.4rem;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.18;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.testimonial p {
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.person img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--secondary);
}
.person h3 { margin: 0; font-size: 1rem; color: var(--primary); }
.person span { font-size: 0.88rem; color: var(--text-light); }

.testimonial-carousel {
  position: relative;
  padding: 0 0 0.5rem;
}
.testimonial-track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.6rem 0.4rem 1.4rem;
  margin: 0 -0.4rem;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track > .testimonial {
  flex: 0 0 calc(50% - 0.7rem);
  scroll-snap-align: start;
  margin: 0;
}
@media (max-width: 1024px) {
  .testimonial-track > .testimonial { flex: 0 0 100%; }
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 1.2rem);
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 3;
}
.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--grad-cta);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(45, 212, 191, 0.34);
  outline: none;
}
.carousel-arrow:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(27, 35, 123, 0.22);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s var(--ease), border-radius 0.3s ease;
}
.carousel-dots button:hover { background: rgba(27, 35, 123, 0.4); }
.carousel-dots button.active {
  background: var(--grad-cta);
  width: 28px;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
  .carousel-arrow { width: 40px; height: 40px; }
}

/* ============================================================ TEAM ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.team-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.2rem 1.4rem;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.team-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  box-shadow: 0 12px 26px rgba(45, 212, 191, 0.36);
  border: 3px solid #ffffff;
  outline: 1px solid rgba(45, 212, 191, 0.28);
}
.team-avatar-photo {
  background: transparent;
  box-shadow: none;
  outline: none;
  overflow: hidden;
  padding: 0;
}
.team-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card h3 { margin-bottom: 0.2rem; color: var(--primary); }
.team-card p { margin: 0; color: var(--text-light); font-size: 0.92rem; }

/* ============================================================ CONTACT ============================================================ */
.contact {
  background:
    radial-gradient(800px 460px at 90% 0%, rgba(45, 212, 191, 0.22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(94, 234, 212, 0.16), transparent 60%),
    linear-gradient(135deg, #141a60 0%, #1b237b 60%, #2a359a 100%);
  color: #d3d8f0;
}
.contact .eyebrow {
  background: rgba(45, 212, 191, 0.20);
  border-color: rgba(45, 212, 191, 0.42);
  color: #5eead4;
}
.contact h2 { color: #ffffff; }
.contact .contact-copy p { color: #d3d8f0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.contact-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #d3d8f0;
}
.contact-list strong { color: #ffffff; margin-right: 0.5rem; }

.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  color: var(--text);
}
.contact-form label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--primary);
  background: #ffffff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.22);
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
#charCount {
  color: var(--text-light);
  margin-bottom: 0.6rem;
  text-align: right;
  font-size: 0.82rem;
}
.contact-form button { margin-top: 0.7rem; }
.form-feedback {
  min-height: 1.3rem;
  margin: 0.4rem 0 0;
  font-weight: 600;
}
.form-feedback.success { color: #059669; }
.form-feedback.error { color: #be2c38; }

/* Honeypot */
.medsafe-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ============================================================ FAQ ============================================================ */
.faq { background: var(--bg-soft); }
.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.faq-item:hover { border-color: var(--secondary); box-shadow: var(--shadow-sm); }
.faq-item[open] {
  border-color: var(--secondary);
  box-shadow: 0 12px 30px rgba(45, 212, 191, 0.18);
}
.faq-item summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 2.2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary-soft);
  color: var(--secondary-hover);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
  background: var(--grad-cta);
  color: #ffffff;
  transform: rotate(180deg);
}
.faq-item p { margin: 0.7rem 0 0; color: var(--text); }

/* ============================================================ FOOTER ============================================================ */
.site-footer {
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(232, 118, 75, 0.12), transparent 60%),
    radial-gradient(600px 380px at 0% 100%, rgba(212, 168, 75, 0.08), transparent 60%),
    linear-gradient(135deg, #062f2a 0%, #0d4a42 60%, #15655c 100%);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 3rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #15655c 0%, #e8764b 60%, #d4a84b 100%);
  opacity: 0.9;
}
.site-footer h3 {
  color: #ffffff;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease;
}
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-logo {
  width: 120px;
  height: auto;
  aspect-ratio: 721 / 513;
  object-fit: contain;
  margin-bottom: 0.8rem;
}
.footer-tag { font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); max-width: 28ch; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 1.2rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom-inner > p { margin: 0; }

.layout-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.layout-switcher__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.layout-switcher__select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 210px;
  padding: 0.55rem 2.2rem 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: #ffffff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3a2a' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
  color: #1a3a2a;
  color-scheme: light;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.layout-switcher__select option,
.layout-switcher__select optgroup {
  color: #1a3a2a;
  background: #ffffff;
}
.layout-switcher__select:hover,
.layout-switcher__select:focus-visible {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  outline: none;
}

/* ============================================================ MODAL ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 96, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.modal.open .modal-backdrop { opacity: 1; }

.modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  box-shadow: var(--shadow-lg);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
  border: 1px solid var(--border);
}
.modal.open .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.25s var(--ease), color 0.25s ease;
}
.modal-close:hover {
  background: var(--grad-cta);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-media {
  position: relative;
  background: var(--primary);
  min-height: 280px;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: 90vh;
}
.modal-tag {
  display: inline-block;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary-hover);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(45, 212, 191, 0.30);
}
.modal-body h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 0.7rem; color: var(--primary); }
.modal-body h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.7rem;
  color: var(--primary);
}
.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.modal-body ul li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
}
.modal-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad-cta);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22);
}
.modal-actions { margin-top: 1.8rem; }

/* ============================================================ REVEAL ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================ WP CONTENT (page.php / single.php) ============================================================ */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
  color: var(--text);
  line-height: 1.7;
}
.entry-content h1, .entry-content h2, .entry-content h3 { margin-top: 2rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.2rem; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--secondary-hover); }
.entry-content blockquote {
  border-left: 4px solid var(--secondary);
  margin: 1.5rem 0;
  padding: 0.5rem 1.2rem;
  color: var(--primary);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
}
.entry-content img { border-radius: 14px; }

.page-header {
  background: var(--grad-hero);
  padding: 3rem 0 2rem;
  text-align: center;
}
.page-header h1 { color: var(--primary); }

.error-404, .no-results {
  text-align: center;
  padding: 6rem 0;
}

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .split-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-media { max-width: 480px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .agenda-grid,
  .testimonial-grid,
  .bullet-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .bento-card,
  .bento-card.bento-tall,
  .bento-card.bento-wide,
  .bento-card:nth-child(1),
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5),
  .bento-card:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-card:nth-child(1) { grid-column: span 2; }
  .bento-card:nth-child(6) { grid-column: span 2; }

  .modal-dialog { grid-template-columns: 1fr; max-height: 88vh; }
  .modal-media { min-height: 220px; max-height: 280px; }
  .modal-body { max-height: 60vh; }

  .site-header {
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.scrolled { background: rgba(250, 248, 244, 1); }
  .hero.hero-split .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero.hero-split .hero-media,
  .hero.hero-split .hero-copy { order: unset; }
}

@media (max-width: 760px) {
  .container { width: 92%; }
  .section { padding: 2.8rem 0; }

  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
    padding: 0.45rem 0;
    gap: 0.6rem;
  }
  .brand img { width: 150px; }
  .nav-toggle { display: block; }
  .site-nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin: 0.7rem 0 0;
    padding: 0.9rem 1rem;
    background: #141a60;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
  }
  .site-nav.open { display: flex; }
  .header-cta {
    margin-left: 0;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }

  .hero { padding: 2.8rem 0 3.2rem; }
  .hero-grid { gap: 2rem; }
  .hero-title {
    font-size: clamp(1.65rem, 7.5vw, 2.4rem);
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  .hero-title .line { display: inline; overflow: visible; }
  .hero-title .word-wrap {
    margin-right: 0.22em;
    padding-bottom: 0.1em;
  }

  .badge { font-size: 0.74rem; padding: 0.38rem 0.75rem; }
  .hero-copy .lead { font-size: 0.96rem; max-width: 100%; margin: 0.8rem 0 1.4rem; }
  .hero-actions { gap: 0.55rem; }
  .hero-actions .btn { padding: 0.72rem 1.15rem; font-size: 0.9rem; }

  .hero-trust { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding-top: 1.1rem; }
  .hero-trust strong { font-size: 1rem; }
  .hero-trust span { font-size: 0.7rem; line-height: 1.2; }

  .float-card { display: none; }
  .orb-1 { width: 280px; height: 280px; top: -80px; right: -60px; }
  .orb-2 { width: 240px; height: 240px; bottom: -80px; left: -60px; }

  .hero-media { aspect-ratio: 4 / 3.8; max-width: 100%; }
  .hero.hero-split .hero-media {
    aspect-ratio: auto;
    min-height: clamp(320px, 52vh, 480px);
  }
  .hero.hero-split .hero-frame { border-width: 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .stat-card { padding: 1.2rem 0.8rem; }
  .stat-card h2, .stat-card span { font-size: 1.7rem; }

  .about-grid { gap: 2.4rem; }
  .about-image-badge {
    right: 8px;
    bottom: -14px;
    padding: 0.8rem 1rem;
    border-width: 3px;
    gap: 0.6rem;
  }
  .about-image-badge strong { font-size: 1.55rem; }
  .about-image-badge span { font-size: 0.78rem; }
  .pillar { padding: 0.95rem; }

  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 0.8rem; }
  .bento-card,
  .bento-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento-overlay { padding: 1.1rem; }
  .bento-overlay p { max-height: 80px; }
  .bento-cta { opacity: 1; transform: none; }

  .partners { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }

  .team-grid { grid-template-columns: 1fr; }
  .agenda-card { padding: 1.6rem 1.2rem 1.3rem; }
  .agenda-num { width: 42px; height: 42px; }

  .bullet-grid li { padding: 1.1rem 1.1rem 1.1rem 3.2rem; }
  .bullet-grid li::before { left: 1rem; top: 1.1rem; width: 28px; height: 28px; }

  .testimonial { padding: 1.5rem 1.4rem; }
  .testimonial p { font-size: 0.98rem; }

  .contact-grid { gap: 1.6rem; }
  .contact-form { padding: 1.3rem; }
  .contact-form input,
  .contact-form textarea { padding: 0.75rem 0.9rem; }

  .faq-item { padding: 0.95rem 1.15rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .layout-switcher {
    width: 100%;
    justify-content: center;
  }
  .layout-switcher__select { width: 100%; max-width: 280px; }

  .modal { padding: 0.7rem; align-items: flex-start; padding-top: 1rem; }
  .modal-dialog { max-height: 94vh; border-radius: 18px; }
  .modal-media { min-height: 180px; max-height: 220px; }
  .modal-body { padding: 1.3rem; max-height: 65vh; }
  .modal-body h2 { font-size: 1.35rem; }
  .modal-close {
    width: 34px; height: 34px;
    font-size: 1.4rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  .section-head { margin-bottom: 2rem; }
}

@media (max-width: 420px) {
  .container { width: 94%; }
  .brand img { width: 84px; }
  .header-cta { font-size: 0.78rem; padding: 0.48rem 0.85rem; }

  .hero-title { font-size: clamp(1.55rem, 8vw, 2rem); }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .hero-trust > div:nth-child(3) { grid-column: 1 / -1; }

  .stat-card h2, .stat-card span { font-size: 1.5rem; }
}

/* ============================================================ ACCESSIBILITY ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

body.modal-open { overflow: hidden; }
