/*
Theme Name: FysioThema
Theme URI: https://eigensmoel.nl/
Author: Eigensmoel
Description: Custom WordPress Full Site Editing theme for FysioThema, built on the Frost theme by WP Engine.
Tags: block-patterns, block-styles, full-site-editing, custom-colors, template-editing, responsive
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: fysiothema
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'museo-sans', helvetica, sans-serif;
  font-weight: 300;
}

a,
button,
input:focus,
input[type='button'],
input[type='submit'],
textarea:focus,
.wp-element-button {
  transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
  text-decoration-thickness: 1px;
}

b,
strong,
th {
  font-weight: var(--wp--custom--font-weight--medium);
}

mark {
  background: linear-gradient(
    90deg,
    var(--wp--preset--color--dark-green) 0%,
    var(--wp--preset--color--dark-green) 100%
  );
  background-position: 0 85%;
  background-repeat: repeat-x;
  background-size: 100% 15%;
}

/* Forms */
input,
select,
textarea {
  background-color: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--dark-green);
  color: var(--wp--preset--color--black);
  font-family: var(--wp--preset--font-family--museo-sans);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: var(--wp--custom--font-weight--light);
  line-height: var(--wp--custom--line-height--body);
  padding: 10px 20px;
  width: 100%;
}

input:focus,
textarea:focus {
  background-color: var(--wp--preset--color--light-gray);
  outline: none;
}

input[type='checkbox'],
input[type='image'],
input[type='radio'] {
  width: auto;
}

input[type='button'],
input[type='email'],
input[type='search'],
input[type='submit'],
input[type='text'],
textarea {
  -webkit-appearance: none;
}

::placeholder {
  color: var(--wp--preset--color--dark-green);
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.5;
}

.header-underline {
  width: 100%;
  border-block-color: white;
}

main a,
section a {
  text-decoration: none;
}

/* ============================
   COLOR SCHEME: PRIMARY
   Main: Dark Green (#2D4B3C)
   Accent: Light Green (#8CAF12)
============================ */

