/* ========================================================================
   MS5 Wellness — Navy + Silver (matches logo)
   ======================================================================== */

:root {
  --w-navy:    #0b1530;
  --w-deep:    #060c1f;
  --w-silver:  #c5cad5;
  --w-platinum:#e8eaf0;
}

body.ms5-wellness {
  --ms5-cut: var(--w-deep);     /* page bg used by the wordmark see-through cut */
  background: var(--w-deep);
  color: var(--w-platinum);
}

body.ms5-wellness h1,
body.ms5-wellness h2,
body.ms5-wellness h3 { color: white; }
body.ms5-wellness p { color: rgba(232, 234, 240, 0.78); }
body.ms5-wellness .eyebrow { color: var(--w-silver); }

/* ===== Hero ===== */
.w-hero {
  position: relative;
  padding: 10rem 0 6rem;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(124, 155, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(197, 202, 213, 0.08), transparent 60%),
    var(--w-deep);
  overflow: hidden;
}

.w-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(197, 202, 213, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.w-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .w-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.w-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 1.5rem;
}
.w-hero h1 .silver {
  background: linear-gradient(135deg, var(--w-silver), white 60%, var(--w-silver));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.w-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--w-silver);
}

.w-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: rgba(232, 234, 240, 0.85);
}

.w-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.w-hero .btn-primary {
  background: white;
  color: var(--w-navy);
}

/* Logo display */
.w-logo-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 155, 255, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.w-logo-stage::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent, rgba(124, 155, 255, 0.4), transparent 30%);
  animation: spin 14s linear infinite;
  z-index: 0;
}
.w-logo-stage::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-lg);
  background: var(--w-deep);
  z-index: 1;
}
.w-logo-stage img {
  position: relative;
  z-index: 2;
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(124, 155, 255, 0.3));
  animation: float 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}

/* ===== Services ===== */
.w-services {
  padding: 6rem 0;
  background: var(--w-navy);
  position: relative;
}
.w-services-header {
  max-width: 720px;
  margin-bottom: 4rem;
}

.w-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .w-svc-grid { grid-template-columns: 1fr; }
}

.w-svc {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.w-svc:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 155, 255, 0.3);
}
.w-svc-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(197, 202, 213, 0.15), rgba(124, 155, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}
.w-svc-icon svg { width: 28px; height: 28px; stroke: white; stroke-width: 1.6; fill: none; }
.w-svc h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.w-svc p { font-size: 0.96rem; color: rgba(232, 234, 240, 0.72); line-height: 1.65; }

/* ===== Approach ===== */
.w-approach {
  padding: 6rem 0;
  background: var(--w-deep);
}
.w-approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .w-approach-grid { grid-template-columns: 1fr; }
}

/* Approach symbol — abstract care illustration */
.w-approach-symbol {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(124, 155, 255, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.w-approach-symbol::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
}
.w-approach-symbol svg {
  width: 70%;
  height: 70%;
  color: var(--w-silver);
  position: relative;
  z-index: 1;
  animation: w-float 6s ease-in-out infinite;
}
@keyframes w-float {
  0%, 100% { transform: translateY(-4px); }
  50%      { transform: translateY(4px); }
}

/* Service-card symbol illustration (replaces photo) */
.w-svc-symbol {
  aspect-ratio: 16 / 10;
  margin: -2.5rem -2rem 1.5rem;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 30%, rgba(124, 155, 255, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.w-svc-symbol::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}
.w-svc-symbol svg {
  width: 60%;
  height: 75%;
  color: var(--w-silver);
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease-out);
}
.w-svc:hover .w-svc-symbol svg { transform: scale(1.04); color: white; }

/* ===== Contact ===== */
.w-contact {
  padding: 6rem 0;
  background: var(--w-navy);
}
.w-contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .w-contact-wrap { grid-template-columns: 1fr; }
}
.w-info-list { list-style: none; margin-top: 1.5rem; }
.w-info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 1rem;
}
.w-info-list svg { width: 20px; height: 20px; stroke: var(--w-silver); stroke-width: 1.8; fill: none; flex-shrink: 0; margin-top: 2px; }
.w-info-list strong { color: white; display: block; margin-bottom: 2px; }

.w-form {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.w-form h3 { margin-bottom: 0.4rem; }
.w-form .lead { font-size: 0.95rem; margin-bottom: 1.5rem; }

.w-form .form-field label { color: white; }
.w-form .form-field input,
.w-form .form-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}
.w-form .form-field input::placeholder,
.w-form .form-field textarea::placeholder {
  color: rgba(232, 234, 240, 0.4);
}
.w-form .form-field input:focus,
.w-form .form-field textarea:focus {
  border-color: var(--w-silver);
  box-shadow: 0 0 0 4px rgba(197, 202, 213, 0.15);
}
.w-form .btn-primary {
  background: white;
  color: var(--w-navy);
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-top: 0.5rem;
}
