/* ==========================================================================
   Kairos Insights - Refined Harmony Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary: #57676B;
  --color-primary-dark: #455458;
  --color-primary-light: #6a7d82;
  --color-secondary: #8A7475;
  --color-secondary-dark: #6e5c5d;
  --color-secondary-light: #a08e8f;
  --color-tertiary: #9DABA8;
  --color-tertiary-light: #b8c4c1;
  --color-tertiary-pale: #d4dcd9;

  /* Neutrals */
  --color-cream: #FAF9F7;
  --color-warm-white: #FFFFFE;
  --color-light-gray: #F2F1F2;
  --color-mid-gray: #E8E6E7;
  --color-text: #2D3436;
  --color-text-muted: #636e72;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Typography Scale - Larger for accessibility */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;
  --text-6xl: 4.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45, 52, 54, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 52, 54, 0.08);
  --shadow-lg: 0 8px 30px rgba(45, 52, 54, 0.1);
  --shadow-xl: 0 20px 50px rgba(45, 52, 54, 0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
  max-width: 100vw;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }

p {
  max-width: 65ch;
}

.text-accent {
  font-family: var(--font-accent);
  font-style: normal;
  color: var(--color-secondary);
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.container--narrow {
  max-width: 900px;
}

.container--prose {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container--prose {
    padding: 0 var(--space-md);
  }
}

.container--wide {
  max-width: 1440px;
}

section {
  padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-3xl) 0;
  }
}

/* --------------------------------------------------------------------------
   Grain Texture Overlay
   -------------------------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Organic Background Shapes
   -------------------------------------------------------------------------- */
.organic-shape {
  position: absolute;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  opacity: 0.15;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.organic-shape--1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--color-tertiary), var(--color-tertiary-light));
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.organic-shape--2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--color-secondary-light), var(--color-tertiary));
  bottom: -100px;
  left: -150px;
  animation-delay: -5s;
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
}

.organic-shape--3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-tertiary));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
  opacity: 0.08;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(20px, -20px) rotate(5deg);
  }
  66% {
    transform: translate(-15px, 15px) rotate(-3deg);
  }
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: var(--color-tertiary);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: var(--color-tertiary);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
}

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

.header__inner > a:first-child {
  display: block;
  line-height: 0;
}

.header__logo {
  height: 80px;
  width: auto;
  display: block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.header__logo:hover {
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .header__logo {
    height: 90px;
  }
}

@media (min-width: 1200px) {
  .header__logo {
    height: 100px;
  }
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
}

@media (min-width: 1200px) {
  .nav {
    gap: var(--space-md);
  }
}

.nav__link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-warm-white);
  position: relative;
  padding: var(--space-xs) 0;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-warm-white);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Desktop Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__link--parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-warm-white);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs) 0;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav__chevron {
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav__dropdown.open .nav__chevron {
  transform: rotate(180deg);
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-warm-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-fast), visibility var(--duration-fast);
  z-index: 100;
}

.nav__dropdown:hover .nav__submenu,
.nav__dropdown.open .nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__submenu-link {
  display: block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-primary);
  white-space: nowrap;
  transition: background var(--duration-fast);
}

.nav__submenu-link:hover {
  background: var(--color-cream);
}

.nav__submenu-link.active {
  color: var(--color-secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  z-index: 1001;
}

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

.menu-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--color-warm-white);
  transition: all var(--duration-fast) var(--ease-out);
}

.menu-toggle.active .menu-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-cream);
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  z-index: 1000;
  box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  color: var(--color-primary);
  transition: color var(--duration-fast);
}

.mobile-nav__close:hover {
  color: var(--color-secondary);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav .btn {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  text-align: center;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  transition: color var(--duration-fast);
}

.mobile-nav__link:hover {
  color: var(--color-secondary);
}

/* Mobile Dropdown (always expanded) */
.mobile-nav__link--parent {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  pointer-events: none;
}

.mobile-nav__chevron {
  display: none;
}

.mobile-nav__submenu {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-left: var(--space-md);
  padding-top: var(--space-xs);
}

.mobile-nav__submenu-link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  transition: color var(--duration-fast);
}

.mobile-nav__submenu-link:hover {
  color: var(--color-secondary);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 52, 54, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
  z-index: 999;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Language Switcher
   -------------------------------------------------------------------------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: var(--space-md);
}

.lang-switcher__btn {
  padding: 4px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-warm-white);
  opacity: 0.7;
  transition: all var(--duration-fast);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.lang-switcher__btn:hover {
  opacity: 1;
}

.lang-switcher__btn.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.lang-switcher__divider {
  color: var(--color-warm-white);
  opacity: 0.4;
  font-size: var(--text-xs);
}

/* Mobile language switcher */
.mobile-nav .lang-switcher {
  margin: var(--space-lg) 0 0;
  justify-content: center;
}

.mobile-nav .lang-switcher__btn {
  color: var(--color-primary);
  opacity: 0.8;
}

.mobile-nav .lang-switcher__btn:hover {
  opacity: 1;
}

.mobile-nav .lang-switcher__btn.active {
  opacity: 1;
  background: var(--color-tertiary-pale);
}

.mobile-nav .lang-switcher__divider {
  color: var(--color-primary);
  opacity: 0.3;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Header button variant - white on green background */
.header .btn--primary {
  background: var(--color-warm-white);
  color: var(--color-primary);
}

.header .btn--primary:hover {
  background: var(--color-cream);
  color: var(--color-primary-dark);
}

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

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-warm-white);
}

.btn--accent {
  background: var(--color-secondary);
  color: var(--color-warm-white);
}

.btn--accent:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--large {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  background: linear-gradient(
    135deg,
    var(--color-cream) 0%,
    var(--color-light-gray) 50%,
    var(--color-tertiary-pale) 100%
  );
}

@media (min-width: 768px) {
  .hero {
    padding-top: 180px;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
  }
}

.hero__text {
  max-width: 520px;
  text-align: center;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .hero__text {
    text-align: left;
    margin: 0;
  }
}

.hero__tagline {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: normal;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero__title span {
  display: block;
  color: var(--color-secondary);
}

.hero__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s forwards;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .hero__description {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

@media (min-width: 992px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: flex-start;
  }
}

.hero__image-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInRight 1s var(--ease-out) 0.6s forwards;
}

.hero__image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}

.hero__image-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-tertiary);
  border-radius: var(--radius-xl);
  top: 15px;
  left: 15px;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Why Us / Values Section
   -------------------------------------------------------------------------- */
.values {
  background: linear-gradient(180deg, var(--color-warm-white) 0%, var(--color-light-gray) 100%);
  position: relative;
  overflow: hidden;
}

.values__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.values__label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.values__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.values__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .values__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.value-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-mid-gray);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-tertiary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tertiary-pale);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  transition: background var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.value-card:hover .value-card__icon {
  background: var(--color-tertiary-light);
  transform: scale(1.08);
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.flex-section .value-card__text {
  /* font-size, text-align standardized in flex-section typography block */
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header__label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: normal;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

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

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-light-gray) 100%);
  position: relative;
  overflow: hidden;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-mid-gray);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-tertiary);
}

.service-card__number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--color-tertiary-pale);
  line-height: 1;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-tertiary-light));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--color-secondary-light), var(--color-secondary));
  color: var(--color-warm-white);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.service-card__list {
  list-style: none;
  margin-bottom: var(--space-sm);
}

.service-card__list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: 2px 0;
  padding-left: var(--space-md);
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-tertiary);
  border-radius: var(--radius-full);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  transition: gap var(--duration-fast);
}

.service-card__link:hover {
  gap: var(--space-sm);
}

/* Services Plain Language Toggle */
.services__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.services__toggle-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
  cursor: default;
  user-select: none;
}

.services__toggle-label--active {
  color: var(--color-primary);
  font-weight: 600;
}

.services__toggle-btn {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--color-mid-gray);
  border: none;
  border-radius: 13px;
  cursor: pointer;
  transition: background var(--duration-fast);
  padding: 0;
}

.services__toggle-btn[aria-pressed="true"] {
  background: var(--color-tertiary);
}

.services__toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--color-warm-white);
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.services__toggle-btn[aria-pressed="true"] .services__toggle-thumb {
  transform: translateX(22px);
}

/* Fade transition for card content swap */
.service-card__title,
.service-card__list {
  transition: opacity var(--duration-fast);
}

.service-card--swapping .service-card__title,
.service-card--swapping .service-card__list {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Featured Service Section
   -------------------------------------------------------------------------- */
.featured-service {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  position: relative;
  overflow: hidden;
  color: var(--color-warm-white);
}

.featured-service__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.featured-service__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
  align-items: center;
}

@media (min-width: 992px) {
  .featured-service__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

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

@media (min-width: 992px) {
  .featured-service__content {
    text-align: left;
  }
}

.featured-service__label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-tertiary-light);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-service__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--color-warm-white);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.featured-service__subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: normal;
  color: var(--color-tertiary-light);
  margin-bottom: var(--space-md);
}

