/*
Theme Name: MAPFRE Legal Boutique
Theme URI: https://example.local/mapfre-legal
Author: AI Studio
Author URI: https://example.local
Description: Modern and accessible custom WordPress theme for a legal office.
Version: 1.4.9
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: mapfre-legal
*/

:root {
  --color-primary: #135166;
  --color-primary-dark: #0d3f4f;
  --color-secondary: #223544;
  --color-bg: #f4f6f9;
  --color-text: #1a2233;
  --color-muted: #4a5568;
  --color-white: #ffffff;
  --color-line: #e4e9f2;
  --shadow-card: 0 8px 30px rgba(26, 34, 51, 0.06);
  --radius: 14px;
  --container: min(1080px, calc(100% - 2.5rem));
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
.section h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a {
  color: var(--color-primary-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--color-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1000;
  background: #000;
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 36px rgba(26, 34, 51, 0.08);
  border-bottom-color: #dce3ef;
}

.site-header.is-nav-open {
  background: #ffffff;
  box-shadow: 0 10px 36px rgba(26, 34, 51, 0.1);
}

.topbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem clamp(0.75rem, 2.5vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  row-gap: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  min-width: 0;
  flex: 0 1 auto;
  padding: 0.15rem 0;
}

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

.brand:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(165deg, var(--color-primary), var(--color-primary-dark));
  display: grid;
  place-items: center;
  color: var(--color-white);
  font-weight: 700;
}

.brand-mark.logo-mark {
  width: 46px;
  height: 46px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.brand-mark.logo-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0;
}

.brand-text strong {
  display: block;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.brand-text span {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.site-menu {
  min-width: 0;
}

.site-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.5rem;
}

.site-menu a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-secondary);
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu .current-menu-item a {
  color: var(--color-primary);
}

.site-menu a[aria-current="page"] {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-white);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 22px;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

html.reduce-motion .menu-toggle__bar {
  transition: none;
}

.site-header.is-nav-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-nav-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-backdrop {
  display: none;
}

.hero--simple {
  position: relative;
  color: var(--color-text);
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5fa 100%);
  border-bottom: 1px solid var(--color-line);
}

.hero--simple.hero--with-photo {
  background-image: linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 40%,
      rgba(255, 255, 255, 0.78) 58%,
      rgba(244, 246, 249, 0.5) 100%
    ),
    url("assets/hero-law-office.jpg");
  background-size: auto, cover;
  background-position: 0 0, center right;
  background-repeat: no-repeat, no-repeat;
}

.hero--simple.hero--with-photo.hero--desk-photo-bg {
  overflow: hidden;
  background-color: #eef2f7;
  background-image: none;
}

.hero--simple.hero--with-photo.hero--desk-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 28%,
    rgba(255, 255, 255, 0.88) 45%,
    rgba(255, 255, 255, 0.72) 58%,
    rgba(255, 255, 255, 0.45) 78%,
    rgba(244, 246, 249, 0.25) 100%
  );
}

.hero-bg-mirror {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hero-bg-image, url("assets/hero-law-office.jpg"));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scaleX(-1);
}

.hero--simple::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  z-index: 4;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 1.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero--simple.hero--desk-photo-bg .hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

/* Equipo page: full-bleed banner (home-style hero + white overlay on custom photo) */
.equipo-hero-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 2rem;
}

.equipo-hero-bleed .hero {
  margin-bottom: 0;
}

.hero.hero--equipo-banner .hero-bg-mirror {
  transform: none;
  /* Higher vertical % = anchor lower on the photo → less ceiling, more desk (cover) */
  background-position: center 68%;
}

.hero.hero--equipo-banner.hero--desk-photo-bg::before {
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.55) 38%,
    rgba(255, 255, 255, 0.38) 58%,
    rgba(255, 255, 255, 0.22) 78%,
    rgba(255, 255, 255, 0.12) 100%
  );
}

.hero--equipo-banner .hero-copy .hero-lead {
  margin-bottom: 1.35rem;
}

.hero--equipo-banner .hero-copy .hero-equipo-subheading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-secondary);
}

.hero--equipo-banner .hero-copy .feature-list--hero-equipo {
  margin-top: 0;
  margin-bottom: 0;
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--color-text);
}

.hero--equipo-banner .hero-copy .feature-list--hero-equipo li {
  margin-bottom: 0.45rem;
}

