/* 
  Care Management by Natalie - Website Prototype Stylesheet
  Design System: Warm, Hopeful, Relationship-Focused, and Highly Accessible
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

/* --- Custom Variables (Design Tokens) --- */
:root {
  /* Colors */
  --primary-h: 303;
  --primary-s: 53%;
  --primary-l: 30%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  /* CMN Purple #742470 */
  --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 5%));
  --primary-light: hsl(var(--primary-h), var(--primary-s), 94%);
  --primary-pale: hsl(var(--primary-h), var(--primary-s), 97%);

  --accent-sage: hsl(153, 16%, 45%);
  /* Muted Sage Green */
  --accent-sage-light: hsl(153, 16%, 93%);
  --accent-gold: hsl(35, 75%, 48%);
  /* Warm honey gold */
  --accent-gold-light: hsl(35, 75%, 94%);

  /* Warmer Neutrals */
  --bg-primary: #FCFAF7;
  /* Rich warm alabaster cream */
  --bg-secondary: #F4EAE0;
  /* Warm clay sandstone */
  --bg-header: #EFE6DC;
  /* Rich off-white sandstone for navigation bar */
  --bg-white: #FFFFFF;
  --text-main: #2D1E2F;
  /* Warm dark purple-espresso */
  --text-muted: #615061;
  /* Soft espresso gray */

  /* Dimensional Borders & Shadows */
  --border-color: rgba(116, 36, 112, 0.09);
  --border-radius-sm: 8px;
  --border-radius-md: 18px;
  /* Slightly rounder for warmth */
  --border-radius-lg: 28px;

  /* Multi-layered shadows for depth/elevation */
  --shadow-sm: 0 2px 12px rgba(116, 36, 112, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 35px rgba(116, 36, 112, 0.06), 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 25px 55px rgba(116, 36, 112, 0.09), 0 5px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 35px 70px rgba(116, 36, 112, 0.13), 0 10px 30px rgba(0, 0, 0, 0.05);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Warmer, smoother curves */

  /* Layout Spacing */
  --container-width: 1240px;
  --header-height: 85px;

  /* Font Families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Reset & Global Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  /* Accessibility: Larger body text than usual */
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* 48px */
h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

/* 36px */
h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* 24px */
p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* --- Typography Helpers --- */
.lead-text {
  font-size: 1.375rem;
  /* 22px */
  line-height: 1.6;
  color: var(--text-muted);
}

.small-text {
  font-size: 0.9375rem;
  /* 15px */
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent-sage {
  color: var(--accent-sage);
}

.text-accent-gold {
  color: var(--accent-gold);
}

/* --- Layout Components --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-white {
  background-color: var(--bg-white);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

/* Grid & Flex Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(116, 36, 112, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-sage);
  color: var(--bg-white);
}

.btn-accent:hover {
  background-color: hsl(153, 16%, 42%);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(107, 144, 128, 0.3);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Card Component */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-sage));
  opacity: 0;
  transition: var(--transition-fast);
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(116, 36, 112, 0.15);
}

.card:hover::before {
  opacity: 1;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(239, 230, 220, 0.92);
  /* Rich warm sandstone with opacity */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(116, 36, 112, 0.08);
  z-index: 1000;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header.scrolled {
  background: #EFE6DC;
  /* Solid sandstone on scroll */
  box-shadow: var(--shadow-sm);
  height: 75px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: height var(--transition-normal);
}

.header.scrolled .logo img {
  height: 50px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 1rem;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.burger-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + 4.5rem);
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 80% 20%,
      rgba(116, 36, 112, 0.05) 0%,
      transparent 50%),
    radial-gradient(circle at 10% 80%,
      rgba(107, 144, 128, 0.05) 0%,
      transparent 50%),
    var(--bg-primary);
}

.hero-content {
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  padding: 0.1rem 0 0.1rem 0.75rem;
  border-left: 3px solid var(--accent-sage);
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  background: transparent;
}

