/* Jerome - Custom Styles v2.0 */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-variable-v15.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-variable-v12.woff2") format("woff2");
}

/* ============================================
   Breakpoint system (Bootstrap-aligned)
   --------------------------------------------
   xs   <576px   (default, mobile-first)
   sm   ≥576px   @media (min-width: 576px)
   md   ≥768px   @media (min-width: 768px)
   lg   ≥992px   @media (min-width: 992px)
   xl   ≥1200px  @media (min-width: 1200px)
   xxl  ≥1400px  @media (min-width: 1400px)

   Desktop-first equivalents (max-width):
   xs-down  <576px   @media (max-width: 575.98px)
   sm-down  <768px   @media (max-width: 767.98px)
   md-down  <992px   @media (max-width: 991.98px)
   lg-down  <1200px  @media (max-width: 1199.98px)
   xl-down  <1400px  @media (max-width: 1399.98px)

   Component-specific exceptions:
   header nav <1100px  switches to the mobile menu before links wrap
   WP columns <782px   matches WordPress core's column stacking point
   ============================================ */

/* ============================================
   Base — 1rem = 16px, always
   ============================================ */

html, html.wp-site-blocks {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Font Size Utilities
   --------------------------------------------
   Mirror the theme.json fontSizes presets so templates can use a
   short class instead of a preset attribute. Keep both in sync:
   tiny/small/medium/large/x-large/xx-large/display.
   (.text-xl has no preset equivalent.)
   ============================================ */

.text-xs  { font-size: var(--wp--preset--font-size--tiny); }    /* 12px */
.text-sm  { font-size: var(--wp--preset--font-size--small); }   /* 14px */
.text-base { font-size: var(--wp--preset--font-size--medium); } /* 16px — the default */
.text-lg  { font-size: var(--wp--preset--font-size--large); }   /* 18px */
.text-xl  { font-size: 1.5rem; }                                /* 24px */
.text-2xl { font-size: var(--wp--preset--font-size--x-large); } /* 30px */
.text-3xl { font-size: var(--wp--preset--font-size--xx-large); }/* 40px */
.text-display { font-size: var(--wp--preset--font-size--display); } /* 56px */

/* Remove default WordPress block gap between header/main/footer and between sections */
.wp-site-blocks > * + *,
.wp-site-blocks main > * + * {
  margin-block-start: 0 !important;
}

/* ============================================
   Contrast – force readable text on marine bg
   ============================================ */

/* Headings: theme.json sets heading color to marine globally;
   override inside marine-bg containers so they stay white. */
.has-marine-background-color h1,
.has-marine-background-color h2,
.has-marine-background-color h3,
.has-marine-background-color h4 {
  color: var(--wp--preset--color--surface) !important;
}

/* Preset surface-color class must beat theme.json heading rule */
.has-marine-background-color .has-surface-color {
  color: var(--wp--preset--color--surface) !important;
}

/* Preserve accent colours inside marine sections */
.has-marine-background-color .has-mint-color {
  color: var(--wp--preset--color--mint) !important;
}

.has-marine-background-color .stars {
  color: var(--wp--custom--color--star) !important;
}

/* Buttons – surface text stays white regardless of context */
.wp-element-button.has-surface-color,
.wp-block-button__link.has-surface-color {
  color: var(--wp--preset--color--surface) !important;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--wp--custom--shadow--xs);
}

/* Remove backdrop-filter when mobile menu is open so position:fixed overlay
   uses viewport as containing block instead of the header */
.has-modal-open .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--wp--preset--color--surface);
}

/* ============================================
   Navigation
   ============================================ */

.site-header .wp-block-navigation .wp-block-navigation-item a {
  font-size: 1rem;
  text-decoration: none;
  position: relative;
}

.site-header .wp-block-navigation .wp-block-navigation-item a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--wp--preset--color--mint);
  transition: width var(--wp--custom--transition--medium);
}

.site-header .wp-block-navigation .wp-block-navigation-item a:hover::after,
.site-header .wp-block-navigation .wp-block-navigation-item a[aria-current="page"]::after {
  width: 100%;
}

/* Keep the expanded navigation compact after adding the ORTHOCANIS link. */
@media (min-width: 1100px) and (max-width: 1199.98px) {
  .site-header .wp-block-navigation__container {
    gap: 1.125rem !important;
  }

  .site-header .wp-block-navigation .wp-block-navigation-item a,
  .site-header .wp-block-button__link {
    font-size: 0.9375rem;
  }

  .site-header .wp-block-button__link {
    padding-inline: 1rem !important;
  }
}

@media (max-width: 1099.98px) {
  .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .site-header .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
}