.hero--equipo-banner .hero-copy h1 {
  margin-bottom: 0.65rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero--simple h1 {
  margin: 0.75rem 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  color: var(--color-secondary);
  max-width: 18ch;
}

.hero-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  color: var(--color-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual[data-parallax] {
  will-change: transform;
  transition: none;
}

.hero-photo-frame {
  width: min(100%, 400px);
  aspect-ratio: 2.35 / 1;
  max-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(19, 81, 102, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #e8eef3;
}

.hero-photo-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(19, 81, 102, 0.08);
  color: var(--color-primary-dark);
}

.btn:focus-visible {
  outline: 3px solid #102433;
  outline-offset: 3px;
}

.btn-primary:focus-visible {
  outline-color: #ffffff;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding-top: 2.5rem;
}

.section--muted {
  background: #eef2f8;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.section-head {
  margin-bottom: 1.75rem;
}

.page-intro {
  margin-bottom: 2rem;
}

.page-intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  color: var(--color-secondary);
}

.page-shell .card.card--quiet h2 {
  font-size: 1.28rem;
  margin-top: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  color: var(--color-secondary);
}

.section-intro {
  color: var(--color-muted);
  max-width: 68ch;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

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

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

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.35rem 1.4rem;
  border: 1px solid #eef1f6;
}

.card--quiet {
  box-shadow: none;
  border: 1px solid var(--color-line);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card--quiet:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(26, 34, 51, 0.12);
}

.card--quiet:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 34, 51, 0.1);
}

.card h3 {
  margin-top: 0;
  color: var(--color-secondary);
}

.pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a2f3c;
  background: #e3f1f5;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.feature-list {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
}

.feature-list li {
  margin-bottom: 0.36rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--color-line);
  background: #fbfcfe;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card--soft {
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.media-card--soft img {
  object-fit: contain;
  max-height: 320px;
}

.office-carousel-card {
  --carousel-slides: 3;
  border-radius: var(--radius);
  min-height: 260px;
  border: 1px solid var(--color-line);
  background: #fbfcfe;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.5rem;
}

.office-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
}

.office-carousel__track {
  display: flex;
  width: calc(var(--carousel-slides, 3) * 100%);
  height: 100%;
  min-height: 240px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.office-carousel__slide {
  margin: 0;
  flex: 0 0 calc(100% / var(--carousel-slides, 3));
  height: min(52vw, 300px);
  max-height: 300px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(19, 81, 102, 0.12);
  border: 1px solid rgba(19, 81, 102, 0.08);
}

.office-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.office-carousel__arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 2px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-primary-dark);
  font-size: 1.65rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.office-carousel__arrow:hover,
.office-carousel__arrow:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  .office-carousel__track {
    transition: none;
  }
}

.feature-list--plain {
  list-style: none;
  padding-left: 0;
}

.feature-list--plain li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-line);
  margin: 0;
}