.hero-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--border-radius-lg);
  box-shadow:
    0 30px 60px rgba(116, 36, 112, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.05);
  border: 10px solid var(--bg-white);
  outline: 1px solid rgba(116, 36, 112, 0.08);
  transform: rotate(2deg);
  transition: var(--transition-normal);
}

.hero-img:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    0 40px 80px rgba(116, 36, 112, 0.2),
    0 10px 25px rgba(0, 0, 0, 0.08);
}

.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -35px;
  background: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 310px;
  max-width: 390px;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-sage-light);
  color: var(--accent-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --- Guiding Philosophy Section --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-quote {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
  border-left: 4px solid var(--accent-sage);
  padding-left: 2rem;
  margin: 2rem 0;
}

/* --- Interactive Whole Aging Framework Wheel --- */
.framework-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.wheel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.wheel-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 8px 25px rgba(116, 36, 112, 0.08));
}

.wheel-sector {
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter var(--transition-fast);
  transform-origin: 250px 250px;
}

.wheel-sector:hover {
  filter: brightness(1.05);
  transform: scale(1.03);
}

.wheel-sector.active {
  filter:
    brightness(1.08) drop-shadow(0 0 8px rgba(116, 36, 112, 0.3));
  transform: scale(1.05);
}

.wheel-sector:hover path {
  fill: rgba(116, 36, 112, 0.08);
  stroke: var(--primary);
  stroke-width: 1.5px;
}

.wheel-sector.active path {
  fill: var(--primary) !important;
  stroke: var(--primary) !important;
}

.wheel-sector.active .wheel-label,
.wheel-sector.active .wheel-label tspan {
  fill: var(--bg-white) !important;
}

.wheel-center {
  pointer-events: none;
}

.wheel-label {
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--text-main);
  pointer-events: none;
  user-select: none;
  text-anchor: middle;
  transition: fill var(--transition-fast);
}

.wheel-label tspan {
  fill: var(--text-main);
  transition: fill var(--transition-fast);
}

