/*
Theme Name: EBS
Theme URI: https://superuser.com.au
Author: Chris from Superuser Web Design
Author URI: https://superuser.com.au
Description: Custom Full Site Editing theme for Educated Birth Solutions. Earthy, professional, warm.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ebs
Tags: full-site-editing, block-themes, custom-colors, custom-fonts, one-column, two-columns
*/

/* ── WP Core border fix ───────────────────────────────────────────────────── */
/* WP core sets border-style:solid on .has-border-color, causing all four sides
   to appear with browser-default border-width (~3px medium). Reset to 0 here;
   inline styles from block JSON then restore only the intended sides. */
[class*="wp-block-"].has-border-color {
  border-width: 0;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.wp-block-template-part {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wp-site-blocks {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden;
}

.wp-block-group.alignfull,
.wp-block-cover.alignfull,
.alignfull {
  max-width: none;
  width: 100%;
}

.wp-block-group.alignfull + .wp-block-group.alignfull {
  margin-top: 0;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.wp-block-navigation a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #121212;
  transition: color 0.15s;
}

.wp-block-navigation a:hover {
  color: #b2a789;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.wp-block-button__link {
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.15s, background-color 0.15s;
}

.wp-block-button__link:hover {
  opacity: 0.85;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1.5px solid currentColor;
}

/* ── Hide on mobile ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hide-on-mobile { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.ebs-hero.wp-block-cover {
  width: 100%;
  max-width: none;
}

/* Gradient overlay — dark centre fading to darker edges for depth */
.ebs-hero .wp-block-cover__background {
  background: linear-gradient(
    160deg,
    rgba(12,12,14,0.55) 0%,
    rgba(12,12,14,0.35) 50%,
    rgba(12,12,14,0.65) 100%
  ) !important;
  opacity: 1 !important;
}

/* Pin image — keep face visible */
.ebs-hero .wp-block-cover__image-background {
  object-position: center 18% !important;
}

/* Inner container: full width, centred */
.ebs-hero .wp-block-cover__inner-container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 1.5rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Eyebrow label */
.ebs-hero-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #b2a789 !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

/* Main heading */
.ebs-hero-h1 {
  font-size: clamp(2rem, 5vw, 4rem) !important;
  line-height: 1.15 !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Hero buttons */
.ebs-btn-hero-solid .wp-block-button__link {
  background: #ffffff !important;
  color: #121212 !important;
  border: none !important;
}

.ebs-btn-hero-solid .wp-block-button__link:hover {
  background: #f0ebe4 !important;
  opacity: 1;
}

.ebs-btn-hero-outline .wp-block-button__link {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.65) !important;
}

.ebs-btn-hero-outline .wp-block-button__link:hover {
  border-color: #ffffff !important;
  opacity: 1;
}

/* ── Section system ───────────────────────────────────────────────────────── */
.ebs-section {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.ebs-section--cream   { background-color: #f7f3ef; }
.ebs-section--grey    { background-color: #f3f3f3; }
.ebs-section--white   { background-color: #ffffff; }
.ebs-section--navy    { background-color: #242833; }

/* ── Section label (eyebrow text) ─────────────────────────────────────────── */
.ebs-section-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #b2a789 !important;
  margin-top: 0 !important;
  margin-bottom: 0.6rem !important;
}

.ebs-section-label--light {
  color: rgba(255,255,255,0.45) !important;
}

.ebs-muted {
  color: #7a6e5f !important;
  margin-top: 0.75rem !important;
}

/* ── Split image+text sections ────────────────────────────────────────────── */
.ebs-split > .wp-block-columns {
  align-items: stretch;
  margin: 0 !important;
  gap: 0 !important;
}

/* Image column (first child) — Baby Massage */
.ebs-split__img {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 480px;
}

.ebs-split__img .wp-block-image {
  margin: 0 !important;
  flex: 1;
  overflow: hidden;
}

.ebs-split__img .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
}

/* Text column */
.ebs-split__text {
  background-color: #f7f3ef;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ebs-split__text h2 {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.ebs-split__text p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.ebs-split__text .wp-block-buttons {
  margin-top: 0.5rem;
}

/* Reversed layout — image on right (For Professionals) */
.ebs-split--reversed > .wp-block-columns > .wp-block-column.ebs-split__img {
  order: 2;
}

.ebs-split--reversed > .wp-block-columns > .wp-block-column.ebs-split__text {
  order: 1;
}

/* Benefit lists in split sections */
.ebs-benefit-list {
  padding-left: 1.2rem !important;
  margin-bottom: 1.5rem !important;
  margin-top: 0.25rem !important;
}

.ebs-benefit-list li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
  color: #3d3530;
}

/* ── Tick list (used in babymassage2 pattern) ────────────────────────────── */
.ebs-tick-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.25rem 0 1.75rem !important;
}

.ebs-tick-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.65;
  color: inherit;
}

.ebs-tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.1em;
  height: 1.1em;
  background-color: #b2a789;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 70% 70%;
  background-position: center;
}

/* ── Product sections ─────────────────────────────────────────────────────── */
.ebs-products-section {
  padding-top: clamp(2rem, 4vw, 3rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.ebs-collection-heading {
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  color: #121212;
}

.ebs-product-grid {
  margin-bottom: 0 !important;
  gap: 1rem !important;
}

.ebs-product-card {
  background: #ffffff !important;
  border-radius: 0 !important;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.ebs-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ebs-product-card .wp-block-image {
  margin: 0 !important;
}

.ebs-product-card .wp-block-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.ebs-product-card .wp-block-image a {
  display: block;
}

.ebs-product-name {
  padding: 0.7rem 0.75rem 0.1rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #121212 !important;
  margin: 0 !important;
  line-height: 1.4;
}

.ebs-product-price {
  padding: 0 0.75rem 0.75rem !important;
  font-size: 0.85rem !important;
  color: #7a6e5f !important;
  margin: 0 !important;
}

.ebs-view-all {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.ebs-view-all a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b2a789;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.ebs-view-all a:hover {
  color: #7a6e5f;
}

/* ── Meet Dr Elizabeth ────────────────────────────────────────────────────── */
.ebs-image-with-text .wp-block-columns {
  margin: 0 !important;
  gap: 0 !important;
}

.ebs-elizabeth-cover .wp-block-cover__image-background {
  object-position: 50% 20%;
}

.ebs-dr-text {
  background-color: #242833;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem) !important;
  color: rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ebs-dr-text h2 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.25;
  font-weight: 400;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.ebs-dr-text p {
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.ebs-key-points-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.6rem !important;
}

.ebs-dr-list {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.93rem;
  line-height: 1.7;
  padding-left: 1.2rem !important;
  margin-bottom: 1.5rem !important;
}

.ebs-dr-list li {
  color: rgba(255,255,255,0.72);
  margin-bottom: 0.35rem;
}

.ebs-dr-text .wp-block-button__link {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.45) !important;
}

.ebs-dr-text .wp-block-button__link:hover {
  border-color: #ffffff !important;
  opacity: 1;
}

/* ── Hero V3 (2-column split hero) ───────────────────────────────────────── */
.ebs-hero-v3 > .wp-block-columns {
  align-items: stretch !important;
  min-height: 85vh;
  gap: 0 !important;
  margin: 0 !important;
}

.ebs-hero-v3__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 6vw, 5rem) !important;
}

.ebs-hero-v3__text .ebs-section-label {
  color: #b2a789;
  padding-left: 1rem;
  border-left: 2px solid #b2a789;
  margin-bottom: 1.25rem;
}

.ebs-hero-v3__text h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.ebs-hero-v3__text > p,
.ebs-hero-v3__text .wp-block-paragraph {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 0;
}

.ebs-hero-v3__img {
  padding: 0 !important;
  overflow: hidden;
}

.ebs-hero-v3__img .wp-block-image {
  height: 100%;
  margin: 0;
  min-height: 400px;
}

.ebs-hero-v3__img .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}

@media (max-width: 781px) {
  .ebs-hero-v3 > .wp-block-columns {
    min-height: auto;
    flex-direction: column-reverse !important;
  }
  .ebs-hero-v3__img {
    min-height: 65vw;
  }
  .ebs-hero-v3__img .wp-block-image {
    min-height: 65vw;
  }
}

/* Tick list inside dark columns */
.ebs-dr-text .ebs-tick-list li {
  color: rgba(255,255,255,0.78);
}

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.ebs-testimonials-heading {
  margin-top: 0 !important;
  margin-bottom: 2.5rem !important;
  color: #121212;
}

.ebs-testimonials-grid {
  margin-bottom: 0 !important;
  align-items: stretch !important;
}

.ebs-testimonial-card {
  padding: 1.75rem !important;
  border: 1px solid #e8e2d9 !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  height: 100%;
}

.ebs-testimonial-avatar {
  margin: 0 !important;
}

.ebs-testimonial-avatar img {
  border-radius: 50% !important;
  width: 68px !important;
  height: 68px !important;
  object-fit: cover;
  display: block;
}

.ebs-testimonial-quote {
  font-size: 0.95rem !important;
  line-height: 1.75 !important;
  color: #3d3530 !important;
  font-style: italic;
  flex: 1;
  margin: 0 !important;
}

.ebs-testimonial-author {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #b2a789 !important;
  text-transform: uppercase;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Testimonial quote/author on dark (navy) backgrounds */
.has-ebs-navy-background-color .ebs-testimonial-quote {
  color: rgba(255,255,255,0.85) !important;
}

/* ── Associations ─────────────────────────────────────────────────────────── */
.ebs-assoc-heading {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  color: #121212;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
}

.ebs-assoc-logos {
  gap: 2.5rem 3.5rem !important;
}

.ebs-assoc-logos .wp-block-image {
  margin: 0;
}

.ebs-assoc-logos .wp-block-image img {
  opacity: 1;
}

/* ── Qualifications list ──────────────────────────────────────────────────── */

/* v1 — simple ruled list */
/* Flex layout via CSS — do NOT add layout:flex to the block attribute or
   Gutenberg's save() will add is-layout-flex classes that won't match
   hand-crafted pattern HTML, causing "Block contains unexpected content". */
.ebs-qual-list-simple .ebs-qual-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d8d0c4;
  padding: 1.25rem 0;
}

.ebs-qual-list-simple .ebs-qual-row:first-child {
  border-top: 1px solid #d8d0c4;
}

/* v2 / v4 — timeline and navy row styles */
.ebs-qual-list .ebs-qual-row {
  border-bottom: 1px solid #e8e2d9;
}

.ebs-qual-list .ebs-qual-row:first-child {
  border-top: 1px solid #e8e2d9;
}

.ebs-qual-list--navy .ebs-qual-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.ebs-qual-list--navy .ebs-qual-row:first-child {
  border-top-color: rgba(255, 255, 255, 0.12);
}


/* ── Publications list ────────────────────────────────────────────────────── */

.ebs-pub-list .ebs-pub-row {
  border-bottom: 1px solid #e8e2d9;
}

.ebs-pub-list .ebs-pub-row:first-child {
  border-top: 1px solid #e8e2d9;
}

.ebs-pub-list--navy .ebs-pub-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.ebs-pub-list--navy .ebs-pub-row:first-child {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* ── Contact ──────────────────────────────────────────────────────────────── */
.ebs-contact-heading {
  color: #121212;
  margin-top: 0 !important;
  margin-bottom: 1.75rem !important;
}

/* ── CF7 — global base ────────────────────────────────────────────────────── */
.wpcf7-form {
  width: 100%;
}

.wpcf7-form p {
  margin-bottom: 0 !important;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1.25rem;
}

/* All text inputs + textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 0;
  padding: 0.7rem 0 0.6rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease;
  box-shadow: none;
  -webkit-appearance: none;
}

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

/* Focus state */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-bottom-color: #b2a789;
}

/* Placeholder */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* Labels */
.wpcf7-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
  opacity: 0.55;
}

/* Radio + checkbox groups */
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0 1rem;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item label,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item input,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input {
  display: none;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item label:has(input:checked),
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item label:has(input:checked) {
  border-color: #b2a789;
  background: rgba(178, 167, 137, 0.1);
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2.5rem;
  background: #1c2b3a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.1s ease;
  -webkit-appearance: none;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background: #2d3f50 !important;
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
  transform: translateY(1px);
}

/* Spinner */
.wpcf7-spinner {
  margin-left: 0.75rem;
  vertical-align: middle;
}

/* Validation errors */
.wpcf7-not-valid {
  border-bottom-color: #c0392b !important;
}

.wpcf7-not-valid-tip {
  display: block;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.3rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* Response output (success / error banner) */
.wpcf7-response-output {
  margin-top: 1.5rem !important;
  padding: 1rem 1.25rem !important;
  border: none !important;
  border-radius: 2px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.wpcf7-mail-sent-ok {
  background: rgba(178, 167, 137, 0.15) !important;
  color: #3d3530 !important;
  border-left: 3px solid #b2a789 !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
  background: rgba(192, 57, 43, 0.08) !important;
  color: #7a1f18 !important;
  border-left: 3px solid #c0392b !important;
}

/* ── CF7 on navy backgrounds ──────────────────────────────────────────────── */
.has-ebs-navy-background-color .wpcf7-form input[type="text"],
.has-ebs-navy-background-color .wpcf7-form input[type="email"],
.has-ebs-navy-background-color .wpcf7-form input[type="tel"],
.has-ebs-navy-background-color .wpcf7-form textarea {
  border-bottom-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.has-ebs-navy-background-color .wpcf7-form input[type="text"]:focus,
.has-ebs-navy-background-color .wpcf7-form input[type="email"]:focus,
.has-ebs-navy-background-color .wpcf7-form input[type="tel"]:focus,
.has-ebs-navy-background-color .wpcf7-form textarea:focus {
  border-bottom-color: #b2a789;
}

.has-ebs-navy-background-color .wpcf7-form input::placeholder,
.has-ebs-navy-background-color .wpcf7-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.has-ebs-navy-background-color .wpcf7-form label {
  color: rgba(255, 255, 255, 0.55);
}

.has-ebs-navy-background-color .wpcf7-form .wpcf7-submit {
  background: #b2a789 !important;
}

.has-ebs-navy-background-color .wpcf7-form .wpcf7-submit:hover {
  background: #c4b99a !important;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer .wp-block-list,
.footer-policy-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.site-footer .wp-block-list li,
.footer-policy-links li {
  margin-bottom: 0.5rem;
}

.site-footer a,
.footer-policy-links a {
  color: var(--wp--preset--color--ebs-light-brown);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.site-footer a:hover,
.footer-policy-links a:hover {
  color: #ffffff;
}


/* ── Credentials Bar ──────────────────────────────────────────────────────── */
.ebs-credentials-bar .wp-block-columns {
  align-items: stretch !important;
}

.ebs-stat-item {
  border-right: 1px solid rgba(255,255,255,0.1);
}

.ebs-stat-item:last-child {
  border-right: none;
}

.ebs-stat-number {
  font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
}

.ebs-stat-label {
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,0.5) !important;
  margin: 0 !important;
}

/* ── Services Trio ────────────────────────────────────────────────────────── */
.ebs-service-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.ebs-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.ebs-service-icon {
  font-size: 1.5rem !important;
  color: #b2a789 !important;
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
  line-height: 1 !important;
}

/* ── Affiliations ─────────────────────────────────────────────────────────── */
.ebs-affiliation-grid {
  gap: 0.75rem !important;
}

.ebs-affiliation-badge {
  display: inline-block !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: #7a6e5f !important;
  background: #ede8e0 !important;
  border: 1px solid #d4c9b5 !important;
  border-radius: 2px !important;
  padding: 0.4rem 0.85rem !important;
  margin: 0 !important;
  white-space: nowrap;
}

.ebs-affiliation-badge--accent {
  color: #242833 !important;
  background: #f7f3ef !important;
  border-color: #b2a789 !important;
}

/* ── Product / Model Cards ────────────────────────────────────────────────── */
.ebs-model-grid.wp-block-columns {
  align-items: stretch !important;
}

.ebs-model-card.wp-block-column {
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
}

.ebs-model-card .wp-block-group:last-child {
  flex: 1;
}

.ebs-model-card__header {
  min-height: 90px;
  display: flex;
  align-items: flex-end;
}

.ebs-model-price {
  font-size: 1.75rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
}

/* ── CTA Banner ───────────────────────────────────────────────────────────── */
.ebs-cta-banner {
  position: relative;
}

.ebs-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(178,167,137,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Founder Bio ──────────────────────────────────────────────────────────── */
.ebs-founder-bio__img {
  overflow: hidden;
}

.ebs-founder-bio__img .wp-block-cover {
  height: 100%;
  min-height: 500px;
}

.ebs-founder-bio__img .wp-block-cover__image-background {
  object-position: 50% 10% !important;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.ebs-faq-item {
  border-bottom: 1px solid #d4c9b5;
  margin-bottom: 0 !important;
}

.ebs-faq-item summary {
  font-size: 1rem;
  font-weight: 600;
  color: #121212;
  padding: 1.25rem 2rem 1.25rem 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.4;
}

.ebs-faq-item summary::-webkit-details-marker { display: none; }
.ebs-faq-item summary::marker { display: none; }

.ebs-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: #b2a789;
  line-height: 1;
  transition: transform 0.2s;
}

.ebs-faq-item[open] summary::after {
  content: '−';
}

.ebs-faq-item .wp-block-paragraph {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #7a6e5f;
  padding-bottom: 1.25rem;
  margin-top: 0 !important;
}

/* ── Process Steps ────────────────────────────────────────────────────────── */
.ebs-process-steps.wp-block-columns {
  align-items: flex-start !important;
}

.ebs-process-step {
  position: relative;
}

.ebs-step-number {
  font-size: 2.5rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  color: #b2a789 !important;
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--playfair-display), serif !important;
  letter-spacing: -0.02em;
}

/* ── Newsletter ───────────────────────────────────────────────────────────── */
.ebs-newsletter__offer {
  display: inline-block;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #ede8e0 !important;
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  padding: 0.35rem 1rem !important;
  border-radius: 100px !important;
  margin-bottom: 1.25rem !important;
  margin-top: 0 !important;
}

.ebs-newsletter__form-area {
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REUSABLE CARD & GRID SYSTEM
   ─────────────────────────────────────────────────────────────────────────
   Apply these classes to any grid of cards to get:
     • Equal-height cards
     • Uniform image sizes (cover-cropped, no inline heights needed)
     • Buttons always pinned to the bottom regardless of text above
     • Responsive: 2-col → 1-col on mobile automatically
   ═══════════════════════════════════════════════════════════════════════════ */

/* Grid container
   Works on wp:columns blocks — adds flex-wrap so 2-col wraps to 1-col.
   Use alongside two rows of columns OR a single 4-column block. */
.ebs-card-grid.wp-block-columns {
  align-items: stretch !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  margin-bottom: 0 !important;
}

/* Each column in a card grid */
.ebs-card-grid.wp-block-columns > .wp-block-column {
  flex: 1 1 calc(50% - 0.75rem) !important;
  min-width: 260px;
  max-width: 100%;
}

/* Card shell — flex column so body grows, footer pins to bottom */
.ebs-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  border-radius: 6px;
  height: 100%;
  background: #ffffff;
}

/* Image — uniform height, cover-cropped. No inline styles needed. */
.ebs-card > figure.wp-block-image,
.ebs-card > .wp-block-group > figure.wp-block-image {
  flex-shrink: 0;
  margin: 0 !important;
  overflow: hidden;
  line-height: 0;
}

.ebs-card > figure.wp-block-image img,
.ebs-card > .wp-block-group > figure.wp-block-image img {
  width: 100% !important;
  height: var(--ebs-card-image-height, 320px) !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Header band (coloured strip with title/price) */
.ebs-card__header {
  flex-shrink: 0;
}

/* Body — grows to fill remaining card height */
.ebs-card__body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Footer — always pinned to the bottom of the card */
.ebs-card__footer {
  margin-top: auto !important;
  padding-top: 1.5rem !important;
}

/* Hover lift — opt-in */
.ebs-card--hoverable {
  transition: box-shadow 0.2s, transform 0.2s;
}
.ebs-card--hoverable:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  transform: translateY(-2px);
}

/* Responsive ── card grid */
@media (max-width: 782px) {
  .ebs-card-grid.wp-block-columns {
    gap: 1.25rem !important;
  }
  .ebs-card-grid.wp-block-columns > .wp-block-column {
    flex: 1 1 100% !important;
    min-width: 0;
  }
  .ebs-card > figure.wp-block-image img,
  .ebs-card > .wp-block-group > figure.wp-block-image img {
    height: var(--ebs-card-image-height-mobile, 280px) !important;
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

/* Reverse column order on mobile */
@media (max-width: 782px) {
  .ebs-cols-reverse-mobile {
    display: flex !important;
    flex-direction: column-reverse !important;
    flex-wrap: nowrap !important;
  }
  .ebs-cols-reverse-mobile > .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .header-inner {
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .header-inner {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Hero */
  .ebs-hero .wp-block-cover__inner-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .ebs-hero-content {
    max-width: 100%;
  }

  /* Stack all columns */
  .wp-block-columns:not(.is-not-stacked-on-mobile):not(.ebs-cols-reverse-mobile) {
    flex-direction: column !important;
  }


  .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column {
    flex-basis: 100% !important;
  }

  /* Split sections on mobile */
  .ebs-split__img {
    min-height: 300px;
    order: 1 !important;
  }

  .ebs-split--reversed > .wp-block-columns > .wp-block-column.ebs-split__img {
    order: 1 !important;
  }

  .ebs-split--reversed > .wp-block-columns > .wp-block-column.ebs-split__text {
    order: 2 !important;
  }

  .ebs-split__text {
    padding: 2.5rem 1.5rem !important;
  }

  .ebs-dr-text {
    padding: 2.5rem 1.5rem !important;
  }

  /* Product grid: 2 cols on mobile */
  .ebs-product-grid.wp-block-columns {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .ebs-product-grid .wp-block-column {
    flex-basis: calc(50% - 0.5rem) !important;
    width: calc(50% - 0.5rem) !important;
  }

  .ebs-product-card .wp-block-image img {
    height: 150px;
  }

  /* Testimonials */
  .ebs-testimonials-grid.wp-block-columns {
    flex-direction: column !important;
  }

  /* Credentials bar — stack on mobile */
  .ebs-credentials-bar .wp-block-columns {
    flex-direction: column !important;
  }
  .ebs-stat-item,
  .ebs-stat-item.ebs-stat-item--border {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.75rem 1.5rem !important;
  }
  .ebs-stat-item:last-child {
    border-bottom: none;
  }

  /* Services trio */
  .ebs-service-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Affiliations — wrap badges tightly */
  .ebs-affiliation-badge {
    white-space: normal;
  }

  /* Product model grid: 2 cols */
  .ebs-model-grid.wp-block-columns {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  .ebs-model-grid .wp-block-column {
    flex-basis: calc(50% - 0.625rem) !important;
    width: calc(50% - 0.625rem) !important;
  }

  /* Founder bio — stack, image on top */
  .ebs-founder-bio .wp-block-columns {
    flex-direction: column !important;
  }
  .ebs-founder-bio__img {
    min-height: 300px;
  }
  .ebs-founder-bio__img .wp-block-cover {
    min-height: 300px !important;
  }
  .ebs-dr-text.wp-block-column {
    padding: 2.5rem 1.5rem !important;
  }

  /* Process steps — 2 cols on mobile */
  .ebs-process-steps.wp-block-columns {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  .ebs-process-steps .wp-block-column {
    flex-basis: calc(50% - 1rem) !important;
    width: calc(50% - 1rem) !important;
  }

  /* Newsletter */
  .ebs-newsletter__form-area {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Footer */
  .site-footer .wp-block-columns {
    flex-direction: column;
  }

  .site-footer .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }
}

/* ── Publications list ────────────────────────────────────────────────────── */
.ebs-pub-list {
  margin: 0;
  padding: 0;
}
.ebs-pub-row {
  margin: 0 !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  gap: 2rem;
}
.ebs-pub-row + .ebs-pub-row {
  border-top: 1px solid rgba(0,0,0,0.1);
}
.ebs-pub-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
}
.ebs-pub-citation {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Publications v7: year-grouped ───────────────────────────────────────── */
.ebs-pub-year-group {
  padding-top: 2.5rem;
}
.ebs-pub-year-group:first-child {
  padding-top: 0;
}
.ebs-pub-year-group + .ebs-pub-year-group {
  border-top: 1px solid #e8e2d9;
}
.ebs-pub-year-group .ebs-pub-citation + .ebs-pub-citation {
  margin-top: 1rem;
}

/* ── Publications v8: inline year badge ───────────────────────────────────── */
.ebs-pub-badge {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15em 0.55em;
  background: var(--wp--preset--color--ebs-dark-cream);
  color: var(--wp--preset--color--ebs-mid-brown);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 0.5em;
}

/* ── Hero v7 numeral ──────────────────────────────────────────────────────── */
.ebs-hero-numeral { opacity: 0.18; }

/* ── Column image stretch ─────────────────────────────────────────────────── */
/* Makes a cover block fill the full height of its parent column              */
.ebs-col-image {
  display: flex;
  flex-direction: column;
}
.ebs-col-image > .wp-block-cover {
  flex: 1 1 auto;
}

/* ── Split image + text: image fills column height ───────────────────────── */
.ebs-image-with-text .is-vertically-aligned-stretch {
  display: flex;
  flex-direction: column;
}
.ebs-image-with-text .is-vertically-aligned-stretch .wp-block-image {
  flex: 1 1 auto;
  margin: 0;
}
.ebs-image-with-text .is-vertically-aligned-stretch .wp-block-image figure,
.ebs-image-with-text .is-vertically-aligned-stretch .wp-block-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}
