/* ============================================================
   MYOKIC3 — Sciency + Senior-Friendly Design System
   Clean, trustworthy, high-contrast, WCAG AA compliant
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors — Primary palette (Logo: Maroon, Charcoal & White) */
  --color-primary: #8C2332;
  --color-primary-dark: #6B1A27;
  --color-primary-light: #F7F7F7;
  --color-heading: #2D2D2D;
  --color-text: #3A3A3A;
  --color-text-muted: #58595B;
  --color-bg-white: #ffffff;
  --color-bg-alt: #F7F7F7;
  --color-bg-mint: #F7F7F7;
  --color-bg-dark: #2D2D2D;
  --color-border: #E0E0E0;
  --color-white: #ffffff;

  /* Legacy mappings for dark sections */
  --color-bg-light: #ffffff;
  --color-bg-dark-card: #383838;
  --color-text-on-dark: #F5F5F5;
  --color-text-muted-dark: #AAAAAA;
  --color-border-light: #E0E0E0;
  --color-border-dark: rgba(255, 255, 255, 0.15);

  /* Accent */
  --color-accent: #8C2332;
  --color-accent-end: #6B1A27;
  --color-accent-secondary: #58595B;

  /* Typography */
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 18px;
  --line-height-base: 1.8;

  /* Radii — clean, scientific, not too round */
  --radius-card: 8px;
  --radius-button: 8px;
  --radius-input: 8px;
  --radius-dropdown: 8px;

  /* Shadows — subtle, clean */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-header: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 2px 8px rgba(140, 35, 50, 0.25);
  --shadow-button-hover: 0 4px 16px rgba(140, 35, 50, 0.35);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1240px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index scale */
  --z-topbar: 910;
  --z-header: 900;
  --z-dropdown: 920;
  --z-mobile-nav: 950;
  --z-mobile-cta: 960;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ============================================================
   4. TOP BAR
   ============================================================ */
.top-bar {
  background-color: var(--color-bg-dark);
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-muted-dark);
  position: relative;
  z-index: var(--z-topbar);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-left a {
  color: var(--color-text-muted-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left a:hover {
  color: var(--color-primary);
}

.top-bar-badge {
  color: #8C2332;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-color: rgba(140, 35, 50, 0.15);
  padding: 2px 10px;
  border-radius: 4px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-right a {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted-dark);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.top-bar-right a:hover {
  color: #8C2332;
  background-color: rgba(255, 255, 255, 0.08);
}

.top-bar-right a svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   5. SITE HEADER
   ============================================================ */
.site-header {
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding: 18px 0;
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
}

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

.site-logo img {
  max-height: 52px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.header-phone svg {
  color: var(--color-primary);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.header-phone:hover {
  color: var(--color-primary);
}

/* ============================================================
   6. MAIN NAV
   ============================================================ */
.main-nav {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  position: relative;
  z-index: var(--z-header);
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  width: 100%;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  min-height: 56px;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-heading);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-list > li > a svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-list > li:hover > a svg {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--color-white);
  border-radius: 0 0 var(--radius-dropdown) var(--radius-dropdown);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: var(--z-dropdown);
  padding: 8px 0;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
}

.nav-list > li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 24px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.dropdown-menu li a:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-mint);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-heading);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   7. HERO (Homepage)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #8C2332 0%, #6B1A27 45%, #2D2D2D 100%);
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  color: var(--color-white);
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-button);
  margin-bottom: 24px;
  border: 1px solid #ffffff;
  font-family: var(--font-body);
}

.hero-content h1 {
  font-size: 2.8rem;
  color: var(--color-white);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.hero-buttons .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  object-fit: cover;
}

/* ============================================================
   8. PAGE HERO (Inner Pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #8C2332 0%, #6B1A27 45%, #2D2D2D 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 16px;
  font-weight: 900;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.accent-line {
  width: 60px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  margin: 0 auto;
}

/* ============================================================
   9. SECTION HEADER (Shared)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-button);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.section-header h2 {
  margin-bottom: 14px;
  color: var(--color-heading);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Dark section header variants */