.wheel-label-bg {
  fill: var(--bg-white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.framework-details {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
}

.framework-details.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.framework-details.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.area-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.framework-details ul {
  list-style: none;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.framework-details li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.framework-details li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.5rem;
  position: absolute;
  left: 0.5rem;
  top: -0.1rem;
}

/* Framework Colors for Areas */
.color-0 {
  fill: #f0e6f0;
  stroke: #d0b2d0;
  --area-bg: #f5ebf5;
  --area-text: #742470;
}

/* Health */
.color-1 {
  fill: #e6f0ec;
  stroke: #b2d0c2;
  --area-bg: #ebf5f1;
  --area-text: #6b9080;
}

/* Mobility */
.color-2 {
  fill: #fdf5e6;
  stroke: #f0dcb2;
  --area-bg: #fdf8eb;
  --area-text: #b8860b;
}

/* Home */
.color-3 {
  fill: #eef2ff;
  stroke: #c7d2fe;
  --area-bg: #f5f7ff;
  --area-text: #4f46e5;
}

/* Community */
.color-4 {
  fill: #fef2f2;
  stroke: #fecaca;
  --area-bg: #fff8f8;
  --area-text: #dc2626;
}

/* Future Planning */
.color-5 {
  fill: #fafaf9;
  stroke: #e7e5e4;
  --area-bg: #fbfbfb;
  --area-text: #44403c;
}

/* Financial */
.color-6 {
  fill: #f5f3ff;
  stroke: #ddd6fe;
  --area-bg: #faf8ff;
  --area-text: #7c3aed;
}

/* Family */
.color-7 {
  fill: #fffbeb;
  stroke: #fef3c7;
  --area-bg: #fffdf5;
  --area-text: #d97706;
}

/* Crisis Readiness */

/* --- Split Service Callout Section --- */
.split-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.split-card {
  border-radius: var(--border-radius-lg);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.split-card-planning {
  background-color: var(--accent-sage-light);
  border: 1px solid rgba(107, 144, 128, 0.15);
}

.split-card-crisis {
  background-color: var(--primary-light);
  border: 1px solid rgba(116, 36, 112, 0.15);
}

.split-list {
  list-style: none;
  margin: 2rem 0;
}

.split-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.split-list li::before {
  content: "✓";
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

.split-card-planning .split-list li::before {
  color: var(--accent-sage);
}

.split-card-crisis .split-list li::before {
  color: var(--primary);
}

/* --- Homepage Service Card Alignment --- */
.service-card-grid {
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-button {
  width: 100%;
  margin-top: auto;
}

/* --- Services Tab Component --- */
.tabs-container {
  max-width: 1050px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 4rem;
  gap: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  border-radius: 20px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

.pane-grid-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: flex-start;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane-content h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.checklist-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2rem;
}

.checklist-box h4 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pane-list {
  list-style: none;
}

.pane-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
}

.pane-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: bold;
  color: var(--accent-sage);
}

.tab-sticky-card {
  position: sticky;
  top: 110px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* --- FAQ Component --- */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(116, 36, 112, 0.25);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-main);
  gap: 1.5rem;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: transform 0.25s ease;
}

/* Horizontal bar */
.faq-toggle-icon::before {
  width: 16px;
  height: 2px;
  top: 11px;
  left: 4px;
}

/* Vertical bar */
.faq-toggle-icon::after {
  width: 2px;
  height: 16px;
  top: 4px;
  left: 11px;
}

.faq-item.active .faq-toggle-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item.active .faq-toggle-icon::before {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 2rem 1.75rem 2rem;
  color: var(--text-muted);
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer-inner {
  border-top-color: rgba(116, 36, 112, 0.06);
}

/* --- Team Component --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.team-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/* Initials Avatar for Missing Headshots */
.team-card-avatar {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.team-card-avatar.avatar-marybeth {
  background-color: hsl(303, 35%, 40%);
}

.team-card-avatar.avatar-cathy {
  background-color: var(--accent-sage);
}

.team-card-avatar.avatar-bryce {
  background-color: var(--accent-gold);
}

.team-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.team-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 1rem;
  color: var(--accent-sage);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Biography Modal Custom Styles */
.bio-modal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.bio-modal-img-container {
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-modal-img-container.initials-avatar {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 600;
  color: var(--bg-white);
}

.bio-modal-img-container.avatar-marybeth {
  background-color: hsl(303, 35%, 40%);
}

.bio-modal-img-container.avatar-cathy {
  background-color: var(--accent-sage);
}

.bio-modal-img-container.avatar-bryce {
  background-color: var(--accent-gold);
}

.bio-modal-body h3 {
  font-size: 1.85rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.bio-modal-body .bio-modal-role {
  font-size: 1.125rem;
  color: var(--accent-sage);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.bio-modal-body p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1.0625rem;
}

@media (max-width: 680px) {
  .bio-modal-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
  }
}

/* --- Form Fields & Interactive Forms --- */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(116, 36, 112, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-error-msg {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.success-alert {
  background-color: var(--accent-sage-light);
  border: 1px solid rgba(107, 144, 128, 0.3);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  text-align: center;
  color: var(--text-main);
  animation: fadeIn 0.4s ease forwards;
  display: none;
}

.success-alert-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-sage);
  color: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Referral Checklist --- */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.checklist-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checklist-card-icon {
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}

.checklist-card-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

/* --- Careers Listing Filter --- */
.careers-filter-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.job-card:hover {
  border-color: rgba(116, 36, 112, 0.25);
  box-shadow: var(--shadow-md);
}

.job-meta {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}

.job-badge {
  background: var(--bg-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Conversion CTA Banners --- */
.cta-banner {
  background: linear-gradient(135deg,
      var(--primary) 0%,
      hsl(var(--primary-h), var(--primary-s), 20%) 100%);
  color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 4.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--bg-white);
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 2rem auto;
  font-size: 1.25rem;
}

/* --- Modal Dialog --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 24, 43, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 680px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--bg-primary);
  color: var(--primary);
}

/* --- Footer --- */
.footer {
  background-color: #201120;
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: var(--bg-white);
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-icon {
  background-color: var(--bg-white);
  color: var(--primary);
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
}

.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.footer-contact-icon {
  color: var(--accent-sage);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--bg-white);
}

/* --- Updated Homepage Hero Image and Badge --- */
.hero-img {
  max-width: 520px;
}

.hero-badge {
  min-width: 310px;
  max-width: 390px;
}

/* --- Responsive Layouts (Media Queries) --- */
@media (max-width: 1080px) {

  /* Navigation Drawer Mobile */
  .burger-menu {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: right var(--transition-normal);
    z-index: 1099;
    gap: 1.75rem;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1.5rem;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  /* Burger Animation */
  .burger-menu.open .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-menu.open .burger-bar:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.open .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pane-grid-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tab-sticky-card {
    position: static;
    margin-top: 2rem;
  }

  .framework-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  body {
    font-size: 1.0625rem;
    /* 17px on tablet/mobile for spacing */
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 4rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-img-container {
    margin-top: 2rem;
  }

  .hero-img {
    max-width: 100%;
  }

  .hero-badge {
    left: 10px;
    bottom: -18px;
    min-width: 0;
    max-width: calc(100% - 20px);
  }

  .split-service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-card {
    padding: 2.5rem 2rem;
  }

  .tabs-nav {
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    margin-bottom: 3rem;
    padding-bottom: 0.25rem;
  }

  .tab-btn {
    flex: 0 0 auto;
    font-size: 1.0625rem;
    padding: 1rem;
  }

  .framework-details {
    min-height: 0;
    padding: 2.25rem 1.75rem;
  }

  .cta-banner {
    padding: 3rem 2rem;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-box {
    padding: 2.5rem 1.5rem;
    width: calc(100% - 2rem);
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .job-meta {
    flex-wrap: wrap;
  }

  .careers-filter-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.15rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .lead-text {
    font-size: 1.2rem;
  }

  .btn,
  .btn-group .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

  .hero-badge {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 1rem auto 0;
    width: 100%;
  }

  .hero-img {
    transform: none;
  }

  .hero-img:hover {
    transform: scale(1.01);
  }

  .philosophy-quote {
    font-size: 1.5rem;
    padding-left: 1.25rem;
  }

  .wheel-label {
    font-size: 9px;
  }

  .split-card {
    padding: 2rem 1.5rem;
  }

  .card {
    padding: 1.75rem;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
  }

  .faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .cta-banner p {
    font-size: 1.1rem;
  }

  .footer {
    padding-top: 4rem;
  }
}

/* How We Help */

.how-we-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.how-we-help-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 2.5rem;
  background: linear-gradient(180deg,
      #ffffff 0%,
      #fcf9fc 100%);
  border: 1px solid rgba(116, 36, 112, 0.1);
  border-top: 4px solid var(--primary);
  border-radius: 18px;
  box-shadow:
    0 10px 28px rgba(31, 18, 30, 0.06),
    0 2px 8px rgba(31, 18, 30, 0.03);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.how-we-help-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(116, 36, 112, 0.035);
  pointer-events: none;
}

.how-we-help-card:hover {
  transform: translateY(-5px);
  border-color: rgba(116, 36, 112, 0.18);
  box-shadow:
    0 18px 42px rgba(31, 18, 30, 0.1),
    0 4px 12px rgba(31, 18, 30, 0.04);
}

.how-we-help-word {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.how-we-help-card h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.how-we-help-card p {
  margin: 0;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .how-we-help-grid {
    grid-template-columns: 1fr;
  }

  .how-we-help-card {
    padding: 2rem;
  }
}

/* Mission, Vision, and Values */

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.purpose-card {
  padding: 2.75rem;
  background: #ffffff;
  border: 1px solid rgba(116, 36, 112, 0.1);
  border-radius: 18px;
  box-shadow:
    0 10px 28px rgba(31, 18, 30, 0.05),
    0 2px 8px rgba(31, 18, 30, 0.025);
}

.purpose-label {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.purpose-card h3 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  line-height: 1.35;
}

.purpose-card p {
  margin: 0;
  line-height: 1.75;
}

.values-section {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 3rem;
  padding: 3rem;
  background: #ffffff;
  border-left: 5px solid var(--primary);
  border-radius: 18px;
  box-shadow:
    0 10px 28px rgba(31, 18, 30, 0.05),
    0 2px 8px rgba(31, 18, 30, 0.025);
}

.values-intro h3 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}

.values-intro p {
  margin: 0;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.value-item {
  position: relative;
  padding-top: 1.25rem;
  border-top: 2px solid rgba(116, 36, 112, 0.18);
}

.value-item h4 {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.value-item p {
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .purpose-grid {
    grid-template-columns: 1fr;
  }

  .values-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Team Section Introduction */

.team-section-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(116, 36, 112, 0.14);
}

.team-intro-heading h2 {
  max-width: 420px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.team-intro-copy {
  max-width: 680px;
}

.team-intro-copy p {
  margin: 0 0 1rem;
  line-height: 1.75;
}

.team-intro-copy p:last-child {
  margin-bottom: 0;
}

.team-intro-lead {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .team-section-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
  }

  .team-intro-heading h2 {
    max-width: none;
  }

  .team-intro-copy {
    max-width: none;
  }
}

/* ==========================================
   ABOUT PAGE CTA
========================================== */

.about-cta-section {
  background: #ffffff;
}

.about-cta {

  max-width: 900px;
  margin: 0 auto;

  padding: 5rem;

  background: linear-gradient(135deg,
      var(--primary),
      #8d3b8c);

  border-radius: 24px;

  text-align: center;

  color: #ffffff;

  box-shadow:
    0 30px 60px rgba(60, 18, 58, .18);

}

.about-cta .hero-tag {

  display: inline-block;

  margin-bottom: 1.75rem;

  padding: 0;

  color: rgba(255, 255, 255, .78);

  border: none;

  background: none;

  font-size: .85rem;

  font-weight: 700;

  letter-spacing: .16em;

  text-transform: uppercase;

}

.about-cta .hero-tag::after {

  content: "";

  display: block;

  width: 70px;

  height: 2px;

  margin: 1rem auto 0;

  background: rgba(255, 255, 255, .30);

}

.about-cta h2 {

  color: #ffffff;

  margin: 0 auto 1.5rem;

  max-width: 700px;

  font-size: clamp(2.3rem, 4vw, 3.25rem);

  line-height: 1.15;

}

.about-cta p {

  max-width: 650px;

  margin: 0 auto 1.25rem;

  color: rgba(255, 255, 255, .92);

  line-height: 1.8;

  font-size: 1.08rem;

}

.about-cta .btn {

  display: inline-block;

  margin-top: 2.25rem;

  padding: 1rem 2.75rem;

  background: #ffffff;

  color: var(--primary);

  font-size: 1.05rem;

  font-weight: 600;

}

.about-cta .btn:hover {

  background: #f8f4f8;

}

.about-cta-note {

  margin-top: 1.25rem !important;

  margin-bottom: 0 !important;

  font-size: .95rem !important;

  color: rgba(255, 255, 255, .80) !important;

}

@media (max-width: 900px) {

  .about-cta {

    padding: 3rem 2rem;

  }

  .about-cta h2 {

    font-size: 2.2rem;

  }

}

/* --- Netlify Forms Styling --- */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status-info {
  color: var(--text-muted);
}

.form-status-success {
  color: #25613b;
  font-weight: 600;
}

.form-status-error {
  color: #a12626;
  font-weight: 600;
}

.form-privacy-notice {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.75;
}