/*
Theme Name: Women's Health Cheshire
Theme URI: https://hanningtondigital.com
Author: Jack Hannington
Author URI: https://hanningtondigital.com
Description: Light, warm theme for Women's Health Cheshire — specialist pre & post natal, pelvic health and peri/menopause care.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: womens_health_cheshire
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Everything below reads from these. Change a colour here, not in a rule.
   ========================================================================== */

:root {
  /* Brand palette (from the brand board) */
  --sage: #5D6B5C;
  --plum: #624050;
  --terracotta: #C26D5A;
  --taupe: #B8A89A;
  --cream: #F2EDEA;

  /* Semantic colours */
  --bg: #FFFFFF;
  --bg-elevated: #FBF8F5;          /* cards / panels — a whisper of cream on white */
  --text: #000000;                 /* black for body copy */
  --text-muted: #6F6862;
  --heading: #29100A;              /* warm near-black, from the design file */
  --accent: var(--terracotta);
  --accent-hover: #AD5C4A;
  --accent-contrast: #FFFFFF;      /* text on terracotta / plum */
  --border: #E3D9D0;
  --border-strong: var(--taupe);
  --accent-tint: rgba(194, 109, 90, 0.10);
  --accent-tint-border: rgba(194, 109, 90, 0.28);
  --sage-tint: rgba(93, 107, 92, 0.10);
  --plum-tint: rgba(98, 64, 80, 0.08);
  --focus-ring: 0 0 0 3px rgba(194, 109, 90, 0.25);

  /* Type */
  --font-heading: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --fs-body: 1rem;
  --lh-body: 1.65;

  /* Layout */
  --container: 1200px;
  --content-max: 760px;
  --nav-height: 80px;
  --gutter: 20px;
  --section-y: 72px;

  /* Radii / shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 2px rgba(58, 53, 50, 0.06), 0 2px 8px rgba(58, 53, 50, 0.05);
  --shadow-md: 0 6px 20px rgba(58, 53, 50, 0.10);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.35s var(--ease);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px); /* #anchors land below the fixed nav */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

figure {
  margin: 0;
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--plum);
  color: #fff;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
}

h4 {
  font-size: 17px;
  font-weight: 600;
}

p {
  margin: 0 0 1.2em;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

/* Eyebrow — small uppercase label above a heading (drop on a Paragraph block) */
.eyebrow,
.is-style-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.lead,
.is-style-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
}