.dark-section .section-header h2,
.dark-section .section-header h3 {
  color: var(--color-white);
}

.dark-section .section-header p {
  color: var(--color-text-muted-dark);
}

/* ============================================================
   10. SERVICES
   ============================================================ */
.services {
  background-color: var(--color-bg-mint);
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-card);
  background-color: var(--color-bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.service-icon svg,
.service-icon img {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-heading);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 18px;
}

.service-link,
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-link:hover,
.learn-more:hover {
  gap: 10px;
  color: var(--color-primary-dark);
}

.service-link svg,
.learn-more svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   11. WHY CHOOSE
   ============================================================ */
.why-choose {
  background-color: var(--color-bg-dark);
  padding: var(--section-padding);
}

.why-choose .section-header h2 {
  color: var(--color-white);
}

.why-choose .section-header p {
  color: var(--color-text-muted-dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 36px 24px;
  text-align: center;
  color: var(--color-text);
  transition: box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.why-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.why-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-card);
  background-color: var(--color-bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary);
}

.why-icon svg,
.why-icon img {
  width: 32px;
  height: 32px;
}

.why-card h3 {
  font-size: 1.2rem;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.why-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   12. PROCESS
   ============================================================ */
.process {
  background-color: var(--color-bg-white);
  padding: var(--section-padding);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

/* Connector line */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 2px;
  background-color: var(--color-primary);
  opacity: 0.2;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.process-step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   13. FEATURED SECTIONS
   ============================================================ */
.featured-section {
  padding: var(--section-padding);
}

.featured-section:nth-child(odd) {
  background-color: var(--color-bg-white);
}

.featured-section:nth-child(even) {
  background-color: var(--color-bg-mint);
}

.featured-section:nth-child(even) h2,
.featured-section:nth-child(even) h3 {
  color: var(--color-heading);
}

.featured-section:nth-child(even) p {
  color: var(--color-text-muted);
}

.featured-row {
  display: flex;
  gap: 60px;
  align-items: center;
}

.featured-row.reverse {
  flex-direction: row-reverse;
}

.featured-img {
  flex: 1;
  min-width: 0;
}

.featured-img img {
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  object-fit: cover;
}

.featured-content {
  flex: 1;
  min-width: 0;
}

.featured-content .tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-bg-mint);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-button);
  margin-bottom: 16px;
  border: 1px solid var(--color-primary);
  font-family: var(--font-body);
}

.featured-content h2 {
  margin-bottom: 16px;
  color: var(--color-heading);
}

.featured-content p {
  margin-bottom: 20px;
}

.featured-content ul {
  margin-bottom: 24px;
}

.featured-content ul li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-text);
  font-size: 1rem;
}

.featured-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.2;
}

/* ============================================================
   14. TEAM
   ============================================================ */
