/*
Theme Name: Emotion Institute
Theme URI: https://www.emotion-institute.ch
Author: Emotion Institute
Author URI: https://www.emotion-institute.ch
Description: Custom WordPress theme for Emotion Institute — trauma therapy practice in Basel, Switzerland. Design concept "Quiet Confidence" with warm stone, linen, and parchment tones anchored by the brand pink #FC5475.
Version: 2.1.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emotion-institute
Tags: custom-menu, custom-logo, featured-images, block-patterns, block-styles, wide-blocks, translation-ready
*/

/* ================================================================
   CSS CUSTOM PROPERTIES — Design Tokens
   ================================================================ */
:root {
  /* Brand anchor */
  --rose: #FC5475;
  --rose-hover: #E84A6A;
  --rose-soft: #FD8FA5;
  --rose-whisper: #FFF1F3;
  --rose-glow: rgba(252, 84, 117, 0.1);

  /* Environment — warm stone & linen */
  --stone: #4A4543;
  --stone-light: #6B6664;
  --stone-pale: #8A8483;
  --linen: #F6F2EE;
  --linen-warm: #EDE7E0;
  --linen-deep: #D9D1C7;
  --parchment: #FDFAF7;
  --chalk: #FEFDFB;

  /* Deep accent — warm charcoal */
  --ink: #2B2826;
  --ink-soft: #3D3835;

  /* Subtle warm accent */
  --clay: #B8937A;
  --clay-light: #D4BCA8;
  --clay-pale: #F0E8E0;

  /* Swiss red */
  --swiss-red: #D12B2B;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(43,40,38,0.04), 0 4px 12px rgba(43,40,38,0.03);
  --shadow-medium: 0 2px 8px rgba(43,40,38,0.06), 0 8px 24px rgba(43,40,38,0.06);
  --shadow-lift: 0 4px 12px rgba(43,40,38,0.08), 0 12px 36px rgba(43,40,38,0.06);
  --shadow-rose: 0 4px 16px rgba(252, 84, 117, 0.2);

  /* Radii */
  --radius: 8px;
  --radius-lg: 14px;

  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone);
  background-color: var(--chalk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--rose-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.65rem; font-weight: 700; letter-spacing: -0.3px; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   HEADER — Three-row sticky
   ================================================================ */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Offset for WordPress admin bar when logged in */
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Row 1: Utility Bar */
.utility-bar {
  background: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}

/* Language switcher — Polylang integration */
.lang-switcher,
.utility-bar .pll-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-switcher a,
.utility-bar .pll-switcher a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  transition: all 0.2s var(--ease);
}
.lang-switcher a:hover,
.utility-bar .pll-switcher a:hover {
  color: rgba(255,255,255,0.85);
}
.lang-switcher a.active,
.utility-bar .pll-switcher .current-lang a {
  color: white;
  background: rgba(255,255,255,0.1);
}

.gift-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.gift-link:hover { color: white; }
.gift-link .gift-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  line-height: 1;
}

/* Row 2: Brand Bar */
.brand-bar {
  background: var(--parchment);
  border-bottom: 1px solid var(--linen-warm);
}
.brand-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}
.site-logo { display: flex; align-items: center; }
.site-logo img,
.custom-logo-link img {
  height: 46px;
  width: auto;
}

.btn-book {
  background: var(--rose);
  color: white;
  text-decoration: none;
  height: 42px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-rose);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-book:hover {
  background: var(--rose-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(252, 84, 117, 0.28);
}
.btn-book svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Row 3: Main Navigation */
.main-nav {
  background: var(--parchment);
  border-bottom: 1px solid var(--linen-warm);
}
.main-nav .container {
  display: flex;
  justify-content: center;
  height: 48px;
  align-items: center;
  position: relative;
}

/* Desktop menu */
.nav-menu,
.main-nav .menu {
  list-style: none;
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
}
.nav-menu > li,
.main-nav .menu > li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-menu > li > a,
.main-nav .menu > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  color: var(--stone);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s;
  position: relative;
}
.nav-menu > li > a::after,
.main-nav .menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
  transform-origin: center;
}
.nav-menu > li > a:hover,
.main-nav .menu > li > a:hover { color: var(--ink); }
.nav-menu > li > a:hover::after,
.main-nav .menu > li > a:hover::after { transform: scaleX(1); }

