/* Base */
html,
body {
  height: 100%;
  box-sizing: border-box;
}

/* Global surface reset: use white instead of sand backgrounds */
.bg-base,
.bg-base-alt {
  background-color: #ffffff !important;
}

/* Smooth Scroll */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}
.animate-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}
.animate-delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}
.animate-delay-4 {
  animation-delay: 0.4s;
  opacity: 0;
}
.animate-delay-5 {
  animation-delay: 0.5s;
  opacity: 0;
}
.animate-delay-6 {
  animation-delay: 0.6s;
  opacity: 0;
}

/* Hover Effects */
.journey-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(26, 58, 58, 0.15);
}

.journey-card:hover .card-icon {
  transform: scale(1.1);
}

.journey-card:hover .card-arrow {
  transform: translateX(4px);
}

/* Header “See More” dropdown */
.nav-more-wrap.nav-more-open .nav-more-chevron {
  transform: rotate(180deg);
}

.nav-more-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Primary navbar (classic sticky pattern, Dr. Youssef theme)
   -------------------------------------------------------------------------- */
.navbar {
  --navbar-height: 5.5rem;
  --navbar-bg: rgba(31, 62, 90, 0.95);
  --navbar-text: rgba(255, 255, 255, 0.88);
  --navbar-teal: #1f3e5a;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--navbar-height);
  display: flex;
  align-items: center;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-block: 0;
  padding-inline-start: clamp(0.75rem, 2vw, 1.25rem);
  padding-inline-end: env(safe-area-inset-right, 0px);
  min-height: var(--navbar-height);
  position: relative;
  gap: 0.75rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
  z-index: 2;
}

.navbar__brand:hover {
  color: #fff;
}

.navbar__logo-wrap {
  width: 3.75rem;
  height: 3.75rem;
  overflow: hidden;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.navbar__brand:hover .navbar__logo-wrap {
  transform: scale(1.05);
}

.navbar__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.navbar__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  display: none;
}

@media (min-width: 640px) {
  .navbar__title {
    display: block;
  }
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.25rem;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.navbar__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar__toggle.is-active .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-active .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-active .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.navbar__menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navbar-teal);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  max-height: min(70vh, calc(100dvh - var(--navbar-height)));
  overflow-y: auto;
}

.navbar__menu.navbar__menu--open {
  display: flex;
}

.navbar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.navbar__item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar__item--dropdown {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar__link {
  display: block;
  padding: 1rem 1.25rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navbar-text);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: #fff;
}

.navbar__link--multiline {
  line-height: 1;
}

/* Two tight rows: no extra gap from <br /> (use stacked blocks only) */
.navbar__link--multiline .navbar__line {
  display: block;
  white-space: nowrap;
  line-height: 1.1;
  margin: 0;
}

.navbar__link--active,
.navbar__link[aria-current="page"] {
  color: #fff;
}

.navbar__link--dropdown {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.nav-more-panel.navbar__dropdown-panel {
  position: static;
  transform: none;
  left: auto;
  margin: 0 0.75rem 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 1024px) {
  .navbar__toggle {
    display: none;
  }

  .navbar__menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    position: static;
    width: auto;
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  /* Spacer keeps the cluster on the right; equal gaps only between real nav items */
  .navbar__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    flex: 1;
    min-width: 0;
  }

  .navbar__list::before {
    content: "";
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
  }

  .navbar__list > li:not(:first-of-type) {
    margin-inline-start: clamp(0.75rem, 1.5vw, 1.25rem);
  }

  .navbar__item,
  .navbar__item--dropdown {
    border: none;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .navbar__link {
    padding: 0.5rem 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .navbar__link--dropdown {
    display: flex;
    width: 100%;
  }

  .navbar__link--multiline {
    max-width: none;
    padding-inline: 0.5rem;
  }

  a.navbar__link--active,
  a.navbar__link[aria-current="page"] {
    border-bottom: 2px solid #fff;
    padding-bottom: 0.15rem;
  }

  .nav-more-panel.navbar__dropdown-panel {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin: 0;
    margin-top: 0.35rem;
    top: 100%;
  }

  .nav-more-wrap {
    position: relative;
  }
}

/* “Begin Today!” journey finder buttons (homepage) — make selected state fully filled */
.sf-role-btn[data-active="true"] {
  background: rgba(31, 62, 90, 0.98) !important; /* deep-teal */
  border-color: rgba(31, 62, 90, 1) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px -16px rgba(31, 62, 90, 0.55);
}

.sf-role-btn[data-active="true"] span {
  background: rgba(10, 35, 55, 0.95) !important;
}

/* Ensure the little role-dot renders (width/height apply) */
.sf-role-btn > span {
  display: inline-block;
  flex: none;
  background: rgba(10, 35, 55, 0.95) !important;
}

/* “Narrow your focus...” buttons — make selected state fully filled */
.sf-goal-btn[data-picked="true"],
.spf-goal-btn[data-picked="true"],
.spf-narrow-panel a[data-picked="true"] {
  background: rgba(31, 62, 90, 0.98) !important; /* deep-teal */
  border-color: rgba(31, 62, 90, 1) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px -16px rgba(31, 62, 90, 0.55);
}

.sf-goal-btn[data-picked="true"]:hover,
.spf-goal-btn[data-picked="true"]:hover,
.spf-narrow-panel a[data-picked="true"]:hover {
  background: rgba(22, 49, 73, 0.98) !important; /* teal-hover */
}

.video-play-btn {
  transition: all 0.3s ease;
}

.video-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 12px rgba(26, 58, 58, 0.1);
}

.ace-pillar {
  transition: all 0.3s ease;
}

.ace-pillar:hover {
  transform: translateY(-4px);
}

/* Header Scroll */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: rgba(31, 62, 90, 0.98);
  backdrop-filter: blur(10px);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #0f3d3e 0%, #7e9c8c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pattern Overlay */
.pattern-overlay {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(26, 58, 58, 0.03) 1px,
    transparent 0
  );
  background-size: 40px 40px;
}