@media (max-width: 575.98px) {
  .site-header > .wp-block-group > .wp-block-group:last-child {
    gap: 0.5rem !important;
  }
}

/* ============================================
   Overline Label
   ============================================ */

.overline {
  font-family: var(--wp--preset--font-family--outfit);
  color: var(--wp--preset--color--mint);
  font-size: var(--wp--preset--font-size--tiny);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ============================================
   Stat Numbers
   ============================================ */

.stat-number {
  font-family: var(--wp--preset--font-family--outfit) !important;
}

/* ============================================
   Buttons
   ============================================ */

.wp-block-button .wp-block-button__link {
  font-size: 1rem;
  transition: all var(--wp--custom--transition--base);
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.wp-block-button__link:active {
  transform: translateY(0) scale(0.98);
}

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

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--marine) !important;
  color: var(--wp--preset--color--surface) !important;
  border-color: var(--wp--preset--color--marine) !important;
}

.wp-block-button__link.has-mint-background-color:hover {
  filter: brightness(0.92);
}

/* ============================================
   Mini Cart Badge
   ============================================ */

.wc-block-mini-cart__badge {
  background-color: var(--wp--preset--color--mint) !important;
  color: var(--wp--preset--color--surface) !important;
}

/* ============================================
   Mini Cart drawer — footer actions
   --------------------------------------------
   The drawer opens from the header on every page, so its styles belong here
   and not in woocommerce.css, which only loads on shop/cart/checkout/account.
   Left to WooCommerce's own sizing the two footer buttons are a step larger
   than every other button on the site, and in a ~480px drawer their labels
   wrap onto a second line, which reads as two oversized blocks.
   ============================================ */

.wc-block-mini-cart__footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Side by side while each still fits its label, stacked once it doesn't —
   rather than side by side with the text broken across two lines. */
.wc-block-mini-cart__footer-actions > .wc-block-components-button {
  flex: 1 1 11rem;
}

.wc-block-mini-cart__footer .wc-block-components-button {
  min-height: 0;
  padding: 0.625rem 1rem;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--wp--custom--radius--sm);
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  transition:
    transform var(--wp--custom--transition--slow),
    box-shadow var(--wp--custom--transition--slow);
  box-shadow: var(--wp--custom--shadow--sm);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wp--custom--shadow--lg);
}

.service-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--wp--preset--color--mint);
  border-radius: var(--wp--custom--radius--lg);
  padding: 2rem 1.5rem;
}

.service-card__icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.45;
  filter: invert(80%) sepia(20%) saturate(600%) hue-rotate(115deg) brightness(90%) contrast(85%);
  -webkit-mask-image: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.4) 35%, black 100%);
  mask-image: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.4) 35%, black 100%);
}

.service-read-more a {
  color: var(--wp--preset--color--marine);
  text-decoration: none;
  font-family: var(--wp--preset--font-family--outfit);
  font-weight: 500;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--wp--custom--transition--base);
}

.service-read-more a:hover {
  color: var(--wp--preset--color--mint);
}

.read-more-arrow {
  display: inline-block;
  transition: transform var(--wp--custom--transition--base);
}

.service-read-more a:hover .read-more-arrow {
  transform: scale(1.35) translateX(2px);
}

.review-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--wp--custom--color--surface-alpha-10);
  transition:
    background var(--wp--custom--transition--slow),
    transform var(--wp--custom--transition--slow);
}

.review-card:hover {
  background: var(--wp--custom--color--surface-alpha-10);
  transform: translateY(-2px);
}

.stars {
  color: var(--wp--custom--color--star);
  letter-spacing: 0.1em;
}

/* ============================================
   Reviews Carousel
   ============================================ */

.reviews-carousel {
  position: relative;
  margin-top: 0.5rem;
  padding: 0 3.5rem;
}

.reviews-carousel__viewport {
  overflow: hidden;
}

.reviews-carousel__track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
}

.reviews-carousel__slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
  display: flex;
}

.reviews-carousel__slide .review-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  border-radius: var(--wp--custom--radius--lg);
}

.reviews-carousel__slide .stars {
  margin: 0 0 1rem;
}

.review-card__text {
  color: var(--wp--preset--color--surface);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  flex: 1;
}

.review-card__name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

/* Arrows */
.reviews-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--wp--custom--color--surface-alpha-20);
  background: var(--wp--custom--color--surface-alpha-10);
  color: var(--wp--preset--color--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--wp--custom--transition--base),
    border-color var(--wp--custom--transition--base);
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
}

.reviews-carousel__arrow:hover {
  background: var(--wp--custom--color--surface-alpha-20);
  border-color: rgba(255, 255, 255, 0.4);
}

.reviews-carousel__arrow--prev {
  left: 0;
}

