/* ─── Extra depth & 3D polish ─── */

/* ─── Mission section background + decorative glows ─── */
.mission-section {
  position: relative;
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(232,168,56,0.10) 0%, transparent 60%),
    radial-gradient(80% 70% at 10% 100%, rgba(45,139,78,0.10) 0%, transparent 65%),
    #F0F5EC !important;
}
.mission-section::before,
.mission-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
}
.mission-section::before {
  top: -60px; left: -80px;
  background: radial-gradient(circle, rgba(45,139,78,0.18) 0%, transparent 60%);
}
.mission-section::after {
  bottom: -40px; right: -60px;
  background: radial-gradient(circle, rgba(232,168,56,0.18) 0%, transparent 60%);
}
.mission-section > * { position: relative; z-index: 1; }

/* Mission image — hovering plate with depth shadow + gentle drift */
.mission-section .mission-image {
  position: relative;
  perspective: 1600px;
  transform-style: preserve-3d;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 36px 70px -20px rgba(13,59,46,0.28),
    0 14px 30px -10px rgba(13,59,46,0.18),
    0 2px 6px rgba(13,59,46,0.10);
  transition:
    transform .9s cubic-bezier(.2,.7,.2,1),
    box-shadow .9s cubic-bezier(.2,.7,.2,1);
  animation: mission-float 12s ease-in-out 1.4s infinite;
}
.mission-section .mission-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,0.18) 0%, transparent 55%),
    linear-gradient(180deg, transparent 60%, rgba(13,59,46,0.18) 100%);
}
.mission-section .mission-image img {
  display: block;
  width: 100%;
  height: auto;
}
.mission-section .mission-image:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow:
    0 60px 110px -28px rgba(13,59,46,0.42),
    0 24px 44px -14px rgba(13,59,46,0.24),
    0 4px 10px rgba(13,59,46,0.12);
}

@keyframes mission-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(-0.25deg); }
}

/* ─── Card grid 3D depth ─── */
.card-grid-3d { perspective: 1400px; }

/* Cards — base elevation + JS-driven tilt via custom properties */
.card-3d {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-z: 0px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(var(--tilt-z));
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    0 1px 1px rgba(13,59,46,0.04),
    0 12px 28px -10px rgba(13,59,46,0.16),
    0 30px 50px -22px rgba(13,59,46,0.18);
}
.card-3d:hover {
  box-shadow:
    0 6px 14px rgba(13,59,46,0.06),
    0 30px 60px -18px rgba(13,59,46,0.30),
    0 60px 110px -32px rgba(13,59,46,0.32);
}

/* Specular shine swept across card on hover */
.card-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.30) 48%, transparent 60%);
  opacity: 0;
  transform: translateX(-20%);
  transition: opacity .6s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.card-3d:hover::after {
  opacity: 1;
  transform: translateX(20%);
}

/* ─── Featured articles section ─── */
.featured-articles-section {
  position: relative;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(27,107,147,0.06) 0%, transparent 60%),
    #FAFDF7 !important;
}
.featured-articles-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(13,59,46,0.10) 50%, transparent 100%);
}

/* ─── Primary CTA pulse-glow (Aloha hero + Stand With Us) ─── */
.hero-aloha__btn--primary .wp-block-button__link,
.stand-with-us__btn--primary .wp-block-button__link {
  position: relative;
}
.hero-aloha__btn--primary .wp-block-button__link::before,
.stand-with-us__btn--primary .wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(232,168,56,0.55), rgba(232,168,56,0));
  filter: blur(10px);
  opacity: 0.55;
  z-index: -1;
  animation: cta-pulse 3.6s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.05); }
}

/* ─── Stand-With-Us section: still image + gradient (no video) ─── */
.stand-with-us {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0D3B2E !important;
}
.stand-with-us__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.stand-with-us__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.55) contrast(1.05);
  transform: scale(1.04);
}
.stand-with-us__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,59,46,0.55) 0%, rgba(13,59,46,0.78) 100%),
    linear-gradient(135deg, rgba(45,139,78,0.30) 0%, rgba(13,59,46,0) 50%, rgba(232,168,56,0.18) 100%);
}
.stand-with-us__glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 50% at 18% 80%, rgba(45,139,78,0.40) 0%, transparent 70%),
    radial-gradient(35% 45% at 82% 20%, rgba(232,168,56,0.30) 0%, transparent 70%);
  filter: blur(40px);
  animation: swu-drift 18s ease-in-out infinite;
}
@keyframes swu-drift {
  0%, 100% { transform: translate3d(0,0,0); }
  50%      { transform: translate3d(20px,-12px,0) scale(1.05); }
}
.stand-with-us__inner { position: relative; z-index: 2; }
.stand-with-us__title {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F8E8 60%, #C8E0CD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
}

/* ─── Smooth scroll for anchor links ─── */
html { scroll-behavior: smooth; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .mission-section .mission-image,
  .stand-with-us__glow { animation: none !important; }
  .hero-aloha__btn--primary .wp-block-button__link::before,
  .stand-with-us__btn--primary .wp-block-button__link::before { animation: none !important; }
  .card-3d::after { display: none; }
}