.nav-menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-item > a { color: var(--ink); }
.nav-menu > li.current-menu-item > a::after,
.main-nav .menu > li.current-menu-item > a::after { transform: scaleX(1); }

/* Dropdown — for "Ressources" */
.nav-menu > li.menu-item-has-children > a::before,
.main-nav .menu > li.menu-item-has-children > a::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 3.5px solid currentColor;
  margin-left: 6px;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.nav-menu > li.menu-item-has-children:hover > a::before,
.main-nav .menu > li.menu-item-has-children:hover > a::before { opacity: 0.7; }

.nav-menu .sub-menu,
.main-nav .menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--linen-warm);
  min-width: 200px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--ease);
  list-style: none;
  margin: 0;
}
.nav-menu > li:hover > .sub-menu,
.main-nav .menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu .sub-menu a,
.main-nav .menu .sub-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--stone);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.15s;
}
.nav-menu .sub-menu a:hover,
.main-nav .menu .sub-menu a:hover {
  background: var(--rose-whisper);
  color: var(--ink);
}
/* Remove underline effect from sub-menu items */
.nav-menu .sub-menu a::after,
.main-nav .menu .sub-menu a::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--stone);
  margin: 5px 0;
  border-radius: 1px;
  transition: all 0.3s;
}

/* ================================================================
   CONTENT AREA
   ================================================================ */
.site-content {
  min-height: 60vh;
}

/* WordPress block editor alignment */
.entry-content > *,
.wp-block-group__inner-container > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.entry-content > .alignwide { max-width: 1200px; }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }

/* Full-width sections — hero, approaches, process, CTA, formats */
.entry-content > .wp-block-group {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.entry-content > .wp-block-group > .wp-block-group__inner-container,
.entry-content > .wp-block-group > .wp-block-columns,
.entry-content > .wp-block-group > .wp-block-heading,
.entry-content > .wp-block-group > p,
.entry-content > .wp-block-group > .wp-block-buttons {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Hero background gradient — matches HTML prototype */
.bg-linen {
  background: var(--linen);
  position: relative;
  overflow: hidden;
}
.bg-linen::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--rose-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.bg-linen::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,147,122,0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Heading italic — elegant, not bold */
h1 em, h2 em, h3 em {
  font-weight: 400;
  font-style: italic;
}

/* ================================================================
   BUTTONS — Global styles
   ================================================================ */
.btn-cta,
.wp-block-button__link {
  background: var(--rose);
  color: white;
  text-decoration: none;
  height: 48px;
  padding: 0 28px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-rose);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.btn-cta:hover,
.wp-block-button__link:hover {
  background: var(--rose-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(252, 84, 117, 0.25);
}

.btn-ghost {
  color: var(--stone);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1.5px solid var(--linen-deep);
  transition: all 0.2s var(--ease);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--stone); }

/* Outline button variant */
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--stone);
  border: 1.5px solid var(--linen-deep);
  box-shadow: none;
  font-weight: 600;
}
.is-style-outline .wp-block-button__link:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--stone);
  transform: translateY(-1px);
}

/* ================================================================
   SWISS BADGE
   ================================================================ */
.swiss-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--linen-warm);
  border-radius: 50px;
  box-shadow: var(--shadow-subtle);
}
.swiss-cross {
  width: 22px;
  height: 22px;
  background: var(--swiss-red);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}