.team {
  background-color: var(--color-bg-alt);
  padding: var(--section-padding);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.team-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.team-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.team-card .team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-card h3 {
  font-size: 1.15rem;
  padding: 20px 16px 0;
  color: var(--color-heading);
}

.team-card .team-role {
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px 20px;
}

/* ============================================================
   14b. TEAM DETAIL (About page)
   ============================================================ */
.team-section {
  background-color: var(--color-bg-white);
  padding: var(--section-padding);
}

.team-detail {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.team-detail:last-of-type {
  border-bottom: none;
}

.team-detail .team-photo {
  flex-shrink: 0;
  width: 220px;
}

.team-detail .team-photo img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 3px solid var(--color-border);
}

.team-detail .team-info {
  flex: 1;
  min-width: 0;
}

.team-detail .team-info h3 {
  font-size: 1.6rem;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.team-detail .team-info .role {
  display: inline-block;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 4px 14px;
  background-color: var(--color-bg-mint);
  border-radius: var(--radius-button);
  border: 1px solid rgba(140, 35, 50, 0.2);
}

.team-detail .team-info p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.specialty-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-bg-alt);
  color: var(--color-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
}

/* ============================================================
   15. TESTIMONIALS
   ============================================================ */
.testimonials {
  background-color: var(--color-bg-alt);
  padding: var(--section-padding);
}

.testimonials .section-header h2 {
  color: var(--color-heading);
}

.testimonials .section-header p {
  color: var(--color-text-muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 36px;
  color: var(--color-text);
  position: relative;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #D97706;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.testimonial-card blockquote {
  position: relative;
  padding-left: 24px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  border-left: 3px solid var(--color-primary);
}

.testimonial-card blockquote::before {
  content: '\201C';
  position: absolute;
  left: 6px;
  top: -10px;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.3;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.testimonial-card .author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading);
}

.testimonial-card .author-title {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ============================================================
   16. INSIGHTS / BLOG
   ============================================================ */
.insights {
  background-color: var(--color-bg-white);
  padding: var(--section-padding);
}

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

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.insight-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.insight-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.insight-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.insight-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.insight-card:hover .insight-card-img img {
  transform: scale(1.04);
}

.insight-card-body {
  padding: 28px;
}

.category {
  display: inline-block;
  padding: 4px 14px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-button);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.insight-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-heading);
}

.insight-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 18px;
}

.excerpt-more {
  display: none;
}

.insight-card.expanded span.excerpt-more {
  display: inline;
}

.insight-card.expanded a.excerpt-more {
  display: inline-flex;
  margin-top: 8px;
}

.read-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: gap var(--transition-fast), color var(--transition-fast);
  margin-bottom: 8px;
}

.read-more-toggle:hover {
  gap: 10px;
  color: var(--color-primary-dark);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.read-more:hover {
  gap: 10px;
  color: var(--color-primary-dark);
}

.read-more svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   17. INSURANCE DETAIL
   ============================================================ */
.insurance-detail {
  padding: var(--section-padding);
  border-bottom: 1px solid var(--color-border);
}

.insurance-detail:nth-child(even) {
  background-color: var(--color-bg-mint);
  border-bottom-color: rgba(140, 35, 50, 0.1);
}

.insurance-detail:nth-child(even) h2,
.insurance-detail:nth-child(even) h3 {
  color: var(--color-heading);
}

.insurance-detail:nth-child(even) p,
.insurance-detail:nth-child(even) li {
  color: var(--color-text);
}

.insurance-detail-grid {
  display: flex;
  gap: 60px;
  align-items: center;
}

.insurance-detail-grid.reverse {
  flex-direction: row-reverse;
}

.insurance-detail-img {
  flex: 1;
  min-width: 0;
}

.insurance-detail-img img {
  border-radius: var(--radius-card);
  width: 100%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.insurance-detail-content {
  flex: 1;
  min-width: 0;
}

.insurance-detail-content h2 {
  margin-bottom: 16px;
  color: var(--color-heading);
}

.insurance-detail-content h3 {
  margin-bottom: 12px;
  color: var(--color-heading);
}

.insurance-detail-content p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.insurance-detail-content ul {
  margin-bottom: 24px;
}

.insurance-detail-content ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--color-text);
  font-size: 1rem;
}

.insurance-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.2;
}

/* ============================================================
   18. FAQ
   ============================================================ */
.faq-section {
  background-color: var(--color-bg-alt);
  padding: var(--section-padding);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
  border-left: 4px solid transparent;
}

.faq-item.active {
  border-left-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}

.faq-item h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  gap: 16px;
  transition: color var(--transition-fast);
  color: var(--color-heading);
}

.faq-item h4:hover {
  color: var(--color-primary);
}

.faq-item h4 .faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.faq-item.active h4 .faq-toggle {
  transform: rotate(45deg);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.faq-item p,
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  color: var(--color-text);
  font-size: 1rem;
  transition: max-height var(--transition-base), padding var(--transition-base);
  line-height: 1.8;
}

.faq-item.active p,
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 28px 28px;
}

/* ============================================================
   19. CONTACT
   ============================================================ */