/* ACE diagram */
.ace-segment {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  outline: none;
}

.ace-segment:hover {
  opacity: 0.9;
}

.ace-segment:focus,
.ace-segment:focus-visible {
  outline: none;
}

.ace-segment-active {
  opacity: 1;
  transform: scale(1.02);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

/* ACE diagram wedges: hue + luminance differ from deep-teal “A” for color-vision accessibility */
.ace-wedge-compassion {
  fill: #5b21b6; /* violet — distinct from blue-teal and orange “E” */
}

.ace-wedge-education {
  fill: #c2410c; /* orange — strong contrast in grayscale vs A and C */
}

.ace-wedge-label {
  fill: #ffffff;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.22);
  stroke-width: 2px;
}

/* Graphic placeholders – replace inner content with <img src="..." alt="..." class="w-full h-full object-cover rounded-inherit"> when adding assets */
.graphic-placeholder {
  background: #f2f0eb;
  border: 2px dashed #c9c4bb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  position: relative;
}

.graphic-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  color: #7a7a7a;
  font-size: 0.875rem;
}

.graphic-placeholder-inner svg {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.graphic-placeholder-id {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

/* Legal / professional-services notices */
.legal-notice {
  border-radius: 0.75rem;
  border: 1px solid rgba(31, 62, 90, 0.15);
  background-color: rgba(31, 62, 90, 0.05);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #515151;
}

.legal-notice__title {
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.legal-notice--prominent {
  border-width: 1px;
  border-color: rgba(31, 62, 90, 0.25);
  background-color: rgba(31, 62, 90, 0.08);
}

.legal-notice a {
  color: #1f3e5a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-notice a:hover {
  color: #163149;
}

.legal-notice--compact {
  padding: 1rem 1.125rem;
  margin-top: 1rem;
}

.legal-notice-subtle {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #7a7a7a;
}

.legal-notice-subtle a {
  color: #1f3e5a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-notice-subtle a:hover {
  color: #163149;
}

/* Homepage / sitewide professional-services popup (bottom-left) */
.disclaimer-popup {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 45;
  width: min(100vw - 2.5rem, 22rem);
  padding: 1rem 2.25rem 1rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(31, 62, 90, 0.12);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(31, 62, 90, 0.12);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #515151;
  backdrop-filter: blur(8px);
  animation: disclaimer-popup-in 0.4s ease-out;
}

.disclaimer-popup.is-dismissed {
  display: none;
}

.disclaimer-popup__title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #2a2a2a;
  margin: 0 0 0.35rem;
}

.disclaimer-popup__body {
  margin: 0;
}

.disclaimer-popup__body a {
  color: #1f3e5a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer-popup__body a:hover {
  color: #163149;
}

.disclaimer-popup__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #7a7a7a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.disclaimer-popup__close:hover {
  color: #2a2a2a;
  background: rgba(31, 62, 90, 0.06);
}

@keyframes disclaimer-popup-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .disclaimer-popup {
    bottom: 1rem;
    left: 1rem;
    width: min(100vw - 2rem, 20rem);
    font-size: 0.75rem;
  }
}