.featured-service__description {
  font-size: var(--text-base);
  color: rgba(255, 255, 254, 0.85);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .featured-service__description {
    margin-left: 0;
    margin-right: 0;
  }
}

.featured-service__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  justify-content: center;
}

@media (min-width: 992px) {
  .featured-service__badges {
    justify-content: flex-start;
  }
}

.featured-service__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-warm-white);
  letter-spacing: 0.02em;
  transition: all var(--duration-fast);
}

.featured-service__badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.featured-service__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

@media (min-width: 992px) {
  .featured-service__ctas {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* Outline light button variant */
.btn--outline-light {
  background: transparent;
  color: var(--color-warm-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-warm-white);
}

/* Featured Service Card */
.featured-service__card-wrapper {
  display: flex;
  justify-content: center;
}

@media (min-width: 992px) {
  .featured-service__card-wrapper {
    justify-content: flex-end;
  }
}

.featured-service__card {
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 450px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.featured-service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-tertiary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 768px) {
  .featured-service__card {
    padding: var(--space-xl);
  }
}

.featured-service__card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-tertiary-light));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.featured-service__card-icon svg {
  width: 28px;
  height: 28px;
}

.featured-service__card-title {
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.featured-service__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.featured-service__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.featured-service__list-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-secondary);
  margin-top: 2px;
}

.featured-service__list-item span {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Appointment Section
   -------------------------------------------------------------------------- */
.appointment {
  background: var(--color-primary);
  color: var(--color-warm-white);
  position: relative;
  overflow-x: hidden;
}

.appointment__content h2,
.appointment__content p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.appointment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.appointment__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .appointment__grid {
    grid-template-columns: 2fr 3fr;
  }
}

.appointment__content h2 {
  color: var(--color-warm-white);
}

.appointment__content p {
  color: rgba(255, 255, 254, 0.8);
  margin-top: var(--space-md);
}

.appointment__form {
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-sizing: border-box;
  width: calc(100% - 2rem);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .appointment__form {
    padding: var(--space-xl);
    width: 100%;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-mid-gray);
  border-radius: var(--radius-md);
  background: var(--color-cream);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: all var(--duration-fast);
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-group select,
.form-group input[type="date"] {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-tertiary);
  background: var(--color-warm-white);
}

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

.form-submit {
  margin-top: var(--space-md);
}

/* Calendar Placeholder */
.calendar-placeholder {
  background: var(--color-light-gray);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  border: 2px dashed var(--color-mid-gray);
  margin-top: var(--space-md);
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .calendar-placeholder {
    padding: var(--space-xl);
  }
}

.calendar-placeholder__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  color: var(--color-tertiary);
}

.calendar-placeholder__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-text);
  color: var(--color-warm-white);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-tertiary), transparent);
  opacity: 0.3;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    text-align: left;
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    gap: var(--space-xl);
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer__brand {
    align-items: flex-start;
  }
}

.footer__brand-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 254, 0.7);
  margin-top: var(--space-md);
  max-width: 280px;
  text-align: center;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .footer__brand-text {
    text-align: left;
  }
}

.footer__links-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer__links-group {
    align-items: flex-start;
  }
}

.footer__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-warm-white);
  margin-bottom: var(--space-md);
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .footer__title {
    text-align: left;
  }
}

.footer__links {
  list-style: none;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__links {
    text-align: left;
  }
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 254, 0.7);
  transition: color var(--duration-fast), transform var(--duration-fast);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--color-tertiary);
  transform: translateX(3px);
}

/* Bottom Section */
.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 254, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

.footer__contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__contact-row {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    text-align: left;
  }
}

/* Address styling - centered on mobile, inline on desktop */
.footer__contact-link--address {
  display: block;
  text-align: center;
}

.footer__contact-link--address svg {
  display: none;
}

@media (min-width: 768px) {
  .footer__contact-link--address {
    display: inline-flex;
    text-align: left;
  }

  .footer__contact-link--address svg {
    display: block;
  }
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 254, 0.7);
  transition: color var(--duration-fast);
  text-align: center;
}

.footer__contact-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.footer__contact-link span {
  text-align: center;
}

@media (min-width: 768px) {
  .footer__contact-link span {
    text-align: left;
  }
}

.footer__contact-link:hover {
  color: var(--color-tertiary);
}

.footer__contact-link:hover svg {
  opacity: 1;
}

.footer__contact-link--static {
  cursor: default;
}

.footer__contact-link--static:hover {
  color: rgba(255, 255, 254, 0.7);
}

.footer__contact-link--static:hover svg {
  opacity: 0.7;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 254, 0.2);
  color: rgba(255, 255, 254, 0.7);
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}

.footer__social-link:hover {
  color: var(--color-warm-white);
  border-color: var(--color-tertiary);
  background: rgba(255, 255, 254, 0.08);
}

.footer__social-link svg {
  flex-shrink: 0;
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.footer__legal-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 254, 0.7);
  transition: color var(--duration-fast);
  position: relative;
}

.footer__legal-link:hover {
  color: var(--color-tertiary);
}

.footer__legal-link:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--space-md) / -2);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 254, 0.2);
}

/* Disclaimer */
.footer__disclaimer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 254, 0.08);
}

.footer__disclaimer p {
  font-size: var(--text-xs);
  line-height: 1.7;
  color: rgba(255, 255, 254, 0.5);
  text-align: center;
  max-width: 100%;
  margin: 0;
}

/* Footer Credits (Copyright + Designer) */
.footer__credits {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  width: 100%;
}

@media (min-width: 768px) {
  .footer__credits {
    flex-direction: row;
    gap: var(--space-sm);
  }
}

.footer__credits .footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 254, 0.4);
  margin: 0;
}

.footer__credits-separator {
  display: none;
  color: rgba(255, 255, 254, 0.2);
  font-size: var(--text-xs);
}

@media (min-width: 768px) {
  .footer__credits-separator {
    display: inline;
  }
}

.footer__designer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 254, 0.4);
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
}

.footer__designer-link,
.footer__designer-name {
  color: rgba(255, 255, 254, 0.55);
  transition: color var(--duration-fast);
  font-weight: 500;
}

.footer__designer-link:hover {
  color: var(--color-tertiary);
}

/* Logo */
.footer__logo {
  height: 100px;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Pricing Page
   -------------------------------------------------------------------------- */
.pricing-hero {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-warm-white);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pricing-hero h1 {
  color: var(--color-warm-white);
  position: relative;
}

.pricing-hero p {
  color: rgba(255, 255, 254, 0.8);
  position: relative;
}

@media (max-width: 767px) {
  .pricing-hero {
    min-height: 400px;
    padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-lg);
  }
}

/* Calculator Sections */
.calculator {
  background: var(--color-cream);
  padding: var(--space-2xl) 0;
}

.calculator__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 100%;
}

@media (min-width: 992px) {
  .calculator__wrapper {
    grid-template-columns: 1fr 380px;
  }
}

.calculator__sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.calc-section {
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-mid-gray);
  transition: border-color var(--duration-fast);
}

.calc-section:hover {
  border-color: var(--color-tertiary);
}

.calc-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: var(--color-light-gray);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.calc-section__header:hover {
  background: var(--color-tertiary-pale);
}

.calc-section__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}

.calc-section__number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-warm-white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
}

.calc-section__title {
  font-size: var(--text-lg);
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .calc-section__title {
    font-size: var(--text-base);
  }
}

.calc-section__toggle {
  width: 24px;
  height: 24px;
  transition: transform var(--duration-fast);
}

.calc-section.open .calc-section__toggle {
  transform: rotate(180deg);
}

.calc-section__body {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.calc-section.open .calc-section__body {
  padding: var(--space-lg);
  max-height: 2000px;
}

/* Calculator Options */
.calc-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .calc-options--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calc-option {
  position: relative;
}

.calc-option input[type="radio"],
.calc-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.calc-option__card {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: var(--color-cream);
  border: 2px solid var(--color-mid-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.calc-option input:checked + .calc-option__card {
  border-color: var(--color-secondary);
  background: var(--color-tertiary-pale);
}

.calc-option__card:hover {
  border-color: var(--color-tertiary);
}

.calc-option__name {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.calc-option__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-secondary);
}

.calc-option__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Add-ons */
.calc-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--color-cream);
  border: 2px solid var(--color-mid-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.calc-addon:hover {
  border-color: var(--color-tertiary);
}

.calc-addon.selected {
  border-color: var(--color-secondary);
  background: var(--color-tertiary-pale);
}

.calc-addon__info {
  flex: 1;
}

.calc-addon__name {
  font-weight: 600;
  color: var(--color-primary);
}

.calc-addon__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.calc-addon__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-secondary);
  font-weight: 500;
}

/* 1099 Input */
.calc-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-cream);
  border-radius: var(--radius-md);
}

.calc-input-group label {
  flex: 1;
  font-weight: 600;
  color: var(--color-primary);
}

.calc-input-group input[type="number"] {
  width: 100px;
  padding: var(--space-sm);
  border: 2px solid var(--color-mid-gray);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-lg);
}