.reviews-carousel__arrow--next {
  right: 0;
}

/* Dots */
.reviews-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.reviews-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition:
    background var(--wp--custom--transition--slow),
    transform var(--wp--custom--transition--slow);
}

.reviews-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.reviews-carousel__dot.active {
  background: var(--wp--preset--color--mint, #6eccb2);
  transform: scale(1.25);
}

@media (max-width: 991.98px) {
  .reviews-carousel__slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 575.98px) {
  .reviews-carousel {
    padding: 0;
  }

  .reviews-carousel__slide {
    flex: 0 0 100%;
  }

  .reviews-carousel__arrow {
    display: none;
  }
}

/* ============================================
   Hero
   ============================================ */

/* Above-the-fold content renders immediately; scroll reveals are reserved for
   later sections so heading and image paint are never held back from LCP. */
.hero-stats {
  flex-wrap: nowrap !important;
}

.site-hero .wp-block-columns > .wp-block-column:last-child .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================================
   Images
   ============================================ */

.wp-block-image img,
.wp-block-post-featured-image img {
  border-radius: var(--wp--custom--radius--lg);
}

/* ============================================
   Footer
   ============================================ */

.footer-links {
  list-style: none;
  padding: 0 !important;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--wp--preset--color--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--wp--custom--transition--fast);
}

.footer-links a:hover {
  color: var(--wp--preset--color--marine);
}

.site-footer {
  position: relative;
}

.site-footer > .has-text-align-center {
  position: relative;
  z-index: 1;
}

.footer-bunny {
  width: 280px;
  height: auto;
  pointer-events: none;
}

@media (min-width: 768px) {
  .footer-bunny {
    position: absolute;
    bottom: 0;
    left: -2rem;
    width: 400px;
  }
}

@media (min-width: 1400px) {
  .footer-bunny {
    width: 550px;
  }
}

@media (max-width: 767.98px) {
  .footer-bunny {
    display: block;
    width: 280px;
    margin: 1rem auto 0;
  }
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--wp--custom--radius--sm);
  background: var(--wp--preset--color--ice);
  color: var(--wp--preset--color--marine);
  transition:
    background var(--wp--custom--transition--base),
    color var(--wp--custom--transition--base);
}

.social-icons a:hover {
  background: var(--wp--preset--color--marine);
  color: var(--wp--preset--color--surface);
}

/* ============================================
   Google Review Badge
   ============================================ */

.google-review-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.google-review-badge__info {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem;
}

.google-review-badge__score {
  font-family: var(--wp--preset--font-family--outfit);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--wp--preset--color--surface) !important;
}

.google-review-badge__stars {
  color: var(--wp--custom--color--star-google) !important;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.google-review-badge__count {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.875rem;
}

/* ============================================
   Product card
   --------------------------------------------
   ONE card for every product grid on the site: the homepage strip
   ("Ontdek ons assortiment"), the ORTHOCANIS brand page, the shop and
   category archives, and related products. Each context only chooses its
   column count; the card itself never varies.

   These rules live here — NOT in woocommerce.css — because the homepage and
   the ORTHOCANIS page are not WooCommerce pages, so woocommerce.css is not
   enqueued there (see inc/enqueue.php).

   Sizes stay explicit in rem so product cards remain stable if an editor
   changes one of the global typography presets later.
   ============================================ */

.wc-block-product {
  /* Not inherited here, and the 1px border would otherwise put the card 2px
     over any half-width track and wrap the grid to a single column. */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 1.75rem;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--xl);
  box-shadow: var(--wp--custom--shadow--sm);
  transition:
    transform var(--wp--custom--transition--slow),
    box-shadow var(--wp--custom--transition--slow);
}

.wc-block-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--wp--custom--shadow--lg);
}

/* The image is the only child that reaches the card edges. */
.wc-block-product .wp-block-woocommerce-product-image {
  margin: 0 0 1.5rem;
}

/* A fixed square keeps cards the same height whatever the source photo does.
   Product thumbnails are already generated square, so nothing is cropped. */
.wc-block-product .wp-block-woocommerce-product-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--wp--preset--color--ice);
}

.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-woocommerce-product-price,
.wc-block-product .wp-block-woocommerce-product-button {
  padding-inline: 1.5rem;
}

.wc-block-product .wp-block-post-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

.wc-block-product .wp-block-woocommerce-product-price {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--wp--preset--color--text-muted);
}

/* margin-top:auto pins the button to the bottom, so buttons line up across a
   row even when one title wraps to two lines.

   The block holds three things once a product is in the cart: the add button,
   the quantity chip injected by jerome_add_cart_quantity_chip(), and the
   view-cart link WooCommerce reveals. They share one centred row that wraps. */
