/*
Theme Name: Centro de Patología
Theme URI: https://centrodepatologia.com/
Author: Centro de Patología
Description: Tema WordPress corporatiu per a Centro de Patología, amb contingut bilingüe en català i castellà.
Version: 1.5.15
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: centro-patologia
*/

:root {
  --ink: #173044;
  --muted: #5d7182;
  --paper: #f5fbfd;
  --soft: #e9f7fb;
  --blue-wash: #d8f0f7;
  --brand-blue: #1769aa;
  --brand-navy: #0d3f66;
  --brand-steel: #5eb4c8;
  --brand-light: #c8f1f7;
  --accent: #20a58a;
  --accent-soft: #e3f8f2;
  --line: #c9e1ea;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(13, 63, 102, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 816px);
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 249, 254, 0.94);
  border-bottom: 1px solid rgba(216, 223, 237, 0.86);
  backdrop-filter: blur(14px);
}

.contact-bar {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--brand-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-bar a {
  color: var(--brand-blue);
  text-decoration: none;
}

.contact-bar a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-bar .professional-access {
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
  text-decoration: none;
}

.contact-bar .professional-access:hover {
  color: var(--white);
  background: var(--brand-navy);
  text-decoration: none;
}

.brand {
  grid-column: 1;
  grid-row: 1 / 3;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}

.header-tools {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-steel);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 800;
}

.language-switch a {
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.language-switch a[aria-current="true"] {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
}

.hero,
.page-hero {
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 43, 75, 0.94), rgba(23, 105, 170, 0.72) 48%, rgba(32, 165, 138, 0.28));
  pointer-events: none;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  justify-content: center;
  align-items: end;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(88px, 12vw, 150px) clamp(20px, 5vw, 72px) clamp(42px, 7vw, 78px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-image-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero.compact-hero {
  align-items: center;
  height: auto;
  min-height: clamp(340px, 34vw, 430px);
  padding-top: 32px;
  padding-bottom: 32px;
}

.home-brand-frame {
  position: relative;
  width: calc(100% - 60px);
  max-width: 480px;
  margin-left: 60px;
  border: 7px solid transparent;
  border-radius: 24px;
  padding: 18px 24px 18px 44px;
  font-family: Arial, "Segoe UI", sans-serif;
}

.home-brand-frame::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 7px solid #a8b4c3;
  border-radius: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 123px, 10px 123px, 10px 24px, 0 24px);
  pointer-events: none;
}

.home-brand-text {
  min-width: 0;
}

.hero .home-brand-slogan {
  margin: 0 0 8px;
  color: #a8b4c3;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.05;
}

.home-brand-emphasis {
  color: #ffffff;
}

.hero.compact-hero .home-brand-frame h1 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
}

.home-brand-logo {
  position: absolute;
  left: -50.91px;
  top: 24px;
  display: block;
  width: 77.34375px;
  height: auto;
}

.hero .hero-content > p,
.hero .hero-content > .wp-block-group__inner-container > p,
.hero-content .hero-actions {
  margin-left: 111px;
  max-width: calc(100% - 111px);
}

.hero-image-carousel img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroCarousel 30s infinite;
}

.hero-image-carousel img:nth-child(1) {
  animation-delay: 0s;
}

.hero-image-carousel img:nth-child(2) {
  animation-delay: 6s;
}

.hero-image-carousel img:nth-child(3) {
  animation-delay: 12s;
}

.hero-image-carousel img:nth-child(4) {
  animation-delay: 18s;
}

.hero-image-carousel img:nth-child(5) {
  animation-delay: 24s;
}

@keyframes heroCarousel {
  0%,
  18% {
    opacity: 1;
  }

  24%,
  100% {
    opacity: 0;
  }
}

.page-hero {
  position: relative;
  background: var(--brand-navy);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 43, 75, 0.93), rgba(23, 105, 170, 0.7) 48%, rgba(32, 165, 138, 0.32));
}