.feature-list--plain li:last-child {
  border-bottom: 0;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.mb-0 {
  margin-bottom: 0;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #ccd6e2;
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.contact-form textarea {
  min-height: 130px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkbox-row input {
  margin-top: 0.25rem;
}

.checkbox-row label {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.map-card {
  margin-top: 1.5rem;
}

.map-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #d6deea;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  max-height: min(420px, 70vh);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-attribution {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.legal-doc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-doc h1 {
  margin-top: 0;
}

.legal-doc h2 {
  margin-top: 2rem;
}

.legal-doc a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-notice {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-notice.success {
  background: #e6ffef;
  color: #0d4d24;
}

.form-notice.error {
  background: #ffe9e9;
  color: #6b1414;
}

.footer--site {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2.5rem 0 2rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links-wrap {
  padding-bottom: 1.75rem;
}

.footer--site .footer-grid h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d5dade;
  margin: 0 0 0.65rem;
}

.footer--site .footer-grid p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  color: #dde4ea;
}

.footer--site a {
  color: #aedff0;
}

.footer--site a:hover,
.footer--site a:focus-visible {
  color: #ffffff;
}

.footer--site a:focus-visible {
  outline-color: #ffffff;
  outline-offset: 3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1.3rem;
}

.footer-rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0;
}

.footer-copyline {
  text-align: center;
  padding: 1.25rem 0 1.5rem;
}

.footer-copyline__text {
  margin: 0;
  font-size: 0.88rem;
  color: #e8eef2;
}

.footer-funding-wrap {
  padding-bottom: 0.25rem;
}

.footer-funding-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

.footer-funding-strip__image {
  display: block;
  width: 100%;
  max-width: 851px;
  height: auto;
  margin: 0 auto;
}

.footer-funding-meta {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #d0d8de;
  line-height: 1.5;
}

.footer-funding-declaration {
  display: block;
}

.footer-funding-guidelines {
  color: #aedff0;
  font-weight: 600;
}

.footer-funding-guidelines:hover,
.footer-funding-guidelines:focus-visible {
  color: #ffffff;
}

.lang-switch {
  margin-left: 0.8rem;
  display: inline-flex;
  gap: 0.4rem;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8deea;
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  text-decoration: none;
}

.lang-switch a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.lang-switch a[aria-current="true"] {
  border-color: var(--color-primary);
  background: rgba(19, 81, 102, 0.1);
  font-weight: 700;
  color: var(--color-primary-dark);
}

@media (max-width: 1000px) {
  .grid-3,
  .grid-2,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-inline: clamp(1rem, 3vw, 1.25rem);
  }

  .hero-visual {
    order: -1;
  }
}

@media (min-width: 901px) {
  .menu-backdrop {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.6rem;
    padding-block: 0.75rem;
    padding-inline: max(clamp(0.65rem, 2.5vw, 1.25rem), env(safe-area-inset-left, 0px))
      max(clamp(0.65rem, 2.5vw, 1.25rem), env(safe-area-inset-right, 0px));
    position: relative;
    z-index: 2;
  }

  .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: start;
    align-items: flex-start;
    min-width: 0;
    max-width: none;
    flex: unset;
    order: unset;
  }

  .brand-mark {
    flex-shrink: 0;
  }

  .brand-text span {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    margin-left: 0;
    flex: unset;
    order: unset;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    margin-left: 0;
    order: unset;
  }

  .site-menu:not(.is-open) {
    display: none;
  }

  .site-menu.is-open {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding-top: 0.6rem;
    border-top: 1px solid var(--color-line);
    order: unset;
    flex: unset;
  }

  .site-menu.is-open ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-content: flex-start;
  }

  .site-menu.is-open li {
    border-bottom: 1px solid var(--color-line);
  }

  .site-menu.is-open li:last-child {
    border-bottom: 0;
  }

  .site-menu.is-open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 0.5rem 0.15rem;
    box-sizing: border-box;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 400;
    margin: 0;
    border: 0;
    padding: 0;
    background: rgba(26, 34, 51, 0.42);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-backdrop[hidden] {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 2.25rem 0;
  }

  .footer-funding-strip {
    padding: 0.75rem 0.65rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero--simple h1 {
    max-width: none;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero--simple.hero--with-photo {
    background-position: 0 0, 70% center;
  }

  .hero--simple.hero--with-photo.hero--desk-photo-bg {
    background-position: 0 0;
  }

  .page-shell.section {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }

  .media-band__overlay {
    padding-bottom: clamp(1rem, 4vw, 1.5rem);
  }

  .footer-copyline__text {
    padding-inline: 0.75rem;
  }

  .contact-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero-cta .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Scroll reveal */
[data-reveal]:not([data-reveal-stagger]) {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal-stagger] > .card {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal-stagger].is-revealed > .card:nth-child(1) {
  transition-delay: 0.05s;
}

[data-reveal-stagger].is-revealed > .card:nth-child(2) {
  transition-delay: 0.12s;
}

[data-reveal-stagger].is-revealed > .card:nth-child(3) {
  transition-delay: 0.19s;
}

[data-reveal-stagger].is-revealed > .card:nth-child(4) {
  transition-delay: 0.26s;
}

[data-reveal-stagger].is-revealed > .card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal]:not([data-reveal-stagger]),
  [data-reveal-stagger] > .card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.media-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.media-band__parallax {
  will-change: transform;
  transition: none;
}

.media-band__img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 400px);
  object-fit: cover;
}

.media-band__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  padding-bottom: clamp(1.25rem, 4vw, 2.25rem);
  background: linear-gradient(0deg, rgba(17, 26, 42, 0.78) 0%, rgba(17, 26, 42, 0.2) 55%, transparent 100%);
  pointer-events: none;
}

.media-band__statement {
  width: 100%;
}

.media-band__text {
  margin: 0;
  max-width: 46ch;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.page-banner {
  position: relative;
  min-height: clamp(180px, 28vw, 260px);
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  background-color: var(--color-secondary);
  background-image: linear-gradient(120deg, rgba(34, 53, 68, 0.82), rgba(19, 81, 102, 0.45)), var(--banner-img);
  background-size: cover;
  background-position: center;
}

.page-banner__title {
  position: absolute;
  left: clamp(0.85rem, 4vw, 1.5rem);
  right: clamp(0.85rem, 4vw, 1.5rem);
  bottom: clamp(0.85rem, 3vw, 1.25rem);
  margin: 0;
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(1.15rem, 3.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.contact-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.25rem;
  margin-bottom: 1.5rem;
}

.contact-showcase__media {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  min-height: 200px;
  max-height: 260px;
  height: clamp(200px, 28vw, 260px);
}

.contact-showcase__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Portrait source: crop top and bottom to match previous band height */
  object-position: center 42%;
}

.contact-showcase__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

html.reduce-motion [data-reveal],
html.reduce-motion [data-reveal-stagger] > .card {
  opacity: 1;
  transform: none;
  transition: none;
}

html.reduce-motion [data-reveal-stagger].is-revealed > .card {
  transition: none;
}

html.reduce-motion .card--quiet {
  transition: none;
}

html.reduce-motion .card--quiet:hover,
html.reduce-motion .card--quiet:focus-within {
  transform: none;
}

