/*
Theme Name: The Human Hub
Theme URI: https://github.com/tuxsoumi/the-human-hub
Author: Tuxsoumi
Description: Block Theme for The Human Hub, editable with Gutenberg and aligned with original site design.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.12
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-human-hub
Tags: block-patterns, full-site-editing, one-column, custom-logo
*/

/* Design tokens from original Next.js site */
:root {
  --background: #F7F5F3;
  --foreground: hsl(30, 10%, 15%);
  --primary: hsl(30, 30%, 25%);
  --primary-foreground: hsl(40, 20%, 96%);
  --secondary: hsl(35, 25%, 90%);
  --muted: hsl(35, 15%, 92%);
  --muted-foreground: hsl(30, 8%, 45%);
  --accent: hsl(30, 55%, 50%);
  --accent-foreground: #fff;
  --border: hsl(30, 15%, 85%);
  --card: #fff;
  --radius: 0.5rem;
  --thh-internal-block-gap: 1.25rem;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
}

/* Cursive text utility */
.cursive-text,
.love,
.create-life-cursive {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container.narrow {
  max-width: 32rem;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Testimonials highlights block */
.section-block {
  padding: 4rem 0;
  background: var(--background);
}

.h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.6rem;
  color: var(--foreground);
  text-align: center;
}

.lead {
  margin: 0 0 2rem;
  color: var(--muted-foreground);
  text-align: center;
  font-size: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.2rem;
  position: relative;
}

.section-block .grid-3 .card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(44, 36, 28, 0.08);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}

.section-block .grid-3 .card:hover,
.section-block .grid-3 .card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 24px 46px rgba(44, 36, 28, 0.12);
}