.contact-section {
  background-color: var(--color-bg-white);
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-card);
  background-color: var(--color-bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--color-heading);
}

.contact-info-item p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.contact-form-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.contact-form-wrapper h3 {
  margin-bottom: 24px;
  color: var(--color-heading);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-input);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group textarea {
  height: 140px;
  padding: 16px 20px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(140, 35, 50, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================================
   20. CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #8C2332 0%, #6B1A27 45%, #2D2D2D 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.7;
}

.cta-section .btn {
  position: relative;
}

/* ============================================================
   21. FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-bg-dark);
  padding-top: 80px;
  color: var(--color-text-muted-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-about .site-logo {
  margin-bottom: 20px;
}

.footer-about .site-logo img {
  max-height: 44px;
}

.footer-about p {
  font-size: 0.94rem;
  color: var(--color-text-muted-dark);
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted-dark);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4,
.footer-column h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul li,
.footer-column ul li {
  margin-bottom: 10px;
}

.footer-col ul li a,
.footer-column ul li a {
  color: var(--color-text-muted-dark);
  font-size: 0.94rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col ul li a:hover,
.footer-column ul li a:hover {
  color: #8C2332;
  padding-left: 4px;
}

/* Footer contact list with SVG icons */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text-muted-dark);
  font-size: 0.94rem;
  line-height: 1.6;
}

.footer-contact li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-primary);
  opacity: 0.8;
}

.footer-contact li a {
  color: var(--color-text-muted-dark);
  transition: color var(--transition-fast);
}

.footer-contact li a:hover {
  color: #8C2332;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.footer-bottom p {
  color: var(--color-text-muted-dark);
}

.footer-bottom a {
  color: var(--color-text-muted-dark);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: #8C2332;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* ============================================================
   22. MOBILE CTA BAR
   ============================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary);
  padding: 14px 16px;
  z-index: var(--z-mobile-cta);
  box-shadow: 0 -4px 20px rgba(140, 35, 50, 0.3);
}

.mobile-cta-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.mobile-cta-bar a {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

/* ============================================================
   23. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-button);
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Primary */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-button-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Secondary / Outline */
.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-button);
}

/* White */
.btn-white {
  background-color: var(--color-white);
  color: var(--color-heading);
  border-color: transparent;
}

.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background-color: #f9f9f9;
}

/* Outline on dark */
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-heading);
  border-color: var(--color-white);
}

/* Sizes */
.btn-lg {
  padding: 20px 48px;
  font-size: 1.1rem;
  min-height: 56px;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.94rem;
  min-height: 44px;
}

/* ============================================================
   24. SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children if needed */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   25. UTILITY CLASSES
   ============================================================ */
.text-accent {
  color: var(--color-primary);
}

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

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

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   26. DARK SECTION HELPERS
   ============================================================ */
.dark-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--color-white);
}

.dark-section p {
  color: var(--color-text-muted-dark);
}

/* ============================================================
   27. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

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

  .team-detail {
    gap: 32px;
  }

  .team-detail .team-photo {
    width: 180px;
  }
}

/* Hide nav-close on desktop — only visible inside 768px media query */
.nav-close { display: none; }