.wc-block-product .wp-block-woocommerce-product-button {
  display: flex;
  /* WooCommerce's `.wp-block-button.wc-block-components-product-button` sets
     `flex-direction: column` at the same specificity. Left implicit, the row
     below becomes a wrapping *column* and the three items lay themselves out
     in three columns that overflow the card. */
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: auto;
}

/* Two assumptions WooCommerce's own column layout makes, both wrong in a row:
   `white-space: normal` (set from a three-class selector, hence the specificity
   here) would break the label over two lines while the row still has slack, and
   `.wp-block-button__link { height: 100% }` stretches the button to the height
   of the whole wrapper — including the wrapped view-cart line, which made it
   82px tall and pushed the card's content past its own bottom edge. */
.wc-block-product .wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button {
  height: auto;
  white-space: nowrap;
}

/* The view-cart link is a follow-up, not a peer of the button — its own line,
   centred like the rest of the card. */
.wc-block-product .wp-block-woocommerce-product-button > span:has(> .added_to_cart) {
  flex-basis: 100%;
  text-align: center;
}

/* Specific enough to beat `.woocommerce a.added_to_cart` in woocommerce.css,
   which isn't loaded on the homepage — this keeps the link identical in every
   grid, and drops its margin now that the flex gap does the spacing. */
.wc-block-product .wp-block-woocommerce-product-button .added_to_cart {
  margin: 0;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--marine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Status, not a control: a quiet chip that can't be mistaken for the button
   beside it. Empty until the Interactivity API fills in the count. */
.jerome-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.6875rem;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--wp--preset--color--marine);
  background-color: var(--wp--custom--color--mint-alpha-10);
  border-radius: 999px;
}

/* `[hidden] { display: none }` is a user-agent rule, so the class above would
   otherwise keep the chip visible reading "0 in winkelmand" on every product
   that isn't in the cart. */
.jerome-cart-qty[hidden] {
  display: none;
}

/* Below sm the card is narrow enough that button and chip side by side would
   squeeze both — stack them instead. */