.section-block .grid-3 .card:nth-child(3n+1) {
  background: linear-gradient(135deg, #9f7254 0%, #c18d69 100%);
}

.section-block .grid-3 .card:nth-child(3n+2) {
  background: linear-gradient(135deg, #bb8e9a 0%, #d2c1bb 100%);
}

.section-block .grid-3 .card:nth-child(3n) {
  background: linear-gradient(135deg, #decfb1 0%, #cfc3a2 100%);
}

.quote {
  margin: 0 0 0.9rem;
  color: var(--foreground);
  line-height: 1.55;
  font-size: 0.95rem;
}

.author {
  color: var(--muted-foreground);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.section-block .grid-3 .card:nth-child(3n+1) .quote,
.section-block .grid-3 .card:nth-child(3n+1) .author {
  color: rgba(255, 255, 255, 0.96);
}

.section-block .grid-3 .card:nth-child(3n+2) .quote,
.section-block .grid-3 .card:nth-child(3n+2) .author,
.section-block .grid-3 .card:nth-child(3n) .quote,
.section-block .grid-3 .card:nth-child(3n) .author {
  color: rgba(61, 61, 61, 0.92);
}

.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity 0.2s;
}

.section-block .btn.btn-primary {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

.btn.btn-primary:hover {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.20) 50%,
    rgba(0, 0, 0, 0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  color: white;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-balance: balance;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* WordPress block layout compatibility */
.wp-site-blocks {
  padding-top: 0;
  padding-bottom: 0;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.home .wp-block-post-content.is-layout-flow > * + * {
  margin-block-start: 0;
}

.home .wp-block-post-content.is-layout-flow > * {
  margin-block-end: 0;
}

/* Keep consistent spacing between top-level blocks on internal pages */
body.page:not(.home) .wp-block-post-content.is-layout-flow > * + *,
body.page:not(.home) .wp-block-post-content.is-layout-constrained > * + *,
body.thh-page-internal .wp-block-post-content.is-layout-flow > * + *,
body.thh-page-internal .wp-block-post-content.is-layout-constrained > * + * {
  margin-block-start: var(--thh-internal-block-gap);
}

body.page:not(.home) .wp-block-post-content.is-layout-flow > *,
body.page:not(.home) .wp-block-post-content.is-layout-constrained > *,
body.thh-page-internal .wp-block-post-content.is-layout-flow > *,
body.thh-page-internal .wp-block-post-content.is-layout-constrained > * {
  margin-block-end: 0;
}

.wp-block-template-part {
  margin-block-start: 0;
}

.alignfull,
.wp-block-group.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.hero.wp-block-group {
  padding: 0 !important;
}

.hero .wp-block-image,
.hero .wp-block-image img {
  width: 100%;
  height: 100%;
}

.hero .wp-block-image {
  margin: 0;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.hero-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-mouse {
  width: 24px;
  height: 48px;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 4px;
}

.scroll-wheel {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(16px);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-scroll-indicator {
    display: none;
  }
}

/* Welcome */
.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.welcome-left {
  background: linear-gradient(135deg, #9b745f 0%, #b69179 100%);
  color: #fff8f1;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.welcome-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.philosophy-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.welcome-left p {
  opacity: 0.92;
  font-size: 0.875rem;
  max-width: 28rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.btn-outline {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  width: fit-content;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.welcome-right {
  background: var(--secondary);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tags {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.create-life {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.love {
  font-size: clamp(3rem, 7vw, 5rem);
  display: block;
  background: linear-gradient(135deg, #c9a227 0%, #d4af37 25%, #b8860b 50%, #daa520 75%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.action-words {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 1.5rem;
}

.action-words span {
  cursor: pointer;
  transition: color 0.2s;
}

.action-words span:hover {
  color: var(--foreground);
}

/* Specialties Services section */
.specialties-services {
  background: var(--background);
  padding: 5rem 1.5rem;
}

.specialties-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
}

.specialties-services-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.create-life-main-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.create-life-cursive {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--accent);
  margin: 0 0 2rem;
  line-height: 1.3;
}

.specialties-services-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0.75rem 0 1rem;
  line-height: 1.2;
  text-balance: balance;
}

.specialties-services-intro {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 32rem;
  margin: 0;
}

.specialties-services-goals {
  display: flex;
  align-items: center;
  justify-content: center;
}

.goals-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.goal-item:hover {
  background: var(--secondary);
  border-color: var(--primary);
  transform: translateX(4px);
}

.goal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.goal-item span {
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .specialties-services-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .welcome {
    grid-template-columns: 1fr;
  }

  .specialties-services {
    padding: 3rem 1.5rem;
  }

  .goals-grid {
    gap: 0.75rem;
  }

  .goal-item {
    padding: 0.875rem;
  }

  .goal-item span {
    font-size: 0.875rem;
  }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--foreground);
}

/* Desktop dropdown */
.nav-has-dropdown {
  position: relative;
}

.nav-has-dropdown > a::after {
  content: " ▾";
  font-size: 0.65em;
  opacity: 0.7;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}

.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--accent);
  background: var(--secondary);
}

/* Mobile dropdown */
.nav-dropdown-mobile .nav-dropdown-trigger {
  display: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem 0;
  font-family: inherit;
}

.nav-dropdown-mobile .nav-dropdown-trigger:hover {
  color: var(--foreground);
}

.nav-dropdown-mobile .nav-dropdown-trigger::after {
  content: " ›";
  font-size: 1rem;
  transition: transform 0.2s;
}

.nav-dropdown-mobile.open .nav-dropdown-trigger::after {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .nav-dropdown-mobile .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.25rem 0 0.5rem 1rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown-mobile.open .nav-dropdown {
    max-height: 300px;
  }

  .nav-dropdown-mobile .nav-dropdown-trigger {
    display: block;
  }

  .nav-dropdown-mobile .nav-dropdown a {
    padding: 0.35rem 0;
    font-size: 0.8125rem;
  }
}

@media (min-width: 769px) {
  .nav-dropdown-mobile .nav-dropdown-trigger {
    display: none;
  }
}

.nav-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-nav-outline {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: background 0.2s;
}

.btn-nav-outline:hover {
  background: var(--secondary);
}

.btn-nav-filled {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: opacity 0.2s;
}

.btn-nav-filled:hover {
  opacity: 0.9;
}

/* Gutenberg compatibility: keep filled button style identical when used as
   wp:button with wrapper class "btn-nav-filled" (e.g., What people say CTA). */
.wp-block-button.btn-nav-filled .wp-block-button__link {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: opacity 0.2s;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.wp-block-button.btn-nav-filled .wp-block-button__link:hover {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: var(--foreground);
}

.nav-toggle .icon-close {
  display: none;
}

.navbar.open .nav-toggle .icon-menu {
  display: none;
}

.navbar.open .nav-toggle .icon-close {
  display: inline;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 1rem 1rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile ul a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-mobile ul a:hover {
  color: var(--foreground);
}

.nav-mobile .btn-nav-outline,
.nav-mobile .btn-nav-filled {
  text-align: center;
  display: block;
}

.navbar.open .nav-mobile {
  display: flex;
}

@media (min-width: 769px) {
  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .nav-links.desktop,
  .nav-buttons.desktop {
    display: none !important;
  }

  .nav-toggle {
    display: block;
  }
}

/* Specialties */
.specialties {
  padding: 5rem 0;
  background: var(--background);
}

.specialties .container {
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .specialties .container {
    padding: 0 2rem;
  }
}

.specialties-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.specialties-header .specialties-intro {
  margin-left: auto;
  margin-right: auto;
}

.specialties-checklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 36rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}

.specialties-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.specialties-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.specialties-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.specialty-card {
  background: linear-gradient(135deg, #f5ede5 0%, #f0e4dc 100%);
  border: 2px solid #d4bdb5;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(139, 111, 96, 0.08);
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(139, 111, 96, 0.15);
  border-color: #a77757;
}

.specialty-card-alt {
  background: linear-gradient(135deg, #e8d5c4 0%, #dfc9b8 100%);
  border-color: #c1a48f;
}

.specialty-card-alt:hover {
  border-color: #8f6a60;
  box-shadow: 0 12px 28px rgba(160, 120, 100, 0.2);
}

.specialty-card-featured {
  padding: 1.5rem;
  background: linear-gradient(135deg, #c1a48f 0%, #b89299 100%);
  border-color: #a77757;
  color: white;
  height: 340px;
}

.specialty-card-featured:hover {
  box-shadow: 0 12px 28px rgba(167, 119, 87, 0.25);
  border-color: #8f6a60;
}

.specialty-card-featured h3,
.specialty-card-featured p,
.specialty-card-featured .specialty-link {
  color: white;
}

.specialty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  color: var(--foreground);
  background: rgba(139, 111, 96, 0.08);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.specialty-card:hover .specialty-icon {
  background: rgba(139, 111, 96, 0.15);
  transform: scale(1.1);
}

.specialty-card-featured .specialty-icon {
  background: rgba(255, 255, 255, 0.2);
}

.specialty-card-featured:hover .specialty-icon {
  background: rgba(255, 255, 255, 0.3);
}

.specialty-icon svg,
.specialty-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: sepia(0.4) hue-rotate(15deg) saturate(1.2) brightness(0.95);
}

.specialty-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.5rem;
}

.specialty-card p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.specialty-link {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8f6a60;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid #8f6a60;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.specialty-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}

.specialty-card:hover .specialty-link {
  background: #8f6a60;
  color: white;
  text-decoration: none;
}

.specialty-card-featured .specialty-link {
  color: white;
  border-color: white;
}

.specialty-card-featured:hover .specialty-link {
  background: white;
  color: #8f6a60;
}

.specialty-card-featured h3 {
  font-size: 1.125rem;
}

.specialties-coach-wrap {
  display: flex;
  justify-content: center;
}

.specialties-coach-wrap .coach-image-wrap {
  max-width: 400px;
}

.specialties-packages-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.specialties-packages-cta .btn-nav-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Impact / Research section */
.impact-section {
  padding: 4rem 0;
  background: var(--background);
}

.impact-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.impact-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.impact-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  line-height: 1.2;
}

.impact-intro {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

.impact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.impact-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.impact-card-deco {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.impact-card-dark .impact-card-deco {
  background: rgba(255, 255, 255, 0.12);
}

.impact-card-accent .impact-card-deco,
.impact-card-light .impact-card-deco,
.impact-card-taupe .impact-card-deco {
  background: rgba(0, 0, 0, 0.05);
}

.impact-percent {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.impact-card-dark .impact-percent {
  color: white !important;
}

.impact-card-accent .impact-percent,
.impact-card-light .impact-percent,
.impact-card-taupe .impact-percent {
  color: inherit;
}

.impact-category {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.impact-card-dark .impact-category {
  color: inherit;
  opacity: 0.95;
}

.impact-card-accent .impact-category,
.impact-card-light .impact-category,
.impact-card-taupe .impact-category {
  color: #3d3d3d;
  opacity: 0.9;
}

.impact-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

.impact-card-dark p {
  color: white !important;
}

.impact-card-accent p,
.impact-card-light p,
.impact-card-taupe p {
  color: rgba(61, 61, 61, 0.85);
}

.impact-card-dark {
  background: linear-gradient(135deg, #9f7254 0%, #c18d69 100%);
  color: white;
}

.impact-card-accent {
  background: linear-gradient(135deg, #bb8e9a 0%, #d2c1bb 100%);
  color: #3d3d3d;
}

.impact-card-light {
  background: linear-gradient(135deg, #decfb1 0%, #cfc3a2 100%);
  color: #3d3d3d;
  border: none;
}

.impact-card-taupe {
  background: linear-gradient(135deg, #c4b8ab 0%, #cdcac3 100%);
  color: #3d3d3d;
}

.impact-cards-three {
  max-width: 70rem;
  margin: 0 auto;
}

.impact-cards-three .impact-card {
  height: 100%;
}

.impact-cards-three .impact-percent {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.1;
}

.impact-cards-three .impact-percent-compact {
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.packages-panel {
  overflow: hidden;
}

.packages-testimonials-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.5rem;
}

.packages-testimonials-block .h2 {
  text-align: left;
  margin-bottom: 1.25rem;
}

.packages-testimonials-block .btn.btn-primary {
  margin-top: 0.5rem;
}

.packages-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.package-card {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.package-tier-top {
  padding: 1rem 1rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(76, 62, 48, 0.16);
}

.package-tier-name {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.package-tier-price {
  margin: 0.25rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

.package-tier-note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.75);
}

.package-tier-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.package-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.2;
}

.package-meta,
.package-features {
  margin: 0;
  padding-left: 1.05rem;
}

.package-meta li,
.package-features li {
  margin-bottom: 0.35rem;
}

.package-for {
  margin: 0;
  line-height: 1.45;
  color: #1f1f1f;
}

.package-meta li:last-child,
.package-features li:last-child {
  margin-bottom: 0;
}

.pkg-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d3d3d;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(76, 62, 48, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.package-cta {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(76, 62, 48, 0.26);
  background: rgba(255, 255, 255, 0.52);
  color: #2b221a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-cta:hover {
  background: rgba(255, 255, 255, 0.7);
}

.package-card-starter {
  background: linear-gradient(135deg, #ead8cd 0%, #e3d2c7 100%);
}

.package-card-momentum {
  background: linear-gradient(135deg, #e4dcc1 0%, #ddd5b8 100%);
}

.package-card-transform {
  background: linear-gradient(135deg, #d2c1bb 0%, #c4b8ab 100%);
}

@media (max-width: 900px) {
  .packages-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .impact-header {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 640px) {
  .impact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .impact-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .impact-cards.impact-cards-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
  }
}

@media (min-width: 640px) {
  .specialties-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specialty-card-featured {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .specialties-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .specialty-card-featured {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.specialties h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0.75rem 0 1.25rem;
  color: var(--foreground);
}

.specialties-intro {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 28rem;
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item.service-link {
  text-decoration: none;
  transition: background 0.2s;
}

.service-item.service-link:hover {
  background: rgba(0, 0, 0, 0.02);
}

.service-item .icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: hsla(30, 55%, 50%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.service-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--foreground);
}

.service-item p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

.coach-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--muted);
}

.coach-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
}

.badge-num {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

.badge p {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0;
}

@media (min-width: 769px) {
  .specialties-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Ways of Working */
.ways {
  padding: 5rem 0;
  background: var(--secondary);
}

.ways .container {
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .ways .container {
    padding: 0 2rem;
  }
}

.ways-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0.75rem 0 1.5rem;
}

.ways-list {
  list-style: none;
  margin: 0 auto 2.5rem;
  padding: 0;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ways-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.ways-list .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.ways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.way-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.way-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}

.way-card-alt {
  background: var(--background);
}

.way-card-featured {
  padding: 2rem;
  grid-column: 1;
}

.way-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--foreground);
}

.way-icon svg {
  width: 100%;
  height: 100%;
}

.way-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.5rem;
}

.way-link {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.way-card-featured h3 {
  font-size: 1.125rem;
}

@media (min-width: 640px) {
  .ways-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .way-card-featured {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .ways-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .way-card-featured {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Experience */
.experience {
  padding: 5rem 0;
  background: var(--secondary);
}

.experience .label {
  display: block;
  margin-bottom: 0.5rem;
}

.experience h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--foreground);
}

.experience-intro {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  max-width: 32rem;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.cert-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.cert-logo {
  max-width: 140px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.cert-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--foreground);
}

.cert-org {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.cert-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cert-logo {
    max-width: 160px;
  }
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: var(--background);
}

.contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--foreground);
}

.contact-intro {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-form,
.wpcf7-form {
  display: flex !important;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  max-width: 28rem;
  margin: 0 auto;
}

.wpcf7-form p {
  margin: 0;
  padding: 0;
}

.contact-form label,
.wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.contact-form input:not([type="submit"]),
.contact-form textarea,
.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
}

.contact-form input:not([type="submit"])::placeholder,
.contact-form textarea::placeholder,
.wpcf7-form input:not([type="submit"])::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.contact-form input:not([type="submit"]):focus,
.contact-form textarea:focus,
.wpcf7-form input:not([type="submit"]):focus,
.wpcf7-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsla(30, 55%, 50%, 0.4);
}

.contact-form textarea,
.wpcf7-form textarea {
  resize: none;
}

.contact-form button,
.wpcf7-form input[type="submit"] {
  background: var(--accent) !important;
  color: var(--accent-foreground) !important;
  padding: 0.75rem 2rem !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  margin: 0 auto !important;
  display: block !important;
  transition: opacity 0.2s;
  width: auto !important;
}

.contact-form button:hover,
.wpcf7-form input[type="submit"]:hover {
  opacity: 0.9 !important;
}

.thank-you {
  background: hsla(30, 55%, 50%, 0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 28rem;
  margin: 0 auto;
}

.thank-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--foreground);
}

.thank-you p:last-child {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.worked-with {
  padding: 2.75rem 0 2.25rem;
  background: #f8f3ef;
  border-top: 1px solid var(--border);
}

.worked-with-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.worked-with-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--foreground);
  text-align: center;
}

.worked-with-logos {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.worked-with-logo {
  width: auto;
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #ad8871;
  color: #fff7f1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr)) 1.2fr;
  gap: 2.5rem;
  padding: 3rem 1rem 2.5rem;
  align-items: start;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff7f1;
}

.footer-brand .tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
  width: 120px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff1e6;
}

.footer-col a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s, background 0.2s;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-cert-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-cert-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-cert-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.footer-cert-subtitle {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.footer .copyright,
.footer-made {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.footer-love {
  font-size: 1rem;
  color: #fff1e6;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .worked-with {
    padding: 2.25rem 0 2rem;
  }

  .worked-with-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
  }

  .worked-with-logo {
    width: 160px;
    height: 60px;
    max-width: none;
    max-height: none;
  }

  .worked-with-logos .worked-with-logo:last-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .worked-with {
    padding: 2rem 0 1.8rem;
  }

  .worked-with-title {
    font-size: 1.4rem;
  }

  .worked-with-logos {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .worked-with-logos .worked-with-logo:last-child {
    grid-column: auto;
  }

  .worked-with-logo {
    width: 150px;
    height: 56px;
    max-width: none;
    max-height: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Site map */
.sitemap-section {
  padding: 4rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.sitemap-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin: 0 0 2.5rem;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.sitemap-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sitemap-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s;
}

.sitemap-heading:hover {
  color: var(--accent);
}

.sitemap-sublist {
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
}

.sitemap-sublist li {
  margin-bottom: 0.35rem;
}

.sitemap-sublist a {
  font-size: 0.875rem;
  color: var(--foreground);
  transition: color 0.2s;
}

.sitemap-sublist a:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .sitemap-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Subpages */
.subpage-content {
  padding: 4rem 0 6rem;
  min-height: 60vh;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.breadcrumb [aria-current="page"] {
  color: var(--foreground);
  font-weight: 500;
}

.subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 1rem;
}

.subpage-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.subpage-body p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.subpage-body .btn-hero {
  margin-top: 1rem;
  display: inline-block;
}

/* Philosophy page */
.philosophy-page {
  padding-top: 3rem;
}

.philosophy-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.philosophy-hero-copy {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.philosophy-hero-copy .subpage-title {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.philosophy-hero-copy p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.philosophy-framework-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  min-height: 250px;
  margin: 0.5rem 0 2rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.philosophy-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diagram-definition {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-align: center;
}

.coaching-model-wrap {
  flex-direction: column;
}

.philosophy-diagram-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 430px;
  overflow: hidden;
}

.banner-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 4.1vw, 2.7rem);
  font-weight: 800;
  margin: 0;
  color: #C68039;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 90%;
}

.service-banner {
  position: relative;
  min-height: clamp(170px, 24vw, 260px);
  padding: 1.5rem;
  background: url('images/textu_bann.png') center / cover no-repeat;
}

@media (max-width: 640px) {
  .service-banner {
    min-height: 150px;
    padding: 1rem;
    background-position: center;
  }

  .service-banner .banner-title {
    width: 94%;
    font-size: clamp(1.55rem, 7.4vw, 2.1rem);
  }
}

.hex-diagram {
  position: relative;
  width: 480px;
  height: 400px;
  max-width: 100%;
}

.hex {
  position: absolute;
  width: 140px;
  height: 156px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 0.75rem;
  font-weight: 500;
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--foreground);
  background: linear-gradient(180deg, #e2d6c8 0%, #d5c7b7 100%);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.hex:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.03);
  z-index: 3;
}

.hex-label {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
}

.hex-icon {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  opacity: 0.9;
}

.hex-mentor {
  left: 95px;
  top: 0;
  background: linear-gradient(135deg, #b48666 0%, #9f7254 100%);
  color: white;
}

.hex-counsel {
  left: 245px;
  top: 0;
  background: linear-gradient(135deg, #bb8e9a 0%, #d2c1bb 100%);
  color: white;
}

.hex-teach {
  left: 20px;
  top: 122px;
  background: linear-gradient(135deg, #cfc3a2 0%, #decfb1 100%);
  color: #3d3d3d;
}

.hex-coach {
  left: 170px;
  top: 122px;
  background: linear-gradient(135deg, #9f7254 0%, #c18d69 100%);
  color: white;
  z-index: 2;
}

.hex-facilitate {
  left: 320px;
  top: 122px;
  background: linear-gradient(135deg, #decfb1 0%, #cfc3a2 100%);
  color: #3d3d3d;
}

.hex-advise {
  left: 170px;
  top: 244px;
  background: linear-gradient(135deg, #d2c1bb 0%, #bb8e9a 100%);
  color: white;
}

.coach-photo-slot {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 0;
  height: 100%;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Keep the logo column width consistent with Ways of Working even when Gutenberg
   injects constrained layout classes on the packages page. */
.ways-hero > .coach-photo-slot,
.ways-hero > .coach-photo-slot.is-layout-constrained,
.ways-hero > .coach-photo-slot.wp-block-group-is-layout-constrained {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  align-self: stretch;
}

.coach-photo-slot .wp-block-image {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
}

.coach-photo-slot img {
  width: min(88%, 460px);
  aspect-ratio: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0.5rem;
  margin: 0 auto;
  max-height: 360px;
}

.coach-photo-slot figcaption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--foreground);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

.coach-photo-slot.is-empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-style: dashed;
  border-width: 2px;
}

.coach-photo-slot.is-empty::before {
  content: "Agregar imagen en images/coach-portrait.jpg";
  font-size: 0.8rem;
  color: var(--foreground);
  opacity: 0.75;
}

.coach-photo-slot.is-empty figcaption {
  margin-top: 0.35rem;
}

.philosophy-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.philosophy-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.philosophy-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
  color: var(--foreground);
}

.philosophy-panel p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.philosophy-panel-wide {
  grid-column: span 2;
}

.page-transformational-coaching .philosophy-hero {
  margin-bottom: 1rem;
}

.page-transformational-coaching .philosophy-panel.philosophy-panel-wide {
  margin-top: 0;
}

.page-id-138 .subpage-content {
  padding-bottom: 9rem !important;
}

.page-id-138 .philosophy-panel.philosophy-panel-wide:last-of-type {
  margin-top: 2rem !important;
  margin-bottom: 4rem !important;
}

.retreat-poster-link {
  display: flex;
  justify-content: center;
}

.retreat-poster {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 0.6rem;
  display: block;
}

.retreat-poster-actions {
  margin-top: 0.75rem;
  text-align: center;
}

.retreat-poster-actions a,
.retreat-lightbox-actions a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-foreground);
  font-weight: 600;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.retreat-poster-actions a:hover,
.retreat-lightbox-actions a:hover {
  background: #c77a3b;
  color: var(--accent-foreground);
}

.retreat-lightbox-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.philosophy-panel-logos {
  text-align: center;
}

.philosophy-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  align-items: center;
  justify-items: center;
  margin-top: 0.75rem;
}

.philosophy-logo {
  width: 100%;
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
}

.philosophy-panel .btn-hero {
  margin-top: 0.5rem;
  display: inline-flex;
}

@media (max-width: 980px) {
  .philosophy-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .philosophy-framework-box {
    min-height: 0;
    margin: 0.5rem 0 1.5rem;
    padding: 0.75rem;
  }

  .hex-diagram {
    width: 480px;
    height: 300px;
    transform: scale(0.66);
    transform-origin: top center;
  }

  .hex {
    font-size: 0.78rem;
  }

  .hex-icon {
    width: 24px;
    height: 24px;
  }

  .hex-label {
    font-size: 0.96rem;
  }

  .philosophy-panels {
    grid-template-columns: 1fr;
  }

  .philosophy-panel-wide {
    grid-column: span 1;
  }

  .retreat-poster {
    max-width: 260px;
  }

  .philosophy-logos {
    grid-template-columns: 1fr;
  }

  .philosophy-logo {
    max-width: 170px;
    max-height: 64px;
  }
}

/* Ways of Working page */
.ways-page {
  padding-top: 3rem;
}

.ways-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ways-hero-copy,
.ways-hero-graphic,
.ways-method,
.ways-gallery {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.ways-hero-copy {
  padding: 1.5rem;
}

.ways-hero-graphic {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.wow-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
  max-width: 780px;
  flex-wrap: nowrap;
}

.wow-chain-circle {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 1.35rem 1rem 0.95rem;
  border: 3px solid transparent;
  box-shadow: none;
  margin: 0 0 0 -4px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.wow-chain-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -33px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 33px solid transparent;
  border-bottom: 33px solid transparent;
  border-left: 33px solid var(--wow-stroke-color);
}

.wow-chain-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 28px solid transparent;
  border-bottom: 28px solid transparent;
  border-left: 28px solid var(--wow-fill-color);
}

.wow-chain-circle:first-child {
  margin-left: 0;
}

.wow-chain-circle:not(:first-child) {
  padding-left: 1.25rem;
}

.wow-chain-circle:last-child::after {
  display: none;
}

.wow-chain-circle:last-child::before {
  display: none;
}

.wow-chain-circle:hover {
  z-index: 5;
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.wow-chain-1 {
  --wow-stroke-color: #8f6a60;
  --wow-fill-color: #d4c2bb;
  background: var(--wow-fill-color);
  border-color: var(--wow-stroke-color);
  color: #3c2f28;
  z-index: 4;
}

.wow-chain-2 {
  --wow-stroke-color: #a77757;
  --wow-fill-color: #d8c6a6;
  background: var(--wow-fill-color);
  border-color: var(--wow-stroke-color);
  color: #3f3028;
  z-index: 3;
}

.wow-chain-3 {
  --wow-stroke-color: #9f8777;
  --wow-fill-color: #c4b6a8;
  background: var(--wow-fill-color);
  border-color: var(--wow-stroke-color);
  color: #3e342e;
  z-index: 2;
}

.wow-chain-4 {
  --wow-stroke-color: #b89299;
  --wow-fill-color: #c3afa0;
  background: var(--wow-fill-color);
  border-color: var(--wow-stroke-color);
  color: #4a3c34;
  z-index: 1;
}

.wow-chain-label {
  line-height: 1.24;
  font-weight: 700;
  color: #2f241e;
}

.wow-chain-arrow {
  display: none;
}

.ways-method,
.ways-gallery {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.ways-method {
  background: var(--card);
}

.ways-method-head h2,
.ways-gallery-head h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.ways-method-head p,
.ways-gallery-head p {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.wow-process-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wow-process-step {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--background);
  padding: 0.85rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(20px);
  animation: step-fade-in 0.6s ease forwards;
}

.wow-process-step:nth-child(1) { animation-delay: 0.1s; }
.wow-process-step:nth-child(3) { animation-delay: 0.25s; }
.wow-process-step:nth-child(5) { animation-delay: 0.4s; }
.wow-process-step:nth-child(7) { animation-delay: 0.55s; }

@keyframes step-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wow-process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.wow-process-step:nth-child(1) {
  background: linear-gradient(135deg, #e8d5c4 0%, #dfc9b8 100%);
  border-color: #c1a48f;
}

.wow-process-step:nth-child(1) .wow-step-num {
  background: rgba(255, 255, 255, 0.45);
  color: #5a4034;
}

.wow-process-step:nth-child(3) {
  background: linear-gradient(135deg, #f5ede5 0%, #f0e4dc 100%);
  border-color: #d4bdb5;
}

.wow-process-step:nth-child(3) .wow-step-num {
  background: rgba(167, 119, 87, 0.15);
  color: #7b5a49;
}

.wow-process-step:nth-child(5) {
  background: linear-gradient(135deg, #e8d5c4 0%, #dfc9b8 100%);
  border-color: #c1a48f;
}

.wow-process-step:nth-child(5) .wow-step-num {
  background: rgba(255, 255, 255, 0.45);
  color: #5a4034;
}

.wow-process-step:nth-child(7) {
  background: linear-gradient(135deg, #c1a48f 0%, #b89299 100%);
  border-color: #a77757;
  color: #fff;
}

.wow-process-step:nth-child(7) .wow-step-num {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.wow-process-step:nth-child(7) h3,
.wow-process-step:nth-child(7) p {
  color: #fff;
}

.wow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 9999px;
  background: hsla(30, 55%, 50%, 0.14);
  color: var(--foreground);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.wow-process-step:hover .wow-step-num {
  transform: scale(1.15) rotate(5deg);
}

.wow-process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.wow-process-step:hover h3 {
  color: var(--accent);
}

.wow-process-step p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.wow-process-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 700;
  animation: arrow-pulse 2s ease-in-out infinite;
  opacity: 0;
  animation: arrow-fade-in 0.5s ease forwards, arrow-pulse 2s ease-in-out 0.7s infinite;
}

.wow-process-arrow:nth-of-type(2) { animation-delay: 0.2s, 0.9s; }
.wow-process-arrow:nth-of-type(4) { animation-delay: 0.35s, 1.1s; }
.wow-process-arrow:nth-of-type(6) { animation-delay: 0.5s, 1.3s; }

@keyframes arrow-fade-in {
  to { opacity: 0.7; }
}

@keyframes arrow-pulse {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

.wow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wow-chip {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.wow-chip.is-active {
  border-color: var(--accent);
  background: hsla(30, 55%, 50%, 0.12);
}

.wow-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wow-topic-card {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--background);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wow-topic-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.wow-topic-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.wow-topic-card.is-active {
  background: hsla(30, 55%, 50%, 0.12);
  border-color: var(--accent);
}

.philosophy-panel.ways-method {
  background: var(--card);
}

.philosophy-panel.ways-method .wow-topic-card,
.philosophy-panel.ways-method .wow-panel {
  background: var(--card);
}

.philosophy-panel.ways-method .wow-topic-card {
  border: 2px solid #d4bdb5;
  box-shadow: 0 4px 15px rgba(139, 111, 96, 0.08);
}

.philosophy-panel.ways-method .wow-topic-card[data-wow-theme="line-1"],
.philosophy-panel.ways-method .wow-panel[data-wow-theme="line-1"] {
  background: linear-gradient(135deg, #f5ede5 0%, #f0e4dc 100%);
  border-color: #d4bdb5;
  color: var(--foreground);
}

.philosophy-panel.ways-method .wow-topic-card[data-wow-theme="line-2"],
.philosophy-panel.ways-method .wow-panel[data-wow-theme="line-2"] {
  background: linear-gradient(135deg, #e8d5c4 0%, #dfc9b8 100%);
  border-color: #c1a48f;
  color: var(--foreground);
}

.philosophy-panel.ways-method .wow-topic-card[data-wow-theme="line-3"],
.philosophy-panel.ways-method .wow-panel[data-wow-theme="line-3"] {
  background: linear-gradient(135deg, #decfb1 0%, #cfc3a2 100%);
  border-color: #b7a98b;
  color: #3d3d3d;
}

.philosophy-panel.ways-method .wow-topic-card[data-wow-theme="line-4"],
.philosophy-panel.ways-method .wow-panel[data-wow-theme="line-4"] {
  background: linear-gradient(135deg, #d2c1bb 0%, #bb8e9a 100%);
  border-color: #a77757;
  color: #3d3d3d;
}

.philosophy-panel.ways-method .wow-topic-card[data-wow-theme="line-5"],
.philosophy-panel.ways-method .wow-panel[data-wow-theme="line-5"] {
  background: linear-gradient(135deg, #c4b8ab 0%, #cdcac3 100%);
  border-color: #aea59c;
  color: #3d3d3d;
}

.philosophy-panel.ways-method .wow-topic-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(199, 122, 59, 0.2), 0 10px 22px rgba(139, 111, 96, 0.16);
}

.wow-panel {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem;
  background: var(--background);
}

.wow-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--wow-panel-text-color, var(--foreground));
}

.wow-panel p {
  margin: 0;
  color: var(--wow-panel-text-color, var(--muted-foreground));
  line-height: 1.7;
}

.ways-gallery-frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.wow-gallery-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
}

.wow-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.wow-gallery-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--background);
  min-height: 210px;
  scroll-snap-align: start;
}

.wow-gallery-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.wow-gallery-item img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.wow-gallery-item figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding: 0.6rem 0.75rem;
}

.wow-gallery-item.is-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-style: dashed;
}

.wow-gallery-item.is-empty::before {
  content: "Photo placeholder";
  font-size: 0.85rem;
  color: var(--foreground);
  opacity: 0.7;
}

.ways-gallery .wow-gallery-nav {
  display: none;
}

.ways-gallery .wow-gallery-frame {
  display: block;
  max-width: 54rem;
  margin: 0 auto;
}

.ways-gallery .wow-gallery-track {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 96px 96px;
  grid-auto-rows: 128px;
  gap: 0.75rem;
  overflow: visible;
  padding-bottom: 0;
}

.ways-gallery .wow-gallery-item {
  min-height: 0;
}

.ways-gallery .wow-gallery-item img {
  height: 100%;
  min-height: 128px;
}

.ways-gallery .wow-gallery-item:nth-child(1),
.ways-gallery .wow-gallery-item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.ways-gallery .wow-gallery-item:nth-child(3),
.ways-gallery .wow-gallery-item:nth-child(8) {
  grid-row: span 2;
}

@media (max-width: 920px) {
  .ways-hero {
    grid-template-columns: 1fr;
  }

  .ways-hero-graphic {
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
  }

  .wow-process-visual {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wow-process-arrow {
    transform: rotate(90deg);
    margin: -0.15rem 0;
    animation: arrow-pulse-vertical 2s ease-in-out infinite;
  }

  @keyframes arrow-pulse-vertical {
    0%, 100% {
      transform: rotate(90deg) translateY(0);
      opacity: 0.7;
    }
    50% {
      transform: rotate(90deg) translateY(4px);
      opacity: 1;
    }
  }

  .wow-process-step {
    padding: 1.25rem;
  }

  .wow-step-num {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.75rem;
  }

  .wow-process-step h3 {
    font-size: 1.05rem;
  }

  .wow-process-step p {
    font-size: 0.9rem;
  }

  .wow-topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ways-gallery .wow-gallery-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .ways-gallery .wow-gallery-frame {
    max-width: 42rem;
  }

  .ways-gallery .wow-gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .ways-gallery .wow-gallery-item:nth-child(1),
  .ways-gallery .wow-gallery-item:nth-child(4),
  .ways-gallery .wow-gallery-item:nth-child(7),
  .ways-gallery .wow-gallery-item:nth-child(10) {
    grid-column: span 2;
  }

  .wow-chain {
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
    padding: 0 0.25rem;
  }

  .wow-chain-circle {
    width: 126px;
    height: 126px;
    font-size: 0.78rem;
    margin-left: -3px;
    padding: 0.8rem 1rem 0.8rem 0.95rem;
  }

  .wow-chain-circle::after {
    right: -27px;
    border-top: 27px solid transparent;
    border-bottom: 27px solid transparent;
    border-left: 27px solid var(--wow-stroke-color);
  }

  .wow-chain-circle::before {
    right: -23px;
    border-top: 23px solid transparent;
    border-bottom: 23px solid transparent;
    border-left: 23px solid var(--wow-fill-color);
  }
}

@media (max-width: 640px) {
  .coach-photo-slot {
    min-height: 300px;
    padding: 1rem;
  }

  .coach-photo-slot img {
    width: min(92%, 360px);
    max-height: 280px;
  }

  .ways-hero-graphic {
    padding: 1rem;
    overflow-x: hidden;
    justify-content: center;
  }

  .wow-chain {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  .wow-chain-circle {
    width: 120px;
    height: 120px;
    font-size: 0.72rem;
    margin-left: 0;
    margin-top: -14px;
    padding: 0.68rem;
  }

  .wow-chain-circle:first-child {
    margin-top: 0;
  }

  .wow-chain-circle::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -24px;
    transform: translateX(-50%);
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 22px solid var(--wow-stroke-color);
    border-bottom: 0;
  }

  .wow-chain-circle::before {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%);
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid var(--wow-fill-color);
    border-bottom: 0;
  }

  .wow-chain-circle:last-child::after,
  .wow-chain-circle:last-child::before {
    display: none;
  }

  .wow-topics-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-panel.ways-method .wow-panels {
    display: none;
  }

  .philosophy-panel.ways-method .wow-mobile-accordion-panel {
    grid-column: 1 / -1;
    margin-top: -0.2rem;
    margin-bottom: 0.6rem;
  }

  .ways-gallery-frame {
    grid-template-columns: 1fr;
  }

  .ways-gallery .wow-gallery-track {
    grid-template-columns: 1fr;
  }

  .ways-gallery .wow-gallery-frame {
    max-width: 20rem;
  }

  .ways-gallery .wow-gallery-item img {
    min-height: 116px;
  }

  .ways-gallery .wow-gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .wow-gallery-nav {
    display: none;
  }
}

/* Lightbox for Gallery Images */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(210, 193, 187, 0.25) 0%, rgba(222, 207, 177, 0.18) 100%);
}

.philosophy-panels .testimonials {
  background: var(--card);
}

.testimonials-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.75rem 0 0.5rem;
}

.testimonials-head p {
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.testimonial-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.testimonial-viewport {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s ease;
  will-change: transform;
}

.testimonial-card {
  min-width: 20rem;
  max-width: 22rem;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 40px rgba(44, 36, 28, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  border: none;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  z-index: 0;
}

.testimonial-card:nth-child(4n+1) {
  background: linear-gradient(135deg, #9f7254 0%, #c18d69 100%);
  color: white;
}

.testimonial-card:nth-child(4n+2) {
  background: linear-gradient(135deg, #bb8e9a 0%, #d2c1bb 100%);
  color: #3d3d3d;
}

.testimonial-card:nth-child(4n+3) {
  background: linear-gradient(135deg, #decfb1 0%, #cfc3a2 100%);
  color: #3d3d3d;
}

.testimonial-card:nth-child(4n) {
  background: linear-gradient(135deg, #c4b8ab 0%, #cdcac3 100%);
  color: #3d3d3d;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.6;
}

.testimonial-card:nth-child(4n+1) .testimonial-quote {
  color: white !important;
}

.testimonial-card:nth-child(4n+2) .testimonial-quote,
.testimonial-card:nth-child(4n+3) .testimonial-quote,
.testimonial-card:nth-child(4n) .testimonial-quote {
  color: rgba(61, 61, 61, 0.9);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-card:nth-child(4n+1) .testimonial-name {
  color: white !important;
}

.testimonial-card:nth-child(4n+2) .testimonial-name,
.testimonial-card:nth-child(4n+3) .testimonial-name,
.testimonial-card:nth-child(4n) .testimonial-name {
  color: #3d3d3d;
}

.testimonial-role {
  font-size: 0.85rem;
}

.testimonial-card:nth-child(4n+1) .testimonial-role {
  color: rgba(255, 255, 255, 0.8) !important;
}

.testimonial-card:nth-child(4n+2) .testimonial-role,
.testimonial-card:nth-child(4n+3) .testimonial-role,
.testimonial-card:nth-child(4n) .testimonial-role {
  color: rgba(61, 61, 61, 0.7);
}

.testimonial-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(44, 36, 28, 0.1);
}

.testimonial-nav:hover {
  transform: translateY(-1px);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(44, 36, 28, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .testimonial-carousel {
    grid-template-columns: 1fr;
    position: relative;
  }

  .testimonial-viewport {
    padding: 0 2.5rem;
  }

  .testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .testimonial-nav-prev {
    left: 0.25rem;
  }

  .testimonial-nav-next {
    right: 0.25rem;
  }
}

@media (max-width: 640px) {
  .testimonial-card {
    min-width: 17.5rem;
  }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .wow-process-step,
  .wow-process-arrow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .wow-process-step:hover {
    transform: none;
  }
  
  .wow-process-step:hover .wow-step-num {
    transform: none;
  }
}

/* Gutenberg stability helpers: keep layout consistent when text/images are edited */
.wp-block-post-content,
.wp-block-post-content * {
  box-sizing: border-box;
}

.wp-block-post-content :is(p, li, h1, h2, h3, h4, h5, h6, blockquote, figcaption) {
  overflow-wrap: anywhere;
}

body.page:not(.home) .specialties-cards-grid,
body.thh-page-internal .specialties-cards-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

body.page:not(.home) .specialty-card,
body.page:not(.home) .specialty-card-featured,
body.thh-page-internal .specialty-card,
body.thh-page-internal .specialty-card-featured {
  min-height: 340px;
  height: 100%;
}

.specialty-card p {
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.packages-cards,
.philosophy-panels,
.section-block .grid-3 {
  align-items: stretch;
}

.package-card,
.philosophy-panel,
.section-block .grid-3 .card {
  height: 100%;
}

.section-block .grid-3 .card {
  display: flex;
  flex-direction: column;
}

.section-block .grid-3 .card .author {
  margin-top: auto;
}

.wp-block-post-content .wp-block-image img,
.wp-block-post-content .wp-block-gallery img,
.wp-block-post-content img {
  max-width: 100%;
  height: auto;
}

/* Final override: enforce one consistent top-level gap on all internal pages */
body.page:not(.home) .wp-block-post-content > *,
body.thh-page-internal .wp-block-post-content > * {
  margin-block-end: 0 !important;
}

body.page:not(.home) .wp-block-post-content > * + *,
body.thh-page-internal .wp-block-post-content > * + * {
  margin-block-start: var(--thh-internal-block-gap) !important;
}

/* Ways of Working: keep process/gallery cards white like the other blocks */
.ways-method,
.ways-gallery {
  background: #ffffff !important;
}

/* Static internal pages also use this wrapper; keep a single vertical rhythm there too */
body.page:not(.home) .subpage-content > .container > *,
body.thh-page-internal .subpage-content > .container > * {
  margin-bottom: 0 !important;
}

body.page:not(.home) .subpage-content > .container > * + *,
body.thh-page-internal .subpage-content > .container > * + * {
  margin-top: var(--thh-internal-block-gap) !important;
}

/* Remove extra vertical padding from reusable section blocks on internal pages */
body.page:not(.home) .subpage-content .section-block,
body.thh-page-internal .subpage-content .section-block {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.page:not(.home) .subpage-content > .container > .section-block + .section-block,
body.thh-page-internal .subpage-content > .container > .section-block + .section-block {
  margin-top: var(--thh-internal-block-gap) !important;
}

/* Home must keep its original spacing */
body.home .subpage-content > .container > * + *,
body.thh-page-home .subpage-content > .container > * + * {
  margin-top: 0 !important;
}

body.home .subpage-content .section-block,
body.thh-page-home .subpage-content .section-block {
  padding: 4rem 0;
}

/* Internal pages: avoid double spacing when a section-block comes right after subpage-content */
body.page:not(.home) .subpage-content,
body.thh-page-internal .subpage-content {
  padding-bottom: var(--thh-internal-block-gap) !important;
}

body.page:not(.home) .subpage-content + .section-block,
body.thh-page-internal .subpage-content + .section-block {
  margin-top: var(--thh-internal-block-gap) !important;
  padding-top: 0 !important;
}

/* Home specialties must preserve original one-row desktop card layout */
body.home .specialties-cards-grid,
body.thh-page-home .specialties-cards-grid {
  align-items: start;
  grid-auto-rows: auto;
}

@media (min-width: 1024px) {
  body.home .specialty-card-featured,
  body.thh-page-home .specialty-card-featured {
    grid-row: span 1;
    height: 340px;
  }
}

/* Philosophy internal pages: keep vertical rhythm strictly uniform */
body.page:not(.home) .philosophy-side,
body.thh-page-internal .philosophy-side {
  gap: var(--thh-internal-block-gap);
}

body.page:not(.home) .philosophy-hero,
body.page:not(.home) .philosophy-framework-box,
body.thh-page-internal .philosophy-hero,
body.thh-page-internal .philosophy-framework-box {
  margin: 0 !important;
}

body.page:not(.home) .philosophy-panels,
body.thh-page-internal .philosophy-panels {
  gap: var(--thh-internal-block-gap);
}

body.page:not(.home) .philosophy-panels .testimonials,
body.thh-page-internal .philosophy-panels .testimonials {
  padding: 0 !important;
  margin: 0 !important;
}

body.page:not(.home) .philosophy-panels .testimonials-head p,
body.thh-page-internal .philosophy-panels .testimonials-head p {
  margin-bottom: var(--thh-internal-block-gap);
}

/* Final internal-page spacing normalization across all subpages */
body.page:not(.home) .subpage-content > .container,
body.thh-page-internal .subpage-content > .container {
  display: flex;
  flex-direction: column;
  gap: var(--thh-internal-block-gap);
}

body.page:not(.home) .subpage-content > .container > *,
body.thh-page-internal .subpage-content > .container > * {
  margin: 0 !important;
}

body.page:not(.home) .subpage-content + .section-block,
body.thh-page-internal .subpage-content + .section-block {
  margin-top: var(--thh-internal-block-gap) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* =========================================================================
   GUTENBERG BLOCK EDITOR RESETS (HOME PAGE FIXES)
   ========================================================================= */

/* Prevent core Gutenberg block gaps from creating extra space between main sections */
body.home .wp-block-group.hero,
body.home .wp-block-group.welcome,
body.home .wp-block-group.specialties-services,
body.home .wp-block-group.specialties,
body.home .wp-block-group.section-block,
body.home .wp-block-group.contact,
body.home .wp-block-group.worked-with {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Prevent inner containers from being pushed down by WP block gaps */
/* Prevent inner containers from being pushed down by WP block gaps */
body.home .wp-block-group.container,
body.home .wp-block-group.grid-2,
body.home .wp-block-group.welcome-left,
body.home .wp-block-group.welcome-right,
body.home .wp-block-group.specialties-services-grid {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Remove top gap for cards grid but preserve crucial custom bottom margins */
body.home .wp-block-group.grid-3 {
    margin-block-start: 0 !important;
    margin-bottom: 1.5rem !important;
}
body.home .wp-block-group.specialties-cards-grid {
    margin-block-start: 0 !important;
    margin-bottom: 2.5rem !important;
}

/* Remove block gap from direct child cards in grid layouts */
body.home .specialties-cards-grid.is-layout-flow > *,
body.home .grid-3.is-layout-flow > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Force specialty cards to retain their flex layout over WP's default display: block */
body.home .wp-block-group.specialty-card {
    display: flex !important;
    flex-direction: column !important;
}

/* Fix WP core altering the display inside the testimonials grid */
body.home .wp-block-group.grid-3 {
    display: grid !important;
}

/* =========================================================================
   STRICT OVERRIDES FOR HERO LAYOUT COMPATIBILITY
   ========================================================================= */
body.home .wp-block-group.hero {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

body.home .wp-block-group.hero .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important; /* Override WP's max-width: 100% */
}

body.home .wp-block-group.hero .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
}

body.home .wp-block-group.hero .hero-content {
    position: relative !important;
    z-index: 10 !important;
    margin: 0 auto !important; /* Prevent WP from adding margin-block-start */
}

/* Ensure no gap exists at the very top of the screen */
html, body.home, body.home .wp-site-blocks {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove admin bar padding-top on home so hero fills the screen edge to edge */
body.home.admin-bar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.home .wp-site-blocks > .wp-block-group.hero:first-child {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

/* =========================================================================
   PACKAGES PAGE TESTIMONIALS ALIGNMENT FIX
   ========================================================================= */
/* Standardize internal page blocks */
.packages-testimonials-block.philosophy-panel,
.packages-testimonials-block.ways-method,
.ways-method {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

/* Specific spacing for columns in packages */
.packages-cards {
    margin-top: 2rem !important;
    gap: 2rem !important;
}

/* =========================================================================
   DETAILED PACKAGE CARDS (v15/v16 Gutenberg-Compatible)
   ========================================================================= */
.package-card {
    background: #fff !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.package-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}

/* Headers - Supports both div.card-header and .wp-block-group.card-header */
.package-card .card-header {
    padding: 2rem 1.5rem !important;
    text-align: center !important;
    color: var(--foreground) !important;
    position: relative !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.package-card .card-header p,
.package-card .card-header strong {
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.package-card.starter .card-header {
    background-color: #e6d8cf !important; /* Muted tan */
}

.package-card.momentum .card-header {
    background-color: #e0d9b8 !important; /* Muted olive/gold */
}

.package-card.transformation .card-header {
    background-color: #cfc2b7 !important; /* Muted brown */
}

/* Popular Badge */
.popular-badge {
    background: rgba(255,255,255,0.9) !important;
    padding: 0.25rem 1rem !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    margin-bottom: 0.5rem !important;
    display: inline-block !important;
}

/* Body */
.package-card .card-body {
    padding: 2rem 1.5rem !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    background: #fdfcfb !important;
    margin-top: 0 !important;
}

.package-card .card-body ul {
    margin: 0 !important;
    padding-left: 1.2rem !important;
    list-style-type: disc !important;
    color: var(--muted-foreground) !important;
}

.package-card .card-body ul li {
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.package-card .card-body p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--muted-foreground) !important;
    margin: 0 !important;
}

/* Footer & Button */
.package-card .card-footer {
    padding: 1.5rem !important;
    background: #fdfcfb !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 0 !important;
}

/* Support for Gutenberg Button Block */
.package-card .wp-block-buttons {
    margin-top: 0 !important;
}

.package-card .wp-block-button__link {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: var(--foreground) !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
    text-decoration: none !important;
}

.package-card .wp-block-button__link:hover {
    background: var(--background) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px) !important;
}

/* Ensure wide panels stretch correctly even if nested wrongly */
.philosophy-panel-wide {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.packages-testimonials-block .grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
}

.packages-testimonials-block .grid-3 > .card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 2rem !important;
    border-radius: 1rem !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    color: #fff !important;
}

/* Base style for corner accent */
.packages-testimonials-block .grid-3 > .card::after {
    content: "" !important;
    position: absolute !important;
    top: -20px !important;
    right: -20px !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    z-index: 1 !important;
}

/* Specific Card Colors */
/* 1. Terracotta/Brown */
.packages-testimonials-block .grid-3 > .card:nth-child(1) {
    background-color: #b07d5b !important;
}


/* =========================================================================
   PACKAGES PAGE CARD DESIGN (page-id-136 only)
   ========================================================================= */
body.page-id-136 .packages-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin-top: 1rem !important;
}

body.page-id-136 .package-card {
  border: 1px solid #c7bcb0 !important;
  border-radius: 0.85rem !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transform: none !important;
  transition: none !important;
}

body.page-id-136 .package-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

body.page-id-136 .package-card-starter {
  background: #dccdc2 !important;
}

body.page-id-136 .package-card-momentum {
  background: #d7d0b1 !important;
}

body.page-id-136 .package-card-transform {
  background: #c8bdb7 !important;
}

body.page-id-136 .package-tier-top {
  padding: 0.95rem 1rem !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(90, 73, 58, 0.22) !important;
  min-height: 3.9rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
}

body.page-id-136 .package-tier-name {
  margin: 0 !important;
  font-size: 1.02rem !important;
  line-height: 1.1 !important;
  font-family: var(--font-serif) !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: #4f3f33 !important;
}

body.page-id-136 .pkg-badge {
  margin-top: 0.05rem !important;
  padding: 0.25rem 0.8rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(90, 73, 58, 0.22) !important;
  background: rgba(255, 255, 255, 0.52) !important;
  color: #3f3329 !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

body.page-id-136 .package-tier-body {
  padding: 1rem 0.95rem 0.9rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
  flex: 1 !important;
}

body.page-id-136 .package-meta,
body.page-id-136 .package-features {
  margin: 0 !important;
  padding-left: 1.1rem !important;
}

body.page-id-136 .package-meta li,
body.page-id-136 .package-features li {
  margin-bottom: 0.2rem !important;
  color: #1f1f1f !important;
  line-height: 1.35 !important;
}

body.page-id-136 .package-for {
  margin: 0 !important;
  color: #5f5f5f !important;
  line-height: 1.45 !important;
}

body.page-id-136 .package-cta {
  margin-top: auto !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 156px !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid #b5ab9f !important;
  background: #f0ece7 !important;
  color: #2f2924 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
}

body.page-id-136 .package-cta:hover {
  background: #f7f4ef !important;
}

/* Packages testimonials: keep cards aligned and add breathing room above footer */
body.page-id-136 .section-block[aria-label="Testimonials highlights"] .grid-3.is-layout-flow > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

body.page-id-136 .section-block[aria-label="Testimonials highlights"] > .container > p {
  margin-top: 1.25rem !important;
  margin-bottom: 2.25rem !important;
}

@media (max-width: 900px) {
  body.page-id-136 .packages-cards {
    grid-template-columns: 1fr !important;
  }
}

/* 2. Dusty Rose/Mauve */
.packages-testimonials-block .grid-3 > .card:nth-child(2) {
    background-color: #c5a5a1 !important;
}

/* 3. Muted Sage/Sand */
.packages-testimonials-block .grid-3 > .card:nth-child(3) {
    background-color: #d2caaf !important;
}

/* Ensure text inside is white */
.packages-testimonials-block .grid-3 > .card .quote p,
.packages-testimonials-block .grid-3 > .card .author {
    color: #fff !important;
}

.packages-testimonials-block .grid-3 > .card .author {
    margin-top: auto !important;
    padding-top: 1rem;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

@media (max-width: 992px) {
    .packages-testimonials-block .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .packages-testimonials-block .grid-3 {
        grid-template-columns: 1fr !important;
    }
}