/* Display — Heading block "Display" style, for the big page-hero heading */
.is-style-display {
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

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

/* Width caps for long copy */
.max-450 { max-width: 450px; }
.max-650 { max-width: 650px; }
.max-750 { max-width: 750px; }

/* Editor list defaults */
ul.wp-block-list,
ol.wp-block-list {
  padding-left: 1.25rem;
  margin: 0 0 1.2em;
}

.wp-block-list li {
  padding-bottom: 4px;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Sticky footer — #page fills the viewport so the footer never floats mid-page
   on short pages, and sits below the content on long ones. */
#page.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-content {
  margin-top: var(--nav-height);
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Logged-in admin bar eats vertical space; don't overflow because of it. */
body.admin-bar #page.site {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar #page.site {
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

/* Page header block used by page.php */
.page-header {
  padding: 48px 0 24px;
}

/* Section wrapper — use on a Group block for consistent rhythm.
   Patterns set their wrapper Group to Full so Wide children can reach 1200px. */
/* Vertical padding only: the side gutter comes from WordPress' root padding
   (has-global-padding) on Full-width groups, which a 0 here would cancel. */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* Breathing room at the top of a page unless it opens with a full-bleed block */
.site-main.is-layout-constrained > :first-child:not(.alignfull) {
  margin-top: 40px;
}

.section--tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

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

.section-header > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .lead {
  margin-left: auto;
  margin-right: auto;
}

.section-header .eyebrow {
  text-align: center;
}

.rule,
.wp-block-separator.is-style-rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* WordPress block layout tweaks */
:where(.wp-block-columns.is-layout-flex) {
  gap: 2.5em;
}

.wp-block-cover {
  padding: 0;
}

.has-text-align-center {
  margin-left: auto;
  margin-right: auto;
}

/* Full/Wide alignment and edge padding come from WordPress' layout CSS
   (theme.json contentSize / wideSize / useRootPaddingAwareAlignments) via
   .is-layout-constrained + .has-global-padding on <main>. Nothing to add here. */

@media (max-width: 782px) {
  :root {
    --section-y: 48px;
  }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn,
.wp-block-button__link,
.wp-element-button,
/* Bare elements wrapped in :where() so component classes can override them. */
:where(button:not(.nav-toggle), input[type="submit"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent-contrast);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
:where(button:not(.nav-toggle), input[type="submit"]):hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-contrast);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Secondary / outline (core Button block "Outline" style, or .btn--secondary) */
.btn--secondary,
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
  background: transparent;
  color: var(--plum);
  border-color: var(--border-strong);
}

.btn--secondary:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link.is-style-outline:hover {
  background: var(--plum-tint);
  color: var(--plum);
  border-color: var(--plum);
}

/* Outline button on dark panels */
.is-style-panel-plum .wp-block-button.is-style-outline > .wp-block-button__link,
.is-style-panel-terracotta .wp-block-button.is-style-outline > .wp-block-button__link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.is-style-panel-plum .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.is-style-panel-terracotta .wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Plum variant for dark panels / footer */
.btn--plum,
.wp-block-button.is-style-plum > .wp-block-button__link {
  background: var(--plum);
  border-color: var(--plum);
}

.btn--plum:hover,
.wp-block-button.is-style-plum > .wp-block-button__link:hover {
  background: #533644;
  border-color: #533644;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.wp-block-buttons {
  gap: 12px;
}

/* ==========================================================================
   6. FORMS
   ========================================================================== */

:where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select) {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

:where(input, textarea, select):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* ==========================================================================
   7. NAVIGATION
   Same DOM as the Invicta header (#showMenu / #closeMenu / .menu-container)
   so the drawer JS carries over.
   ========================================================================== */

.site-header nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--plum); /* same plum as the hero, so they read as one band */
  transition: box-shadow var(--t-med), background var(--t-med);
}

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

/* Logged-in admin bar offset */
body.admin-bar .site-header nav {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header nav {
    top: 46px;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-height);
}

.nav-item {
  flex: 1;
}

.logo {
  display: flex;
  align-items: center; /* no baseline gap under the logo, so it centres in the bar */
}

.logo a {
  display: inline-block;
  line-height: 0;
}

/* The logo is a round badge, so size it by height */
.site-header .custom-logo {
  width: auto;
  height: 56px; /* in an 80px bar: 12px clear above and below */
}

/* Hamburger */
#nav-toggle,
.close-menu {
  text-align: right;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 48px;
  height: 40px;
  padding: 6px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

#showMenu span {
  display: block;
  width: 60%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.close-menu span {
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

/* Full-screen drawer (mobile) */
.menu-container {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  height: 100vh;
  background: var(--plum);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-med);
}

.menu-container.show {
  display: flex;
}

.menu-container.is-open {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.menu-footer {
  margin: 16px var(--gutter) 24px;
}

.menu-footer .btn {
  width: 100%;
}

.menu,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.menu li a {
  display: block;
  padding: 16px var(--gutter);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.menu li a:hover,
.menu li.current-menu-item > a {
  color: #fff;
}

/* Sub-menus */
.sub-menu {
  display: none;
}

.sub-menu.is-open {
  display: block;
}

.menu-item-has-children > a {
  position: relative;
  padding-right: 46px;
}

.menu-item-has-children > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-fast);
}

.menu-item-has-children.is-open > a::after {
  transform: translateY(-30%) rotate(225deg);
}

@media (max-width: 999px) {
  .menu-item-has-children > .sub-menu {
    margin: 0 12px 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
  }

  .sub-menu li a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }
}

/* Desktop CTA (hidden on mobile — the drawer footer carries it) */
.menu-cta {
  display: none;
}

/* Desktop nav */
@media (min-width: 1000px) {
  #nav-toggle {
    display: none;
  }

  .menu-container {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: auto;
    background: transparent;
    overflow: visible;
    transform: none;
    transition: none;
    flex: 3;
  }

  .menu-header,
  .menu-footer {
    display: none;
  }

  .menu-body {
    width: 100%;
  }

  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .menu > li {
    position: relative;
    border-bottom: 0;
  }

  .menu li a {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: var(--radius-pill);
  }

  .menu > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .menu-item-has-children > a {
    padding-right: 30px;
  }

  .menu-item-has-children > a::after {
    right: 13px;
    width: 6px;
    height: 6px;
  }

  .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  /* Bridge the gap so hover doesn't drop */
  .sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
  }

  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }

  /* Desktop dropdown is a white card, so its links go dark again */
  .sub-menu li a {
    padding: 10px 14px;
    font-size: 14.5px;
    color: var(--heading);
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .sub-menu li a:hover {
    background: var(--accent-tint);
  }

  .menu-cta {
    display: flex;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   8. CARDS & PANELS  (editor utilities — add via "Additional CSS class(es)")
   ========================================================================== */

.card,
.is-style-card,
.wp-block-columns.is-style-cards > .wp-block-column,
.wp-block-columns.is-style-carousel > .wp-block-column {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.card:hover,
.is-style-card:hover,
.wp-block-columns.is-style-cards > .wp-block-column:hover,
.wp-block-columns.is-style-carousel > .wp-block-column:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-tint-border);
}

.card h2,
.card h3,
.card h4,
.panel h2,
.panel h3,
.panel h4,
.is-style-card h2,
.is-style-card h3,
.is-style-card h4,
.is-style-cards > .wp-block-column h2,
.is-style-cards > .wp-block-column h3,
.is-style-cards > .wp-block-column h4,
.is-style-carousel > .wp-block-column h2,
.is-style-carousel > .wp-block-column h3,
.is-style-carousel > .wp-block-column h4 {
  margin: 0 0 10px;
}

.card p,
.panel p,
.is-style-card p,
.is-style-cards > .wp-block-column p,
.is-style-carousel > .wp-block-column p {
  margin: 0 0 12px;
}

.card > *:last-child,
.panel > *:last-child,
.is-style-card > *:last-child,
.is-style-cards > .wp-block-column > *:last-child,
.is-style-carousel > .wp-block-column > *:last-child {
  margin-bottom: 0;
}

/* Panel — soft tinted callout */
.panel,
.is-style-panel,
.is-style-panel-plum,
.is-style-panel-terracotta,
.is-style-panel-cream {
  background: var(--sage-tint);
  border: 1px solid rgba(93, 107, 92, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.panel--plum,
.is-style-panel-plum {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}

.panel--plum h1,
.panel--plum h2,
.panel--plum h3,
.panel--plum h4,
.panel--plum .eyebrow,
.is-style-panel-plum h1,
.is-style-panel-plum h2,
.is-style-panel-plum h3,
.is-style-panel-plum h4,
.is-style-panel-plum .is-style-eyebrow,
.is-style-panel-plum a:not(.wp-block-button__link) {
  color: #fff;
}

.panel--terracotta,
.is-style-panel-terracotta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.panel--terracotta h1,
.panel--terracotta h2,
.panel--terracotta h3,
.panel--terracotta .eyebrow,
.is-style-panel-terracotta h1,
.is-style-panel-terracotta h2,
.is-style-panel-terracotta h3,
.is-style-panel-terracotta .is-style-eyebrow {
  color: #fff;
}

.is-style-panel-plum .is-style-lead,
.is-style-panel-terracotta .is-style-lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Cream panel — translucent, so on a plum band it reads as a soft frame */
.is-style-panel-cream {
  background: color-mix(in srgb, var(--cream) 70%, transparent);
  border-color: transparent;
}

/* Light surfaces reset text colours, so they stay readable inside a plum or
   terracotta band (e.g. the profile card in the hero pattern). */
.card,
.is-style-card,
.is-style-panel-cream,
.wp-block-columns.is-style-cards > .wp-block-column,
.wp-block-columns.is-style-carousel > .wp-block-column {
  color: var(--text);
}

.is-style-card :is(h1, h2, h3, h4),
.is-style-panel-cream :is(h1, h2, h3, h4),
.is-style-cards > .wp-block-column :is(h1, h2, h3, h4),
.is-style-carousel > .wp-block-column :is(h1, h2, h3, h4) {
  color: var(--heading);
}

/* Images inside a Card group get the card's rounded corners */
.is-style-card .wp-block-image img,
.is-style-card .wp-block-media-text__media img {
  border-radius: var(--radius-md);
}

/* A Full-width panel becomes a band: square corners, section rhythm, gutters */
.alignfull.is-style-panel,
.alignfull.is-style-panel-plum,
.alignfull.is-style-panel-terracotta,
.alignfull.is-style-panel-cream,
.alignfull.panel {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: var(--section-y) var(--gutter);
}

/* Icon badge at the top of a card */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-border);
  color: var(--accent);
}

.wp-block-image.icon-badge {
  margin: 0 0 18px;
}

.icon-badge svg,
.icon-badge img,
.icon-badge iconify-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

/* Images inside cards sit flush with rounded corners */
.is-style-cards > .wp-block-column > .wp-block-image,
.is-style-carousel > .wp-block-column > .wp-block-image {
  margin: 0 0 18px;
}

.is-style-cards > .wp-block-column .wp-block-image img,
.is-style-carousel > .wp-block-column .wp-block-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Photo — Image block "Photo" style: rounded corners and a hairline frame */
.wp-block-image.is-style-photo img {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* Link with icon — paragraph style; every link inside gets a circled arrow.
   If the paragraph has no link yet, the paragraph itself takes the treatment
   so the style is visible in the editor before a URL is added. */
.is-style-link-icon a,
.is-style-link-icon:not(:has(a)) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--plum);
}