.swiss-cross::before,
.swiss-cross::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 1px;
}
.swiss-cross::before {
  width: 10px; height: 4px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.swiss-cross::after {
  width: 4px; height: 10px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.swiss-badge-text {
  font-size: 12.5px;
  color: var(--stone);
  font-weight: 500;
  line-height: 1.3;
}
.swiss-badge-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ================================================================
   SECTION STYLES — for block patterns
   ================================================================ */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

/* Background variants */
.bg-chalk { background-color: var(--chalk); }
.bg-linen { /* handled above with gradients */ }
.bg-parchment { background-color: var(--parchment); }
.bg-ink {
  background-color: var(--ink);
  color: rgba(255,255,255,0.65);
}
.bg-ink .section-eyebrow { color: var(--rose-soft); }
.bg-ink .section-heading { color: white; }
.bg-ink h2, .bg-ink h3 { color: white; }
.bg-ink p { color: rgba(255,255,255,0.65); }

/* Card styles */
.ei-card {
  background: white;
  border: 1px solid var(--linen-warm);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s var(--ease);
}
.ei-card:hover {
  border-color: var(--linen-deep);
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

/* Trust card */
.trust-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--linen-warm);
  transition: all 0.3s var(--ease);
}
.trust-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}
.trust-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.trust-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.trust-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.trust-card-text {
  font-size: 14px;
  color: var(--stone-pale);
  line-height: 1.6;
}

/* Approach accent lines */
.approach-accent {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.accent-rose { background: var(--rose); }
.accent-clay { background: var(--clay); }
.accent-stone { background: var(--stone-pale); }

/* Process steps */
.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--linen-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--stone-pale);
  flex-shrink: 0;
  transition: all 0.2s;
}
.process-step:hover .step-indicator {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--rose-whisper);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--ink-soft);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 28px;
  font-size: 14px;
  width: 100%;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}