.page-hero::after {
  z-index: 0;
  background: url("assets/micrografia-01.jpeg") center / cover no-repeat;
  animation: pageHeroCarousel 30s infinite;
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

@keyframes pageHeroCarousel {
  0%,
  18% {
    background-image: url("assets/micrografia-01.jpeg");
  }

  20%,
  38% {
    background-image: url("assets/micrografia-02.jpeg");
  }

  40%,
  58% {
    background-image: url("assets/micrografia-03.jpeg");
  }

  60%,
  78% {
    background-image: url("assets/micrografia-04.jpeg");
  }

  80%,
  100% {
    background-image: url("assets/micrografia-05.png");
  }
}

.compact-hero {
  grid-template-columns: minmax(0, 1180px);
  height: clamp(340px, 34vw, 430px);
  min-height: 0;
  padding-top: clamp(52px, 7vw, 84px);
  padding-bottom: clamp(32px, 5vw, 54px);
}

.compact-hero h1 {
  max-width: 920px;
  font-size: clamp(2.05rem, 4vw, 4rem);
  line-height: 1.06;
}

.compact-hero .hero-actions {
  margin-top: 18px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(2.55rem, 5.7vw, 5.8rem);
  line-height: 0.98;
}

.hero.compact-hero h1 {
  max-width: 900px;
  font-size: clamp(2.05rem, 4vw, 4rem);
  line-height: 1.06;
}

.hero p,
.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1180px);
  justify-content: center;
  align-content: center;
  height: clamp(340px, 34vw, 430px);
  padding: clamp(48px, 7vw, 76px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.05rem, 4vw, 4rem);
  line-height: 1.06;
}

.page-hero .hero-actions {
  margin-top: 18px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--brand-blue);
}

.button.primary:hover {
  background: var(--brand-navy);
}

.hero a[href*="contacte"],
.hero a[href*="contacto"],
.page-hero a[href*="contacte"],
.page-hero a[href*="contacto"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--white);
  background: var(--brand-blue);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.hero a[href*="contacte"]:hover,
.hero a[href*="contacto"]:hover,
.page-hero a[href*="contacte"]:hover,
.page-hero a[href*="contacto"]:hover {
  background: var(--brand-navy);
  transform: translateY(-1px);
}

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