.is-style-link-icon a::after,
.is-style-link-icon:not(:has(a))::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23624050' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 10px no-repeat;
  transition: transform var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}

.is-style-link-icon a:hover {
  color: var(--accent);
}

.is-style-link-icon a:hover::after {
  transform: translate(2px, -2px);
  background-color: var(--accent-tint);
}

/* Pill tag */
.tag,
.is-style-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
}

/* Trust badge — Paragraph "Trust badge" style: a short line (registrations,
   accreditations) after a terracotta shield-check icon */
.is-style-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.is-style-trust::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   8b. BLOCK STYLES & PATTERNS  (registered in inc/blocks.php)
   ========================================================================== */

/* Tick list — core List with the "Tick list" style */
ul.is-style-ticks {
  list-style: none;
  padding-left: 0;
}

ul.is-style-ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

ul.is-style-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C26D5A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Credentials — core List with the "Credentials" style: a row of items split
   by hairlines. Bold text is the big line; the rest is the small label below. */
ul.is-style-credentials {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin: 40px 0 0;
}

ul.is-style-credentials li {
  flex: 0 1 auto;
  padding: 0 28px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Columns set word-break: break-word, which would let "HCPC" split mid-word */
  word-break: normal;
  overflow-wrap: normal;
}

ul.is-style-credentials li:first-child {
  padding-left: 0;
}