.calc-input-group input[type="number"]:focus {
  outline: none;
  border-color: var(--color-tertiary);
}

/* Quote Request Card */
.calc-quote-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-tertiary-pale) 0%, var(--color-cream) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-tertiary);
  transition: all var(--duration-normal);
}

.calc-quote-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.calc-quote-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  color: white;
}

.calc-quote-card__icon svg {
  width: 24px;
  height: 24px;
}

.calc-quote-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.calc-quote-card__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.calc-quote-card__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 2.5rem;
}

.calc-quote-card__btn::after {
  content: '→';
  transition: transform var(--duration-fast);
}

.calc-quote-card__btn:hover::after {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .calc-quote-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .calc-quote-card__icon {
    align-self: center;
  }

  .calc-quote-card__content {
    align-items: center;
    text-align: center;
  }

  .calc-quote-card__btn {
    align-self: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: var(--text-sm);
    padding: var(--space-xs) var(--space-md);
  }
}

@media (max-width: 440px) {
  .calc-quote-card {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .calc-quote-card__icon {
    width: 40px;
    height: 40px;
  }

  .calc-quote-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .calc-quote-card__text {
    font-size: var(--text-sm);
  }

  .calc-quote-card__btn {
    white-space: normal;
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  .calc-quote-card__btn::after {
    display: none;
  }
}

/* Sticky Total */
.calc-total {
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-mid-gray);
  height: fit-content;
  align-self: start;
  z-index: 10;
}

.calc-total__label {
  font-family: var(--font-accent);
  font-style: normal;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.calc-total__amount {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-md);
  transition: all var(--duration-fast);
}

.calc-total__breakdown {
  list-style: none;
  border-top: 1px solid var(--color-mid-gray);
  padding-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.calc-total__breakdown li {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
}

.calc-total__breakdown li.active {
  color: var(--color-text);
  font-weight: 500;
}

.calc-total__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  text-align: center;
}

.calc-total .btn {
  display: flex;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  white-space: nowrap;
  width: 100%;
}

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

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

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --------------------------------------------------------------------------
   Contact Form 7 Custom Styles
   -------------------------------------------------------------------------- */
.wpcf7 {
  width: 100%;
}

.wpcf7 .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .wpcf7 .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

.wpcf7 .form-group {
  display: flex;
  flex-direction: column;
}

.wpcf7 .form-group--full {
  grid-column: 1 / -1;
}

.wpcf7 .form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-mid-gray);
  border-radius: var(--radius-md);
  background: var(--color-cream);
  color: var(--color-text);
  transition: all var(--duration-fast);
  font-family: inherit;
  font-size: var(--text-sm);
  box-sizing: border-box;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.wpcf7 select,
.wpcf7 input[type="date"] {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-tertiary);
  background: var(--color-warm-white);
}

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

.wpcf7 .form-submit {
  margin-top: var(--space-md);
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  background: var(--color-secondary);
  color: var(--color-warm-white);
  border: none;
  cursor: pointer;
  width: 100%;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

.wpcf7-response-output {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  border: 2px solid;
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7-mail-sent-ok {
  background: linear-gradient(135deg, rgba(157, 171, 168, 0.15) 0%, rgba(157, 171, 168, 0.05) 100%);
  border-color: var(--color-tertiary);
  color: var(--color-primary);
}

.wpcf7 form.sent .wpcf7-response-output::before {
  content: '✓ ';
  display: inline;
  margin-right: var(--space-xs);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
  background: linear-gradient(135deg, rgba(138, 116, 117, 0.15) 0%, rgba(138, 116, 117, 0.05) 100%);
  border-color: var(--color-secondary);
  color: var(--color-secondary-dark);
}

.wpcf7 form.failed .wpcf7-response-output {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
  border-color: #e74c3c;
  color: #c0392b;
}

/* Hide CF7 default spinner */
.wpcf7-spinner {
  display: none;
}

/* --------------------------------------------------------------------------
   Legal Page Template
   -------------------------------------------------------------------------- */
.legal-page {
  min-height: 100vh;
  position: relative;
}

/* Header background with subtle pattern */
.legal-page__header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: linear-gradient(
    160deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 60%,
    #3d474a 100%
  );
  overflow: hidden;
}

.legal-page__header-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l9.9-9.9h-2.828zM32 0l-3.486 3.485L27.1 4.9 32 0zm-4.343 0L20.172 7.485 21.586 8.9 32 0h-4.343zM5.657 0L0 5.657v2.828L8.485 0H5.657zM0 9.9L9.9 0H7.07L0 7.072v2.828zm0 5.657L15.557 0h-2.828L0 12.728v2.83zm0 5.657L21.213 0h-2.828L0 18.385v2.828zm0 5.657L26.87 0h-2.83L0 24.042v2.828zm0 5.657L32.527 0h-2.828L0 29.7v2.828zM0 38.27L38.184 0h-2.828L0 35.442v2.828zm0 5.656L43.84 0h-2.827L0 41.1v2.828zm0 5.657L49.497 0h-2.828L0 46.755v2.828zM0 55.24L55.153 0h-2.828L0 52.412v2.828zM0 60l60-60h-4.343L0 55.657V60zm4.343 0L60 4.343V0L.828 59.172l3.515.828zm5.657 0L60 10v-2.828L7.172 60h2.828zm5.657 0L60 15.657v-2.828L12.828 60h2.828zm5.657 0L60 21.314v-2.828L18.485 60h2.828zm5.657 0L60 26.97v-2.827L24.142 60h2.828zm5.656 0L60 32.627v-2.828L29.8 60h2.828zm5.657 0L60 38.284v-2.828L35.456 60h2.828zm5.657 0L60 43.94v-2.827L41.113 60h2.828zm5.657 0L60 49.598v-2.828L46.77 60h2.828zm5.657 0L60 55.255v-2.828L52.426 60h2.828zM60 60v-2.172L57.172 60H60z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.legal-page__pattern {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 80px;
  background: var(--color-cream);
  border-radius: 100% 100% 0 0;
}

/* Header content */
.legal-page__header {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(80px + var(--space-lg)) var(--space-lg) var(--space-lg);
  z-index: 1;
}

.legal-page__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 254, 0.6);
  margin-bottom: var(--space-lg);
}

.legal-page__breadcrumb a {
  color: rgba(255, 255, 254, 0.6);
  transition: color var(--duration-fast);
}

.legal-page__breadcrumb a:hover {
  color: var(--color-warm-white);
}

.legal-page__breadcrumb-sep {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 254, 0.4);
  border-radius: var(--radius-full);
}

.legal-page__title-block {
  text-align: center;
}

.legal-page__document-type {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-tertiary-light);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.legal-page__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--color-warm-white);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.legal-page__meta {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.legal-page__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: rgba(255, 255, 254, 0.7);
}

.legal-page__meta-item svg {
  opacity: 0.7;
}

/* Document content area */
.legal-page__content {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding-bottom: var(--space-2xl);
}

.legal-page__document {
  background: var(--color-warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-page__document-inner {
  padding: var(--space-xl) var(--space-lg);
}

@media (min-width: 768px) {
  .legal-page__document-inner {
    padding: var(--space-2xl) var(--space-2xl);
  }
}

/* Legal document typography */
.legal-page__document-inner h1,
.legal-page__document-inner h2,
.legal-page__document-inner h3,
.legal-page__document-inner h4,
.legal-page__document-inner h5,
.legal-page__document-inner h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-page__document-inner h1:first-child,
.legal-page__document-inner h2:first-child,
.legal-page__document-inner h3:first-child {
  margin-top: 0;
}

.legal-page__document-inner h2 {
  font-size: var(--text-2xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-tertiary-pale);
}

.legal-page__document-inner h3 {
  font-size: var(--text-xl);
  color: var(--color-secondary);
}

.legal-page__document-inner h4 {
  font-size: var(--text-lg);
}

.legal-page__document-inner p {
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  max-width: none;
}

.legal-page__document-inner ul,
.legal-page__document-inner ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-page__document-inner li {
  line-height: 1.8;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.legal-page__document-inner ul li::marker {
  color: var(--color-tertiary);
}

.legal-page__document-inner ol li::marker {
  color: var(--color-secondary);
  font-weight: 600;
}

.legal-page__document-inner a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-color: var(--color-tertiary);
  text-underline-offset: 3px;
  transition: all var(--duration-fast);
}

.legal-page__document-inner a:hover {
  color: var(--color-secondary-dark);
  text-decoration-color: var(--color-secondary);
}

.legal-page__document-inner strong {
  font-weight: 600;
  color: var(--color-primary);
}

.legal-page__document-inner blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-cream);
  border-left: 4px solid var(--color-tertiary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
}

.legal-page__document-inner blockquote p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.legal-page__document-inner hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-tertiary-pale) 20%,
    var(--color-tertiary-pale) 80%,
    transparent
  );
  margin: var(--space-xl) 0;
}

.legal-page__document-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: var(--text-sm);
}