.wp-block-button.primary .wp-block-button__link,
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--white);
  background: var(--brand-blue);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.wp-block-button.primary .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover {
  background: var(--brand-navy);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.button.light-button {
  color: var(--brand-navy);
  border-color: var(--line);
  background: var(--white);
}

.wp-block-group:not(.section):not(.page-hero) > .wp-block-group__inner-container {
  display: contents;
}

.section > .wp-block-group__inner-container {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.page-hero > .wp-block-group__inner-container {
  width: 100%;
  max-width: 1180px;
}

.section {
  padding: clamp(62px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section > * {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.soft-section,
.team-section {
  background: var(--soft);
}

.section-heading {
  width: 100%;
  max-width: 1180px;
  margin-bottom: 34px;
  margin-left: auto;
  margin-right: auto;
  justify-self: stretch;
  text-align: left;
}

.section-heading > * {
  width: min(100%, 860px);
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;
}

.section-heading h2,
.section-kicker h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-kicker {
  position: sticky;
  top: 110px;
}

.prose {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose p {
  margin: 0 0 1.05em;
}

.legal-document {
  max-width: 1060px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 1rem;
}

.legal-document h2 {
  margin: 2.1em 0 0.65em;
  color: var(--brand-navy);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
}

.legal-document p,
.legal-document li {
  margin-top: 0;
}

.legal-document p {
  margin-bottom: 1em;
}

.legal-document ol,
.legal-document ul {
  display: grid;
  gap: 0.65em;
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.legal-document a {
  color: var(--brand-blue);
  font-weight: 750;
}

.legal-data {
  display: grid;
  gap: 10px;
  max-width: 680px;
  margin: 0 0 1.4em;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-data div {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.legal-data dt {
  color: var(--brand-navy);
  font-weight: 850;
}

.legal-data dd {
  margin: 0;
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 30;
  display: grid;
  gap: 16px;
  width: min(560px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(18, 47, 102, 0.2);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-actions .button {
  min-height: 40px;
}

.cookie-card-table {
  display: grid;
  gap: 14px;
  margin: 1rem 0 1.4rem;
}

.cookie-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-card h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.08rem;
}

.cookie-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.cookie-card dt {
  margin-bottom: 3px;
  color: var(--brand-navy);
  font-weight: 850;
}

.cookie-card dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.team-grid,
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-card,
.specialty-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.team-card,
.specialty-card,
.contact-card {
  padding: 24px;
}

h2,
h3 {
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
}

.team-card h2,
.contact-card h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.team-card p,
.specialty-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.specialty-card ul {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.image-section {
  background: var(--paper);
}

.micrograph-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.carousel-track {
  position: relative;
  height: clamp(330px, 48vw, 620px);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.carousel-button,
.carousel-dot {
  pointer-events: auto;
  border: 0;
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(18, 47, 102, 0.18);
}

.carousel-dots {
  display: inline-flex;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  pointer-events: auto;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(18, 47, 102, 0.34);
}

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

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
  font-weight: 850;
}

.team-card .role {
  margin-bottom: 10px;
  color: var(--brand-navy);
  font-weight: 800;
}

.team-directory {
  display: grid;
  gap: clamp(42px, 6vw, 76px);
}

.team-group {
  display: grid;
  gap: 18px;
}

.compact-heading {
  max-width: none;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
}

.compact-heading h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.6rem);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.small-people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.person-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.person-card h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.08rem;
}

.person-card a {
  overflow-wrap: anywhere;
  color: var(--brand-blue);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.person-card p {
  margin: 0;
  color: var(--muted);
}

.person-card .role {
  color: var(--brand-navy);
  font-weight: 850;
}

.featured-person {
  border-color: rgba(32, 165, 138, 0.34);
  background: linear-gradient(180deg, #ffffff, var(--accent-soft));
}

.technique-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.technique-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.technique-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.technique-card:first-child {
  grid-row: span 2;
}

.technique-card h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.22rem;
}

.technique-card p {
  margin: 0;
  color: var(--muted);
}

.technique-card ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.request-section {
  background: var(--paper);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
}

fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.wide-fieldset,
.form-actions,
.form-note {
  grid-column: 1 / -1;
}

legend {
  padding: 0 8px;
  font-weight: 850;
  color: var(--brand-navy);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd4e4;
  border-radius: 6px;
  color: var(--ink);
  background: #fbfcff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(32, 80, 144, 0.18);
  border-color: var(--brand-blue);
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.error-page {
  min-height: 440px;
  display: grid;
  align-items: center;
  text-align: center;
}

.error-content {
  max-width: 720px;
}

.error-code {
  margin: 0;
  color: var(--brand-blue);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

.error-content h1 {
  margin: 20px 0 12px;
  font-size: 2rem;
  overflow-wrap: anywhere;
}

.error-content > p:not(.error-code) {
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.contact-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  max-width: 1080px;
}

address {
  padding-left: 20px;
  border-left: 5px solid var(--brand-steel);
  font-style: normal;
}

address strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

address a {
  color: var(--brand-navy);
  font-weight: 800;
}

.contact-card {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.contact-card .button {
  width: fit-content;
  margin-top: 8px;
}

.map-card {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 390px;
  border: 0;
}

.site-footer {
  padding: clamp(36px, 5vw, 58px) clamp(20px, 5vw, 72px) 24px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--brand-navy);
}

.site-footer p,
.site-footer address {
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.footer-brand,
.footer-block {
  display: grid;
  gap: 10px;
}

.footer-brand {
  gap: 24px;
  min-width: 0;
  padding-left: 16px;
}

.footer-block {
  min-width: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.footer-brand,
.footer-partner {
  align-content: start;
}

.footer-contact {
  gap: 3px;
  padding-left: 18px;
  border-left: 4px solid var(--brand-steel);
  font-size: 0.95rem;
}

.footer-contact strong {
  margin-bottom: 7px;
}

.footer-brand img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-block strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.footer-block a {
  color: var(--white);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-brand .footer-partner {
  display: block;
  width: 180px;
  max-width: 100%;
}

.footer-brand .footer-partner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: 1180px;
  margin-top: 34px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 0;
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 12px clamp(16px, 5vw, 32px);
  }

  .header-tools {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .contact-bar {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    text-align: center;
  }

  .brand {
    grid-column: 1;
    grid-row: 2;
    width: min(340px, 85%);
    justify-content: center;
  }

  .main-nav,
  .main-nav-list {
    justify-content: center;
    gap: 8px 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 74px;
  }

  .compact-hero {
    height: auto;
    min-height: 340px;
    padding-top: 54px;
    padding-bottom: 32px;
  }

  .content-layout,
  .contact-layout,
  .request-form,
  .technique-layout,
  .technique-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .technique-card:first-child {
    grid-row: auto;
  }

  .page-hero {
    height: auto;
    min-height: 340px;
    padding-top: 44px;
    padding-bottom: 36px;
  }

  .section-kicker {
    position: static;
  }

  .people-grid,
  .small-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-brand-frame {
    width: calc(100% - 36px);
    margin-left: 36px;
    padding: 16px 16px 16px 26px;
    border-width: 6px;
    border-radius: 20px;
  }

  .home-brand-frame::before {
    inset: -6px;
    border-width: 6px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 91px, 9px 91px, 9px 24px, 0 24px);
  }

  .home-brand-logo {
    width: 49.21875px;
    left: -33.17px;
  }

  .hero .hero-content > p,
  .hero .hero-content > .wp-block-group__inner-container > p,
  .hero-content .hero-actions {
    margin-left: 68px;
    max-width: calc(100% - 68px);
  }

  .hero .home-brand-slogan {
    font-size: 1.125rem;
  }

  .hero.compact-hero .home-brand-frame h1 {
    font-size: 1.5rem;
    overflow-wrap: anywhere;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    padding-left: 0;
  }

  .site-header {
    position: relative;
    padding: 10px 14px 12px;
  }

  .contact-bar {
    display: flex;
    width: 100%;
    gap: 6px 12px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .contact-bar span,
  .contact-bar a:not(.professional-access) {
    overflow-wrap: anywhere;
  }

  .contact-bar .professional-access {
    flex-basis: 100%;
    max-width: max-content;
    margin: 2px auto 0;
    padding: 4px 11px;
  }

  .brand img {
    width: 100%;
  }

  .main-nav,
  .main-nav-list {
    width: 100%;
    gap: 4px 16px;
    font-size: 0.92rem;
  }

  .main-nav a {
    padding: 6px 0;
  }

  .language-switch {
    font-size: 0.8rem;
  }

  .team-grid,
  .specialty-grid,
  .people-grid,
  .small-people-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .contact-card .button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cookie-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .contact-bar {
    gap: 5px 10px;
    font-size: 0.78rem;
  }

  .main-nav,
  .main-nav-list {
    gap: 2px 12px;
    font-size: 0.88rem;
  }

  .language-switch a {
    min-width: 31px;
    padding: 4px 8px;
  }
}

@media print {
  .site-header,
  .hero,
  .page-hero,
  .site-footer,
  .form-actions {
    display: none;
  }

  body {
    background: var(--white);
  }

  .section {
    padding: 0;
  }

  fieldset {
    break-inside: avoid;
    box-shadow: none;
  }
}