ul.is-style-credentials li + li {
  border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

ul.is-style-credentials strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 600px) {
  /* Equal thirds, so the items share the width instead of squashing one */
  ul.is-style-credentials li {
    flex: 1 1 0;
    padding: 0 12px;
    letter-spacing: 0.04em;
  }

  ul.is-style-credentials strong {
    font-size: 22px;
  }
}

/* Accordion — core Accordion block (preferred; has an "add item" appender).
   Flat rows split by hairlines; the round icon shows + closed and − open. */
.wp-block-accordion-item {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.wp-block-accordion-heading {
  margin: 0;
  font-size: 17px;
}

.wp-block-accordion-heading__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 8px;
  font-family: var(--font-heading);
  font-size: inherit;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  color: var(--heading);
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transform: none;
  box-shadow: none;
}

.wp-block-accordion-heading__toggle:hover {
  background: none;
  color: var(--plum);
  transform: none;
  box-shadow: none;
}

/* The saved "+" text is hidden; two bars draw + and collapse to − when open */
.wp-block-accordion-heading__toggle-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 0;
  color: var(--plum);
  background: var(--border);
  border-radius: 50%;
  transition: background var(--t-fast), color var(--t-fast);
}

.wp-block-accordion-heading__toggle-icon::before,
.wp-block-accordion-heading__toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-fast);
}

.wp-block-accordion-heading__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
  color: #fff;
  background: var(--plum);
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon::after {
  transform: translate(-50%, -50%);
}