.legal-page__document-inner th,
.legal-page__document-inner td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-mid-gray);
}

.legal-page__document-inner th {
  background: var(--color-cream);
  font-weight: 600;
  color: var(--color-primary);
}

/* Document footer */
.legal-page__document-footer {
  padding: var(--space-lg) var(--space-lg);
  background: var(--color-cream);
  border-top: 1px solid var(--color-mid-gray);
  text-align: center;
}

@media (min-width: 768px) {
  .legal-page__document-footer {
    padding: var(--space-lg) var(--space-2xl);
  }
}

.legal-page__document-footer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.legal-page__document-footer a {
  color: var(--color-secondary);
  font-weight: 500;
  transition: color var(--duration-fast);
}

.legal-page__document-footer a:hover {
  color: var(--color-secondary-dark);
}

/* Back to top link */
.legal-page__back-top {
  padding: var(--space-lg) 0;
  text-align: center;
}

.legal-page__back-top-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--duration-fast);
}

.legal-page__back-top-link:hover {
  color: var(--color-secondary);
}

.legal-page__back-top-link svg {
  transition: transform var(--duration-fast);
}

.legal-page__back-top-link:hover svg {
  transform: translateY(-3px);
}

@media (max-width: 767px) {
  .legal-page__header-bg {
    height: 400px;
  }
  .legal-page__header {
    min-height: 400px;
    padding: calc(80px + var(--space-md)) var(--space-md) var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Error Pages (404, 403, 500)
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(100px + var(--space-xl)) var(--space-md) var(--space-2xl);
  background: var(--color-cream);
}

/* Background Effects */
.error-page__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.error-page__shape {
  position: absolute;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  opacity: 0.12;
  pointer-events: none;
  animation: errorFloat 25s ease-in-out infinite;
}

.error-page__shape--1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--color-tertiary), var(--color-tertiary-light));
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.error-page__shape--2 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, var(--color-secondary-light), var(--color-tertiary));
  bottom: -150px;
  left: -200px;
  animation-delay: -8s;
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
}

.error-page__shape--3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
  top: 40%;
  left: 10%;
  animation-delay: -15s;
  opacity: 0.08;
}

@keyframes errorFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(30px, -30px) rotate(5deg) scale(1.02); }
  50% { transform: translate(-20px, 20px) rotate(-3deg) scale(0.98); }
  75% { transform: translate(15px, 10px) rotate(2deg) scale(1.01); }
}

/* Grid Pattern Overlay */
.error-page__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-tertiary-pale) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-tertiary-pale) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Shield Pattern for 403 */
.error-page__shield-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2 L35 8 L35 18 C35 28 27 35 20 38 C13 35 5 28 5 18 L5 8 Z' stroke='%238A7475' stroke-width='0.5' fill='none' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.4;
}

/* Glitch Lines for 500 */
.error-page__glitch-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(138, 116, 117, 0.03) 2px,
    rgba(138, 116, 117, 0.03) 4px
  );
  animation: glitchScan 8s linear infinite;
}

@keyframes glitchScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100px); }
}

/* Content Container */
.error-page__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Error Code Display */
.error-page__code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.error-page__code-digit {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0;
  animation: digitReveal 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--delay) * 0.15s);
  text-shadow:
    0 4px 8px rgba(87, 103, 107, 0.1),
    0 8px 24px rgba(87, 103, 107, 0.05);
}

.error-page__code-digit--accent {
  position: relative;
  width: clamp(5rem, 18vw, 10rem);
  height: clamp(6rem, 20vw, 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

@keyframes digitReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* SVG Icons in Error Code */
.error-page__compass,
.error-page__shield,
.error-page__gear {
  width: 100%;
  height: 100%;
  color: var(--color-secondary);
}

.error-page__compass {
  animation: compassSpin 20s linear infinite;
}

@keyframes compassSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-page__shield {
  animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.error-page__gear {
  animation: gearWobble 4s ease-in-out infinite;
}

.error-page__gear-outer {
  transform-origin: center;
  animation: gearRotate 10s linear infinite reverse;
}

@keyframes gearWobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes gearRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Glitch effect for 500 error */
.error-page__code-wrapper--glitch .error-page__code-digit {
  animation: digitReveal 0.8s var(--ease-out) forwards, glitchText 5s ease-in-out infinite;
  animation-delay: calc(var(--delay) * 0.15s), 2s;
}

@keyframes glitchText {
  0%, 90%, 100% {
    transform: translateX(0);
    filter: none;
  }
  92% {
    transform: translateX(-3px);
    filter: blur(1px);
  }
  94% {
    transform: translateX(3px);
    filter: none;
  }
  96% {
    transform: translateX(-2px);
    filter: blur(0.5px);
  }
  98% {
    transform: translateX(0);
  }
}

/* Message Styles */
.error-page__message {
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.5s forwards;
}

.error-page__label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-tertiary-pale);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.error-page__label--warning {
  background: linear-gradient(135deg, rgba(138, 116, 117, 0.15), rgba(138, 116, 117, 0.05));
  color: var(--color-secondary-dark);
}

.error-page__label--error {
  background: linear-gradient(135deg, rgba(180, 100, 100, 0.15), rgba(180, 100, 100, 0.05));
  color: #8b4545;
}

.error-page__title {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.error-page__description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Action Buttons */
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.7s forwards;
}

.error-page__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.error-page__actions .btn svg {
  flex-shrink: 0;
}

/* Help Section */
.error-page__help {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

.error-page__help-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.error-page__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-warm-white);
  border: 1px solid var(--color-mid-gray);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.error-page__link:hover {
  border-color: var(--color-tertiary);
  background: var(--color-tertiary-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.error-page__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-tertiary-pale);
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
  transition: all var(--duration-fast);
}

.error-page__link:hover .error-page__link-icon {
  background: var(--color-secondary);
  color: var(--color-warm-white);
}

/* Notice Box (for 403) */
.error-page__notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-warm-white);
  border: 1px solid var(--color-mid-gray);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

.error-page__notice svg {
  flex-shrink: 0;
  color: var(--color-secondary);
  margin-top: 2px;
}

.error-page__notice p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Status Indicator (for 500) */
.error-page__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-warm-white);
  border: 1px solid var(--color-mid-gray);
  border-radius: var(--radius-lg);
  max-width: 400px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

.error-page__status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.error-page__status-dot {
  width: 10px;
  height: 10px;
  background: var(--color-tertiary);
  border-radius: var(--radius-full);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(157, 171, 168, 0.5);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 8px rgba(157, 171, 168, 0);
  }
}

.error-page__status-text {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-sm);
}

.error-page__status-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

.error-page__status-time time {
  font-weight: 500;
  color: var(--color-secondary);
}

/* 403 Specific Styles */
.error-page--403 .error-page__shape--1 {
  background: linear-gradient(135deg, var(--color-secondary-light), var(--color-secondary));
}