/* ============================================================
   28. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  /* Top bar: hidden */
  .top-bar {
    display: none;
  }

  /* Header */
  .site-header {
    padding: 10px 0;
  }

  .header-phone {
    display: none;
  }

  .site-logo img {
    max-height: 40px;
  }

  /* Nav: mobile overlay */
  .mobile-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 80px 24px 24px;
    z-index: var(--z-mobile-nav);
    overflow-y: auto;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list > li > a {
    padding: 16px 0;
    min-height: 48px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    display: none;
    padding: 0 0 0 16px;
    background-color: transparent;
    border: none;
  }

  .dropdown-menu.open {
    display: block;
  }

  .dropdown-menu li a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: 48px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Page hero */
  .page-hero {
    padding: 48px 0;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Why grid */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process grid */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  /* Featured */
  .featured-row,
  .featured-row.reverse {
    flex-direction: column;
  }

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

  /* Team detail */
  .team-detail {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .team-detail .team-photo {
    width: 180px;
    margin: 0 auto;
  }

  .team-detail .team-info {
    text-align: left;
  }

  .specialty-tags {
    justify-content: flex-start;
  }

  /* Testimonials grid */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Insights grid */
  .insights-grid {
    grid-template-columns: 1fr;
  }

  /* Insurance detail */
  .insurance-detail-grid,
  .insurance-detail-grid.reverse {
    flex-direction: column;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  /* CTA */
  .cta-section {
    padding: 56px 0;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-section .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  /* Mobile CTA bar: visible */
  .mobile-cta-bar {
    display: block;
  }

  .site-footer {
    padding-bottom: 72px;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 1.8rem;
  }

  /* Buttons — full width on mobile */
  .btn {
    padding: 14px 28px;
    font-size: 1rem;
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }

  .btn-lg {
    padding: 16px 36px;
  }

  .btn-sm {
    padding: 10px 24px;
    min-height: 48px;
  }

  /* Form inputs — 18px prevents iOS zoom */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 18px;
  }
}

/* Second 768px block — additional mobile overrides */
@media (max-width: 768px) {
  .site-logo img {
    max-width: min(66vw, 220px);
    height: auto;
  }

  .header-right .btn {
    display: none;
  }

  .nav-close {
    position: absolute;
    top: 14px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-white);
    color: var(--color-heading);
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    min-height: 48px;
    min-width: 48px;
  }

  .mobile-cta-bar {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-footer {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .btn,
  .hero-buttons .btn,
  .cta-section .btn,
  #contactForm .btn {
    max-width: 100%;
    white-space: normal;
  }

  .service-card,
  .why-card,
  .team-card,
  .testimonial-card,
  .insight-card,
  .faq-item,
  .insurance-detail-content {
    overflow-wrap: anywhere;
  }
}

/* ============================================================
   29. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px 0;
  }

  /* Keep 18px base — never go smaller for seniors */
  html {
    font-size: 18px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.55rem;
  }

  .cta-section h2 {
    font-size: 1.55rem;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .service-card {
    padding: 28px;
  }

  .testimonial-card {
    padding: 28px;
  }

  .faq-item h4 {
    padding: 20px;
    font-size: 1rem;
  }

  .faq-item.active p,
  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
  }

  .team-detail .team-photo {
    width: 160px;
  }

  .team-detail .team-info h3 {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    gap: 10px;
  }

  .site-logo img {
    max-width: min(72vw, 188px);
  }
}

/* ============================================================
   30. PRINT STYLES
   ============================================================ */
@media print {
  .top-bar,
  .main-nav,
  .mobile-toggle,
  .mobile-cta-bar,
  .cta-section,
  .site-footer,
  .hero-buttons,
  .btn {
    display: none !important;
  }

  .site-header {
    position: static;
    box-shadow: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  h1, h2, h3, h4 {
    color: #000;
  }

  .hero,
  .page-hero,
  .why-choose,
  .testimonials,
  .dark-section {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .page-hero h1,
  .why-choose h2,
  .why-choose h3,
  .testimonials h2,
  .dark-section h1,
  .dark-section h2,
  .dark-section h3,
  .dark-section h4 {
    color: #000 !important;
  }

  .why-card,
  .testimonial-card {
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  .service-card,
  .insight-card,
  .team-card,
  .faq-item,
  .contact-form-wrapper {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  a {
    color: #000;
  }

  img {
    max-width: 100% !important;
  }

  .container {
    max-width: 100%;
  }
}


/* Sciency layout - reversed hero */
.hero-grid-reversed {
    direction: rtl;
}
.hero-grid-reversed > * {
    direction: ltr;
}

/* 2x2 process grid for senior readability */
.process-grid-2x2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
}
@media (max-width: 768px) {
    .process-grid-2x2 {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   31. FOOTER-LEGAL (standardized footer class)
   ============================================================ */
.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--color-text-muted-dark);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: #8C2332;
}

/* ============================================================
   32. FOOTER-COL.FOOTER-ABOUT (combined class specificity)
   ============================================================ */
.footer-col.footer-about {
  grid-column: 1;
}

/* ============================================================
   33. TOUCH-ACTION — prevent 300ms tap delay on mobile
   ============================================================ */
a,
button,
input,
select,
textarea,
.btn,
.faq-item h4,
.mobile-toggle,
.nav-close {
  touch-action: manipulation;
}

/* ============================================================
   34. MOBILE RESPONSIVENESS FIXES (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Footer-legal: center on mobile */
  .footer-legal {
    justify-content: center;
  }

  /* Hero-grid-reversed: reset direction for single-column */
  .hero-grid-reversed {
    direction: ltr;
  }

  /* Nav-list: safe-area bottom padding when open */
  .nav-list {
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Footer-about: span full width on mobile */
  .footer-col.footer-about {
    grid-column: 1 / -1;
  }

  /* CTA section button layout */
  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 400px;
  }
}

/* ============================================================
   35. ANIMATIONS & MOTION
   Subtle motion enhancements — no layout or design changes.
   ============================================================ */

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(15px, -20px) scale(1.05); }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(140, 35, 50, 0.35); }
  70%  { box-shadow: 0 0 0 12px rgba(140, 35, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 35, 50, 0); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes subtleBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* --- Hero entrance animations --- */
.hero-content {
  animation: fadeInLeft 0.8s ease-out both;
}

.hero-image {
  animation: fadeInRight 0.8s 0.2s ease-out both;
}

/* Floating decorative glow in hero */
.hero::before {
  animation: heroFloat 8s ease-in-out infinite;
}

/* --- Service icon hover lift --- */
.service-icon {
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.service-card:hover .service-icon {
  transform: translateY(-4px);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.service-card:hover .service-icon svg {
  stroke: var(--color-white);
}

/* --- Why-choose icon hover --- */
.why-icon {
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.why-card:hover .why-icon {
  transform: translateY(-4px) scale(1.05);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.why-card:hover .why-icon svg {
  stroke: var(--color-white);
}

/* --- Step number pulse --- */
.step-number {
  animation: pulseRing 2.5s ease-out infinite;
}

/* Stagger the pulse per step */
.process-step:nth-child(2) .step-number { animation-delay: 0.4s; }
.process-step:nth-child(3) .step-number { animation-delay: 0.8s; }
.process-step:nth-child(4) .step-number { animation-delay: 1.2s; }

/* --- CTA animated gradient background --- */
.cta-section {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* --- Team card hover lift --- */
.team-card {
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
}

/* --- Testimonial card hover lift --- */
.testimonial-card {
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* --- Testimonial stars shimmer on hover --- */
.testimonial-stars svg {
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(1) { transform: scale(1.15); transition-delay: 0s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(2) { transform: scale(1.15); transition-delay: 0.05s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(3) { transform: scale(1.15); transition-delay: 0.1s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(4) { transform: scale(1.15); transition-delay: 0.15s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(5) { transform: scale(1.15); transition-delay: 0.2s; }

/* --- Featured section image hover --- */
.featured-image img,
.featured-img img {
  transition: transform var(--transition-slow);
}

.featured-image:hover img,
.featured-img:hover img {
  transform: scale(1.03);
}

/* --- Button subtle bounce on hover --- */
.btn-primary,
.btn-white {
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover,
.btn-white:hover {
  transform: translateY(-2px);
}

/* --- Section tag subtle entrance --- */
.section-tag {
  transition: background-color var(--transition-base);
}

/* --- Staggered reveal support (set by JS) --- */
.reveal-stagger {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-stagger.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --- Featured list bullet animation --- */
.featured-content ul li::before {
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.featured-content ul li:hover::before {
  transform: scale(1.4);
  opacity: 0.4;
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-stagger {
    opacity: 1;
    transform: none;
  }
}
