/*
Theme Name: Balanz
Theme URI: https://balanz.nl/
Author: Balanz
Description: Responsive theme based on the September 2026 Balanz design.
Version: 1.1.0
Text Domain: balanz
*/

:root {
  --balanz-blue: #075893;
  --balanz-blue-dark: #06446f;
  --balanz-orange: #dd7029;
  --balanz-peach: #f5d4bf;
  --balanz-ink: #17232b;
  --balanz-muted: #53616a;
  --balanz-white: #fff;
  --balanz-line: #d7e3ea;
  --balanz-container: 1120px;
  --balanz-header-height: 126px;
  --balanz-font: "Segoe UI", Arial, sans-serif;
  --balanz-heading-font: "Bahnschrift", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--balanz-ink); background: #fff; font-family: var(--balanz-font); font-size: 17px; line-height: 1.55; }
body.menu-open { overflow: hidden; }
[id] { scroll-margin-top: calc(var(--balanz-header-height) + var(--wp-admin--admin-bar--height, 0px) + 20px); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { color: var(--balanz-blue); font-family: var(--balanz-heading-font); line-height: 1.25; }
p + p { margin-top: 1em; }
:focus-visible { outline: 3px solid var(--balanz-orange); outline-offset: 5px; }
.container { width: min(calc(100% - 64px), var(--balanz-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip-path: none; margin: 0; padding: 10px 16px; color: white; background: var(--balanz-blue-dark); }
svg { display: block; width: 24px; height: 24px; flex: 0 0 auto; }

/* Navigation and the orange contact strip in the supplied artwork. */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 4px #06446f12; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.nav-shell { max-width: 1240px; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { flex: 0 0 100px; padding-block: 9px; }
.brand img { width: 100%; height: 65px; object-fit: contain; }
.primary-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: inline-block; padding: 13px 0; color: var(--balanz-ink); font-size: 1rem; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="location"] { color: var(--balanz-blue); border-color: var(--balanz-orange); }
.contact-bar { background: linear-gradient(90deg, #fff 8%, var(--balanz-peach) 24%, var(--balanz-orange) 65%); }
.contact-bar__inner { min-height: 40px; display: flex; justify-content: flex-end; align-items: center; gap: 32px; }
.contact-bar a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: .94rem; font-weight: 600; }
.contact-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-bar svg { width: 21px; height: 21px; }
.menu-toggle { display: none; flex: 0 0 46px; width: 46px; height: 46px; border: 0; border-radius: 50%; padding: 10px; color: #fff; background: var(--balanz-blue); }
.menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform 180ms, opacity 180ms; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

/* Introductory copy and the two overlapping photographs. */
.welcome { padding: 78px 0 72px; }
.welcome__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.welcome__copy { min-width: 0; font-size: 1rem; }
.welcome h1 { margin-bottom: 26px; font-size: clamp(1.4rem, 2.1vw, 1.7rem); }
.welcome h2 { margin: 30px 0 16px; font-size: 1.16rem; }
.welcome__photos { position: sticky; top: calc(var(--balanz-header-height) + 40px); min-width: 0; padding: 10px 0 110px 70px; }
.photo-frame { position: relative; }
.photo-frame::after { content: ""; position: absolute; inset: 10px 12px -10px -12px; border: 1px solid #07589366; border-radius: inherit; pointer-events: none; }
.welcome__building { width: 100%; aspect-ratio: 1; border-radius: 40px; }
.welcome__building img, .welcome__treatment img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.welcome__building img { object-position: 62% center; }
.welcome__treatment { position: absolute; left: 0; bottom: 0; width: 59%; aspect-ratio: 1; border: 6px solid #fff; border-radius: 40px; }
.welcome__treatment::after { inset: -10px 10px 0 -10px; }

.section-ribbon { padding: 18px 24px; color: white; background: var(--balanz-blue); text-align: center; font-weight: 600; font-size: 1rem; }
.section-ribbon--motto { border-top: 14px solid var(--balanz-peach); }
.section-ribbon a { display: inline-flex; align-items: center; gap: 14px; min-height: 32px; margin-left: 30px; color: #fff; }
.section-ribbon a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-divider { height: 55px; background: var(--balanz-blue); }
.photo-gallery { position: relative; }
.photo-gallery__track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photo-gallery__track::-webkit-scrollbar { display: none; }
.photo-gallery__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.photo-gallery__slide img { width: 100%; height: clamp(280px, 40vw, 660px); object-fit: cover; }
.photo-gallery__controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 5px; border-radius: 30px; color: white; background: #06446fe8; }
.photo-gallery__controls button { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--balanz-blue); background: white; font-size: 1.4rem; }
.photo-gallery__controls button:disabled { cursor: default; opacity: .55; }
.photo-gallery__controls span[data-gallery-status] { min-width: 42px; text-align: center; font-size: .85rem; }

/* Services and fitness: simple icons followed by floating description cards. */
.specialisations, .fitness, .lifestyle, .drechmax, .team { padding-block: 88px 104px; }
.section-heading { max-width: 950px; margin: 0 auto 60px; text-align: center; }
.section-heading h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 18px; }
.section-heading p { font-size: 1rem; }
.specialisation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 48px; }
.specialisation-card { text-align: center; min-width: 0; }
.specialisation-card__icon { display: grid; place-items: center; width: 66px; height: 66px; border: 3px solid var(--balanz-orange); border-radius: 13px; color: var(--balanz-orange); margin: 0 auto 20px; }
.specialisation-card__icon svg { width: 34px; height: 34px; }
.specialisation-card h3 { color: #be5418; font-size: 1.12rem; margin-bottom: 12px; }
.specialisation-card p { font-size: .92rem; line-height: 1.5; }
.fitness { background: var(--balanz-peach); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 62px 40px; }
.activity-card { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.activity-card__visual { width: 100%; border-radius: 18px; background: #fff; }
.activity-card__visual img { width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: inherit; }
.activity-card__visual::after { inset: -7px 7px 7px -7px; }
.activity-card:nth-child(even) .activity-card__visual::after { inset: 7px -7px -7px 7px; }
.activity-card__body { position: relative; z-index: 1; flex: 1; width: 86%; min-width: 0; min-height: 172px; padding: 23px; margin-top: -25px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px #34251a40; }
.activity-card h3 { font-size: 1.1rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.activity-card p { font-size: .91rem; line-height: 1.5; }
.wide-image { overflow: hidden; }
.wide-image img { width: 100%; height: clamp(280px, 40vw, 630px); object-fit: cover; }
.wide-image--spinning { border-top: 32px solid var(--balanz-orange); }

/* The open, separated four-plus-three lifestyle rows from the design. */
.decorated-section { position: relative; isolation: isolate; overflow: clip; }
.decorated-section::before, .decorated-section::after { content: ""; position: absolute; z-index: -1; width: 310px; height: 310px; border: 1px solid #dd702950; border-radius: 42px; pointer-events: none; }
.decorated-section::before { top: 35px; right: 7%; }
.decorated-section::after { bottom: 60px; left: 7%; }
.lifestyle .section-heading h2 { color: var(--balanz-orange); font-size: 2.2rem; }
.lifestyle-grid { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 64px; }
.lifestyle-card { flex: 0 0 25%; min-width: 0; padding: 34px 24px 40px; border: 1px solid var(--balanz-peach); background: white; text-align: center; }
.lifestyle-card--peach { background: var(--balanz-peach); }
.lifestyle-card h3 { min-height: 54px; margin-bottom: 26px; font-size: 1.4rem; overflow-wrap: anywhere; }
.lifestyle-card p { font-size: .98rem; line-height: 1.55; }

/* DrechtMax: introduction, two programmes and the facility photograph. */
.drechmax-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: stretch; }
.drechmax-card { min-width: 0; background: var(--balanz-peach); text-align: center; }
.drechmax-card--intro { display: flex; flex-direction: column; justify-content: center; padding: 46px; }
.drechmax-card h2, .drechmax-card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: 26px; overflow-wrap: anywhere; hyphens: auto; }
.drechmax-card p { font-size: 1rem; }
.drechmax-card--intro a { display: inline-block; align-self: center; margin-top: 40px; padding: 8px; color: var(--balanz-ink); font-weight: 700; }
.drechmax-card--intro a:hover { text-decoration: underline; }
.drechmax-card--programme img { width: 100%; height: 230px; object-fit: cover; }
.drechmax-card--programme > div { padding: 34px 38px 46px; }
.drechmax-card--image { overflow: hidden; border-radius: 18px; min-height: 460px; }
.drechmax-card--image img { width: 100%; height: 100%; object-fit: cover; }

/* Named teams, centred as groups rather than a single undifferentiated grid. */
.team-groups { display: flex; flex-wrap: wrap; row-gap: 66px; }
.team-group { width: 100%; }
.team-group > h3 { text-align: center; color: var(--balanz-ink); font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 40px; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 42px 28px; }
.team-card { flex: 0 0 calc((100% - 84px) / 4); min-width: 0; text-align: center; }
.team-card img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--balanz-orange); object-fit: cover; object-position: center top; margin: 0 auto 18px; background: #fff; }
.team-card h4 { color: var(--balanz-ink); font-size: 1rem; line-height: 1.4; margin-bottom: 6px; }
.team-card p { font-size: .94rem; line-height: 1.5; }
.team-group--single { width: 50%; }
.team-group--single .team-card { flex-basis: min(252px, 60%); }

/* Contact and newsletter. Provider destinations are WordPress theme settings. */
.site-footer { padding: 52px 0 24px; color: white; background: #739bb7; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: stretch; }
.contact-card, .review-card { color: var(--balanz-ink); background: white; border-radius: 16px; box-shadow: 0 2px 8px #102e4359; }
.contact-card { padding: 30px; min-width: 0; }
.footer-brand { display: block; width: 126px; margin-bottom: 14px; }
.footer-brand img { width: 100%; height: 90px; object-fit: contain; object-position: left; }
.contact-card address { font-style: normal; margin-bottom: 22px; }
.contact-card h2 { color: var(--balanz-ink); font-family: var(--balanz-font); font-size: 1.18rem; margin-bottom: 16px; }
.contact-links { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.contact-links a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--balanz-ink); font-size: .97rem; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--balanz-blue); }
.contact-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid var(--balanz-blue); border-radius: 50%; color: var(--balanz-blue); }
.contact-icon svg { width: 18px; height: 18px; }
.footer-connect { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 32px; min-width: 0; }
.review-card { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; min-height: 150px; padding: 24px; }
.review-card strong { font-size: 3.5rem; font-weight: 750; line-height: 1.1; }
.review-card span { margin-top: 5px; }
.newsletter { width: 100%; }
.newsletter h2 { margin-bottom: 12px; color: white; font-size: 1.2rem; }
.newsletter form { display: grid; gap: 14px; }
.newsletter input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 16px; border: 1px solid #53616a; border-radius: 12px; color: var(--balanz-ink); background: #fff; box-shadow: 0 2px 6px #102e4333; }
.newsletter input::placeholder { color: #53616a; opacity: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 26px; border: 1px solid #53616a; border-radius: 12px; font-size: .9rem; font-weight: 700; text-transform: uppercase; }
.button--white { justify-self: start; color: var(--balanz-ink); background: white; box-shadow: 0 2px 6px #102e4333; }
.button--white:hover { color: var(--balanz-blue); background: #f4f9fc; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 42px; border-top: 1px solid #fff4; font-size: .83rem; }
.site-footer__bottom a { color: white; }

/* Responsive layout uses content-sized tracks; the menu never extends off canvas. */
@media (max-width: 1100px) {
  .primary-nav ul { gap: 18px; }
  .primary-nav a { font-size: .94rem; }
  .welcome__grid { gap: 40px; }
  .activity-grid { gap: 48px 28px; }
  .activity-card__body { width: 90%; padding: 20px; }
  .lifestyle-card { flex-basis: 50%; }
  .site-footer__grid { gap: 40px; }
  .contact-links { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --balanz-header-height: 114px; }
  .nav-shell { min-height: 74px; }
  .brand { flex-basis: 90px; padding-block: 6px; }
  .brand img { height: 62px; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; z-index: 2; top: calc(var(--balanz-header-height) + var(--wp-admin--admin-bar--height, 0px)); right: 0; bottom: 0; width: min(360px, 100%); padding: 20px 28px; overflow-y: auto; overscroll-behavior: contain; background: white; box-shadow: -12px 20px 30px #06446f22; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms; }
  .primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .primary-nav ul { display: block; }
  .primary-nav a { display: block; padding: 15px 6px; border-bottom: 1px solid var(--balanz-line); font-size: 1rem; }
  .welcome__grid { grid-template-columns: 1.25fr 1fr; gap: 32px; }
  .welcome__photos { padding-left: 25px; }
  .welcome__treatment { width: 70%; }
  .specialisation-grid { gap: 40px 28px; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drechmax-card--intro { padding: 30px; }
  .drechmax-card--programme > div { padding: 28px; }
  .team-grid { gap: 38px 24px; }
  .team-card { flex-basis: calc((100% - 72px) / 4); }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .welcome { padding: 46px 0 56px; }
  .welcome__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .welcome__photos { position: relative; top: auto; width: min(100%, 480px); margin-inline: auto; padding: 0 0 80px 70px; }
  .welcome__treatment { width: 52%; }
  .welcome h1 { font-size: 1.65rem; }
  .contact-bar { background: var(--balanz-orange); }
  .contact-bar__inner { justify-content: center; gap: 22px; }
  .contact-bar a { font-size: .84rem; gap: 7px; }
  .contact-bar svg { width: 18px; height: 18px; }
  .specialisations, .fitness, .lifestyle, .drechmax, .team { padding-block: 60px; }
  .section-heading { margin-bottom: 42px; }
  .specialisation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .specialisation-card:last-child { grid-column: 1 / -1; max-width: 340px; justify-self: center; }
  .activity-grid { gap: 44px 26px; }
  .activity-card__body { width: 94%; padding: 18px; }
  .lifestyle-grid { row-gap: 28px; }
  .lifestyle-card { padding: 26px 20px; }
  .lifestyle-card h3 { font-size: 1.25rem; }
  .drechmax-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .drechmax-card--image { min-height: 0; aspect-ratio: 1.45; }
  .drechmax-card--programme img { height: auto; aspect-ratio: 1.8; }
  .team-card { flex-basis: calc((100% - 24px) / 2); max-width: 250px; }
  .team-group--single .team-card { flex-basis: 80%; }
  .team-group > h3 { margin-bottom: 30px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .contact-links { grid-template-columns: 1.15fr 1fr; }
  .footer-connect { gap: 28px; }
  .newsletter { max-width: 460px; }
  .site-footer__bottom { flex-wrap: wrap; margin-top: 30px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .contact-bar__inner { gap: 14px; }
  .contact-bar a { font-size: .75rem; gap: 6px; }
  .contact-bar svg { display: none; }
  .welcome__building, .welcome__treatment { border-radius: 28px; }
  .welcome__photos { padding-left: 50px; }
  .section-ribbon { padding: 14px 18px; font-size: .92rem; }
  .section-ribbon a { margin-left: 12px; }
  .section-divider { height: 32px; }
  .specialisation-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .specialisation-card { max-width: 350px; justify-self: center; }
  .specialisation-card:last-child { grid-column: auto; }
  .activity-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-inline: 7px; }
  .activity-card__body { width: 88%; min-height: auto; padding: 22px; }
  .activity-card p { font-size: .98rem; }
  .lifestyle-grid { row-gap: 0; }
  .lifestyle-card { flex-basis: 100%; padding: 30px 24px; }
  .lifestyle-card h3 { min-height: 0; margin-bottom: 18px; }
  .drechmax-card--intro, .drechmax-card--programme > div { padding: 30px 24px; }
  .team-groups { row-gap: 44px; }
  .team-grid { column-gap: 18px; }
  .team-card { flex-basis: calc((100% - 18px) / 2); }
  .team-card h4 { font-size: .92rem; }
  .team-card p { font-size: .86rem; overflow-wrap: anywhere; }
  .team-group--single { width: 100%; }
  .team-group--single .team-card { flex-basis: 55%; max-width: 210px; }
  .wide-image--spinning { border-top-width: 22px; }
  .site-footer { padding-top: 32px; }
  .contact-card { padding: 24px; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-links li:nth-child(3) { grid-row: 2; }
  .contact-card address { font-size: .97rem; }
  .newsletter h2 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