/* 500 Specific Styles */
.error-page--500 .error-page__shape--1 {
  background: linear-gradient(135deg, #b46464, var(--color-secondary-light));
  animation: errorFloat 25s ease-in-out infinite, errorPulse 4s ease-in-out infinite;
}

@keyframes errorPulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.18; }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .error-page {
    padding-top: calc(80px + var(--space-lg));
  }

  .error-page__code-wrapper {
    gap: var(--space-xs);
  }

  .error-page__code-digit {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .error-page__code-digit--accent {
    width: clamp(3.5rem, 16vw, 5rem);
    height: clamp(4rem, 18vw, 6rem);
  }

  .error-page__actions {
    flex-direction: column;
    align-items: center;
  }

  .error-page__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .error-page__links {
    flex-direction: column;
    align-items: center;
  }

  .error-page__link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .error-page__notice {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   FLEXIBLE PAGE BUILDER SECTIONS
   ========================================================================== */

/* ---------- Flex Section Wrapper ---------- */
.flex-section {
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.flex-section--alt {
    background: var(--color-cream);
}

/* Background color overrides (user-selectable) */
.flex-section--bg-warm-white {
    background: var(--color-warm-white);
}

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

.flex-section--bg-light-gray {
    background: var(--color-light-gray);
}

.flex-section--bg-tertiary-pale {
    background: var(--color-tertiary-pale);
}

.flex-section--bg-primary-dark {
    background: var(--color-primary-dark);
    color: var(--color-warm-white);
}

.flex-section--bg-primary-dark h3,
.flex-section--bg-primary-dark h4,
.flex-section--bg-primary-dark p,
.flex-section--bg-primary-dark li {
    color: var(--color-warm-white);
}

.flex-section--bg-primary-dark .mission-a__text,
.flex-section--bg-primary-dark .mission-b__text,
.flex-section--bg-primary-dark .vision-b__text,
.flex-section--bg-primary-dark .purpose-a__text,
.flex-section--bg-primary-dark .purpose-b__text,
.flex-section--bg-primary-dark .about-a__text,
.flex-section--bg-primary-dark .about-b__text,
.flex-section--bg-primary-dark .textimage-a__text,
.flex-section--bg-primary-dark .textimage-b__text,
.flex-section--bg-primary-dark .values-b__text,
.flex-section--bg-primary-dark .value-card__text,
.flex-section--bg-primary-dark .philosophy-a__lead,
.flex-section--bg-primary-dark .philosophy-a__pillar-text,
.flex-section--bg-primary-dark .philosophy-b__lead,
.flex-section--bg-primary-dark .philosophy-b__card-text,
.flex-section--bg-primary-dark .services-b__list li {
    color: rgba(255, 255, 254, 0.85);
}

.flex-section--bg-primary-dark .services-b__item {
    background: rgba(255, 255, 254, 0.08);
    border-color: rgba(255, 255, 254, 0.12);
}

.flex-section--bg-primary-dark .services-b__icon {
    background: rgba(255, 255, 254, 0.15);
}

.flex-section--bg-primary-dark .services-b__icon svg {
    stroke: var(--color-warm-white);
}

.flex-section--bg-primary-dark .services-b__title {
    color: var(--color-warm-white);
}

.flex-section--bg-primary-dark .services-b__link {
    color: var(--color-tertiary-light);
}

.flex-section--bg-primary-dark .service-card {
    background: rgba(255, 255, 254, 0.06);
    border-color: rgba(255, 255, 254, 0.12);
}

.flex-section--bg-primary-dark .service-card__number {
    color: rgba(255, 255, 254, 0.15);
}

.flex-section--bg-primary-dark .service-card__icon svg {
    stroke: var(--color-tertiary-light);
}

.flex-section--bg-primary-dark .service-card__list li {
    color: rgba(255, 255, 254, 0.8);
}

.flex-section--bg-primary-dark .service-card__link {
    color: var(--color-tertiary-light);
}

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

.flex-section--bg-primary h3,
.flex-section--bg-primary h4,
.flex-section--bg-primary p,
.flex-section--bg-primary li {
    color: var(--color-warm-white);
}

.flex-section--bg-primary .mission-a__text,
.flex-section--bg-primary .mission-b__text,
.flex-section--bg-primary .vision-b__text,
.flex-section--bg-primary .purpose-a__text,
.flex-section--bg-primary .purpose-b__text,
.flex-section--bg-primary .about-a__text,
.flex-section--bg-primary .about-b__text,
.flex-section--bg-primary .textimage-a__text,
.flex-section--bg-primary .textimage-b__text,
.flex-section--bg-primary .values-b__text,
.flex-section--bg-primary .value-card__text,
.flex-section--bg-primary .philosophy-a__lead,
.flex-section--bg-primary .philosophy-a__pillar-text,
.flex-section--bg-primary .philosophy-b__lead,
.flex-section--bg-primary .philosophy-b__card-text,
.flex-section--bg-primary .services-b__list li {
    color: rgba(255, 255, 254, 0.85);
}

.flex-section--bg-primary .services-b__item {
    background: rgba(255, 255, 254, 0.08);
    border-color: rgba(255, 255, 254, 0.12);
}

.flex-section--bg-primary .services-b__icon {
    background: rgba(255, 255, 254, 0.15);
}

.flex-section--bg-primary .services-b__icon svg {
    stroke: var(--color-warm-white);
}

.flex-section--bg-primary .services-b__title {
    color: var(--color-warm-white);
}

.flex-section--bg-primary .services-b__link {
    color: var(--color-tertiary-light);
}

.flex-section--bg-primary .service-card {
    background: rgba(255, 255, 254, 0.06);
    border-color: rgba(255, 255, 254, 0.12);
}

.flex-section--bg-primary .service-card__number {
    color: rgba(255, 255, 254, 0.15);
}

.flex-section--bg-primary .service-card__icon svg {
    stroke: var(--color-tertiary-light);
}

.flex-section--bg-primary .service-card__list li {
    color: rgba(255, 255, 254, 0.8);
}

.flex-section--bg-primary .service-card__link {
    color: var(--color-tertiary-light);
}

.flex-section--empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-3xl) 0;
}

/* ---------- Standardized Flex Section Typography ---------- */

/* Section titles (h3): uniform size + centered */
.flex-section h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    text-align: center;
}

/* Sub-titles (h4): uniform size + centered */
.flex-section h4 {
    font-size: var(--text-xl);
    text-align: center;
}

/* Section body text: uniform size + line-height, left-aligned */
.flex-section p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text-muted);
    text-align: left;
}

/* Card subtitles: centered within cards */
.flex-section .philosophy-a__card-subtitle,
.flex-section .philosophy-b__card-subtitle {
    text-align: center;
}

/* Difference card text: white on dark background */
.flex-section .philosophy-a__difference-text,
.flex-section .philosophy-b__difference-text {
    color: var(--color-warm-white);
}

/* ---------- Mission: Layout A — Centered with accent border ---------- */
.mission-a {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--space-xl);
    border-left: 4px solid var(--color-secondary);
    background: var(--color-warm-white);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.mission-a::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-secondary), var(--color-tertiary));
    border-radius: 2px;
}

.mission-a__title {
    margin-bottom: var(--space-md);
}

.mission-a__text {
    /* font-size, line-height, color, text-align standardized above */
}

/* ---------- Mission: Layout B — Split icon/image + text ---------- */
.mission-b {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

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

.mission-b__icon-block {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-tertiary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform var(--duration-slow) var(--ease-out);
}

.mission-b__icon-block::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-xl) + 4px);
    border: 2px dashed var(--color-tertiary-pale);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.mission-b:hover .mission-b__icon-block::after {
    opacity: 1;
}

.mission-b__icon-block svg {
    width: 80px;
    height: 80px;
    stroke: var(--color-primary);
    stroke-width: 1;
    transition: transform var(--duration-slow) var(--ease-spring);
}

.mission-b:hover .mission-b__icon-block svg {
    transform: scale(1.08);
}

.mission-b__title {
    margin-bottom: var(--space-md);
}

.mission-b__text {
    /* font-size, line-height, color, text-align standardized above */
}

/* ---------- Vision: Layout A — Full-width gradient ---------- */
.vision-a {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-tertiary));
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    color: var(--color-warm-white);
    position: relative;
    overflow: hidden;
}

.vision-a::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.vision-a::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}

.vision-a__title {
    color: var(--color-warm-white);
    margin-bottom: var(--space-md);
    position: relative;
}

.vision-a__text {
    /* font-size, line-height, text-align standardized above */
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.92;
    position: relative;
}

/* ---------- Vision: Layout B — Two-column quote + description ---------- */
.vision-b {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.vision-b__quote {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-style: normal;
    color: var(--color-primary);
    line-height: 1.3;
    position: relative;
    padding-left: var(--space-lg);
}

.vision-b__quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -0.2em;
    font-size: 4em;
    color: var(--color-tertiary-pale);
    line-height: 1;
    transition: color var(--duration-slow) ease;
}

.vision-b:hover .vision-b__quote::before {
    color: var(--color-tertiary-light);
}

.vision-b__subtitle {
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
}

.vision-b__text {
    /* font-size, line-height, color, text-align standardized above */
}

/* ---------- Values: Layout A — 3-column card grid ---------- */
.values-a {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* ---------- Values: Layout B — Horizontal list ---------- */
.values-b {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.values-b__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.values-b__item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-tertiary-pale);
}

.values-b__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-tertiary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-spring),
                background var(--duration-normal) ease;
}

.values-b__item:hover .values-b__icon {
    transform: scale(1.1);
    background: var(--color-tertiary-light);
}

.values-b__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.values-b__content {
    flex: 1;
}

.values-b__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.values-b__text {
    /* font-size, color, text-align standardized above */
}

/* ---------- Services: Layout B — Compact list ---------- */
.services-b__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.services-b__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.services-b__item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-tertiary-pale);
}

.services-b__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-tertiary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-spring),
                background var(--duration-normal) ease;
}

.services-b__item:hover .services-b__icon {
    transform: scale(1.1);
    background: var(--color-tertiary-light);
}

.services-b__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
}

.services-b__content {
    flex: 1;
}

.services-b__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.services-b__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.services-b__list li {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    position: relative;
    padding-left: 1rem;
}

.services-b__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-tertiary);
}

.services-b__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) ease, gap var(--duration-fast) ease;
}

.services-b__link:hover {
    color: var(--color-secondary-dark, var(--color-primary));
    gap: 0.625rem;
}

@media (min-width: 768px) {
    .services-b__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-b__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Purpose: Layout A — Hero centered ---------- */
.purpose-a {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.purpose-a__title {
    /* font-size standardized via .flex-section h3 */
    margin-bottom: var(--space-md);
}

.purpose-a__text {
    /* font-size, line-height, color, text-align standardized above */
    max-width: 640px;
    margin: 0 auto var(--space-lg);
}

.purpose-a__divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-tertiary), var(--color-secondary));
    margin: 0 auto;
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-out);
}

.purpose-a:hover .purpose-a__divider {
    width: 120px;
}