@media (max-width: 575.98px) {
  /* nowrap matters as much as the direction: wrapping a *column* spills items
     into a second column instead of stacking them. And flex-basis goes back to
     auto because 100% means height once the axis turns. */
  .wc-block-product .wp-block-woocommerce-product-button {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .wc-block-product .wp-block-woocommerce-product-button > * {
    flex-basis: auto;
  }
}

.wc-block-grid__product-add-to-cart .wp-block-button__link,
.add_to_cart_button,
.single_add_to_cart_button {
  background-color: var(--wp--preset--color--marine) !important;
  border-radius: var(--wp--custom--radius--sm) !important;
  font-family: var(--wp--preset--font-family--outfit) !important;
  font-weight: 500 !important;
  padding: 0.625rem 1.25rem !important;
  line-height: 1 !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  background-color: var(--wp--preset--color--marine-light) !important;
}

/* ============================================
   Scroll Animations
   ============================================ */

.animate-fade-up,
.animate-fade-in,
.animate-fade-left,
.animate-fade-right,
.animate-scale-in {
  opacity: 0;
}

.animate-fade-up {
  transform: translateY(24px);
}

.animate-fade-left {
  transform: translateX(-24px);
}

.animate-fade-right {
  transform: translateX(24px);
}

.animate-scale-in {
  transform: scale(0.95);
}

.animate-fade-up.is-visible {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in.is-visible {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-fade-left.is-visible {
  animation: fadeLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-right.is-visible {
  animation: fadeRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-scale-in.is-visible {
  animation: scaleIn 0.5s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-fade-up,
  .animate-fade-in,
  .animate-fade-left,
  .animate-fade-right,
  .animate-scale-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.reduce-motion .animate-fade-up,
.reduce-motion .animate-fade-in,
.reduce-motion .animate-fade-left,
.reduce-motion .animate-fade-right,
.reduce-motion .animate-scale-in {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ============================================
   Mobile Navigation – Full-screen overlay
   ============================================ */

.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  z-index: 200 !important;
  background: var(--wp--preset--color--surface, #fff) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-close {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-dialog {
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: static !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  width: 100% !important;
  align-items: center !important;
  padding-top: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100% !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item {
  width: 100% !important;
  text-align: center !important;
  align-items: center !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item
  a {
  display: block !important;
  padding: 0.75rem 0 !important;
  font-family: var(--wp--preset--font-family--outfit) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: var(--wp--preset--color--marine) !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item
  a::after {
  display: none !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item
  a:hover {
  color: var(--wp--preset--color--mint) !important;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item
  a:focus-visible {
  outline: 2px solid var(--wp--preset--color--mint) !important;
  outline-offset: 4px !important;
  border-radius: var(--wp--custom--radius--xs) !important;
}

/* Close button */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-close {
  position: absolute !important;
  top: 1rem !important;
  right: 1.5rem !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: var(--wp--preset--color--marine) !important;
}

/* Hide CTA button on mobile – Contact link is in the nav */
@media (max-width: 767.98px) {
  .site-header .wp-block-buttons {
    display: none;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767.98px) {
  .site-hero h1 {
    font-size: 2.5rem !important;
  }

  .hero-stats .wp-block-column {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  /* Long Dutch compound words must fit at the narrowest supported viewport.
     WordPress's desktop heading sizes otherwise force horizontal scrolling. */
  main h1 {
    font-size: clamp(1.5rem, 7.5vw, 2.5rem) !important;
  }

  main h2 {
    font-size: clamp(1.5rem, 6.5vw, 1.875rem) !important;
  }

  .site-hero h1 {
    font-size: 2rem !important;
  }

  .hero-stats {
    flex-wrap: wrap !important;
  }
}

/* ============================================
   Troeven Grid (landing — "Onze troeven")
   1 col (xs) → 2×2 (sm+)
   ============================================ */

.troeven-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .troeven-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.troef-item {
  background: var(--wp--preset--color--surface);
  border-radius: var(--wp--custom--radius--lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.troef-item .troef-check {
  color: var(--wp--preset--color--mint);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.troef-item p {
  margin: 0;
  line-height: 1.55;
  color: var(--wp--preset--color--marine);
}

.troef-item p strong {
  display: block;
  margin-bottom: 0.25rem;
}

.troef-item p span {
  color: var(--wp--custom--color--slate);
  font-size: 0.9375rem;
}

/* ============================================
   Team Cards (About Page)
   ============================================ */

/* Keep the two team cards narrow so the 3:4 portraits aren't cropped
   to a wide band on desktop. */
.wp-block-columns:has(.team-card) {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Make the wp-block-column flex so .team-card can stretch to full height,
   matching the tallest sibling. */
.wp-block-columns:has(.team-card) > .wp-block-column {
  display: flex;
  flex-direction: column;
}

.team-card {
  border: 1px solid var(--wp--preset--color--border);
  box-shadow: var(--wp--custom--shadow--sm);
  overflow: hidden;
  transition:
    transform var(--wp--custom--transition--slow),
    box-shadow var(--wp--custom--transition--slow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wp--custom--shadow--lg);
}

.team-card__image {
  width: 100%;
  height: 440px;
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform var(--wp--custom--transition--slower);
}

.team-card:hover .team-card__image img {
  transform: scale(1.03);
}

/* Benefit items (About Page) */

.benefit-item {
  transition: background var(--wp--custom--transition--base);
  border-radius: var(--wp--custom--radius--xs);
}

.benefit-item:hover {
  background: var(--wp--preset--color--ice);
}

@media (max-width: 767.98px) {
  .team-card__image {
    height: 380px;
  }

  .team-card__image img {
    object-position: center 10%;
  }
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.faq-item {
  background: var(--wp--preset--color--surface);
  border-radius: var(--wp--custom--radius--lg);
  box-shadow: var(--wp--custom--shadow--sm);
  overflow: hidden;
  transition: box-shadow var(--wp--custom--transition--slow);
}

.faq-item:hover {
  box-shadow: 0 4px 12px var(--wp--custom--color--marine-alpha-8);
}

.faq-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  font-family: var(--wp--preset--font-family--plus-jakarta-sans);
  font-size: 0.9375rem;
  color: var(--wp--preset--color--ink);
  line-height: 1.5;
}

.faq-question {
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--text-muted);
  transition: color var(--wp--custom--transition--base);
}

.faq-icon--close {
  display: none;
}

.faq-item.is-open .faq-icon--plus {
  display: none;
}

.faq-item.is-open .faq-icon--close {
  display: flex;
  color: var(--wp--preset--color--marine);
}

.faq-item.is-open .faq-question {
  color: var(--wp--preset--color--marine);
  font-weight: 500;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 1.5rem;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--wp--preset--color--text-muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--wp--preset--color--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-answer ul li {
  margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Mint bullet lists (ORTHOCANIS trust, belofte)
   ============================================ */

.mint-list {
  padding-left: 1.25rem;
}

.mint-list li::marker {
  color: var(--wp--preset--color--mint);
}

.mint-list li {
  margin-bottom: 0.25rem;
}

/* ============================================
   ORTHOCANIS reusable product media
   ============================================ */

.orthocanis-product-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--wp--preset--color--surface);
  border-radius: var(--wp--custom--radius--xl);
  box-shadow: var(--wp--custom--shadow--card);
}

.orthocanis-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   ORTHOCANIS brand page
   ============================================ */

.orthocanis-page {
  overflow: clip;
}

.orthocanis-hero h1 {
  white-space: nowrap;
}

.orthocanis-hero h1 sup {
  margin-left: 0.08em;
  font-size: 0.28em;
  line-height: 1;
  vertical-align: top;
}

.orthocanis-hero__media {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.orthocanis-hero__media img {
  display: block;
  width: min(44rem, 100%);
  max-width: 100%;
  height: auto;
  border-radius: var(--wp--custom--radius--xl);
  filter: drop-shadow(0 20px 30px var(--wp--custom--color--marine-alpha-18));
}

.orthocanis-manifesto__lead {
  max-width: 48rem;
  margin-inline: auto;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
}

.orthocanis-manifesto__lines .wp-block-column {
  padding: 1.25rem 1rem 0;
  border-top: 2px solid var(--wp--preset--color--mint);
}

.orthocanis-manifesto__lines p {
  margin: 0;
  color: var(--wp--preset--color--surface);
  font-weight: 500;
  line-height: 1.6;
}

.orthocanis-editorial-image {
  overflow: hidden;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--wp--custom--radius--xl);
  box-shadow: var(--wp--custom--shadow--card);
}

.orthocanis-editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.orthocanis-pullquote {
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--wp--preset--color--mint);
}

.orthocanis-pullquote p {
  margin: 0;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--wp--preset--color--marine);
}

.orthocanis-principles__list {
  display: block !important;
  overflow: hidden;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--xl);
  box-shadow: var(--wp--custom--shadow--xs);
}

.orthocanis-principle {
  display: grid;
  grid-template-columns: 5rem minmax(13rem, 0.8fr) minmax(0, 1.5fr);
  gap: 0.75rem 2rem;
  padding: 2.25rem 2.5rem;
}

.orthocanis-principle + .orthocanis-principle {
  border-top: 1px solid var(--wp--preset--color--border);
}

.orthocanis-principle > * {
  margin-block: 0;
}

.orthocanis-principle__number {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--wp--preset--color--mint);
}

.orthocanis-principle h3 {
  grid-column: 2;
  grid-row: 1;
  max-width: 16rem;
  font-size: 1.375rem;
  line-height: 1.35;
}

.orthocanis-principle > p:not(.orthocanis-principle__number) {
  grid-column: 3;
  line-height: 1.65;
}

.orthocanis-principle__closing {
  font-weight: 600;
  color: var(--wp--preset--color--marine);
}

.orthocanis-editorial__row--vision .orthocanis-editorial-image img {
  object-position: center;
}

.orthocanis-statement {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--wp--preset--color--mint);
  font-family: var(--wp--preset--font-family--outfit);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.35;
}

.orthocanis-promise {
  position: relative;
  overflow: hidden;
}

.orthocanis-promise::before {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -14rem;
  width: 38rem;
  aspect-ratio: 1;
  border: 1px solid var(--wp--custom--color--surface-alpha-10);
  border-radius: 50%;
  pointer-events: none;
}

.orthocanis-promise__list {
  margin-top: 0.75rem;
}

.orthocanis-promise__list li {
  margin-bottom: 0.5rem;
}

.orthocanis-promise__closing {
  margin-top: 1.5rem;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 1.125rem;
}

.orthocanis-promise__media {
  position: relative;
  min-height: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orthocanis-promise__media img {
  display: block;
  width: min(32rem, 100%);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--wp--custom--radius--xl);
  box-shadow: var(--wp--custom--shadow--lg);
}

/* The card itself comes from the shared .wc-block-product component above;
   this page only fixes the two-column track width. */
.orthocanis-products .wc-block-product-template.columns-2 > .wc-block-product {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 1.25rem) / 2);
  width: calc((100% - 1.25rem) / 2) !important;
  max-width: calc((100% - 1.25rem) / 2);
}

@media (max-width: 781.98px) {
  .orthocanis-hero {
    padding-top: 3rem !important;
    padding-bottom: 2.5rem !important;
  }

  .orthocanis-hero__media {
    min-height: 21rem;
  }

  .orthocanis-hero__media img {
    width: min(36rem, 100%);
  }

  .orthocanis-manifesto__lines .wp-block-column {
    padding-inline: 0;
  }

  .orthocanis-principle {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem 1.25rem;
    padding: 2rem;
  }

  .orthocanis-principle__number {
    grid-column: 1;
    grid-row: 1;
    font-size: 2.25rem;
  }

  .orthocanis-principle h3 {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
  }

  .orthocanis-principle > p:not(.orthocanis-principle__number) {
    grid-column: 1 / -1;
  }

  .orthocanis-story,
  .orthocanis-editorial,
  .orthocanis-gamma {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .orthocanis-editorial__row--vision {
    margin-top: 4rem !important;
  }

  .orthocanis-promise__media {
    min-height: 20rem;
  }

  .orthocanis-promise__media img {
    width: min(28rem, 100%);
  }

  .orthocanis-products .wc-block-product-template.columns-2 > .wc-block-product {
    flex-basis: 100%;
    width: 100% !important;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .orthocanis-hero__copy .wp-block-buttons,
  .orthocanis-gamma > .wp-block-buttons {
    align-items: stretch;
  }

  .orthocanis-hero__copy .wp-block-button,
  .orthocanis-hero__copy .wp-block-button__link,
  .orthocanis-gamma > .wp-block-buttons .wp-block-button,
  .orthocanis-gamma > .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }

  .orthocanis-hero__copy .wp-block-button__link,
  .orthocanis-gamma > .wp-block-buttons .wp-block-button__link {
    text-align: center;
  }

  .orthocanis-principles,
  .orthocanis-promise {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .orthocanis-principle {
    padding: 1.5rem 1.25rem;
  }
}

/* ============================================
   Section Background Icons
   ============================================ */

.site-cta {
  position: relative;
  overflow: hidden;
}

.site-cta > *:not(.section-bg-icon) {
  position: relative;
  z-index: 1;
}

.section-bg-icon {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 200px;
  height: auto;
  top: 0;
  left: 50%;
  transform: translate(-50%, 10px);
  filter: brightness(0) invert(1);
  opacity: 0.07;
}

@media (max-width: 767.98px) {
  .section-bg-icon {
    width: 150px;
  }
}

/* ============================================
   Section Heading with Background Decoration
   ============================================ */

.section-heading {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
}

/* Typography comes from .overline (both classes are set in markup);
   only the margin reset is specific to section headings. */
.section-heading__overline {
  margin: 0 0 0.75rem;
  font-family: var(--wp--preset--font-family--outfit) !important;
}

.section-heading__title {
  margin: 0;
  position: relative;
  z-index: 1;
}

.section-heading__bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 300px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
}

@media (max-width: 767.98px) {
  .section-heading__bg {
    width: 200px;
  }
}

/* ============================================
   Hero Paws Decoration
   ============================================ */
.site-hero,
.site-services {
  position: relative;
  overflow: hidden;
}

.site-hero > .wp-block-columns,
.site-services > .wp-block-columns,
.site-services > p,
.site-services > h2 {
  position: relative;
  z-index: 1;
}

.services-dog-paws,
.services-cat-paws {
  position: absolute;
  z-index: -10;
  pointer-events: none;
  height: auto;
  opacity: 0.95;
}

.services-dog-paws {
  bottom: -20%;
  left: -20%;
  width: 600px;
  max-width: 50vw;
  transform: rotate(50deg);
}

.services-cat-paws {
  top: -10%;
  right: -5%;
  width: 350px;
  max-width: 30vw;
  transform: rotate(-135deg);
}

@media (max-width: 767.98px) {
  .services-dog-paws {
    bottom: -5%;
    width: 300px;
    max-width: 50vw;
  }
  .services-cat-paws {
    top: -2%;
    right: -10%;
    width: 200px;
    max-width: 40vw;
  }
}

/* ============================================
   Contact Form 7
   ============================================ */

.wpcf7 {
  font-family: var(--wp--preset--font-family--plus-jakarta-sans);
  color: var(--wp--preset--color--ink);
}

.wpcf7-form .cf7-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 1.75rem;
}

.wpcf7-form .cf7-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
}

/* Contact Form 7 runs its own autop over the form template and wraps each
   field's control in a <p> carrying 1em margins. In a div-based grid that
   silently adds 32px to every field, turning the intended 1.5rem rhythm into
   an 83px gulf. */
.wpcf7-form .cf7-field > p {
  margin: 0;
}

.wpcf7-form .cf7-field label {
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--marine);
}

.wpcf7-form .cf7-req {
  color: var(--wp--preset--color--mint);
  margin-left: 0.125rem;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--wp--preset--color--ink);
  background-color: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--sm);
  box-shadow: var(--wp--custom--shadow--xs);
  transition: border-color var(--wp--custom--transition--fast), box-shadow var(--wp--custom--transition--fast), background-color var(--wp--custom--transition--fast);
}

.wpcf7-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--wp--preset--color--text-muted);
  opacity: 1;
}

.wpcf7-form input:hover,
.wpcf7-form textarea:hover {
  border-color: var(--wp--custom--color--disabled);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--marine);
  box-shadow: var(--wp--custom--shadow--focus);
  background-color: var(--wp--preset--color--surface);
}

.wpcf7-form .cf7-actions {
  margin: 0;
}

/* Cloudflare Turnstile (inc/contact-form.php) runs in interaction-only mode:
   the widget is 0px tall for most visitors and only grows to ~65px when a
   visitor must tick the checkbox. Its iframe lives in a closed shadow root,
   so CSS cannot see which state it is in. Instead the grid's 1.75rem gap is
   split around the widget: 0.75rem above it, 1rem of padding below it.
   Padding, not margin, so the empty widget cannot collapse the spacing. The
   hidden state keeps the original 1.75rem; the visible checkbox no longer
   touches the submit button. */
.wpcf7-form .cf7-grid:has(+ .wpcf7-turnstile) {
  margin-bottom: 0.75rem;
}

.wpcf7-form .wpcf7-turnstile {
  padding-bottom: 1rem;
}

.wpcf7-form input[type="submit"] {
  appearance: none;
  display: inline-block;
  font-family: var(--wp--preset--font-family--outfit);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--wp--preset--color--surface);
  background-color: var(--wp--preset--color--marine);
  border: 1px solid var(--wp--preset--color--marine);
  border-radius: var(--wp--custom--radius--sm);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all var(--wp--custom--transition--base);
}

.wpcf7-form input[type="submit"]:hover {
  background-color: var(--wp--preset--color--marine-light);
  border-color: var(--wp--preset--color--marine-light);
  transform: translateY(-1px);
  box-shadow: var(--wp--custom--shadow--md);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--wp--custom--shadow--xs-strong);
}

.wpcf7-form input[type="submit"][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

/* ============================================
   Contact Map
   ============================================ */

.contact-map-section {
  width: 100%;
}

.jerome-google-map {
  box-sizing: border-box;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  background-color: var(--wp--preset--color--ice);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--wp--custom--radius--sm);
}

.jerome-google-map iframe {
  display: block;
  width: 100%;
  height: 420px;
}

.jerome-google-map__placeholder {
  box-sizing: border-box;
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--wp--preset--color--text-muted);
  text-align: center;
}

