/* MEPRO 1.1 — floating liquid-glass navigation & enlarged organic hero.
   Kept separate from site.css so the design can be iterated or rolled back. */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  width: min(1350px, calc(100% - 36px));
  margin: 14px auto -102px;
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: isolate;
  transition: transform .3s ease;
}
.site-header.scrolled { box-shadow: none; }
.site-header .nav-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  height: 82px;
  padding: 0 27px 0 21px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,.85);
  background: linear-gradient(115deg,rgba(255,255,255,.89),rgba(247,250,255,.68) 48%,rgba(255,255,255,.76));
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 15px 48px rgba(28,49,81,.10), inset 0 1px 1px rgba(255,255,255,.96), inset 0 -1px 0 rgba(255,255,255,.4);
  transition: height .3s ease, box-shadow .3s ease, background .3s ease, border-radius .3s ease;
}
.site-header .nav-wrap::before {
  content: '';
  position: absolute;
  top: 2px; left: 20%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.96),transparent);
  pointer-events: none;
}
.site-header.scrolled .nav-wrap {
  height: 68px;
  border-radius: 21px;
  background: linear-gradient(116deg,rgba(255,255,255,.94),rgba(238,246,255,.82),rgba(255,255,255,.91));
  box-shadow: 0 17px 48px rgba(13,30,61,.18), inset 0 1px 1px rgba(255,255,255,.94),0 0 0 1px rgba(255,255,255,.32);
}
.site-header .brand { gap: 7px; }
.site-header .brand img { width: 51px; height: 51px; }
.site-header .brand b { font-size: 23px; letter-spacing: .105em; }
.site-header .brand small { letter-spacing: .39em; }
.site-header .desktop-nav { gap: 25px; }
.site-header .desktop-nav a { font-size: 12px; color: #41506a; }
.site-header .desktop-nav a.active::after {
  height: 4px;
  bottom: -16px;
  left: 25%; right: 25%;
  border-radius: 5px;
  background: var(--gold);
  transition: bottom .3s ease;
}
.site-header.scrolled .desktop-nav a.active::after { bottom: -13px; }
.site-header .nav-action { gap: 13px; font-size: 11px; }
.site-header .nav-action span { width: 43px; height: 43px; border-radius: 15px; }
.site-header .nav-action:hover span { transform: translate(2px,-2px); }
.site-header a:focus-visible,.site-header button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Headline and illustration take priority over decorative copy. */
.hero {
  position: relative;
  background: radial-gradient(ellipse 45% 50% at 88% 33%,rgba(204,230,240,.63) 0, transparent 100%),
              radial-gradient(ellipse 40% 52% at 58% 85%,rgba(251,235,200,.42) 0, transparent 100%),
              linear-gradient(122deg,#fff 25%,#fafbfd 63%,#fbfdff);
  overflow: hidden;
}
.hero-ambient {
  position: absolute;
  z-index: 0;
  top: 8%; right: -13%;
  width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(114,181,203,.13),transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 795px;
  grid-template-columns: minmax(0,.89fr) minmax(0,1.11fr);
  align-items: center;
  gap: 13px;
  padding-top: 135px;
  padding-bottom: 55px;
}
.hero-copy { padding-top: 0; z-index: 3; }
.hero-pill {
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(223,183,96,.48);
  box-shadow: 0 8px 26px rgba(22,48,88,.045);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 10px 15px;
  font-size: 9.5px;
  letter-spacing: .07em;
}
.hero-pill-dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(233,173,50,.16);
}
.hero h1 {
  font-size: clamp(48px,5vw,70px);
  white-space: normal;
  max-width: 620px;
  line-height: 1.12;
  margin: 30px 0 24px;
  letter-spacing: -.065em;
}
.hero h1 em { display: inline; color:#d79c25; white-space: normal; }
.hero h1 em::after { display: none; }
.hero-sub { max-width: 438px; font-size: 15px; line-height: 1.75; margin-bottom: 32px; }
.hero-cta { gap: 11px; }
.hero-cta .btn { min-height: 52px; border-radius: 13px; }
.hero-cta .btn-primary { box-shadow: 0 10px 23px rgba(218,158,46,.18); }
.hero-cta .btn-outline { background: rgba(255,255,255,.75); }
.hero-trust { margin-top: 31px; display: flex; align-items: center; gap: 9px; color: #78869a; font-size: 11px; font-weight: 600; }
.hero-trust svg { width: 18px; height: 18px; color: #3ba47f; }
.hero-art {
  position: relative;
  z-index: 1;
  width: calc(100% + 38px);
  height: 640px;
  max-width: 740px;
  justify-self: end;
  transform: translateX(19px);
}
.hero-circle {
  width: min(660px,106%);
  height: auto;
  aspect-ratio: 1;
  top: -5%; right: -19%;
  opacity: 1;
  border: 1px solid rgba(176,206,215,.34);
  background: radial-gradient(circle at 34% 33%,rgba(255,255,255,.45) 0,rgba(204,225,232,.33) 55%,rgba(255,255,255,0) 76%);
  box-shadow: inset 0 0 0 44px rgba(255,255,255,.13);
  z-index: -2;
}
.hero-ribbon {
  position: absolute;
  inset: 6% -6% 2% 2%;
  border-radius: 37% 17% 37% 14% / 29% 41% 18% 47%;
  background: linear-gradient(135deg,#ffdd8f,#e6a42a 51%,#bc872b);
  transform: translate(16px,14px) rotate(-3deg);
  box-shadow: 0 29px 57px rgba(137,105,39,.16);
  z-index: -1;
}
.hero-photo {
  position: absolute;
  inset: 4% -5% 4% 0;
  width: auto; height: auto;
  margin: 0;
  border-radius: 37% 17% 37% 14% / 29% 41% 18% 47%;
  transform: rotate(-3deg);
  box-shadow: none;
  background: linear-gradient(145deg,#a9c9d3,#2b5576);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 46%;
  transform: scale(1.06) rotate(3deg);
  filter: saturate(1.02) contrast(1.04);
  image-rendering: auto;
}
.hero-photo::after { background: linear-gradient(160deg,rgba(6,19,44,.07),transparent 46%,rgba(3,20,50,.31)); }
.hero-floating {
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.84);
  background: rgba(255,255,255,.77);
  box-shadow: 0 17px 45px rgba(17,42,71,.13), inset 0 1px 0 rgba(255,255,255,.85);
}
.hero-floating-top {
  left: -2%; top: 17%;
  width: 70px; height: 70px;
  padding: 0;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #ae7c26;
  transform: rotate(-9deg);
}
.hero-floating-top svg { width: 34px; height: 34px; }
.hero-floating-bottom {
  left: 4%; right: auto;
  bottom: 1%;
  padding: 16px 25px;
  border-radius: 19px;
  gap: 14px;
}
.hero-floating-bottom strong { font-size: 42px; }
.hero-floating-bottom > span { font-size: 11px; line-height: 1.5; }
.hero-image-stroke {
  left: auto; bottom: auto;
  right: 1%; top: 5%;
  width: 17px; height: 17px;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(232,174,54,.22);
}
.page-hero-inner { min-height: 400px; padding-top: 145px; }
.section-heading p { max-width: 480px; }
.service-card p,.article-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

@media (min-width: 1450px) {
  .hero-art { transform: translateX(36px); }
}
@media (max-width: 1180px) {
  .site-header .desktop-nav { gap: 17px; }
  .site-header .nav-action { font-size: 10px; }
  .site-header .nav-wrap { padding-inline: 18px; }
  .hero-grid { min-height: 730px; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); }
  .hero h1 { font-size: clamp(46px,5.1vw,64px); }
  .hero-art { height: 555px; }
}
@media (max-width: 1000px) {
  .site-header { width: calc(100% - 32px); margin-bottom: -98px; }
  .site-header .nav-wrap { height: 80px; }
  .site-header.scrolled .nav-wrap { height: 67px; }
  .site-header .menu-toggle { background: var(--navy); border-radius: 13px; }
  .site-header .mobile-nav {
    position: absolute;
    top: calc(100% + 9px);
    left: 0; right: 0;
    padding: 13px;
    border-radius: 23px;
    border: 1px solid rgba(255,255,255,.82);
    background: rgba(250,252,255,.94);
    box-shadow: 0 19px 53px rgba(8,24,57,.15);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    backdrop-filter: blur(24px) saturate(165%);
    overflow: hidden;
  }
  .site-header .mobile-nav a { border-bottom: 1px solid rgba(27,47,79,.065); padding: 14px 16px; border-radius: 10px; }
  .site-header .mobile-nav a:hover { background: rgba(233,173,50,.13); }
  .site-header .mobile-nav .mobile-appointment { color:var(--navy); background:var(--gold); grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:9px; }
  .site-header .mobile-nav .mobile-appointment svg { width: 16px; height: 16px; }
  .hero-grid { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 12px; }
  .hero-art { height: 520px; }
  .hero h1 { font-size: clamp(42px,5vw,58px); }
}
@media (max-width: 768px) {
  .site-header { top: 9px; width: calc(100% - 24px); margin: 10px auto -94px; }
  .site-header .nav-wrap { height: 75px; border-radius: 22px; padding: 0 17px 0 12px; }
  .site-header.scrolled .nav-wrap { height: 65px; border-radius: 20px; }
  .site-header .brand img { width: 48px; height: 48px; }
  .site-header .brand b { font-size: 21px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 157px; padding-bottom: 55px; gap: 20px; }
  .hero-copy { align-self: stretch; }
  .hero h1 { max-width: 690px; font-size: clamp(42px,8.5vw,67px); margin: 21px 0 18px; }
  .hero-sub { font-size: 14px; line-height: 1.7; max-width: 540px; margin-bottom: 26px; }
  .hero-trust { margin-top: 24px; }
  .hero-art { align-self: center; transform: none; width: min(100%,620px); max-width: none; height: min(86vw,580px); min-height: 380px; margin: 0 auto; }
  .hero-photo { inset: 5% 3% 5% 2%; }
  .hero-ribbon { inset: 7% 3% 4% 2%; }
  .hero-circle { right: -11%; }
  .hero-floating-top { left: 0; top: 17%; }
  .hero-floating-bottom { bottom: 1%; left: 4%; }
  .page-hero-inner { min-height: 360px; padding-top: 150px; }
}
@media (max-width: 540px) {
  .site-header .nav-wrap { height: 70px; }
  .site-header.scrolled .nav-wrap { height: 62px; }
  .site-header .brand img { width: 44px; height: 44px; }
  .site-header .brand b { font-size: 19px; }
  .site-header .brand small { font-size: 6px; }
  .site-header .menu-toggle { width: 39px; height: 39px; }
  .site-header .mobile-nav.open { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 139px; gap: 15px; padding-bottom: 34px; }
  .hero-pill { font-size: 8px; padding: 9px 13px; }
  .hero h1 { font-size: clamp(40px,9.3vw,52px); letter-spacing: -.06em; }
  .hero-sub { font-size: 13px; }
  .hero-cta .btn { min-height: 46px; border-radius: 11px; padding-inline: 15px; }
  .hero-trust { font-size: 10px; }
  .hero-art { width: calc(100% + 4px); height: 390px; min-height: 0; }
  .hero-circle { width: 112%; right: -14%; top: 1%; }
  .hero-photo { inset: 4% 2% 7% 2%; border-radius: 39% 16% 34% 17% / 30% 39% 17% 48%; box-shadow: none; }
  .hero-ribbon { inset: 6% 3% 6% 2%; border-radius: 39% 16% 34% 17% / 30% 39% 17% 48%; }
  .hero-floating-top { left: 0; top: 15%; width: 53px; height: 53px; border-radius: 17px; }
  .hero-floating-top svg { width: 26px; height: 26px; }
  .hero-floating-bottom { left: 5%; right: auto; bottom: 2%; padding: 10px 15px; border-radius: 13px; }
  .hero-floating-bottom strong { font-size: 30px; }
  .hero-floating-bottom > span { font-size: 9px; }
  .hero-image-stroke { right: 0; top: 2%; width: 10px; height: 10px; box-shadow: 0 0 0 7px rgba(232,174,54,.22); }
  .page-hero-inner { min-height: 315px; padding-top: 142px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .nav-wrap { transition: none; }
}
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .site-header .nav-wrap { background: rgba(255,255,255,.97); }
  .site-header .mobile-nav { background: rgba(255,255,255,.99); }
}