/* ---------- Purpose: Layout B — Split text + shape ---------- */
.purpose-b {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.purpose-b__title {
    margin-bottom: var(--space-md);
}

.purpose-b__text {
    /* font-size, line-height, color, text-align standardized above */
    margin-bottom: var(--space-md);
}

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

.purpose-b__shape {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-tertiary-light), var(--color-secondary-light));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentleFloat 8s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

.purpose-b__shape::after {
    content: '';
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px dashed var(--color-tertiary);
    position: absolute;
    animation: gentleSpin 30s linear infinite;
}

@keyframes gentleSpin {
    to { transform: rotate(360deg); }
}

.purpose-b__shape svg {
    width: 64px;
    height: 64px;
    stroke: var(--color-primary);
    stroke-width: 1;
    position: relative;
    z-index: 1;
}

/* ---------- About Us: Layout A — Image left, text right ---------- */
.about-a {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-a__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-tertiary-pale);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-a__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-mid-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    position: relative;
    overflow: hidden;
}

.about-a__image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.about-a__image-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-tertiary);
    position: relative;
    z-index: 1;
}

.about-a__title {
    margin-bottom: var(--space-md);
}

.about-a__text {
    /* font-size, line-height, color, text-align standardized above */
}

.about-a__text + .about-a__text {
    margin-top: var(--space-sm);
}

/* ---------- About Us: Layout B — Full-width centered ---------- */
.about-b {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.about-b::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-tertiary), var(--color-secondary), var(--color-primary));
}

.about-b__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-tertiary));
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-slow) var(--ease-spring);
}

.about-b:hover .about-b__avatar {
    transform: scale(1.08);
}

.about-b__avatar svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-primary);
    stroke-width: 1.5;
}

.about-b__title {
    margin-bottom: var(--space-md);
}

.about-b__text {
    /* font-size, line-height, color, text-align standardized above */
    max-width: 640px;
    margin: 0 auto var(--space-sm);
}

/* ---------- Text + Image: Layout A — Text left, image right ---------- */
.textimage-a {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.textimage-a__title {
    margin-bottom: var(--space-md);
}

.textimage-a__text {
    /* font-size, line-height, color, text-align standardized above */
    margin-bottom: var(--space-md);
}

.textimage-a__image,
.textimage-b__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.textimage-a__image {
    background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-mid-gray));
}

.textimage-b__image {
    background: linear-gradient(135deg, var(--color-mid-gray), var(--color-tertiary-pale));
}

.textimage-a__image::after,
.textimage-b__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

.textimage-a__image svg,
.textimage-b__image svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-tertiary);
    position: relative;
    z-index: 1;
}

/* ---------- Text + Image: Layout B — Image left, text right (reversed) ---------- */
.textimage-b {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.textimage-b__title {
    margin-bottom: var(--space-md);
}

.textimage-b__text {
    /* font-size, line-height, color, text-align standardized above */
    margin-bottom: var(--space-md);
}

/* ---------- Philosophy: Layout A — Editorial stacked blocks ---------- */
.philosophy-a {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-a__intro {
    margin-bottom: var(--space-xl);
}

.philosophy-a__title {
    margin-bottom: var(--space-md);
}

.philosophy-a__lead {
    /* font-size, line-height, color, text-align standardized above */
}

.philosophy-a__pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.philosophy-a__pillar {
    padding: var(--space-lg);
    border-left: 3px solid var(--color-tertiary);
    background: var(--color-cream);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: border-color var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) ease;
}

.philosophy-a__pillar:hover {
    border-color: var(--color-secondary);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.philosophy-a__pillar-title {
    font-family: var(--font-display);
    /* font-size standardized via .flex-section h4 */
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.philosophy-a__pillar-text {
    /* font-size, line-height, color, text-align standardized above */
}

.philosophy-a__pillar-text em {
    color: var(--color-secondary);
    font-style: normal;
}

.philosophy-a__advantage {
    padding: var(--space-lg);
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.philosophy-a__advantage-title,
.philosophy-b__advantage-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
}

.philosophy-a__advantage-list,
.philosophy-b__advantage-list {
    list-style: none;
    padding: 0;
}

.philosophy-a__advantage-list li,
.philosophy-b__advantage-list li {
    padding: 0.5rem 0;
    padding-left: var(--space-md);
    color: var(--color-text-muted);
    position: relative;
    line-height: 1.6;
}

.philosophy-a__advantage-list li::before,
.philosophy-b__advantage-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-tertiary);
    transition: transform var(--duration-fast) var(--ease-spring);
}

.philosophy-a__advantage-list li:hover::before,
.philosophy-b__advantage-list li:hover::before {
    transform: scale(1.5);
    background: var(--color-secondary);
}

.philosophy-a__difference,
.philosophy-b__difference {
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: var(--radius-lg);
    color: var(--color-warm-white);
    position: relative;
    overflow: hidden;
}

.philosophy-a__difference::before,
.philosophy-b__difference::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    top: -60px;
    right: -40px;
    pointer-events: none;
}

.philosophy-a__difference-title,
.philosophy-b__difference-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-warm-white);
    margin-bottom: var(--space-xs);
    position: relative;
}

.philosophy-a__difference-text,
.philosophy-b__difference-text {
    opacity: 0.92;
    line-height: 1.8;
    position: relative;
}

/* ---------- Philosophy: Layout B — Card-based with pillar icons ---------- */
.philosophy-b__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.philosophy-b__title {
    margin-bottom: var(--space-md);
}

.philosophy-b__lead {
    /* font-size, line-height, color, text-align standardized above */
}

.philosophy-b__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.philosophy-b__card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.philosophy-b__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-tertiary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out);
}

.philosophy-b__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.philosophy-b__card:hover::before {
    transform: scaleX(1);
}

.philosophy-b__card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-tertiary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    transition: transform var(--duration-normal) var(--ease-spring),
                background var(--duration-normal) ease;
}

.philosophy-b__card:hover .philosophy-b__card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--color-tertiary-light);
}

.philosophy-b__card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary);
}

.philosophy-b__card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.philosophy-b__card-subtitle {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.philosophy-b__card-text {
    /* font-size, line-height, color, text-align standardized above */
}

.philosophy-b__card-text em {
    color: var(--color-secondary);
}

.philosophy-b__bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.philosophy-b__advantage {
    padding: var(--space-lg);
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ---------- Images in flexible sections ---------- */
.about-a__image img,
.textimage-a__image img,
.textimage-b__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.value-card__icon img,
.values-b__icon img,
.mission-b__custom-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ---------- Flexible Sections: Mobile centered text ---------- */
@media (max-width: 767px) {
    .flex-section p {
        text-align: center;
    }
}

/* ---------- Flexible Sections Responsive ---------- */
@media (min-width: 768px) {
    .flex-section {
        padding: var(--space-3xl) 0;
    }

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

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

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

    .philosophy-b__bottom {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .mission-b {
        grid-template-columns: auto 1fr;
    }

    .flex-section .mission-b__title {
        text-align: left;
    }

    .vision-b {
        grid-template-columns: 1fr 1fr;
    }

    .purpose-b {
        grid-template-columns: 1fr auto;
    }

    .about-a {
        grid-template-columns: 1fr 1fr;
    }

    .textimage-a {
        grid-template-columns: 1fr 1fr;
    }

    .textimage-b {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   JOURNAL / BLOG
   ========================================================================== */

/* ---------- Journal Layout ---------- */
.journal > .container {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* ---------- Journal Filter Tabs ---------- */
.journal-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.journal-filters__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-dark-gray);
    background: var(--color-warm-white);
    border: 1px solid var(--color-mid-gray);
    border-radius: 100px;
    text-decoration: none;
    transition: background var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}

.journal-filters__btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.journal-filters__btn--active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.journal-filters__btn--active:hover {
    background: var(--color-primary-dark, var(--color-primary));
    color: #fff;
    border-color: var(--color-primary-dark, var(--color-primary));
}

/* ---------- Journal Featured Card ---------- */
.journal-featured {
    margin-bottom: var(--space-2xl);
}

.journal-featured__link {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
    text-decoration: none;
    color: inherit;
}

.journal-featured__link:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.journal-featured__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-mid-gray));
}

.journal-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.journal-featured__link:hover .journal-featured__image {
    transform: scale(1.03);
}

.journal-featured__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-mid-gray));
}

.journal-featured__image-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: var(--color-tertiary);
}

.journal-featured__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-primary);
    color: var(--color-warm-white);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.journal-featured__content {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.journal-featured__category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.journal-featured__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.journal-featured__excerpt {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 65ch;
}

.journal-featured__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.journal-featured__meta > *:not(:last-child)::after {
    content: '\00B7';
    margin-left: var(--space-sm);
}

.journal-featured__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--duration-normal) var(--ease-out);
}

.journal-featured__link:hover .journal-featured__read-more {
    gap: 0.75rem;
}

/* ---------- Journal Post Card ---------- */
.journal-card {
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.journal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.journal-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.journal-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--color-tertiary-pale), var(--color-mid-gray));
}

.journal-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.journal-card:hover .journal-card__image {
    transform: scale(1.05);
}