.footer-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.footer-upper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 260px;
}
.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-swiss {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.footer-swiss-cross {
  width: 16px;
  height: 16px;
  background: var(--swiss-red);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}
.footer-swiss-cross::before,
.footer-swiss-cross::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 1px;
}
.footer-swiss-cross::before {
  width: 8px; height: 3px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.footer-swiss-cross::after {
  width: 3px; height: 8px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.footer-swiss-text {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.footer-col .footer-swiss {
  margin-top: 24px;
}
.footer-col h5 {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 3px 0;
  font-size: 13.5px;
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.85); }

/* Footer widget areas — match the grid */
.footer-widgets {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-widgets .widget {
  color: rgba(255,255,255,0.6);
}
.footer-widgets .widget-title {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-widgets .widget a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-widgets .widget a:hover { color: rgba(255,255,255,0.85); }

.footer-lower {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}
.footer-lower a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.footer-lower a:hover { color: rgba(255,255,255,0.6); }
.footer-copyright {
  white-space: nowrap;
}
.footer-locations {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.footer-wordmark {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
/* Subtle highlight for the private therapy link */
.footer-link-discreet {
  opacity: 0.7;
  font-style: italic;
}
.footer-link-discreet::before {
  content: '—  ';
  opacity: 0.5;
}

/* ================================================================
   CLASSIC EDITOR BLOCKS
   ================================================================ */
.entry-content--classic .wp-block-freeform,
.entry-content--classic > *:not(.wp-block-group) {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.wp-block-freeform {
  padding-top: 8px;
  padding-bottom: 48px;
}
.wp-block-freeform h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 32px;
  margin-top: 0;
}
.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--stone-pale);
  text-decoration: none;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.article-back-link:hover {
  color: var(--rose);
}
.article-back-footer {
  border-top: 1px solid var(--linen-warm);
  padding: 32px 0 64px;
  text-align: center;
}
.article-back-footer .ei-container {
  max-width: 780px;
}
.wp-block-freeform h2,
.wp-block-freeform h3,
.wp-block-freeform h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.wp-block-freeform h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.wp-block-freeform h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.wp-block-freeform h3 { font-size: 1.15rem; }
.wp-block-freeform p {
  color: var(--stone-light);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 1em;
}
.wp-block-freeform ul,
.wp-block-freeform ol {
  color: var(--stone-light);
  font-size: 15.5px;
  line-height: 1.8;
  padding-left: 1.4em;
  margin-bottom: 1em;
}

/* ================================================================
   PAGE TITLE (for pages without a pattern hero)
   ================================================================ */
.page-title-wrap {
  padding: 56px 0 40px;
  background: white;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal-document {
  max-width: 720px;
  margin: 0 auto;
}
.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--linen-warm);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.legal-section h3 {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-section p,
.legal-section li {
  color: var(--stone-light);
  font-size: 15px;
  line-height: 1.8;
}
.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover {
  color: var(--rose);
}
.amelia-app-booking {
  font-family: var(--font-sans) !important;
}
.amelia-app-booking .am-dialog-el-booking-header {
  background: var(--rose) !important;
}

/* ================================================================
   PLUGIN STYLING — WPForms
   ================================================================ */
.wpforms-container .wpforms-form .wpforms-field input,
.wpforms-container .wpforms-form .wpforms-field textarea {
  border: 1px solid var(--linen-deep);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.wpforms-container .wpforms-form .wpforms-field input:focus,
.wpforms-container .wpforms-form .wpforms-field textarea:focus {
  border-color: var(--rose);
  outline: none;
  box-shadow: 0 0 0 3px var(--rose-glow);
}
.wpforms-container .wpforms-form button[type="submit"] {
  background: var(--rose) !important;
  border-radius: 6px !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  transition: all 0.25s var(--ease) !important;
}
.wpforms-container .wpforms-form button[type="submit"]:hover {
  background: var(--rose-hover) !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  
  .footer-upper,
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Mobile navigation */
  .nav-menu,
  .main-nav .menu {
    display: none !important;
  }
  .nav-menu[style*="display"],
  .main-nav ul[style*="display"] {
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #FDFAF7 !important;
    box-shadow: 0 4px 12px rgba(43,40,38,0.08), 0 12px 36px rgba(43,40,38,0.06) !important;
    padding: 8px 16px 16px !important;
    border-bottom: 1px solid #EDE7E0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }
  .nav-menu[style*="display: flex"],
  .nav-menu[style*="display:flex"],
  .nav-menu.open,
  .main-nav .menu.open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #FDFAF7 !important;
    box-shadow: 0 4px 12px rgba(43,40,38,0.08), 0 12px 36px rgba(43,40,38,0.06) !important;
    padding: 8px 16px 16px !important;
    border-bottom: 1px solid #EDE7E0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }
  .hamburger {
    display: block;
    position: static !important;
  }
  .main-nav .container {
    justify-content: flex-end;
    position: relative;
  }
  .nav-menu > li,
  .main-nav .menu > li,
  .nav-menu.open > li,
  .main-nav .menu.open > li {
    display: block !important;
  }
  .nav-menu > li > a,
  .main-nav .menu > li > a,
  .nav-menu.open > li > a,
  .main-nav .menu.open > li > a {
    height: auto !important;
    padding: 11px 8px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #F6F2EE !important;
    display: block !important;
  }
  .nav-menu > li > a::after,
  .main-nav .menu > li > a::after,
  .nav-menu.open > li > a::after,
  .main-nav .menu.open > li > a::after {
    display: none !important;
  }
  .nav-menu .sub-menu,
  .main-nav .menu .sub-menu,
  .nav-menu.open .sub-menu,
  .main-nav .menu.open .sub-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 0 0 16px !important;
    background: transparent !important;
    min-width: auto !important;
  }
  .btn-book {
    height: 38px;
    padding: 0 18px;
    font-size: 12.5px;
  }
  .footer-upper,
  .footer-widgets { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand,
  .footer-col { text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-logo { display: block; margin: 0 auto; }
  .footer-swiss { justify-content: center; }
  .footer-col .footer-swiss { justify-content: center; }
  /* footer-lower already column on all viewports */

  /* Contact privé: stack form + sidebar vertically on mobile */
  .contact-prive-grid { grid-template-columns: 1fr !important; }

  /* Hero buttons: equal full width */
  a.btn-cta,
  a.btn-ghost {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    box-sizing: border-box !important;
  }

  /* WordPress button blocks: full width on mobile */
  .wp-block-button {
    width: 100% !important;
  }
  .wp-block-button__link {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Formats grid: stack cards on mobile */
  .wp-block-columns {
    flex-direction: column !important;
  }
  .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  /* Formats/Modalités grid: stack on mobile */
  div[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 16px; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s var(--ease-out) forwards;
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ================================================================
   WORDPRESS CORE BLOCK OVERRIDES
   ================================================================ */

/* Group block */
.wp-block-group {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.wp-block-group.has-background {
  padding: 3rem 24px;
}

/* Columns */
.wp-block-columns {
  gap: 24px;
}

/* Separator */
.wp-block-separator {
  border-color: var(--linen-warm);
  opacity: 1;
}
.wp-block-separator.has-rose-color {
  border-color: var(--rose);
}

/* Quote */
.wp-block-quote {
  border-left: 3px solid var(--rose);
  padding-left: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
}

/* Cover block */
.wp-block-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Image block */
.wp-block-image img {
  border-radius: var(--radius);
}
.wp-block-image.is-style-rounded img {
  border-radius: var(--radius-lg);
}

/* Approach page sections */
.ei-approach-section {
  max-width: 960px;
  margin: 0 auto;
}

/* About page profile */
.ei-about-profile {
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .ei-about-profile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  .ei-about-profile > div:first-child {
    margin-bottom: 8px;
  }
  .ei-about-profile ul {
    text-align: left;
  }
}
@media (max-width: 768px) {
  .ei-approach-section div[style*="grid-template-columns"] {
    display: block !important;
  }
  .ei-approach-section div[style*="grid-template-columns"] > div:last-child {
    margin-top: 24px;
  }
  /* Mission cards on Institut page */
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* Tarifs pricing cards and payment cards */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* Formats/Modalités grid: stack on mobile */
  div[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

/* Slider styling */
.n2-section-smartslider {
  border-radius: 14px;
  overflow: hidden;
}
.n2-section-smartslider,
.n2-section-smartslider .n2-ss-slide,
.n2-section-smartslider .n2-ss-slide img,
.n2-section-smartslider .n2-ss-slider,
.n2-section-smartslider .n2-ss-slide-background,
.n2-section-smartslider .n2-ss-slide-background img {
  border-radius: 14px !important;
  overflow: hidden !important;
}

/* Force slider to fill column width and maintain square ratio */
.n2-section-smartslider .n2-ss-slider-wrapper-inside {
  width: 100% !important;
  max-width: 100% !important;
}
.n2-section-smartslider .n2-ss-slider {
  width: 100% !important;
  max-width: 100% !important;
}
/* Square aspect ratio via padding trick */
.n2-section-smartslider .n2-ss-slide-wrapper {
  position: relative;
  padding-bottom: 100% !important;
  height: 0 !important;
}
.n2-section-smartslider .n2-ss-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* ── TESTIMONIALS ─────────────────────────────────────────────────── */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--linen-warm);
  border-radius: 12px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s var(--ease);
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(43,40,38,0.08);
}
.testimonial-card--featured {
  border-color: var(--rose-soft);
  background: var(--rose-whisper);
}
.testimonial-stars {
  color: var(--rose);
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
}
.testimonial-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  margin: 0;
  padding: 0;
  border: none;
  flex: 1;
}
.testimonial-author {
  border-top: 1px solid var(--linen-warm);
  padding-top: 14px;
  margin-top: auto;
}
.testimonial-card--featured .testimonial-author {
  border-top-color: var(--rose-soft);
}
.testimonial-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.testimonial-source {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--stone-pale);
  margin-top: 2px;
}

@media (max-width: 781px) {
  .testimonial-card {
    padding: 22px 20px 18px;
  }
  .testimonial-quote {
    font-size: 14px;
  }
}