.jerome-google-map__placeholder p {
  max-width: 36rem;
  margin: 0;
}

/* Validation states */
.wpcf7-form .wpcf7-not-valid {
  border-color: var(--wp--custom--color--error);
  box-shadow: var(--wp--custom--shadow--focus-error);
}

.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--wp--custom--color--error);
}

/* Response messages (success / error banners under the form) */
.wpcf7 .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--wp--custom--radius--sm);
  border: 1px solid var(--wp--preset--color--border);
  background-color: var(--wp--preset--color--ice);
  color: var(--wp--preset--color--ink);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--wp--preset--color--mint);
  background-color: var(--wp--custom--color--mint-alpha-12);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: var(--wp--custom--color--error-alpha-50);
  background-color: var(--wp--custom--color--error-alpha-8);
  color: var(--wp--custom--color--error-dark);
}

@media (max-width: 575.98px) {
  .wpcf7-form input[type="submit"] {
    width: 100%;
  }
}

/* ============================================
   Blog cards (uniform height + truncation)
   ============================================ */

.wp-block-query .wp-block-post-template,
.wp-block-query .wp-block-post-template.is-layout-grid {
  align-items: stretch;
}

.blog-card {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--wp--custom--shadow--card);
}

.blog-card .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--wp--preset--color--ice);
}