.wp-block-accordion-panel {
  padding: 0 56px 24px 8px;
  color: var(--text-muted);
}

/* hidden="until-found" keeps the box in layout, so drop its padding when closed */
.wp-block-accordion-panel[hidden] {
  padding: 0;
}

.wp-block-accordion-panel > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .wp-block-accordion-panel {
    padding-right: 8px;
  }
}

/* Accordion — core Details block (same flat rows) */
.wp-block-details {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.wp-block-details summary {
  position: relative;
  padding: 24px 56px 24px 8px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--plum);
  border-bottom: 2px solid var(--plum);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-fast);
}

.wp-block-details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.wp-block-details summary:hover {
  color: var(--plum);
}

.wp-block-details > *:not(summary) {
  padding: 0 56px 0 8px;
  color: var(--text-muted);
}

.wp-block-details > *:last-child {
  padding-bottom: 24px;
  margin-bottom: 0;
}

/* CTA band pattern */
.cta-band {
  padding: var(--section-y) var(--gutter);
  border-radius: 0;
}

.cta-band p:not(.is-style-eyebrow) {
  color: rgba(255, 255, 255, 0.88);
}

.cta-band .is-style-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

/* Testimonial pattern */
.testimonial .wp-block-quote {
  margin: 0;
  padding: 36px 40px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--plum-tint);
}

.testimonial .wp-block-quote p {
  font-family: var(--font-heading);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--plum);
}

.testimonial .wp-block-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

/* Team member pattern */
.team-member {
  margin: var(--section-y) auto;
}

.team-member .wp-block-media-text__media img {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-member .wp-block-media-text__content {
  padding: 0 0 0 40px;
}

@media (max-width: 600px) {
  .team-member .wp-block-media-text__content {
    padding: 24px 0 0;
  }
}

/* Card carousel — Columns block with the "Card carousel" style.
   CSS makes the row a scroll-snap track; main.js adds arrows, dots, counter. */
.wp-block-columns.is-style-carousel {
  --carousel-gap: 20px;
  --carousel-card: calc((100% - 2 * var(--carousel-gap)) / 3); /* three across */
  display: flex;
  flex-wrap: nowrap !important;
  gap: var(--carousel-gap) !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 6px 4px 14px; /* room for the hover lift + shadow */
  scrollbar-width: none;
}

.wp-block-columns.is-style-carousel::-webkit-scrollbar {
  display: none;
}

/* Fade on the right edge while more cards are hidden. A sticky flex item pins
   to the scrollport's right edge mid-scroll. The negative margin cancels its
   width and the gap before it, so it adds nothing to the scroll width (cards
   that exactly fill the row don't scroll); at the end of the track it sits over
   the last card, but it's transparent there because .has-more is off.
   Set --carousel-fade on the parent if the section background isn't white. */
.wp-block-columns.is-style-carousel::after {
  content: "";
  position: sticky;
  right: 0;
  flex: 0 0 72px;
  margin-left: calc(-72px - var(--carousel-gap));
  align-self: stretch;
  background: linear-gradient(to right, transparent, var(--carousel-fade, var(--bg)) 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-med);
}

.wp-block-columns.is-style-carousel.has-more::after {
  opacity: 1;
}

.wp-block-columns.is-style-carousel > .wp-block-column {
  flex: 0 0 var(--carousel-card) !important;
  width: var(--carousel-card);
  padding: 16px 16px 20px; /* photo nearly edge to edge, as in the design */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

/* push a final "Learn more" line to the card foot */
.wp-block-columns.is-style-carousel > .wp-block-column > p:last-child {
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 999px) {
  .wp-block-columns.is-style-carousel {
    --carousel-card: calc((100% - var(--carousel-gap)) / 2);
  }
}

@media (max-width: 600px) {
  .wp-block-columns.is-style-carousel {
    --carousel-card: min(320px, 82vw);
  }
}

/* Controls injected by main.js. A heading directly above the carousel moves
   into .carousel-header with the arrows beside it; otherwise the arrows go in
   the footer under the track, bottom right. Both hide when nothing scrolls. */
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.carousel-header > .wp-block-heading {
  margin: 0;
}

.carousel-arrows[hidden],
.carousel-footer[hidden] {
  display: none;
}

.carousel-arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--plum);
  border: 1px solid var(--plum);
}