.journal-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-card__image-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-tertiary);
}

.journal-card__content {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}

.journal-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.journal-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.journal-card__excerpt {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.journal-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.journal-card__meta > *:not(:last-child)::after {
    content: '\00B7';
    margin-left: var(--space-xs);
}

/* ---------- Journal Grid ---------- */
.journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

/* ---------- Pagination ---------- */
.journal-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0 var(--space-2xl);
    border-top: 1px solid var(--color-mid-gray);
}

.journal-pagination__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) ease,
                gap var(--duration-normal) var(--ease-out);
}

.journal-pagination__link:hover {
    color: var(--color-secondary);
    gap: 0.75rem;
}

.journal-pagination__link--older {
    margin-left: auto;
}

/* ---------- Empty State ---------- */
.journal-empty {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.journal-empty__text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-style: normal;
    color: var(--color-text-muted);
}

/* ---------- Journal Responsive ---------- */
@media (min-width: 640px) {
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .journal-featured__link {
        grid-template-columns: 3fr 2fr;
    }

    .journal-featured__image-wrapper {
        aspect-ratio: auto;
        min-height: 360px;
    }

    .journal-featured__content {
        padding: var(--space-xl) var(--space-xl) var(--space-xl) 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

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

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

/* ---------- Article-wide container ---------- */
.container--article-wide {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container--article-wide {
        padding: 0 var(--space-md);
    }
}

/* ==========================================================================
   Single Post — Editorial Layout
   ========================================================================== */

/* ---------- Category Badge in Hero ---------- */
.single-post__category-badge {
    display: inline-block;
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-warm-white);
    background: rgba(255, 255, 254, 0.15);
    border: 1px solid rgba(255, 255, 254, 0.3);
    padding: 0.35rem 1.2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: background var(--duration-fast) ease;
}

.single-post__category-badge:hover {
    background: rgba(255, 255, 254, 0.25);
    color: var(--color-warm-white);
}

/* ---------- Featured Image ---------- */
.single-post__image-wrapper {
    background: var(--color-cream);
    padding: var(--space-xl) 0 0;
}

.single-post__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.single-post__image-caption {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: normal;
    margin-top: var(--space-sm);
}

/* ---------- Post Body ---------- */
.single-post__body {
    padding: var(--space-xl) 0 var(--space-2xl);
    background: var(--color-cream);
}

.single-post__card {
    background: var(--color-warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- Post Content (Prose) ---------- */
.single-post__content {
    max-width: 100%;
    min-width: 0;
}

/* Drop cap on first paragraph */
.single-post__content > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    padding-right: 0.12em;
    padding-top: 0.05em;
    color: var(--color-primary);
    font-weight: 500;
}

.single-post__content p {
    font-size: var(--text-base);
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.single-post__content h2 {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    font-weight: 500;
    color: var(--color-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-tertiary-pale);
}

.single-post__content h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.single-post__content h4 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.single-post__content blockquote {
    border-left: 4px solid var(--color-secondary);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--color-cream), var(--color-warm-white));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
}

.single-post__content blockquote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-tertiary);
    position: absolute;
    top: -0.3rem;
    left: 0.75rem;
    line-height: 1;
    opacity: 0.5;
}

.single-post__content blockquote p {
    font-family: var(--font-display);
    font-style: normal;
    font-size: var(--text-lg);
    color: var(--color-primary);
    line-height: 1.6;
    margin-bottom: 0;
}

.single-post__content ul,
.single-post__content ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.single-post__content li {
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.single-post__content li::marker {
    color: var(--color-secondary);
}

.single-post__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-tertiary);
    transition: text-decoration-color var(--duration-fast) ease;
}

.single-post__content a:hover {
    text-decoration-color: var(--color-secondary);
}

.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-sm);
}

.single-post__content figure {
    margin: var(--space-xl) 0;
}

.single-post__content figcaption {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: normal;
    margin-top: var(--space-xs);
}

/* ---------- Back to Journal ---------- */
.single-post__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-mid-gray);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap var(--duration-normal) var(--ease-out),
                color var(--duration-fast) ease;
}

.single-post__back:hover {
    gap: 0.75rem;
    color: var(--color-secondary);
}

/* ---------- Post CTA — contained card ---------- */
.single-post__cta {
    max-width: 660px;
    margin: var(--space-xl) auto 0;
}

.single-post__cta-inner {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.single-post__cta-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.single-post__cta-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: normal;
    color: rgba(255, 255, 254, 0.85);
    margin-bottom: var(--space-sm);
    position: relative;
}

.single-post__cta-btn.btn--primary {
    background: var(--color-warm-white);
    color: var(--color-primary-dark);
    position: relative;
    font-size: var(--text-sm);
}

.single-post__cta-btn.btn--primary:hover {
    background: var(--color-cream);
    transform: translateY(-2px);
}

/* ---------- Post Footer ---------- */
.single-post__footer {
    background: var(--color-cream);
}

/* ---------- Related Posts ---------- */
.single-post__related {
    padding: var(--space-2xl) 0;
    background: var(--color-warm-white);
}

.single-post__related-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ---------- Single Post Responsive ---------- */
@media (min-width: 768px) {
    .single-post__card {
        padding: var(--space-xl) var(--space-2xl);
    }

    .single-post__cta-inner {
        padding: var(--space-xl) var(--space-2xl);
    }
}

/* ========================================================================
   OUR PROCESS PAGE
   ======================================================================== */

/* ---------- Process Hero ---------- */
.process-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-warm-white);
    text-align: center;
    overflow: hidden;
}

.process-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.process-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.process-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--color-warm-white);
    mix-blend-mode: overlay;
}

.process-hero__shape--1 {
    width: 400px;
    height: 400px;
    top: -180px;
    right: -100px;
    animation: processFloat 20s ease-in-out infinite;
}

.process-hero__shape--2 {
    width: 280px;
    height: 280px;
    bottom: -100px;
    left: -80px;
    animation: processFloat 25s ease-in-out infinite reverse;
}

.process-hero__shape--3 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 55%;
    opacity: 0.04;
    animation: processFloat 18s ease-in-out infinite 3s;
}

@keyframes processFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.process-hero__content {
    position: relative;
    z-index: 1;
}

.process-hero__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-warm-white);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 254, 0.1);
    border: 1px solid rgba(255, 255, 254, 0.25);
    border-radius: var(--radius-full);
}

.process-hero__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 400;
    color: var(--color-warm-white);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.3em;
}

.process-hero__divider {
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    margin: 0 auto var(--space-sm);
    transition: width 0.8s var(--ease-out) 0.8s;
}

.process-hero__divider.visible {
    width: 50px;
}

.process-hero__intro {
    font-size: clamp(var(--text-sm), 1.2vw, var(--text-base));
    color: rgba(255, 255, 254, 0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.process-hero__steps-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: var(--space-md);
}

.process-hero__hint-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 254, 0.55);
}

.process-hero__arrow {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 254, 0.5);
    animation: processBounce 2s ease-in-out infinite;
}

@keyframes processBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Hero word-by-word stagger */
.process-hero__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    transition-delay: calc(var(--word-index, 0) * 100ms + 200ms);
}

.process-hero__word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero countup number */
.process-hero__countup {
    display: inline-block;
    min-width: 1ch;
    font-weight: 700;
}

/* ---------- Process Timeline (Zigzag) ---------- */
.process-timeline {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 6vw, 4rem);
    background: var(--color-cream);
}

.process-timeline__grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

/* Center timeline column */
.process-timeline__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Connector line bridging the gap from previous row to this dot */
.process-timeline__center::before {
    content: '';
    width: 2px;
    height: 28px;
    background: var(--color-tertiary-pale);
    flex-shrink: 0;
}

/* First center has no incoming connector — just transparent spacing */
.process-timeline__center--first::before {
    background: transparent;
}

.process-timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-secondary);
    border: 3px solid var(--color-cream);
    box-shadow: 0 0 0 3px var(--color-secondary);
    z-index: 2;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.process-timeline__center--visible .process-timeline__dot {
    opacity: 1;
    transform: scale(1);
}

.process-timeline__line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--color-tertiary), var(--color-tertiary-pale));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.8s var(--ease-out) 0.2s;
}

.process-timeline__center--visible .process-timeline__line {
    transform: scaleY(1);
}

/* Spacer for the empty column */
.process-step__spacer {
    min-height: 1px;
}

/* ---------- Process Step ---------- */
.process-step {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    opacity: 0;
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.process-step--odd {
    text-align: right;
    transform: translateX(-40px);
}

.process-step--even {
    text-align: left;
    transform: translateX(40px);
}

.process-step--visible {
    opacity: 1;
    transform: translateX(0);
}

/* Icon */
.process-step__icon {
    margin-bottom: var(--space-md);
}

.process-step--odd .process-step__icon {
    display: flex;
    justify-content: flex-end;
}

.process-step--even .process-step__icon {
    display: flex;
    justify-content: flex-start;
}

.process-step__icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(87, 103, 107, 0.2),
        0 0 0 4px rgba(87, 103, 107, 0.08);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
    opacity: 0;
    transform: scale(0);
}