.blog-card .wp-block-post-featured-image a,
.blog-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-card .wp-block-post-featured-image img {
  object-fit: cover;
  border-radius: 0;
}

.blog-card > .wp-block-group {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.blog-card .wp-block-post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.4em;
}

.blog-card .wp-block-post-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .wp-block-post-excerpt {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.blog-card .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 1rem 0;
}

.blog-card .wp-block-post-terms {
  margin-top: auto;
}

/* Blog grid: 1 col (xs) → 2 cols (sm/md) → 3 cols (lg+).
   Force display:grid since WP applies display:flex via is-flex-container,
   which would ignore grid-template-columns. */
.wp-block-query .wp-block-post-template.is-layout-flex,
.wp-block-query .wp-block-post-template.is-layout-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.wp-block-query .wp-block-post-template.is-layout-flex > li,
.wp-block-query .wp-block-post-template.is-layout-grid > li {
  flex-basis: auto !important;
  width: auto !important;
  min-width: 0;
}

@media (min-width: 576px) {
  .wp-block-query .wp-block-post-template.is-layout-flex,
  .wp-block-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .wp-block-query .wp-block-post-template.is-layout-flex,
  .wp-block-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .blog-card .wp-block-post-title,
  .blog-card .wp-block-post-title a {
    -webkit-line-clamp: 3;
    min-height: 0;
  }
}