body.color-scheme-dark-green .fysio-header,
body.color-scheme-dark-green .fysio-hero,
body.color-scheme-dark-green .hero-category,
body.color-scheme-dark-green .hero-title-small,
body.color-scheme-dark-green .has-background-block {
  background-color: var(--wp--preset--color--dark-green);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-dark-green .footer-banner {
  background-color: var(--wp--preset--color--light-green);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-dark-green .is-style-cta .wp-block-button__link {
  background-color: var(--wp--preset--color--light-green);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-purple .site-logo img {
  content: url('../assets/images/site-logo-green.png');
}

/* ============================
   COLOR SCHEME: SECONDARY
   Main: Light Green (#8CAF12)
   Accent: Dark Green (#2D4B3C)
============================ */

body.color-scheme-light-green .fysio-header,
body.color-scheme-light-green .fysio-hero,
body.color-scheme-light-green .hero-category,
body.color-scheme-light-green .hero-title-small,
body.color-scheme-light-green .has-background-block {
  background-color: var(--wp--preset--color--light-green);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-light-green .footer-banner {
  background-color: var(--wp--preset--color--dark-green);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-light-green .is-style-cta .wp-block-button__link {
  background-color: var(--wp--preset--color--dark-green);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-light-green .site-logo img {
  content: url('../assets/images/site-logo-green.png');
}

/* ============================
   COLOR SCHEME: MUSICI (PURPLE)
   Main: Purple (#2D0C23)
   Accent: Orange (#E74E0E)
============================ */

body.color-scheme-purple .fysio-header,
body.color-scheme-purple .fysio-hero,
body.color-scheme-purple .hero-category,
body.color-scheme-purple .hero-title-small,
body.color-scheme-purple .has-background-block {
  background-color: var(--wp--preset--color--purple);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-purple .footer-banner {
  background-color: var(--wp--preset--color--orange);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-purple .is-style-cta .wp-block-button__link {
  background-color: var(--wp--preset--color--orange);
  color: var(--wp--preset--color--light-gray);
}

body.color-scheme-purple .site-logo img {
  content: url('../assets/images/site-logo-purple.png');
}

.hero-title-small h1,
.hero-title-small .wp-block-post-title {
  color: var(--wp--preset--color--light-gray);
}

.hero-title-small {
  margin-top: 0;
}

main.wp-block-group {
  margin-block-start: 0;
  padding-block-start: 0;
}

.wp-block-post-featured-image :where(img) {
  position: relative;
  z-index: 30;
  margin-bottom: -80px;
}

@media (min-width: 768px) {
  .wp-block-columns.reverse-columns {
    flex-direction: row-reverse;
  }
}

/* 1) Make the wrapper positionable 
.site-logo img {
  position: relative;
  display: inline-block;          
  width: clamp(200px, 17vw, 340px);
  height: auto;
}

 
.site-logo img {
  visibility: hidden; 
  display: block;
  width: 100%;
  height: auto;
}


.site-logo img::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  background-image: url('../assets/images/site-logo-green.png');
}


body.color-scheme-purple .site-logo img::before {
  background-image: url('../assets/images/site-logo-purple.png');
}


body.color-scheme-light-green .site-logo img::before {
  background-image: url('../assets/images/site-logo-green.png');
}
*/

/* Allow wide blocks to occupy your wideSize: */
.site-inner > .alignwide,
.entry-content > .alignwide {
  max-width: var(--wp--layout--wideSize) !important;
  width: 100%;
}

/* Allow full-width blocks to break out completely: */
.site-inner > .alignfull,
.entry-content > .alignfull {
  max-width: none;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* “Wide” blocks */
.alignwide {
  width: var(--wp--layout--wideSize);
  margin-left: auto;
  margin-right: auto;
}

/* Query Loop Buttons Base */
.query-loop-buttons .wp-block-button__link {
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  border-radius: 0;
}

.query-loop-buttons .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem; /* Smaller gutters */
}

.query-loop-buttons .wp-block-button {
  flex: 1 1 auto;
  text-align: left;
}

/* Ensure the button text color is not overwritten */
.query-loop-buttons .wp-block-button__link {
  color: inherit !important; /* Make sure button text inherits correct color */
  text-decoration: none; /* Remove any default link underlines */
}

.wp-block-button__link {
  font-size: 1.5rem;
  font-weight: 500;
}

@media screen and (max-width: 960px) {
  .wp-block-button__link {
    font-size: 1.25rem;
  }

  .page-id-35 main,
  .page-id-42 main,
  .page-id-40 main {
    margin-top: 1rem !important;
  }
}

/* Color Scheme: Dark Green */
body.color-scheme-dark-green .query-loop-buttons .wp-block-button__link {
  background-color: rgba(140, 175, 18, 0.3); /* 30% Light Green */
  color: var(--wp--preset--color--dark-green) !important;
}

body.color-scheme-dark-green .query-loop-buttons .wp-block-button__link a {
  color: var(--wp--preset--color--dark-green) !important;
}

/* Color Scheme: Light Green */
body.color-scheme-light-green .query-loop-buttons .wp-block-button__link {
  background-color: var(--wp--preset--color--light-gray);
  color: var(--wp--preset--color--dark-green) !important;
}

/* Color Scheme: Purple */
body.color-scheme-purple .query-loop-buttons .wp-block-button__link {
  background-color: #ffffff;
  color: var(--wp--preset--color--purple) !important;
}

body.color-scheme-purple .query-loop-buttons .wp-block-button__link a {
  color: var(--wp--preset--color--purple) !important;
}

.site-header {
  z-index: 100;
}

.site-logo-img {
  display: block;
  max-width: clamp(200px, 17vw, 260px);
  height: auto;
}

.has-small-font-size {
  font-size: 18px;
}

/* Inline code */
*:not(.wp-block-code) > code {
  background-color: var(--wp--preset--color--light-gray);
  font-size: var(--wp--preset--font-size--small);
  padding: 5px 8px;
}

.query-loop-buttons.wp-block-query ul.wp-block-post-template {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.header-underline {
  width: 100%;
}

/* === Custom Pricing Card Styling (Scoped to .fysio-pricing-card only) === */
.fysio-pricing-card {
  background-color: #2d4b3c; /* fallback color if image fails */
  background-image: url('http://fysiotherapeut-leiden.local/wp-content/themes/FysioThema/assets/images/Tabel-achtergrond.png');
  color: #e4e4e4;
  background-size: cover;
  border-radius: 0 0 40px 0px;
  position: relative;
  z-index: 0;
}

.fysio-pricing-card:hover {
  transform: translateY(-4px);
}

/* Optional: Per-card background images 
.fysio-pricing-card:nth-of-type(1) {
  background-image: url('/wp-content/themes/fysiothema/assets/bg-pricing-1.jpg');
}

.fysio-pricing-card:nth-of-type(2) {
  background-image: url('/wp-content/themes/fysiothema/assets/bg-pricing-2.jpg');
}

.fysio-pricing-card:nth-of-type(3) {
  background-image: url('/wp-content/themes/fysiothema/assets/bg-pricing-3.jpg');
}*/

/* Optional: Override inner button style */
.fysio-pricing-card .wp-block-button__link {
  background-color: #e4e4e4;
  color: #2d4b3c;
  font-weight: bold;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.fysio-pricing-card .wp-block-button__link:hover {
  background-color: #cfd8c2;
}

/* Headings */
.fysio-pricing-card p.has-max-36-font-size {
  font-size: 2.25rem; /* override if needed */
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Features */
.fysio-pricing-card .wp-block-group p {
  margin-bottom: 0.5rem;
}

/* Separator line */
.fysio-pricing-card hr.wp-block-separator {
  border: none;
  height: 1px;
  background-color: rgba(228, 228, 228, 0.3);
  margin: 0.5rem auto;
  width: 80%;
}

/* Button block */
.fysio-pricing-card .wp-block-buttons {
  margin-top: 1.5rem;
}

.fysio-pricing-card .wp-block-button__link {
  background-color: #e4e4e4;
  color: #2d4b3c;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  width: 100%;
  transition: background-color 0.2s ease;
}

.fysio-pricing-card .wp-block-button__link:hover {
  background-color: #c5c5c5;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .fysio-pricing-card {
    padding: 1.5rem;
  }

  .fysio-pricing-card p.has-max-36-font-size {
    font-size: 1.75rem;
  }

  .fysio-pricing-card .wp-block-button__link {
    font-size: 1rem;
  }
}

/* Navigation */
.wp-block-navigation__responsive-container.is-menu-open {
  padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
  border: 1px solid currentColor;
  padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
  color: var(--wp--preset--color--white);
}

.wp-block-navigation:not(.has-background)
  .wp-block-navigation__submenu-container {
  background-color: var(--wp--preset--color--dark-green);
  color: var(--wp--preset--color--white);
  padding: 10px;
}

.wp-block-navigation .wp-block-navigation__submenu-container a {
  padding: 2px 10px;
}

.header-floating-logo .site-logo {
  margin-top: -1rem;
}

.wp-block-navigation__responsive-container:not(.hidden-by-default):not(
    .is-menu-open
  ) {
  display: block;
}

.wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: none;
}

main {
  margin-top: -1px !important;
}

/* Mobile Navigation */
@media (max-width: 960px) {
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: none;
  }

  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }

  .fysio-header > :first-child {
    flex-wrap: nowrap;
    justify-content: start;
    align-items: center;
    gap: 0;
  }

  .fysio-header nav {
    padding: 0 1.5rem 2.5rem 0;
  }

  .fysio-header .wp-block-buttons {
    position: absolute;
    bottom: 2.5rem;
    left: 1.5rem;
    display: none;
  }

  .fysio-header-right {
    flex: 1 1 0;
  }

  .fysio-header .wp-block-separator {
    border-top: 1px solid;
  }

  .fysio-header .wp-block-navigation__responsive-container-open,
  .fysio-header .wp-block-navigation__responsive-container-close {
    padding: 0.4rem;
  }

  .fysio-header .wp-block-navigation__responsive-container-open svg,
  .fysio-header .wp-block-navigation__responsive-container-close svg {
    width: 36px;
    height: 36px;
  }

  .wp-block-navigation__responsive-container-close {
    top: 40px;
    right: 1.5rem;
  }

  .wp-block-navigation__container.is-responsive {
    margin: 8rem 1.5rem 0 0;
  }

  .fysio-header a {
    font-size: 1.5rem;
  }

  .fysio-header ul.wp-block-navigation-submenu {
    padding: 1em 0 0 !important;
  }

  .fysio-header ul.wp-block-navigation-submenu a {
    font-size: 1rem;
  }

  .fysio-header ul.wp-block-navigation-submenu li {
    margin-bottom: 0.75rem;
  }

  .fysio-header .wp-block-navigation__responsive-container {
    background-color: var(--wp--preset--color--dark-green) !important;
    color: white !important;
  }

  .wp-block-navigation-submenu:not(.wp-block-navigation__submenu-container) {
    display: block !important;
    text-align: right;
  }

  .wp-block-navigation-submenu a {
    display: inline-block !important;
  }

  .wp-block-navigation__submenu-icon {
    display: inline-block !important;
    margin-left: 0.75rem !important;
  }

  .wp-block-navigation__submenu-container {
    display: none !important;
  }

  .wp-block-navigation__submenu-container.is-open {
    display: block !important;
  }

  div.is-style-cta .wp-block-button__link {
    font-size: 1.25rem;
    padding: 1rem 2.5rem 1rem 1.5rem;
  }
}

/* Desktop navigation changes */
@media screen and (min-width: 961px) {
  .wp-block-navigation > li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #ccc;
    margin-left: clamp(0.25rem, 1.25vw, 1.5rem);
    margin-right: clamp(0.25rem, 1.25vw, 1.5rem);
  }

  .fysio-header > :first-child {
    align-items: flex-start;
    gap: 0;
  }

  .fysio-header-right {
    flex: 1 1 0;
    margin-top: 4.75rem !important;
    margin-bottom: clamp(4rem, 4vw, 64px) !important;
  }

  .fysio-header .wp-block-separator {
    border-top: 2px solid;
  }

  .fysio-header-right nav {
    margin-left: auto;
    padding-right: 0.5rem;
  }

  .site-logo-img {
    max-width: clamp(220px, 18vw, 240px);
    width: 33%;
    flex: 1 1 auto;
    margin-top: -2px !important;
  }

  .fysio-header .wp-block-buttons {
    padding-right: 0.5rem;
  }

  .wp-block-navigation__submenu-container {
    border-radius: 10px;
    padding-top: 0.75rem !important;
    margin-left: -22px !important;
    margin-top: 16px !important;
    gap: 0.25rem;
    position: relative;
  }

  .wp-block-navigation__submenu-container::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
  }

  .color-scheme-light-green .wp-block-navigation__submenu-container::before {
    background-color: #8caf12;
  }

  .color-scheme-dark-green .wp-block-navigation__submenu-container::before {
    background-color: #2d4b3c;
  }

  .color-scheme-purple .wp-block-navigation__submenu-container::before {
    background-color: #41072f;
  }

  .fysio-header a {
    font-size: calc(1.25rem + 0.1vw);
    font-weight: var(--wp--custom--font-weight--medium);
  }

  .fysio-header ul.wp-block-navigation-submenu a {
    font-size: 1.25rem;
  }

  .wp-block-navigation a:hover {
    opacity: 0.7;
  }
}

/* Mobile Posts & Pages changes */
@media (max-width: 960px) {
  main > div:not(.fysio-hero) {
    padding: 0 1.5rem !important;
  }

  .page-id-142 main > div:first-child {
    margin-top: 2rem !important;
  }

  .service-cards-overlap h3.has-x-large-font-size {
    font-size: 1.5rem !important;
  }

  main h1 {
    font-size: 3rem !important;
  }

  main h2 {
    margin-top: 0.25rem !important;
  }

  .page-id-142 main > div:first-child {
    margin-top: 0 !important;
    padding-top: 2rem !important;
  }

  .seven-minute-header-container {
    flex-direction: column-reverse;
  }

  .wp-block-post-featured-image img {
    margin-bottom: 0 !important;
  }

  .seven-minute-header-container h3 {
    margin-top: 0 !important;
  }

  .seven-minute-header-container {
    padding-bottom: 2rem;
  }

  .page-id-142 .seven-minute-list-a {
    text-align: left;
  }

  .hero-category-image {
    margin-top: -8rem;
  }

  .single-service .hero-title-small h1 {
    padding-top: 1rem;
  }

  .single-service .wp-block-post-featured-image {
    margin-top: -6rem;
  }

  .single-service article .wp-block-columns > div:not(:first-child) {
    padding-top: 2rem;
  }

  .single-service .hero-title-small {
    padding-bottom: 7rem;
  }

  .single-service article > div:first-child {
    padding: 2rem;
  }

  .page-template-page-category .hero-category h1 {
    max-width: none;
    padding: 1.5rem 0 1.5rem;
  }

  .page-template-page-category .hero-category {
    min-height: 14rem;
  }
}
/* Desktop Posts & Pages changes */
@media screen and (min-width: 961px) {
  .fysio-cta p {
    line-height: 125% !important;
  }

  main h1 {
    font-size: 4.25rem !important;
  }

  main h2 {
    margin-top: 0.25rem !important;
  }

  .page-id-142 main > div:first-child > div:not(:first-child) {
    max-width: 1024px;
    margin: 0 auto;
  }

  .page-id-142 .seven-minute-list-a {
    text-align: left;
  }

  .seven-minute-header {
    margin-bottom: 4rem;
  }

  .seven-minute-header-container {
    padding-bottom: 3rem;
  }

  .seven-minute-header-container > .wp-block-column {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }

  .seven-minute-header-container > .wp-block-column:first-child {
    flex-basis: 40% !important;
  }

  .seven-minute-header-container > .wp-block-column:not(:first-child) {
    flex-basis: 60% !important;
  }

  .seven-minute-list-a li {
    margin-bottom: 0.75rem;
  }

  .page-id-40 .entry-content {
    max-width: 1240px !important;
    margin: 0 auto !important;
  }

  .hero-category-image {
    margin-top: -8rem;
  }

  .single-service .wp-block-post-featured-image {
    margin-top: -4rem;
  }

  .single-service article .wp-block-columns > div:not(:first-child) {
    padding-top: 2rem;
  }

  .single-service .hero-title-small {
    padding-bottom: 7rem;
  }
}

.page-id-47 .hero-category h1,
.page-id-49 .hero-category h1,
.page-id-51 .hero-category h1 {
  color: var(--wp--preset--color--light-gray);
}

.wp-block-navigation__container {
  gap: 0 !important;
}

/* Footer changes */
@media screen and (max-width: 960px) {
  footer > div:first-child {
    padding: 0;
  }

  footer p.has-small-font-size {
    font-size: 1rem !important;
  }

  footer b {
    font-weight: 700;
  }

  footer > div:first-child {
    padding: 0;
  }

  .footer-banner {
    padding: 3rem 0;
  }
}

@media screen and (min-width: 961px) {
  footer > div:first-child {
    padding: 0;
  }

  footer p.has-small-font-size {
    font-size: clamp(0.75rem, 1rem + 0.2vw, 1.25rem) !important;
  }

  footer b {
    font-weight: 700;
  }

  .footer-banner {
    padding: 3rem 0;
  }
}

/* Utility */
.is-style-shadow-light {
  box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
  box-shadow: var(--wp--preset--shadow--solid);
}

/* Responsive Utilities */
@media only screen and (max-width: 600px) {
  .is-style-hidden-mobile {
    display: none !important;
  }
}

@media only screen and (max-width: 782px) {
  .is-style-columns-reverse {
    flex-direction: column-reverse;
  }
}

/* 
.fysio-hero.has-global-padding {
    padding-top: -200px !important;  Use !important to ensure your custom padding takes precedence 
    max-width: 100%;
}
 Hero Sections */
.reset-link-style a {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}

.is-style-card-link[data-href] > * {
  pointer-events: none;
}

.is-style-card-link[data-href] a {
  pointer-events: auto;
}

.wp-block-navigation__container {
  gap: 3rem; /* Adjust as needed (default is often 1rem or less) */
}

.site-header .wp-block-button {
  margin-left: auto; /* ensures right alignment */
}

.page-default-title {
  color: var(--wp--preset--color--light-green);
  padding-top: 3rem; /* Or any custom value */
}

.wp-block-image.alignfull img {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));
}

body.page-template-page .wp-site-header {
  background-color: var(--wp--preset--color--purple);
  padding-bottom: 2rem;
}

.fysio-hero {
  display: block;
  justify-content: center;
  align-items: center;
  padding-top: var(--wp--preset--spacing--small);
  padding-bottom: var(--wp--preset--spacing--small);
  text-align: center;
  position: relative;
  max-width: 100%;
}
.fysio-hero H1 {
  z-index: 100;
  max-width: 100%;
  position: relative;
  margin-top: -2rem;
}

h1.wp-block-post-title {
  color: var(--wp--preset--color--light-green);
  font-weight: var(--wp--custom--font-weight--bold);
}

body.page.page-template-default:not(.home) .fysio-header {
  background: linear-gradient(
    to bottom,
    var(--wp--preset--color--dark-green) calc(100% - 25px),
    transparent 15px
  );
}

body.page.page-template-default:not(.home) .header-underline {
  width: 0;
}

.hero-category {
  min-height: 18rem;
  display: block;
  justify-content: center;
  align-items: center;
  padding-top: var(--wp--preset--spacing--small);
  padding-bottom: var(--wp--preset--spacing--x-large);
  text-align: center;
  max-width: 100%;
}

.hero-category h1 {
  position: relative;
  z-index: 20;
  margin-bottom: 0;
  max-width: 60%;
  margin-inline: auto;
}

.hero-category-image {
  /* width: 100%;
  max-width: var(
    --wp--style--global--content-size
  ); /* follows contentSize from theme.json */
  /* margin-top: -18rem !important;
  display: flex !important; */
}

.hero-category-image img {
  z-index: 2;
}

.hero-title-small {
  padding: var(--wp--preset--spacing--small) 0;
  text-align: center;
  z-index: 1;

  height: auto;
  min-height: 180px;
}

/* CTA */
.fysio-cta {
  padding: var(--wp--preset--spacing--small);
  text-align: center;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 500;
}

/* Header CTA Button */
.is-style-cta .wp-block-button__link {
  border-radius: 0;
  padding: 0.75rem 2.5rem 0.75rem 1.5rem;
  font-weight: var(--wp--custom--font-weight--medium);
  clip-path: polygon(
    0 0,
    /* top-left */ 85% 0,
    /* near top-right */ 100% 50%,
    /* very top of the point */ 85% 100%,
    /* near bottom-right */ 0 100% /* bottom-left */
  );
}

/* Selection Buttons */
.fysio-selection-buttons .wp-block-button__link {
  text-decoration: none;
  text-transform: none;
  border-radius: 0;
  padding: 1rem 2rem;
}

/* Query Loop Buttons */
.query-loop-buttons .wp-block-buttons {
  gap: 1rem;
  flex-wrap: wrap;
}

.query-loop-buttons .wp-block-button__link {
  padding: 0.75rem 1.5rem;
  border-radius: 0;
}

/* Footer Layout */
.fysio-footer {
  padding-top: var(--wp--preset--spacing--medium);
  padding-bottom: var(--wp--preset--spacing--medium);
  padding-right: var(--wp--preset--spacing--medium);
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-banner {
  padding: var(--wp--preset--spacing--x-small);
  flex: 1 1 60%;
  box-sizing: border-box;
}

.has-text-align-left .footer-location .has-small-font-sizer {
  size: 25px !important;
}

.footer-logo-container {
  padding: var(--wp--preset--spacing--x-small);
  flex: 1 1 35%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.footer-banner .footer-locations p {
  margin: 0;
  font-weight: var(--wp--custom--font-weight--regular);
}

/* CTA link spacing */
.cta-text {
  padding-top: var(--wp--preset--spacing--medium);
  padding-bottom: var(--wp--preset--spacing--medium);
}

.fysio-cta {
  margin-top: 0 !important;
}

/* Service Cards */
.service-card {
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 400px; /* Adjust width of service cards */
  margin: 0 auto;
}

.service-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Heading at the top inside a div */
.service-card .heading-container {
  position: absolute;
  top: 10px; /* Adjust distance from the top */
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.service-card h3 {
  margin: 0;
  padding: 1rem;
  color: var(--wp--preset--color--white);
  font-weight: var(--wp--custom--font-weight--medium);
  background: none;
}

/* Overlay text at the bottom with black transparent background */
.service-card .overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(
    0,
    0,
    0,
    0.3
  ); /* Black with more opacity for better contrast */
  color: var(--wp--preset--color--white);
  z-index: 2;
  text-align: center;
  max-height: 250px; /* Fixed max height for the text box */
}

/* Prevent duplicated padding/margin for the heading inside overlay-text */
.service-card .overlay-text h3 {
  position: static;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

/* Ensure responsiveness and card alignment */
@media only screen and (max-width: 782px) {
  .service-card {
    max-width: 100%; /* Ensure full-width on small screens */
  }

  .service-card .overlay-text {
    max-height: 200px; /* Adjust height for small screens */
  }
}

/* Clickable Service Card Style */
.is-style-card-link {
  cursor: pointer;
  position: relative;
}

.is-style-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
}

.is-style-card-link[data-href]::after {
  cursor: pointer;
}

.is-style-card-link[data-href]:hover {
  opacity: 0.98;
}

.is-style-card-link[data-href] > * {
  pointer-events: none;
}

/* Overlap effect */
.service-cards-overlap {
  background: linear-gradient(to bottom, #2d4b3c 50%, transparent 50%);
  max-width: none !important;
  margin: 0 auto !important;
  padding-top: 1.5rem;
}

.service-cards-columns {
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
}

.service-cards .wp-block-columns {
  gap: 24px;
}

/* Responsive Footer Layout */

@media only screen and (max-width: 1100px) {
  h1 {
    font-size: 56px;
    line-height: 1.2;
  }
}

@media only screen and (max-width: 782px) {
  .footer-banner,
  .footer-logo-container {
    flex: 1 1 100%;
  }

  .hero-category {
    padding-top: var(--wp--preset--spacing--x-large);
  }

  .hero-category img {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .footer-banner {
    margin-right: 5%;
  }

  .footer-logo-container {
    margin-top: var(--wp--preset--spacing--small);
  }

  .site-logo-img {
    height: 100% !important;
  }
}

@media only screen and (max-width: 782px) {
  .service-cards .wp-block-columns {
    flex-direction: column !important;
  }
  .wp-block-group.service-cards-overlap > *,
  .wp-block-group.alignfull > .wp-block-post-content > {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}