.process-step--visible .process-step__icon-circle {
    opacity: 1;
    animation: stepIconBounce 0.6s var(--ease-out) 0.2s forwards;
}

@keyframes stepIconBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.process-step__icon-circle:hover {
    transform: scale(1.08);
    box-shadow:
        0 8px 24px rgba(87, 103, 107, 0.3),
        0 0 0 6px rgba(87, 103, 107, 0.12);
}

/* SVG Stroke Draw */
.process-step__svg {
    width: 28px;
    height: 28px;
}

.process-step__svg path {
    stroke-dasharray: var(--path-length, 100);
    stroke-dashoffset: var(--path-length, 100);
    transition: stroke-dashoffset 1.5s ease-out 0.5s;
}

.process-step--visible .process-step__svg path {
    stroke-dashoffset: 0;
}

.process-step__icon-number {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
}

/* Content body */
.process-step__body {
    position: relative;
}

.process-step__watermark {
    position: absolute;
    top: -0.5rem;
    font-family: var(--font-display);
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transform: scale(0.8);
    transition: opacity 0.8s var(--ease-out) 0.6s, transform 0.8s var(--ease-out) 0.6s;
}

.process-step--odd .process-step__watermark {
    left: 0;
}

.process-step--even .process-step__watermark {
    right: 0;
}

.process-step--visible .process-step__watermark {
    opacity: 0.07;
    transform: scale(1);
}

.process-step__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: var(--space-xs);
    position: relative;
}

.process-step__badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--color-secondary);
    color: var(--color-warm-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease-out) 0.7s, transform 0.4s var(--ease-out) 0.7s;
}

.process-step--visible .process-step__badge {
    opacity: 1;
    transform: translateY(0);
}

.process-step__text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.75;
    max-width: 400px;
    position: relative;
}

.process-step--odd .process-step__text {
    margin-left: auto;
}

/* Screen reader only */
.process-timeline .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;
}

/* ---------- Process CTA ---------- */
.process-cta {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: var(--color-primary-dark);
    color: var(--color-warm-white);
    text-align: center;
    overflow: hidden;
}

.process-cta__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.process-cta__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.process-cta__glow--1 {
    width: 400px;
    height: 400px;
    background: rgba(138, 116, 117, 0.15);
    top: -100px;
    right: -50px;
}

.process-cta__glow--2 {
    width: 300px;
    height: 300px;
    background: rgba(157, 171, 168, 0.12);
    bottom: -80px;
    left: -40px;
}

@keyframes ctaGlowPulse {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.2; }
}

.process-cta__glow {
    animation: ctaGlowPulse 4s ease-in-out infinite;
}

.process-cta__glow--2 {
    animation-delay: 2s;
}

.process-cta__inner {
    position: relative;
    z-index: 1;
}

.process-cta__eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-tertiary-light);
    margin-bottom: var(--space-sm);
}

.process-cta__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-xs);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.process-cta__text {
    font-size: var(--text-sm);
    opacity: 0.75;
    max-width: 400px;
    margin: 0 auto var(--space-md);
    line-height: 1.7;
}

.process-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    background: var(--color-warm-white);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: var(--text-xs);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.process-cta__btn:hover {
    background: var(--color-secondary);
    color: var(--color-warm-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 30px rgba(157, 171, 168, 0.3);
}

.process-cta__btn svg {
    transition: transform var(--duration-normal) var(--ease-out);
}

.process-cta__btn:hover svg {
    transform: translateX(4px);
}

/* CTA staggered reveal */
.process-cta__inner .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(var(--reveal-delay, 0) * 150ms);
}

.process-cta__inner .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-cta__eyebrow.reveal {
    transform: translateY(-15px);
}

.process-cta__eyebrow.reveal.visible {
    transform: translateY(0);
}

/* ---------- Process Timeline Responsive ---------- */
@media (max-width: 767px) {
    .process-hero {
        min-height: 400px;
        padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-lg);
    }

    .process-hero__shape--1 {
        width: 250px;
        height: 250px;
    }

    .process-hero__shape--2 {
        width: 160px;
        height: 160px;
    }

    .process-hero__title {
        gap: 0 0.2em;
    }

    .process-hero__steps-hint {
        margin-top: var(--space-sm);
    }

    .process-timeline__grid {
        grid-template-columns: 30px 1fr;
        grid-auto-flow: dense;
    }

    /* Hide spacers on mobile */
    .process-step__spacer {
        display: none;
    }

    /* All steps go to column 2 on mobile */
    .process-step {
        grid-column: 2 !important;
        text-align: left !important;
        padding: var(--space-lg) 0;
    }

    .process-step--odd,
    .process-step--even {
        transform: translateY(30px);
    }

    .process-step--visible {
        transform: translateY(0);
    }

    /* Timeline always column 1 on mobile */
    .process-timeline__center {
        grid-column: 1 !important;
    }

    .process-timeline__dot {
        width: 12px;
        height: 12px;
    }

    .process-timeline__center::before {
        height: 20px;
    }

    .process-step--odd .process-step__icon,
    .process-step--even .process-step__icon {
        justify-content: flex-start;
    }

    .process-step__icon-circle {
        width: 56px;
        height: 56px;
    }

    .process-step__svg {
        width: 22px;
        height: 22px;
    }

    .process-step--odd .process-step__text {
        margin-left: 0;
    }

    .process-step__watermark {
        font-size: 4rem;
    }

    .process-step--odd .process-step__watermark {
        left: auto;
        right: 0;
    }

    .process-cta {
        padding: var(--space-xl) 0;
    }

    .process-cta__title {
        font-size: var(--text-lg);
    }

    .process-cta__text {
        font-size: var(--text-xs);
        margin-bottom: var(--space-sm);
    }

    .process-cta__btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .process-step {
        padding: var(--space-2xl) var(--space-lg);
    }
}

/* ---------- Process Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .process-hero__shape { animation: none; }
    .process-hero__arrow { animation: none; }
    .process-hero__word {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .process-hero__divider {
        width: 60px;
        transition: none;
    }
    .process-step {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .process-step__icon-circle {
        opacity: 1;
        transform: none;
    }
    .process-step--visible .process-step__icon-circle {
        animation: none;
        transform: scale(1);
        opacity: 1;
    }
    .process-step__svg path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        transition: none;
    }
    .process-step__watermark {
        opacity: 0.07;
        transform: none;
        transition: none;
    }
    .process-step__badge {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .process-timeline__dot {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .process-timeline__line {
        transform: scaleY(1);
        transition: none;
    }
    .process-cta__glow { animation: none; }
    .process-cta__inner .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Desktop Client Fixes
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    /* Contact form - smaller overall */
    .appointment__form {
        padding: var(--space-lg);
    }

    .wpcf7 .form-grid {
        gap: var(--space-sm);
    }

    .wpcf7 .form-group label {
        font-size: var(--text-xs);
        margin-bottom: 0.25rem;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 input[type="date"],
    .wpcf7 input[type="url"],
    .wpcf7 select,
    .wpcf7 textarea {
        padding: 0.55rem 0.75rem;
        font-size: var(--text-xs);
    }

    .wpcf7 textarea {
        min-height: 90px;
    }

    .wpcf7 input[type="submit"] {
        padding: 0.6rem var(--space-lg);
        font-size: var(--text-xs);
    }

    /* Service cards - smaller overall */
    .service-card {
        padding: var(--space-md);
    }

    .service-card__icon {
        width: 44px;
        height: 44px;
    }

    .service-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .service-card__number {
        font-size: var(--text-3xl);
    }

    .service-card__title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-xs);
    }

    .service-card__list {
        margin-bottom: var(--space-xs);
    }

    .service-card__list li {
        font-size: var(--text-xs);
        padding-left: var(--space-sm);
    }

    .service-card__link {
        font-size: var(--text-xs);
    }
}

/* --------------------------------------------------------------------------
   Mobile Client Fixes
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* 1. All buttons smaller on mobile */
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    .btn--large {
        padding: 0.5rem 1.4rem;
        font-size: 0.85rem;
    }

    .featured-service__ctas .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }

    /* 2. Form fields same height - normalize select to match inputs */
    .wpcf7 select,
    .form-group select {
        height: 48px;
        padding: 0.75rem;
        font-size: var(--text-sm);
        -webkit-appearance: none;
        appearance: none;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 input[type="date"],
    .wpcf7 input[type="url"],
    .form-group input,
    .form-group select {
        height: 48px;
    }

    /* 3. Submit button smaller */
    .wpcf7 input[type="submit"] {
        padding: 0.55rem 1.2rem;
        font-size: 0.8rem;
    }

    /* 4. Footer legal links smaller */
    .footer__legal-link {
        font-size: 0.75rem;
    }

    /* 5. Why Us section text smaller */
    .values__title {
        font-size: var(--text-3xl);
    }

    .values__subtitle {
        font-size: var(--text-sm);
    }
}