.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.carousel-arrow[disabled] {
  background: var(--border);
  border-color: var(--border);
  color: #fff;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}

.carousel-count {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--plum);
  min-width: 3ch;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.carousel-dot {
  width: 36px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--t-fast);
}

.carousel-dot:hover {
  background: var(--taupe);
  transform: none;
  box-shadow: none;
}

.carousel-dot.is-active {
  background: var(--plum);
}

@media (min-width: 782px) {
  .carousel-count,
  .carousel-dots {
    display: none; /* counter + dots are mobile-only; desktop keeps just the arrows */
  }
}

/* ==========================================================================
   9. BLOG — INDEX / ARCHIVE
   ========================================================================== */

.blog-archive {
  padding-top: 56px;
  padding-bottom: 72px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t-fast), gap var(--t-fast);
}

.blog-back-link:hover {
  color: var(--accent);
  gap: 10px;
}

.blog-archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.blog-archive-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
}

.blog-archive-intro {
  margin: 12px 0 0;
  max-width: 520px;
  color: var(--text-muted);
}

/* Search */
.blog-search {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  max-width: 100%;
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.blog-search-input {
  padding: 13px 96px 13px 44px;
  border-radius: var(--radius-pill);
}

.blog-search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  font-size: 13px;
}

/* Two-column layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.blog-main,
.blog-sidebar {
  min-width: 0;
}

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

/* Card */
.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

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

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--taupe);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.blog-card-media--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--taupe), var(--cream));
}

.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.blog-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.blog-card:hover .blog-card-title {
  color: var(--accent);
}

.blog-card-excerpt {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.blog-card-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
}

.blog-card-author-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.blog-card-author-name,
.blog-card-author-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-author-role {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
}

.blog-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card-date {
  color: var(--text-muted);
  white-space: nowrap;
}

/* Sidebar */
.blog-sidebar-inner {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.blog-cat-toggle,
.blog-cat-current {
  display: none;
}

.blog-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.blog-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast);
}

.blog-cat-link:hover {
  color: var(--accent);
  background: var(--accent-tint);
}

.blog-cat-link.is-active {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent-tint-border);
}

.blog-cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-weight: 600;
  color: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.blog-empty {
  padding: 60px 20px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-sidebar {
    order: -1;
  }

  .blog-sidebar-inner {
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }

  .blog-cat-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 12px 16px;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  .blog-cat-chevron {
    color: var(--accent);
    transition: transform var(--t-fast);
  }

  .blog-cat-toggle:checked ~ .blog-cat-current .blog-cat-chevron {
    transform: rotate(180deg);
  }

  .blog-cat-list {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--t-med), opacity var(--t-fast), margin-top var(--t-med);
  }

  .blog-cat-toggle:checked ~ .blog-cat-list {
    max-height: 65vh;
    overflow-y: auto;
    opacity: 1;
    margin-top: 8px;
    padding: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }
}

