/* EFMA Phase 5.3 visual refinement — original Coming Soon treatment.
   CSS only; preserves existing PHP, database, logo assets and appearance switches. */
:root{--navy:#042A52;--navy2:#042A52}

/* Original Coming Soon page: blue radial illumination + deep navy gradient. */
.efma-pattern .hero,
.efma-pattern .footer,
.efma-pattern .top,
.efma-pattern .sidebar{
  background-color:#042A52;
  background-image:radial-gradient(ellipse at 78% 40%,#123f68 0%,transparent 51%),linear-gradient(125deg,#031b36,#042a52 60%,#062f57);
  background-repeat:no-repeat;
}
.efma-pattern .hero{isolation:isolate;position:relative;overflow:hidden}
/* Original 64px scientific grid, fading from left to right. */
.efma-pattern .hero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.023) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.023) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000);
  mask-image:linear-gradient(90deg,transparent,#000);
  animation:none;
}
/* Match the original grid's subdued appearance on existing navy surfaces. */
.efma-pattern .footer,.efma-pattern .top,.efma-pattern .sidebar{
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),radial-gradient(ellipse at 78% 40%,#123f68 0%,transparent 51%),linear-gradient(125deg,#031b36,#042a52 60%,#062f57);
  background-size:64px 64px,64px 64px,100% 100%,100% 100%;
  background-repeat:repeat,repeat,no-repeat,no-repeat;
}

/* Main hero: original orbit proportions, existing shield or configured hero image. */
.efma-pattern .hero .wrap{min-height:clamp(440px,43vw,650px);gap:clamp(20px,4vw,52px);padding-top:54px;padding-bottom:54px}
.efma-pattern .hero .eyebrow{display:flex;align-items:center;gap:12px;color:#bdcfe2;letter-spacing:.2em;margin-bottom:22px}
.efma-pattern .hero .eyebrow::before{content:"";width:33px;height:1px;background:#9bb4ce;flex:none}
.efma-pattern .hero .orbital{width:100%;height:auto;aspect-ratio:1;max-width:500px;margin:auto;isolation:isolate}
.efma-pattern .hero .orbital::before{content:"";position:absolute;inset:9%;background:radial-gradient(circle,#5d91c322,transparent 70%);filter:blur(12px);z-index:-1;pointer-events:none}
.efma-pattern .hero .orbital::after{content:"";position:absolute;inset:0;opacity:.5;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent 49.9%,#9ebee51a 50%,transparent 50.1%),linear-gradient(transparent 49.9%,#9ebee51a 50%,transparent 50.1%)}
.efma-pattern .hero .ring{inset:15%;width:auto;height:auto;border:1px dashed #c1d8f029;opacity:.85;pointer-events:none;animation:efma-original-spin 56s linear infinite}
.efma-pattern .hero .ring.r2{inset:5%;width:auto;height:auto;border-style:solid;opacity:1;animation:efma-original-spin 35s linear infinite}
.efma-pattern .hero .ring::before,.efma-pattern .hero .ring.r2::before{content:"";position:absolute;top:50%;right:-4px;left:auto;bottom:auto;width:7px;height:7px;background:#d9eaff;border-radius:50%;box-shadow:0 0 14px #a6cfff}
.efma-pattern .hero .ring.r2::after{content:"";position:absolute;left:13%;top:14%;width:4px;height:4px;border-radius:50%;background:#9bbbe1}
.efma-pattern .hero .orbital img.hero-emblem{position:relative;z-index:1;width:63%;height:63%;max-height:63%;object-fit:contain;border-radius:0;box-shadow:none;filter:drop-shadow(0 12px 28px #001a36aa);animation:efma-original-float 6s ease-in-out infinite}
/* Do not restyle, replace or crop a custom hero photograph. */
.efma-pattern .hero .orbital img.hero-photo{position:relative;z-index:1}
.efma-pattern .hero .btn.light{background:#f5f8fc;color:#042a52;transition:background .2s,transform .2s,box-shadow .2s}
.efma-pattern .hero .btn.light:hover{background:#dceafb;transform:translateY(-2px);box-shadow:0 12px 28px #001a3666}
@keyframes efma-original-spin{to{transform:rotate(360deg)}}
@keyframes efma-original-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}

/* Respect the existing Appearance & Animation settings and reduced-motion preference. */
body:not(.efma-motion) .hero *,body:not(.efma-motion) .hero *::before,body:not(.efma-motion) .hero *::after,body:not(.efma-motion) .hero::before,body:not(.efma-motion) .hero::after{animation:none!important;transition:none!important}
@media(max-width:700px){
  .efma-pattern .hero .wrap{min-height:auto;gap:20px;padding-top:40px;padding-bottom:30px}
  .efma-pattern .hero .eyebrow{justify-content:center;margin-bottom:16px}
  .efma-pattern .hero .orbital{max-width:300px;width:86%}
}
@media(prefers-reduced-motion:reduce){.hero *,.hero *::before,.hero *::after,.hero::before,.hero::after{animation:none!important;transition:none!important}}
@media print{.hero::before,.hero .orbital::before,.hero .orbital::after{display:none!important}}