@media (max-width: 768px) {
  .blog-archive {
    padding-top: 32px;
  }

  .blog-archive-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .blog-search {
    width: 100%;
  }

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

/* ==========================================================================
   10. BLOG — SINGLE POST
   ========================================================================== */

.single-post {
  padding-top: 40px;
  padding-bottom: 72px;
}

.post-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.post-crumb a:hover {
  color: var(--accent);
}

.post-crumb .current {
  color: var(--text);
}

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

.post-article {
  min-width: 0;
}

.post-hero {
  margin: 0 0 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 460px;
}

@media (max-width: 782px) {
  .post-hero img {
    aspect-ratio: 1 / 1;
    max-height: 220px;
  }
}

.post-title {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 44px);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.post-byline .blog-card-avatar {
  width: 44px;
  height: 44px;
}

.post-byline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.post-byline-name {
  font-weight: 600;
  font-size: 15px;
}

.post-byline-role,
.post-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* Article body */
.post-body {
  max-width: var(--content-max);
  font-size: 17px;
}

.post-body h2 {
  margin: 42px 0 16px;
  font-size: 27px;
}

.post-body h3 {
  margin: 32px 0 12px;
  font-size: 21px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.post-body ul {
  list-style: none;
  padding-left: 0;
}

.post-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.post-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.post-body img {
  border-radius: var(--radius-sm);
}

.post-body blockquote,
.post-body .wp-block-quote {
  position: relative;
  margin: 34px 0;
  padding: 26px 28px 22px 32px;
  background: var(--plum-tint);
  border-left: 3px solid var(--plum);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
}

.post-body blockquote p {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--plum);
}

.post-body blockquote cite {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

/* Author card */
.author-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 50px;
  padding: 30px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.author-card .blog-card-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.author-card-text {
  min-width: 0;
}

.author-card-name {
  margin: 0 0 4px;
  font-size: 20px;
}

.author-card-role {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.author-card-bio {
  margin: 0 0 16px;
  font-size: 15px;
}

.author-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.post-cta-card {
  padding: 28px 26px;
  background: var(--plum);
  color: #fff;
  border-radius: var(--radius-md);
}

.post-cta-card .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.post-cta-title {
  margin: 0 0 12px;
  font-size: 22px;
  color: #fff;
}

.post-cta-text {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}

.post-cta-card .btn--secondary {
  margin-top: 10px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.post-cta-card .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.post-cta-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  font-size: 13.5px;
}

.post-cta-points div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-cta-points .tick {
  color: var(--cream);
  font-weight: 800;
}

.post-info-card {
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.post-info-card h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: inherit;
}

.post-info-item:last-child {
  margin-bottom: 0;
}

.post-info-item iconify-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
  color: var(--accent);
}

.post-info-item:hover .post-info-name {
  color: var(--accent);
}

.post-info-name {
  font-weight: 600;
  font-size: 15px;
}

.post-info-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Related */
.post-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.post-related-heading {
  margin: 0 0 24px;
  font-size: 24px;
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 920px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .post-sidebar {
    position: static;
    order: 2;
  }

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

@media (max-width: 600px) {
  .author-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky mobile booking bar */
.post-book-bar {
  display: none;
}

@media (max-width: 920px) {
  .post-book-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }

  .post-book-bar .btn {
    flex: 1;
    padding: 11px 10px;
    font-size: 13.5px;
  }

  body.single {
    padding-bottom: 72px;
  }

  /* That padding leaves room for the fixed booking bar — take it off the
     sticky-footer height so the footer still lands exactly on the fold. */
  body.single #page.site {
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
  }

  body.admin-bar.single #page.site {
    min-height: calc(100vh - 118px);
    min-height: calc(100dvh - 118px);
  }
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

/* No white strip before the footer when a page ends with a full-width band */
.site-content:has(> .site-main > .alignfull:last-child) + .site-footer {
  margin-top: 0;
}

.site-footer {
  margin-top: var(--section-y);
  background: var(--plum);
  color: var(--cream);
  font-size: 15px;
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: #fff;
}

/* Top row: brand, "Proudly hosted at", booking button */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 64px;
  height: auto;
}

.footer-name {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--cream);
}

.footer-name span {
  display: block;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.footer-partner span {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.footer-partner strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

.footer-partner img {
  width: 118px;
  height: auto;
}

/* Four columns: location, quick links, hours + contact, accreditation */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding: 56px 0;
}

.footer-grid :where(p, address) {
  margin: 0;
  font-style: normal;
  line-height: 1.75;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-grid .footer-heading:not(:first-child) {
  margin-top: 28px;
}

.footer-grid .footer-note {
  max-width: 300px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-accreditation {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-accreditation li {
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.footer-accreditation strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
}

/* Bottom bar: copyright, social icons */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom span a {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.55);
  transition: background var(--t-fast), color var(--t-fast);
}

.footer-social a:hover {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

@media (max-width: 999px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
    padding: 44px 0;
  }
}

@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-partner {
    gap: 20px;
  }

  .footer-partner span {
    text-align: left;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   12. UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-plum { color: var(--plum); }
.text-terracotta { color: var(--accent); }
.text-sage { color: var(--sage); }
.bg-cream { background: var(--cream); }
.bg-plum { background: var(--plum); color: #fff; }
.bg-sage { background: var(--sage); color: #fff; }
.bg-white { background: #fff; }
.rounded { border-radius: var(--radius-md); overflow: hidden; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
