/* =========================================================================
   Solución Relocation — theme styles (front end and editor).
   Tokens come from theme.json. Mobile first; breakpoints:
   40em (640px) · 60em (960px) · 77.5em (1240px, desktop menu).
   One memorable element: the Madrid arch (hero image, director's photo).
   ========================================================================= */

:root {
	--sr-ivory: var(--wp--preset--color--ivory, #F7F5F0);
	--sr-sand: var(--wp--preset--color--sand, #E9EFF1);
	--sr-champagne: var(--wp--preset--color--champagne, #9FC2CC);
	--sr-ink: var(--wp--preset--color--ink, #173C54);
	--sr-slate: var(--wp--preset--color--slate, #263642);
	--sr-muted: var(--wp--preset--color--muted, #4F6170);
	--sr-turquoise: var(--wp--preset--color--turquoise, #126B80);
	--sr-on-dark-soft: #C9D8DF;
	--sr-display: var(--wp--preset--font-family--display);
	--sr-body: var(--wp--preset--font-family--body);
	--sr-header-h: 4.5rem;
	--sr-ease: cubic-bezier(.2, .7, .2, 1);
	--sr-focus: 2px solid var(--sr-ink);
}

html { scroll-padding-top: calc(var(--sr-header-h) + 1rem); }
html.sr-menu-open { overflow: hidden; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

::selection { background: var(--sr-champagne); color: var(--sr-ink); }

/* Focus: always visible, never removed */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--sr-focus);
	outline-offset: 3px;
	border-radius: 2px;
}
.has-ink-background-color :where(a, button):focus-visible,
.sr-on-dark :where(a, button):focus-visible { outline-color: var(--sr-ivory); }

/* Links in running text */
:where(p, li) > a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:where(p, li) > a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.screen-reader-text:focus { background: var(--sr-ink); color: var(--sr-ivory); }

/* -------------------------------------------------------------------------
   Buttons (theme blocks share these classes with core/button)
   ---------------------------------------------------------------------- */
.sr-btn {
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 3.25rem; padding: .85rem 1.6rem;
	font-family: var(--sr-body); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
	text-decoration: none; text-align: center; border-radius: 2px; border: 1px solid transparent;
	transition: background-color .2s var(--sr-ease), color .2s var(--sr-ease), border-color .2s var(--sr-ease);
	cursor: pointer;
}
.sr-btn--dark { background: var(--sr-ink); border-color: var(--sr-ink); color: var(--sr-ivory); }
.sr-btn--dark:hover { background: var(--sr-turquoise); border-color: var(--sr-turquoise); color: #FFFFFF; }
.sr-btn--light { background: var(--sr-ivory); border-color: var(--sr-ivory); color: var(--sr-ink); }
.sr-btn--light:hover { background: var(--sr-sand); border-color: var(--sr-sand); color: var(--sr-ink); }
.sr-btn--outline { background: transparent; border-color: var(--sr-ink); color: var(--sr-ink); }
.sr-btn--outline:hover { background: var(--sr-ink); color: var(--sr-ivory); }
.sr-btn--outline-light { background: transparent; border-color: var(--sr-on-dark-soft); color: var(--sr-ivory); }
.sr-btn--outline-light:hover { border-color: var(--sr-ivory); background: rgba(247, 245, 240, .08); color: var(--sr-ivory); }
.sr-btn--block { display: flex; width: 100%; }
.sr-consult, .sr-wa-wrap { margin: 0; }

.wp-block-button.is-style-quiet .wp-block-button__link {
	background: transparent; color: var(--sr-ink); border: 1px solid var(--sr-ink);
}
.wp-block-button.is-style-quiet .wp-block-button__link:hover { background: var(--sr-ink); color: var(--sr-ivory); }
.wp-block-button__link { min-height: 3.25rem; display: inline-flex; align-items: center; }

/* Buttons row: stacks on narrow screens so tap targets stay wide */
.sr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
@media (max-width: 30em) {
	.sr-actions > .sr-consult, .sr-actions > .sr-wa-wrap { flex: 1 1 100%; }
	.sr-actions .sr-btn { width: 100%; }
}

/* Text link that names its destination (no arrows) */
.sr-textlink a, a.sr-textlink {
	display: inline-flex; align-items: center; min-height: 2.75rem;
	font-weight: 600; color: var(--sr-ink);
	text-decoration: underline; text-decoration-color: var(--sr-turquoise);
	text-decoration-thickness: 2px; text-underline-offset: .35em;
	transition: text-decoration-color .2s var(--sr-ease);
}
.sr-textlink a:hover, a.sr-textlink:hover { text-decoration-color: var(--sr-ink); }

/* -------------------------------------------------------------------------
   Header
   ---------------------------------------------------------------------- */
.sr-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--sr-ivory);
	box-shadow: 0 1px 0 transparent;
	transition: box-shadow .2s var(--sr-ease);
}
.admin-bar .sr-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .sr-header { top: 0; } }
.sr-header.is-scrolled { box-shadow: 0 1px 0 var(--sr-champagne); }
.sr-header__row {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: var(--sr-header-h);
}

.sr-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.sr-logo__img { display: block; width: auto; height: 2.5rem; }
@media (min-width: 40em) { .sr-logo__img { height: 2.9rem; } }

.sr-nav { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex: 1 1 auto; }
.sr-nav__primary, .sr-nav__utility { display: none; }
.sr-nav__actions { display: flex; align-items: center; gap: .5rem; }
.sr-nav__cta { min-height: 2.75rem; padding: .6rem 1rem; font-size: .9375rem; white-space: nowrap; }
.sr-btn__label { white-space: inherit; }
.sr-hide-narrow { display: none; }
@media (min-width: 30em) { .sr-hide-narrow { display: inline; } }

.sr-nav__toggle {
	box-sizing: border-box;
	display: inline-flex; align-items: center; gap: .55rem;
	min-height: 2.75rem; padding: .5rem .85rem;
	background: transparent; border: 1px solid var(--sr-champagne); border-radius: 2px;
	font: 600 .9375rem/1 var(--sr-body); color: var(--sr-ink); cursor: pointer;
}
.sr-nav__toggle:hover { border-color: var(--sr-ink); }
.sr-nav__toggle-icon, .sr-nav__toggle-icon::before {
	display: block; width: 1.1rem; height: 1px; background: currentColor;
	transition: transform .2s var(--sr-ease);
}
.sr-nav__toggle-icon { position: relative; transform: translateY(-3px); }
.sr-nav__toggle-icon::before { content: ""; position: absolute; left: 0; top: 6px; }
.sr-nav__toggle[aria-expanded="true"] .sr-nav__toggle-icon { transform: rotate(45deg); }
.sr-nav__toggle[aria-expanded="true"] .sr-nav__toggle-icon::before { transform: translateY(-6px) rotate(-90deg); }

/* Mobile panel */
.sr-nav__panel {
	position: fixed; inset: var(--sr-header-h) 0 0 0; z-index: 49;
	background: var(--sr-ivory); overflow-y: auto; overscroll-behavior: contain;
	border-top: 1px solid var(--sr-champagne);
	animation: sr-panel-in .22s var(--sr-ease) both;
}
.admin-bar .sr-nav__panel { top: calc(var(--sr-header-h) + var(--wp-admin--admin-bar--height, 0px)); }
.sr-nav__panel[hidden] { display: none; }
.sr-nav__panel-inner {
	display: flex; flex-direction: column; gap: 2rem;
	max-width: 40rem; margin: 0 auto;
	padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) calc(2.5rem + env(safe-area-inset-bottom));
}
.sr-nav__panel-list, .sr-nav__panel-secondary { list-style: none; margin: 0; padding: 0; }
.sr-nav__panel-list a {
	display: flex; align-items: center; min-height: 3.5rem;
	font-family: var(--sr-display); font-size: clamp(1.75rem, 7vw, 2.25rem); font-weight: 500; line-height: 1.1;
	color: var(--sr-ink); text-decoration: none; border-bottom: 1px solid var(--sr-sand);
}
.sr-nav__panel-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sr-champagne); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.sr-nav__panel-secondary a { display: flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--sr-ink); }
@keyframes sr-panel-in { from { opacity: 0; transform: translateY(-.5rem); } to { opacity: 1; transform: none; } }

/* Desktop menu: a slim utility line (client area, language) above the main row */
@media (min-width: 77.5em) {
	:root { --sr-header-h: 6.5rem; }
	.sr-header__row { align-items: stretch; }
	.sr-logo { align-self: center; }
	.sr-nav {
		display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
		column-gap: 1.5rem; align-items: center; padding-block: .25rem .75rem;
	}
	.sr-nav__utility { grid-column: 1 / -1; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: .75rem; }
	.sr-nav__utility .sr-lang { flex-wrap: nowrap; gap: 0; }
	.sr-nav__utility .sr-lang a { min-width: 2.25rem; min-height: 2rem; padding: 0 .35rem; }
	.sr-nav__client { font-size: .8125rem; font-weight: 600; color: var(--sr-slate); text-decoration: none; display: inline-flex; align-items: center; min-height: 2rem; white-space: nowrap; }
	.sr-nav__client:hover { color: var(--sr-ink); text-decoration: underline; text-underline-offset: .3em; }
	.sr-nav__primary { display: block; grid-column: 1; grid-row: 2; justify-self: end; }
	.sr-nav__actions { grid-column: 2; grid-row: 2; }
	.sr-nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
	.sr-nav__list a {
		display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .6rem;
		font-size: .9375rem; font-weight: 500; color: var(--sr-ink); text-decoration: none; white-space: nowrap;
		background: linear-gradient(var(--sr-turquoise), var(--sr-turquoise)) no-repeat center bottom .5rem / 0 1px;
		transition: background-size .25s var(--sr-ease);
	}
	.sr-nav__list a:hover, .sr-nav__list a[aria-current="page"] { background-size: calc(100% - 1.2rem) 1px; }
	.sr-nav__toggle, .sr-nav__panel { display: none !important; }
	.sr-nav__cta { padding: .7rem 1.25rem; }
}

/* Language switcher */
.sr-lang { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.sr-lang a {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.75rem; min-height: 2.75rem; padding: 0 .5rem;
	font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--sr-slate); text-decoration: none; border-radius: 2px;
}
.sr-lang a:hover { color: var(--sr-ink); background: var(--sr-sand); }
.sr-lang a[aria-current="true"] { color: var(--sr-ink); box-shadow: inset 0 -1px 0 var(--sr-ink); }
.sr-lang--full { gap: .5rem; }
.sr-lang--full a { min-width: 0; padding: 0 1rem; font-size: .9375rem; font-weight: 600; letter-spacing: 0; border: 1px solid var(--sr-champagne); }
.sr-lang--full a[aria-current="true"] { background: var(--sr-ink); border-color: var(--sr-ink); color: var(--sr-ivory); box-shadow: none; }
/* Flags: decorative, the language code or name stays as text. */
.sr-lang a { gap: .4rem; }
.sr-lang a[hreflang]::before {
	content: ""; flex: none; width: 18px; height: 12px; border-radius: 2px;
	background: center / cover no-repeat; box-shadow: 0 0 0 1px rgba(23, 60, 84, .18);
}
.sr-lang a[hreflang="es"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23AA151B' d='M0 0h3v2H0z'/%3E%3Cpath fill='%23F1BF00' d='M0 .5h3v1H0z'/%3E%3C/svg%3E"); }
.sr-lang a[hreflang="en"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='xMidYMid slice'%3E%3CclipPath id='a'%3E%3Cpath d='M30 15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30m0-30L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' clip-path='url(%23a)' d='M0 0l60 30m0-30L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E"); }
.sr-lang a[hreflang="fr"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23ED2939' d='M0 0h3v2H0z'/%3E%3Cpath fill='%23fff' d='M0 0h2v2H0z'/%3E%3Cpath fill='%23002654' d='M0 0h1v2H0z'/%3E%3C/svg%3E"); }
.sr-lang--full a[aria-current="true"]::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }

/* -------------------------------------------------------------------------
   The Madrid arch
   ---------------------------------------------------------------------- */
.wp-block-image.is-style-arch { position: relative; margin-inline: 0; }
.wp-block-image.is-style-arch img {
	display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: 999px 999px 2px 2px;
}
/* Inner champagne line, like the moulding of a doorway */
.wp-block-image.is-style-arch::after {
	content: ""; position: absolute; inset: .75rem; pointer-events: none;
	border: 1px solid rgba(247, 245, 240, .7); border-radius: 999px 999px 0 0; border-bottom: 0;
}
.wp-block-image.is-style-arch figcaption { margin-top: .75rem; }

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.sr-hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem); }
.sr-hero .wp-block-columns { gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.sr-hero h1 { margin-block: 0; }
.sr-hero h1 { max-width: 15em; }
.sr-hero__lead { max-width: 34rem; margin-top: 1.75rem; font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: var(--sr-slate); }
.sr-hero .sr-actions { margin-top: 2.25rem; }
.sr-hero__trust {
	max-width: 30rem; margin-top: 2.5rem; padding-top: 1.25rem;
	border-top: 1px solid var(--sr-champagne);
	font-size: var(--wp--preset--font-size--small); color: var(--sr-muted);
}
.sr-hero-media { position: relative; overflow: hidden; border-radius: 999px 999px 2px 2px; }
.sr-hero-media img { aspect-ratio: 4 / 5; max-height: 78vh; }
@media (min-width: 60em) { .sr-hero-media img { aspect-ratio: 3 / 4; } }
.sr-hero-video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	border-radius: inherit;
}
/* The hero video has thin black bars in some shots: a slight zoom keeps them out of the arch */
.sr-hero-video { transform: scale(1.08); transform-origin: 50% 50%; }
.sr-hero-video-toggle {
	position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
	width: 2.75rem; height: 2.75rem; border-radius: 50%;
	border: 1px solid rgba(247, 245, 240, .8); background: rgba(23, 60, 84, .55); color: var(--sr-ivory); cursor: pointer;
	display: grid; place-items: center;
}
.sr-hero-video-toggle::before { content: ""; width: .7rem; height: .8rem; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.sr-hero-video-toggle.is-paused::before { width: 0; height: 0; border: 0; border-left: .7rem solid currentColor; border-top: .45rem solid transparent; border-bottom: .45rem solid transparent; margin-left: .2rem; }
.sr-hero-video-toggle:focus-visible { outline-color: var(--sr-ivory); }

/* One orchestrated load moment: the headline, then the arch */
@media (prefers-reduced-motion: no-preference) {
	.sr-hero h1, .sr-hero__lead, .sr-hero .sr-actions { animation: sr-rise .8s var(--sr-ease) both; }
	.sr-hero__lead { animation-delay: .08s; }
	.sr-hero .sr-actions { animation-delay: .16s; }
	.sr-hero .sr-hero-media { animation: sr-arch 1.1s .1s var(--sr-ease) both; }
}
@keyframes sr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sr-arch { from { opacity: 0; clip-path: inset(18% 0 0 0 round 999px 999px 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }

/* -------------------------------------------------------------------------
   Sections
   ---------------------------------------------------------------------- */
.sr-section { padding-block: var(--wp--preset--spacing--60); }
.sr-section > .wp-block-heading:first-child,
.sr-section__head { margin-top: 0; }
.sr-section__intro { max-width: 36rem; color: var(--sr-slate); }

/* Full-width sections sit edge to edge */
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }

/* Twin pathways: Private Relocation and Real Estate, equal weight */
.sr-paths { gap: clamp(2.5rem, 5vw, 4.5rem) !important; margin-top: var(--wp--preset--spacing--40); }
.sr-path { display: flex; flex-direction: column; gap: 1.1rem; height: 100%; }
.sr-path .wp-block-image { margin: 0 0 .5rem; }
.sr-path .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 2px; }
.sr-path h3 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 500; line-height: 1.05; }
.sr-path__name { margin: 0; font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--sr-muted); }
.sr-path p { margin: 0; }
.sr-path .wp-block-buttons, .sr-path .sr-consult { margin-top: auto; padding-top: .5rem; }

/* Lists with a champagne dash */
.sr-dash { list-style: none; padding-left: 0 !important; margin: .25rem 0 0; }
.sr-dash li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--sr-sand); }
.sr-dash li:last-child { border-bottom: 1px solid var(--sr-sand); }
.sr-dash li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: .9rem; height: 1px; background: var(--sr-champagne); }
.sr-dash a { color: var(--sr-ink); font-weight: 600; text-underline-offset: .25em; text-decoration-color: var(--sr-turquoise); }
.sr-dash a:hover { text-decoration-color: var(--sr-ink); }
.has-sand-background-color .sr-dash li { border-color: var(--sr-champagne); }

/* Other services: three columns under a champagne line, no cards */
.wp-block-group.is-style-hairline { border-top: 1px solid var(--sr-champagne); padding-top: 1.5rem; }
.sr-others { margin-top: var(--wp--preset--spacing--40); }
.sr-others .wp-block-column { display: flex; flex-direction: column; }
.sr-others h3 { margin: 0 0 .75rem; }
.sr-others p { margin: 0 0 1rem; }
.sr-others .sr-textlink { margin-top: auto; }

/* Director's letter */
.sr-letter { align-items: center !important; }
.sr-letter .wp-block-image.is-style-arch { max-width: 26rem; margin-inline: auto; }
.wp-block-group.is-style-letter p:not(.sr-textlink):not(.sr-signature) {
	font-family: var(--sr-display); font-size: clamp(1.25rem, 1.6vw, 1.4375rem); line-height: 1.55; color: var(--sr-ink);
	max-width: 36rem;
}
.wp-block-group.is-style-letter p.sr-signature {
	margin-top: 2rem; font-family: var(--sr-body); font-size: var(--wp--preset--font-size--small); line-height: 1.5; color: var(--sr-muted);
}
.sr-signature strong {
	display: block; margin-bottom: .15rem;
	font-family: var(--sr-display); font-size: 1.625rem; font-weight: 600; color: var(--sr-ink);
}

/* Closing band */
.sr-closing { text-align: left; }
.sr-closing h2 { color: var(--sr-ivory); max-width: 22ch; margin-top: 0; }
.sr-closing p { color: var(--sr-on-dark-soft); max-width: 34rem; }
.sr-closing .sr-actions { margin-top: 2rem; }
.sr-closing a:not(.sr-btn) { color: var(--sr-ivory); }

/* -------------------------------------------------------------------------
   Service pages
   ---------------------------------------------------------------------- */
.sr-service-intro { padding-block: clamp(2rem, 5vw, 4rem) var(--wp--preset--spacing--50); }
.sr-service-intro h1 { margin: 0; max-width: 14ch; }
.sr-service-intro .sr-hero__lead { margin-top: 1.5rem; }
.sr-service-intro .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 2px; }
.sr-two-col-list { columns: 1; column-gap: 3rem; }
@media (min-width: 48em) { .sr-two-col-list { columns: 2; } .sr-two-col-list li { break-inside: avoid; } }

.sr-steps { list-style: none; counter-reset: sr-step; padding: 0 !important; margin: var(--wp--preset--spacing--30) 0 0; display: grid; gap: 1.75rem; }
@media (min-width: 48em) { .sr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.sr-steps li { counter-increment: sr-step; position: relative; padding-top: 3.5rem; border-top: 1px solid var(--sr-champagne); }
.sr-steps li::before {
	content: counter(sr-step); position: absolute; top: .75rem; left: 0;
	font-family: var(--sr-display); font-size: 2rem; line-height: 1; color: var(--sr-ink);
}
.sr-steps strong { display: block; margin-bottom: .35rem; font-family: var(--sr-display); font-size: 1.5rem; font-weight: 600; color: var(--sr-ink); line-height: 1.2; }

.sr-audience { display: grid; gap: 1.5rem; }

/* Real Estate: buy / sell / rent */
.sr-re-paths .wp-block-column { display: flex; flex-direction: column; gap: .75rem; }
.sr-re-paths .sr-consult { margin-top: auto; padding-top: .75rem; }

/* -------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.sr-footer { border-top: 1px solid var(--sr-champagne); font-size: var(--wp--preset--font-size--small); }
.sr-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .sr-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .sr-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.sr-footer .sr-logo__img { height: 2.75rem; }
.sr-footer__desc { max-width: 22rem; margin-top: 1.25rem; color: var(--sr-slate); }
.sr-menu__heading, .sr-footer h2 {
	margin: 0 0 .75rem; font-family: var(--sr-body); font-size: .9375rem; font-weight: 700; letter-spacing: 0; color: var(--sr-ink);
}
.sr-menu__list, .sr-contact { list-style: none; margin: 0; padding: 0; }
.sr-menu__list a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--sr-slate); text-decoration: none; }
.sr-menu__list a:hover, .sr-menu__list a[aria-current="page"] { color: var(--sr-ink); text-decoration: underline; text-underline-offset: .25em; }
.sr-contact li { padding: .3rem 0; color: var(--sr-slate); }
.sr-contact a { color: var(--sr-ink); font-weight: 600; text-decoration: none; display: inline-flex; min-height: 2.25rem; align-items: center; }
.sr-contact a:hover { text-decoration: underline; }
.sr-contact__label { display: block; font-size: .8125rem; color: var(--sr-muted); }
.sr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; border-top: 1px solid var(--sr-sand); }
.sr-footer__bottom > * { margin-block: 0; }
.sr-footer__bottom .sr-menu__list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.sr-copyright { margin: 0; color: var(--sr-muted); }
.sr-funding { color: var(--sr-muted); }
.sr-funding img { max-height: 3.5rem; width: auto; }

/* Floating WhatsApp: clear of content, safe areas respected */
.sr-wa-wrap--floating { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; }
.sr-wa--floating {
	display: inline-flex; align-items: center; gap: .5rem;
	min-width: 3.25rem; min-height: 3.25rem; padding: .75rem;
	border-radius: 999px; background: #1F6E47; color: #fff; text-decoration: none;
	font-weight: 600; font-size: .9375rem;
	box-shadow: 0 6px 18px rgba(23, 60, 84, .22);
	transition: background-color .2s var(--sr-ease);
}
.sr-wa--floating:hover { background: #185A3A; color: #fff; }
.sr-wa--floating .sr-wa__text { display: none; }
@media (min-width: 60em) { .sr-wa--floating { padding: .75rem 1.1rem .75rem .9rem; } .sr-wa--floating .sr-wa__text { display: inline; } }
html.sr-menu-open .sr-wa-wrap--floating { display: none; }
.sr-wa__icon { flex-shrink: 0; }
.sr-footer .sr-wa--button { min-height: 2.75rem; padding: .55rem 1rem; font-size: .9375rem; }

/* Editors-only notes */
.sr-note {
	margin: 1rem 0; padding: .6rem .85rem; border: 1px dashed #A57F2C; border-radius: 2px;
	background: #FFF8E8; color: #5C4310; font-family: var(--sr-body); font-size: .875rem; line-height: 1.45;
}
.sr-note__who { opacity: .8; }

/* -------------------------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------------------
   Hero, full-bleed: the video (or photo on mobile) covers the whole hero,
   with a shaded side for the text. Overrides the arch frame in this section.
   ---------------------------------------------------------------------- */
.sr-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center;
	min-height: clamp(34rem, calc(100svh - var(--sr-header-h)), 56rem);
	padding-block: clamp(4rem, 10vw, 7rem);
}
.sr-hero > .wp-block-columns { width: 100%; }
.sr-hero .wp-block-image.sr-hero-media {
	position: absolute; inset: 0; z-index: -2;
	margin: 0 !important; max-width: none; border-radius: 0; animation: none;
}
.sr-hero .wp-block-image.sr-hero-media::after { display: none; }
.sr-hero .wp-block-image.sr-hero-media img,
.sr-hero .wp-block-image.sr-hero-media .sr-hero-video {
	position: absolute; inset: 0; width: 100%; height: 100%;
	max-height: none; aspect-ratio: auto; object-fit: cover; border-radius: 0;
}
.sr-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(16, 42, 59, .62);
}
@media (min-width: 60em) {
	.sr-hero::before {
		background: linear-gradient(90deg, rgba(16, 42, 59, .84) 0%, rgba(16, 42, 59, .66) 40%, rgba(16, 42, 59, .2) 72%, rgba(16, 42, 59, 0) 100%);
	}
}
.sr-hero h1 { color: var(--sr-ivory); }
.sr-hero .sr-hero__lead { color: #EEF2F3; }
.sr-hero .sr-hero__trust { color: var(--sr-on-dark-soft); border-top-color: rgba(159, 194, 204, .55); }
.sr-hero .sr-textlink a { color: var(--sr-ivory); text-decoration-color: var(--sr-champagne); }
.sr-hero .sr-textlink a:hover { text-decoration-color: var(--sr-ivory); }
.sr-hero .sr-btn--dark { background: var(--sr-ivory); border-color: var(--sr-ivory); color: var(--sr-ink); }
.sr-hero .sr-btn--dark:hover { background: var(--sr-sand); border-color: var(--sr-sand); color: var(--sr-ink); }
.sr-hero :where(a, button):focus-visible { outline-color: var(--sr-ivory); }
.sr-hero .sr-hero-video-toggle { left: auto; right: 1.25rem; top: 1.25rem; bottom: auto; }

/* -------------------------------------------------------------------------
   Services grid with category filters (homepage). Cards are core blocks:
   group.sr-svc-card + class sr-cat-<category>; icon via class sr-ic-<name>
   on the category line. theme.js builds the filters; without JS all cards show.
   ---------------------------------------------------------------------- */
.sr-svc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2.5rem; }
.sr-svc-head > .wp-block-heading { margin: 0; flex: 1 1 26rem; max-width: 18ch; }
.sr-svc-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.sr-svc-filter {
	min-height: 2.75rem; padding: 0 1.15rem; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--sr-champagne); background: transparent; color: var(--sr-ink);
	font: 600 .9375rem/1 var(--sr-body);
	transition: background-color .2s var(--sr-ease), border-color .2s var(--sr-ease), color .2s var(--sr-ease);
}
.sr-svc-filter:hover { border-color: var(--sr-turquoise); color: var(--sr-turquoise); }
.sr-svc-filter[aria-pressed="true"] { background: var(--sr-ink); border-color: var(--sr-ink); color: var(--sr-ivory); }
.sr-svc-count { margin: 1.5rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--sr-muted); }
.sr-svc-grid {
	display: grid !important; gap: 1.25rem; margin-top: 1rem !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}
.sr-svc-grid > .sr-svc-card { margin: 0 !important; }
.sr-svc-card {
	display: flex; flex-direction: column; gap: .75rem; height: 100%; box-sizing: border-box;
	padding: 1.6rem 1.5rem 1.5rem; background: #FFFFFF;
	border: 1px solid #D6E1E5; border-radius: 4px;
	transition: border-color .2s var(--sr-ease), box-shadow .2s var(--sr-ease);
}
.sr-svc-card:hover { border-color: var(--sr-champagne); box-shadow: 0 10px 24px rgba(23, 60, 84, .06); }
.sr-svc-card[hidden] { display: none !important; }
.sr-svc-card > * { margin: 0 !important; }
.sr-svc-card { overflow: hidden; }
.sr-svc-card > .sr-svc-card__img { margin: -1.6rem -1.5rem .35rem !important; aspect-ratio: 3 / 2; background: var(--sr-sand); }
.sr-svc-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr-svc-card .sr-svc-cat {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	margin-bottom: .6rem !important; font-size: .8125rem; font-weight: 600; color: var(--sr-muted);
}
.sr-svc-card .sr-svc-cat::before {
	content: ""; width: 1.6rem; height: 1.6rem; flex-shrink: 0; background: var(--sr-ink);
	-webkit-mask: var(--sr-ic) center / contain no-repeat; mask: var(--sr-ic) center / contain no-repeat;
}
.sr-svc-card h3 { font-size: 1.5rem; line-height: 1.15; }
.sr-svc-card p:not(.sr-svc-cat) { font-size: .9375rem; line-height: 1.55; color: var(--sr-slate); }
.sr-svc-card .wp-block-buttons { margin-top: auto !important; padding-top: .75rem; }
.sr-svc-card .wp-block-button__link { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .875rem; }
.sr-svc-more { margin-top: 2rem !important; }
@media (prefers-reduced-motion: no-preference) {
	.sr-svc-card.is-shown { animation: sr-card-in .25s var(--sr-ease) both; }
}
@keyframes sr-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Services ring (theme.js #9): the visible cards turn on a slow 3D ring.
   Without JS, with reduced motion or with fewer than four cards: the grid. */
.sr-svc-filterable { overflow-x: clip; }
.sr-svc-grid.is-ring {
	display: block !important; position: relative;
	width: 100vw; max-width: none !important; margin: 1rem 0 0 calc(50% - 50vw) !important;
	height: calc(var(--ring-ch, 32rem) * 1.14 + 4rem);
	perspective: 1100px; perspective-origin: 50% 50%; transform-style: preserve-3d;
	touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.sr-svc-grid.is-ring.is-dragging { cursor: grabbing; }
.sr-svc-grid.is-ring > .sr-svc-card {
	position: absolute; top: 50%; left: 50%;
	width: var(--ring-w, 300px); height: var(--ring-ch, auto);
	margin: calc(var(--ring-ch, 0px) / -2 - 1rem) 0 0 calc(var(--ring-w, 300px) / -2) !important;
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
	will-change: transform, opacity;
}
.sr-svc-grid.is-ring > .sr-svc-card.is-shown { animation: none; }
.sr-svc-grid.is-ring > .sr-svc-card.is-front { border-color: var(--sr-champagne); box-shadow: 0 34px 70px rgba(23, 60, 84, .20), 0 8px 18px rgba(23, 60, 84, .08); }
.sr-svc-grid.is-ring::before {
	content: ""; position: absolute; left: 50%; bottom: .5rem; width: min(70rem, 92vw); height: 4.5rem;
	transform: translateX(-50%); pointer-events: none;
	background: radial-gradient(closest-side, rgba(23, 60, 84, .16), rgba(23, 60, 84, 0));
}
.sr-svc-grid.is-ring .sr-svc-card > .sr-svc-card__img { aspect-ratio: 4 / 3; }
.sr-svc-grid.is-ring .sr-svc-card h3 { font-size: clamp(1.5rem, 1.2rem + .9vw, 1.9rem); }
.sr-svc-grid.is-ring .sr-svc-card p:not(.sr-svc-cat) { font-size: 1rem; }
.sr-svc-grid.is-ring .sr-svc-card img { -webkit-user-drag: none; pointer-events: none; }
.sr-ring-ctrl { display: flex; justify-content: center; gap: .75rem; margin-top: 1.75rem !important; }
.sr-ring-ctrl[hidden] { display: none; }
.sr-ring-btn {
	display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
	border: 1px solid var(--sr-champagne); border-radius: 50%; background: transparent; color: var(--sr-ink); cursor: pointer;
	transition: background-color .2s var(--sr-ease), border-color .2s var(--sr-ease), color .2s var(--sr-ease);
}
.sr-ring-btn:hover { border-color: var(--sr-turquoise); color: var(--sr-turquoise); }
.sr-ring-btn:focus-visible { outline: 2px solid var(--sr-turquoise); outline-offset: 3px; }
.sr-ring-btn.is-paused { background: var(--sr-ink); border-color: var(--sr-ink); color: var(--sr-ivory); }
.sr-ic-plane { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M17.8%2019.2%2016%2011l3.5-3.5C21%206%2021.5%204%2021%203c-1-.5-3%200-4.5%201.5L13%208%204.8%206.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1%201%20.3%201.3L9%2012l-2%203H4l-1%201%203%202%202%203%201-1v-3l3-2%203.5%205.3c.3.4.8.5%201.3.3l.5-.2c.4-.3.6-.7.5-1.2z%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-home { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010.5%2012%203l9%207.5%22%2F%3E%3Cpath%20d%3D%22M5%209.5V21h14V9.5%22%2F%3E%3Cpath%20d%3D%22M10%2021v-6h4v6%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-school { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2010%2012%205%202%2010l10%205%2010-5z%22%2F%3E%3Cpath%20d%3D%22M6%2012v5c3%202%209%202%2012%200v-5%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-key { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%2215%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M10.8%2012.2%2020%203%22%2F%3E%3Cpath%20d%3D%22M16%207l3%203%22%2F%3E%3Cpath%20d%3D%22M13.5%209.5l2%202%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-id { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%2214%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M9%2017h6%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-family { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%229%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M3%2020c0-3.3%202.7-6%206-6s6%202.7%206%206%22%2F%3E%3Cpath%20d%3D%22M15.5%2014.6c2.6.3%204.5%202.4%204.5%205%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-docs { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%204V3h6v1%22%2F%3E%3Cpath%20d%3D%22M9%2010h6M9%2014h6M9%2018h3%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-car { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2016v-4l2-5.5h12L20%2012v4z%22%2F%3E%3Cpath%20d%3D%22M4%2012h16%22%2F%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2218%22%20r%3D%221.8%22%2F%3E%3Ccircle%20cx%3D%2216.5%22%20cy%3D%2218%22%20r%3D%221.8%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-ticket { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209a2%202%200%200%200%202-2h14a2%202%200%200%200%202%202v1.5a1.5%201.5%200%200%200%200%203V15a2%202%200%200%200-2%202H5a2%202%200%200%200-2-2v-1.5a1.5%201.5%200%200%200%200-3z%22%2F%3E%3Cpath%20d%3D%22M14%207v10%22%20stroke-dasharray%3D%222%202%22%2F%3E%3C%2Fsvg%3E'); }
.sr-ic-chat { --sr-ic: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204h10a2%202%200%200%201%202%202v6a2%202%200%200%201-2%202H9l-4%203v-3H4a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2z%22%2F%3E%3Cpath%20d%3D%22M19%208h1a2%202%200%200%201%202%202v5a2%202%200%200%201-2%202h-1v2.5L16%2017h-3%22%2F%3E%3C%2Fsvg%3E'); }

/* Visitor language suggestion ------------------------------------------- */
.sr-langbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5rem 1.25rem;
	padding: .75rem var(--wp--style--root--padding-right, 1.25rem);
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-size: .9375rem;
	line-height: 1.4;
}
.sr-langbar__msg { margin: 0; }
.sr-langbar__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sr-langbar__go,
.sr-langbar__stay {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 2px;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.sr-langbar__go { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.sr-langbar__go:hover { background: var(--wp--preset--color--ivory); }
.sr-langbar__stay { background: transparent; color: #fff; }
.sr-langbar__stay:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.sr-langbar a:focus-visible,
.sr-langbar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
	.sr-langbar { animation: sr-langbar-in .3s ease-out; }
	@keyframes sr-langbar-in { from { opacity: 0; transform: translateY(-100%); } }
}

/* World map --------------------------------------------------------------- */
.sr-map { position: relative; width: 100%; }
.sr-map__svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--sr-turquoise); }
.sr-map__dots { fill: none; stroke: var(--sr-ink); stroke-opacity: .3; stroke-width: .56; stroke-linecap: round; }
.sr-map__arc { fill: none; stroke-width: .32; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sr-map__pin { fill: var(--sr-turquoise); }
.sr-map__dest { fill: var(--sr-ink); }
.sr-map__pulse { fill: var(--sr-turquoise); opacity: .25; transform-box: fill-box; transform-origin: center; transform: scale(2); }
.sr-map__label { font-family: inherit; font-size: 2.4px; font-weight: 700; fill: var(--sr-ink); }
@media (prefers-reduced-motion: no-preference) {
	.sr-map.is-ready .sr-map__arc { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--sr-ease) calc(var(--i, 0) * .22s); }
	.sr-map.is-ready.is-visible .sr-map__arc { stroke-dashoffset: 0; }
	.sr-map.is-visible .sr-map__pulse { animation: sr-map-pulse 2.6s ease-out 1.2s infinite; }
}
@keyframes sr-map-pulse { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(4); } }
.sr-world .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); }

/* Globe ------------------------------------------------------------------- */
.sr-globe { position: relative; width: 100%; }
.sr-globe__canvas, .sr-globe__label { display: none; }
.sr-globe.is-globe { max-width: 46rem; margin-inline: auto; }
.sr-globe.is-globe .sr-globe__fallback { display: none; }
.sr-globe.is-globe .sr-globe__canvas {
	display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%;
	cursor: grab; touch-action: pan-y; opacity: 0;
}
.sr-globe.is-globe .sr-globe__canvas.is-dragging { cursor: grabbing; }
.sr-globe.is-on .sr-globe__canvas { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.sr-globe.is-globe .sr-globe__canvas { transition: opacity 1.2s var(--sr-ease); }
}
@supports (position-anchor: --a) {
	.sr-globe.is-on .sr-globe__label {
		display: block; position: absolute; position-anchor: --cobe-madrid;
		bottom: anchor(top); left: anchor(center); translate: -50% 0; margin-bottom: .45rem;
		padding: .15rem .55rem; border-radius: 2px; background: var(--sr-ink); color: #fff;
		font-size: .75rem; font-weight: 700; line-height: 1.4; white-space: nowrap; pointer-events: none;
		opacity: var(--cobe-visible-madrid, 0); transition: opacity .5s;
	}
}

/* Paper grain ------------------------------------------------------------------
 * A fine, slightly embossed paper texture on every surface that paints a colour.
 * Multiply blend: each colour stays the same (about 1% darker on average), and
 * photos and video are left untouched.
 */
:root { --sr-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5 .95' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeConvolveMatrix order='3' kernelMatrix='-2 -1 0 -1 1 1 0 1 2' divisor='1' preserveAlpha='true' edgeMode='wrap'/%3E%3CfeColorMatrix values='0.03 0 0 0 0.975 0.03 0 0 0 0.975 0.03 0 0 0 0.975 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
body,
.sr-header,
.sr-nav__panel,
.wp-block-group.has-background,
.sr-svc-card {
	background-image: var(--sr-grain);
	background-size: 200px 200px;
	background-blend-mode: multiply;
}


/* =========================================================================
   v0.4 · Hero video, responsive pass (phones → large screens), featured glow
   ========================================================================= */

/* Hero: the poster is a real frame of the video, shown at once; the video
   fades in over it when it actually plays (same zoom, so nothing jumps). */
.sr-hero .wp-block-image.sr-hero-media { background: var(--sr-ink); }
.sr-hero .wp-block-image.sr-hero-media img,
.sr-hero .wp-block-image.sr-hero-media .sr-hero-video { transform: scale(1.08); transform-origin: 50% 50%; }
.sr-hero .wp-block-image.sr-hero-media .sr-hero-video { opacity: 0; transition: opacity .8s var(--sr-ease); }
.sr-hero .wp-block-image.sr-hero-media.is-video-on .sr-hero-video { opacity: 1; }

/* Hero below 960px: the text uses the full width (the media column is empty,
   the photo/video sits behind everything). */
@media (max-width: 59.99em) {
	.sr-hero > .wp-block-columns { gap: 0 !important; flex-wrap: wrap !important; }
	.sr-hero .wp-block-columns > .wp-block-column:has(> .sr-hero-media) {
		flex: 0 0 0 !important; width: 0; min-width: 0; margin: 0 !important; padding: 0 !important;
	}
	.sr-hero .wp-block-columns > .wp-block-column:not(:has(> .sr-hero-media)) { flex: 1 1 100% !important; }
	.sr-hero h1 { max-width: 13em; }
	.sr-hero__lead { max-width: 36rem; }
}
/* Phones in landscape: no forced full-screen hero. */
@media (max-height: 30em) and (orientation: landscape) {
	.sr-hero { min-height: 0; padding-block: 3rem; }
}

/* Tablets (782–959px): two-column sections stack instead of squeezing
   text into a narrow column. */
@media (min-width: 782px) and (max-width: 59.99em) {
	.sr-world .wp-block-columns,
	.sr-hh-cols,
	.wp-block-columns.sr-letter { flex-wrap: wrap !important; }
	.sr-world .wp-block-columns > .wp-block-column,
	.sr-hh-cols > .wp-block-column,
	.wp-block-columns.sr-letter > .wp-block-column { flex-basis: 100% !important; }
	.sr-hh-media { order: -1; }
	.sr-hh-arch img { aspect-ratio: 1 / 1; max-width: 22rem; margin-inline: auto; display: block; }
	.sr-world .sr-globe.is-globe { max-width: 32rem; }
}

/* Featured service on small phones: a little less padding, full-width choices. */
@media (max-width: 40em) {
	.sr-hh { padding: 2rem 1.25rem; }
	.sr-hh-choice { flex-direction: column; align-items: stretch !important; }
	.sr-hh-choice > * { width: 100%; }
	.sr-hh .wp-block-button, .sr-hh .wp-block-button__link { width: 100%; justify-content: center; }
}

/* Safety nets for any width: long words never push the page sideways. */
h1, h2, h3, .sr-hh-title { overflow-wrap: break-word; }
.wp-site-blocks { overflow-x: clip; }

/* Featured service glow (theme.js #10) — brand colours only:
   champagne light inside, gold line on the edges. */
.sr-hh.has-glow { --sr-glow: 240px; isolation: isolate; }
.sr-glow-host { position: relative; isolation: isolate; }
.sr-glow {
	--sr-gpos: calc(var(--sr-gx, -9999) * 1px) calc(var(--sr-gy, -9999) * 1px);
	position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
	background-image: radial-gradient(circle calc(var(--sr-glow, 240px) * 1.5) at var(--sr-gpos), rgba(159, 194, 204, .11), rgba(159, 194, 204, 0) 70%);
	background-attachment: fixed; background-repeat: no-repeat;
}
.sr-glow::before,
.sr-glow::after {
	content: ""; position: absolute; inset: var(--sr-glow-inset, 0); padding: var(--sr-glow-bw, 1px);
	border-radius: inherit; background-attachment: fixed; background-repeat: no-repeat;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.sr-glow::before { background-image: radial-gradient(circle calc(var(--sr-glow, 240px) * .8) at var(--sr-gpos), rgba(201, 161, 91, .95), rgba(201, 161, 91, 0) 100%); }
.sr-glow::after { background-image: radial-gradient(circle calc(var(--sr-glow, 240px) * .3) at var(--sr-gpos), rgba(247, 245, 240, .85), rgba(247, 245, 240, 0) 100%); }
.sr-hh > .sr-glow { --sr-glow-bw: 1.5px; }
.sr-hh-opt .sr-glow {
	--sr-glow-inset: -1px; --sr-glow-bw: 1px;
	background-image: radial-gradient(circle calc(var(--sr-glow, 240px) * .9) at var(--sr-gpos), rgba(201, 161, 91, .12), rgba(201, 161, 91, 0) 70%);
	filter: drop-shadow(0 0 6px rgba(201, 161, 91, .45));
}

/* Very narrow phones (up to 376px, e.g. iPhone SE / small Android): the header
   keeps logo, booking button and menu on one line without overflowing. */
@media (max-width: 23.5em) {
	.sr-header__row { gap: .5rem; }
	.sr-logo__img { height: 2.1rem; }
	.sr-nav { gap: .5rem; }
	.sr-nav__actions { gap: .35rem; }
	.sr-nav__cta { padding: .55rem .7rem; font-size: .875rem; }
	.sr-nav__toggle { padding: .5rem .6rem; gap: 0; }
	.sr-nav__toggle-text {
		position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
		overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
}

/* Caption under an arch photo (Almudena's portrait): name in the display
   serif, role below in the muted body colour, centred on the arch. */
.sr-photo-caption {
	max-width: 26rem; margin: 1.1rem auto 0 !important; text-align: center;
	font-family: var(--sr-body); font-size: var(--wp--preset--font-size--small); line-height: 1.45;
	color: var(--sr-muted); text-wrap: balance;
}
.sr-photo-caption strong {
	display: inline-block; margin-bottom: .15rem;
	font-family: var(--sr-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; color: var(--sr-ink);
}
.has-ink-background-color .sr-photo-caption, .sr-on-dark .sr-photo-caption { color: var(--sr-on-dark-soft); }
.has-ink-background-color .sr-photo-caption strong, .sr-on-dark .sr-photo-caption strong { color: var(--sr-ivory); }

/* House Hunting gallery — after the "CTA section with gallery" idea:
   four photos in two offset columns; the first is the Madrid arch with a
   gold hairline, the others keep the brand's small radius. */
.sr-hh-gallery {
	--u: clamp(1.75rem, 3.2vw, 3.1rem);
	display: grid !important; grid-template-columns: 1fr 1fr;
	grid-template-rows: var(--u) calc(var(--u) * 3) var(--u) calc(var(--u) * 3) var(--u);
	gap: clamp(.75rem, 1.4vw, 1rem);
	width: 100%; max-width: 29rem; margin: 0 auto !important; padding: 8px 0;
}
.sr-hh-gallery > * {
	position: relative; margin: 0 !important; overflow: hidden; border-radius: 4px;
	background: rgba(159, 194, 204, .12);
	box-shadow: 0 18px 40px -14px rgba(6, 22, 33, .6);
}
.sr-hh-gallery > :nth-child(1) {
	grid-column: 2; grid-row: 1 / 3; border-radius: 999px 999px 4px 4px; overflow: visible; background: none; box-shadow: none;
}
.sr-hh-gallery > :nth-child(1) img { border-radius: inherit; box-shadow: 0 18px 40px -14px rgba(6, 22, 33, .6); }
.sr-hh-gallery > :nth-child(1)::after {
	content: ""; position: absolute; inset: -6px; border: 1px solid rgba(201, 161, 91, .75);
	border-radius: 999px 999px 7px 7px; pointer-events: none;
}
.sr-hh-gallery > :nth-child(2) { grid-column: 1; grid-row: 2 / 4; }
.sr-hh-gallery > :nth-child(3) { grid-column: 1; grid-row: 4 / 6; }
.sr-hh-gallery > :nth-child(4) { grid-column: 2; grid-row: 3 / 5; }
.sr-hh-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Entrance (theme.js #11): text lines un-blur one after another, then the
   photos fade in one by one. Only with JS and without reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	.sr-hh.sr-rv-ready .sr-rv {
		opacity: 0; filter: blur(10px); transform: translateY(10px);
		transition: opacity .7s var(--sr-ease) var(--sr-rv-d, 0s), filter .7s var(--sr-ease) var(--sr-rv-d, 0s), transform .8s cubic-bezier(.34, 1.25, .5, 1) var(--sr-rv-d, 0s);
	}
	.sr-hh.sr-rv-ready .sr-rv-cell {
		opacity: 0; transform: translateY(16px) scale(.98);
		transition: opacity .8s var(--sr-ease) var(--sr-rv-d, 0s), transform .9s var(--sr-ease) var(--sr-rv-d, 0s);
	}
	.sr-hh.sr-rv-in .sr-rv, .sr-hh.sr-rv-in .sr-rv-cell { opacity: 1; filter: none; transform: none; }
}

/* Gallery when stacked (phones and tablets): row unit follows the width, so
   the cells stay close to square and the arch keeps its shape. */
@media (max-width: 59.99em) {
	.sr-hh-gallery { --u: clamp(1.75rem, 6vw, 3.1rem); margin-bottom: .5rem !important; }
}

/* House Hunting stacked carousel (theme.js #12), after "carousel-07":
   arch-shaped cards in brand colours, fanned around the front card. */
.sr-hh-stack {
	--sr-cw: clamp(10.5rem, 20vw, 16rem);
	margin: 0 !important; width: 100%;
}
@media (max-width: 59.99em) { .sr-hh-stack { --sr-cw: clamp(10.5rem, 42vw, 15rem); } }
.sr-stack-card {
	position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
	display: flex !important; flex-direction: column; justify-content: flex-end; gap: .3rem;
	width: var(--sr-cw); aspect-ratio: 2 / 3; margin: 0 !important; padding: 0 0 1.35rem;
	border-radius: 999px 999px 4px 4px; background: var(--sr-ink);
	box-shadow: 0 24px 50px -18px rgba(4, 16, 25, .75);
	user-select: none; -webkit-user-select: none;
}
.sr-stack-card > .sr-stack-card__img { position: absolute; inset: 0; z-index: -2; margin: 0 !important; }
.sr-stack-card__img img {
	display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
	transition: transform .7s var(--sr-ease); pointer-events: none; -webkit-user-drag: none;
}
.sr-stack-card::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(to top, rgba(10, 30, 44, .9) 0%, rgba(10, 30, 44, .4) 40%, rgba(10, 30, 44, 0) 68%);
}
.sr-stack-card::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: #06161F; opacity: var(--sr-shade, 0);
}
.sr-stack-card > p { position: relative; margin: 0 !important; opacity: var(--sr-text, 1); }
.sr-stack-badge {
	align-self: flex-start; margin: 0 0 .35rem 1.15rem !important; padding: .28rem .7rem;
	border-radius: 999px; background: rgba(247, 245, 240, .95); color: var(--sr-ink);
	font: 700 .625rem/1.2 var(--sr-body); letter-spacing: .16em; text-transform: uppercase;
}
.sr-stack-title {
	padding-inline: 1.15rem; color: var(--sr-ivory);
	font-family: var(--sr-display); font-size: clamp(1.2rem, .9rem + 1vw, 1.6rem); font-weight: 500; line-height: 1.1;
}
.sr-stack-desc {
	padding-inline: 1.15rem; color: var(--sr-on-dark-soft); font-size: .8125rem; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 39.99em) { .sr-stack-desc { display: none; } }

/* Without JS: a simple swipeable row of cards. */
.sr-hh-stack:not(.is-stack) {
	display: flex !important; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 0 1rem;
}
.sr-hh-stack:not(.is-stack) > .sr-stack-card { flex: 0 0 var(--sr-cw); scroll-snap-align: center; }

/* With JS: the stack. The edges fade out softly instead of a hard cut. */
.sr-hh-stack.is-stack {
	position: relative; height: calc(var(--sr-cw) * 1.95);
	touch-action: pan-y; cursor: grab; outline-offset: 6px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.sr-hh-stack.is-stack.is-dragging { cursor: grabbing; }
.sr-hh-stack.is-stack > .sr-stack-card {
	position: absolute; top: 50%; left: 50%;
	margin: calc(var(--sr-cw) * -.85) 0 0 calc(var(--sr-cw) * -.5) !important;
	transform-origin: 50% 60%; will-change: transform, opacity;
}
.sr-hh-stack.is-stack > .sr-stack-card.is-front {
	box-shadow: 0 0 0 1px rgba(201, 161, 91, .8), 0 30px 60px -20px rgba(4, 16, 25, .85);
}
.sr-hh-stack.is-stack > .sr-stack-card.is-front:hover .sr-stack-card__img img { transform: scale(1.06); }
.sr-hh-stack:focus-visible { outline: 2px solid var(--sr-ivory); }

.sr-stack-dots { display: flex; justify-content: center; gap: .15rem; margin-top: .5rem; }
.sr-stack-dot {
	display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0;
	border: 0; background: none; cursor: pointer;
}
.sr-stack-dot::before {
	content: ""; width: .45rem; height: .45rem; border-radius: 999px; background: rgba(159, 194, 204, .5);
	transition: width .3s var(--sr-ease), background-color .3s var(--sr-ease);
}
.sr-stack-dot:hover::before { background: var(--sr-champagne); }
.sr-stack-dot[aria-current="true"]::before { width: 1.4rem; background: #C9A15B; }
.sr-stack-dot:focus-visible { outline: 2px solid var(--sr-ivory); outline-offset: 0; border-radius: 4px; }

/* Scroll morph (theme.js #13), after "scroll-morph-hero": arch-shaped photo
   cards in brand colours on the ivory paper, below the House Hunting panel. */
.sr-morph { position: relative; margin-block: clamp(2rem, 5vw, 4rem) 0 !important; }
.sr-morph-intro {
	margin: 0 !important; text-align: center; color: var(--sr-ink);
	font-family: var(--sr-display); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.1;
}
.sr-morph-hint {
	margin: 0 !important; text-align: center; color: var(--sr-muted);
	font: 700 .6875rem/1 var(--sr-body); letter-spacing: .22em; text-transform: uppercase;
}
.sr-morph-title {
	margin: 0 0 .75rem !important; color: var(--sr-ink);
	font-family: var(--sr-display); font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.05; text-wrap: balance;
}
.sr-morph-text { max-width: 34rem; margin: 0 auto !important; color: var(--sr-slate); font-size: clamp(.95rem, .9rem + .2vw, 1.0625rem); line-height: 1.6; }

/* Without JS: title, text and a swipeable row of the photos. */
.sr-morph:not(.is-morph) { text-align: center; }
.sr-morph:not(.is-morph) .sr-morph-intro, .sr-morph:not(.is-morph) .sr-morph-hint { display: none; }
.sr-morph:not(.is-morph) .sr-morph-cards { display: flex !important; gap: .75rem; overflow-x: auto; padding: 1.5rem 0 1rem; }
.sr-morph:not(.is-morph) .sr-morph-card { flex: 0 0 6rem; margin: 0 !important; }
.sr-morph:not(.is-morph) .sr-morph-card img { display: block; width: 100%; aspect-ratio: 60 / 85; object-fit: cover; border-radius: 999px 999px 3px 3px; }
.sr-morph:not(.is-morph) .sr-morph-card figcaption { margin: .4rem 0 0; font-size: .75rem; color: var(--sr-muted); }

/* With JS: a sticky stage that follows the page scroll. */
.sr-morph.is-morph { height: 250vh; height: 250svh; }
@media (max-width: 47.99em) { .sr-morph.is-morph { height: 220vh; height: 220svh; } }
.sr-morph-stage {
	position: sticky; top: calc(var(--sr-header-h) + var(--wp-admin--admin-bar--height, 0px));
	height: min(54rem, calc(100vh - var(--sr-header-h) - var(--wp-admin--admin-bar--height, 0px)));
	height: min(54rem, calc(100svh - var(--sr-header-h) - var(--wp-admin--admin-bar--height, 0px)));
	overflow: hidden; perspective: 1000px;
}
.sr-morph.is-still { height: auto; }
.sr-morph.is-still .sr-morph-stage { position: relative; top: auto; height: min(46rem, 85svh); }
.sr-morph-stage .sr-morph-intro {
	position: absolute; top: 50%; left: 50%; z-index: 0; width: min(88%, 18ch); transform: translate(-50%, -50%);
	opacity: 0; filter: blur(10px); transition: opacity 1s var(--sr-ease), filter 1s var(--sr-ease); pointer-events: none;
}
.sr-morph-stage .sr-morph-intro.is-on { filter: none; }
.sr-morph-stage .sr-morph-hint {
	position: absolute; left: 50%; top: calc(50% + clamp(3.25rem, 6vw, 4.5rem)); z-index: 0; transform: translateX(-50%);
	white-space: nowrap; opacity: 0; transition: opacity 1s .2s var(--sr-ease); pointer-events: none;
}
.sr-morph-head {
	position: absolute; top: 5%; left: 50%; z-index: 2; width: min(92%, 42rem); text-align: center;
	transform: translate(-50%, var(--sr-hy, 20px)); opacity: 0; pointer-events: none;
}
.sr-morph.is-morph .sr-morph-cards { position: absolute !important; inset: 0; margin: 0 !important; z-index: 1; }
.sr-morph.is-morph .sr-morph-card {
	position: absolute; left: 50%; top: 50%; width: 60px; height: 85px;
	margin: -42.5px 0 0 -30px !important; opacity: 0;
	transform-style: preserve-3d; will-change: transform, opacity; cursor: default;
}
.sr-morph-inner {
	position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
	transition: transform .7s cubic-bezier(.34, 1.4, .5, 1);
}
.sr-morph-face {
	position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 3px 3px;
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
	box-shadow: 0 10px 20px -10px rgba(23, 60, 84, .55);
}
.sr-morph-face--front { background: var(--sr-sand); }
.sr-morph-face--front img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sr-morph-face--front::after { content: ""; position: absolute; inset: 0; background: rgba(23, 60, 84, .1); transition: background-color .3s var(--sr-ease); }
.sr-morph-face--back {
	transform: rotateY(180deg); background: var(--sr-ink); border: 1px solid rgba(201, 161, 91, .65);
	display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 .25rem; text-align: center;
}
.sr-morph-face--back::before { content: ""; width: .8rem; height: 1px; margin-bottom: .3rem; background: #C9A15B; }
.sr-morph-face--back figcaption { margin: 0 !important; color: var(--sr-ivory); font: 600 .5rem/1.15 var(--sr-body); letter-spacing: .04em; }
@media (hover: hover) and (pointer: fine) {
	.sr-morph.is-morph .sr-morph-card { cursor: pointer; }
	.sr-morph-card:hover .sr-morph-inner { transform: rotateY(180deg); }
	.sr-morph-card:hover .sr-morph-face--front::after { background: transparent; }
}

/* Scroll morph: House Hunting text above the arc (title, subtitle, lead, list). */
.sr-morph-head .sr-morph-title { margin-bottom: .35rem !important; }
.sr-morph-sub {
	margin: 0 0 1rem !important; color: var(--sr-turquoise);
	font-family: var(--sr-display); font-style: italic; font-size: clamp(1.1rem, .95rem + .7vw, 1.45rem); line-height: 1.25;
}
.sr-morph-list {
	list-style: none; display: grid; gap: .45rem 2rem; max-width: 42rem; margin: 1.1rem auto 0 !important; padding: 0 !important; text-align: left;
}
@media (min-width: 48em) { .sr-morph-list { grid-template-columns: 1fr 1fr; } }
.sr-morph-list li { position: relative; padding-left: 1.35rem; color: var(--sr-slate); font-size: .9375rem; line-height: 1.45; }
.sr-morph-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: #C9A15B; }
@media (max-width: 47.99em) {
	.sr-morph-head { width: 92%; }
	.sr-morph-head .sr-morph-text { font-size: .875rem; line-height: 1.5; }
	.sr-morph-list { gap: .3rem; margin-top: .8rem !important; }
	.sr-morph-list li { font-size: .8125rem; }
}

/* Typewriter on the scroll-morph text (theme.js #14). */
.sr-morph-head.sr-tw .sr-tw-rest { color: transparent; }
.sr-morph-head.sr-tw .sr-morph-list li::before { transition: opacity .3s var(--sr-ease); }
.sr-morph-head.sr-tw .sr-morph-list li.sr-tw-wait::before { opacity: 0; }
.sr-morph-head .sr-caret { margin-left: 0; margin-right: -2px; }

/* Director's letter as a sheet of paper, with "Te ayudamos en todo el proceso"
   as a vertical column on its right (wide screens). */
.sr-letter .wp-block-group.is-style-letter {
	position: relative; box-sizing: border-box;
	padding: clamp(2rem, 3.2vw, 3rem) clamp(1.5rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem);
	background-color: #FBFAF6; background-image: var(--sr-grain); background-size: 200px 200px; background-blend-mode: multiply;
	border: 1px solid rgba(23, 60, 84, .08); border-radius: 2px;
	box-shadow: 0 1px 0 rgba(23, 60, 84, .04), 0 22px 46px -28px rgba(23, 60, 84, .4);
}
.sr-letter .wp-block-group.is-style-letter::before {
	content: ""; position: absolute; top: 1.1rem; left: clamp(1.5rem, 3vw, 2.75rem); right: clamp(1.5rem, 3vw, 2.75rem);
	height: 1px; background: rgba(201, 161, 91, .65);
}
.sr-letter .wp-block-group.is-style-letter > h2 { margin-top: .5rem; }

/* Wide screens (1240px+): photo | letter | vertical process. */
@media (min-width: 77.5em) {
	.wp-block-columns.sr-letter { column-gap: clamp(2rem, 3vw, 3.25rem) !important; align-items: center !important; }
	.sr-letter-aside .sr-letter-process { margin: 0; padding: 1.5rem 1.1rem 1.25rem; }
	.sr-letter-aside .sr-letter-process-title { text-align: left; font-size: .72rem; letter-spacing: .18em; line-height: 1.6; margin: 0 0 .5rem !important; padding-inline: .35rem; }
	.sr-letter-aside .sr-letter-process ul { flex-direction: column; flex-wrap: nowrap; }
	.sr-letter-aside .sr-letter-process li {
		flex: none; flex-direction: row; align-items: center; justify-content: flex-start;
		gap: .85rem; padding: .9rem .35rem; text-align: left; font-size: .875rem;
	}
	.sr-letter-aside .sr-letter-process li + li { border-left: 0; border-top: 1px solid rgba(201, 161, 91, .55); }
	.sr-letter-aside .sr-letter-process svg { width: 28px !important; height: 28px !important; }
}
/* Laptops (960–1239px): photo and letter side by side, the process below in a row. */
@media (min-width: 60em) and (max-width: 77.49em) {
	.wp-block-columns.sr-letter { flex-wrap: wrap !important; row-gap: 2.5rem; }
	.wp-block-columns.sr-letter > .wp-block-column:first-child { flex: 0 0 34% !important; }
	.wp-block-columns.sr-letter > .wp-block-column:has(.is-style-letter) { flex: 1 1 0 !important; min-width: 0; }
	.wp-block-columns.sr-letter > .sr-letter-aside { flex: 0 0 100% !important; }
}

/* Wide screens: the process column stays in view while the letter is read. */
@media (min-width: 77.5em) {
	.wp-block-columns.sr-letter > .sr-letter-aside {
		align-self: flex-start !important; position: sticky;
		top: calc(var(--sr-header-h) + var(--wp-admin--admin-bar--height, 0px) + 2rem);
	}
}

/* Language switcher: flags only. The language name stays available to
   screen readers (aria-label / text at font-size 0) and as a tooltip. */
.sr-lang a,
.sr-lang--full a,
.sr-nav__utility .sr-lang a {
	font-size: 0 !important; letter-spacing: 0; gap: 0 !important; justify-content: center;
	min-width: 2.75rem; padding: 0 .4rem; border-color: transparent !important; background: transparent !important;
}
.sr-lang a[aria-current="true"], .sr-lang--full a[aria-current="true"] { box-shadow: none !important; background: transparent !important; }
.sr-lang a[hreflang]::before { width: 22px; height: 15px; transition: opacity .2s var(--sr-ease), box-shadow .2s var(--sr-ease); }
.sr-lang a:not([aria-current="true"])::before { opacity: .7; }
.sr-lang a:hover::before, .sr-lang a:focus-visible::before { opacity: 1; }
.sr-lang a[aria-current="true"]::before,
.sr-lang--full a[aria-current="true"]::before { box-shadow: 0 0 0 1px rgba(23, 60, 84, .2), 0 0 0 3px var(--sr-ivory), 0 0 0 4px #C9A15B; }
.sr-lang a:hover { background: transparent !important; }

/* Director's letter, v2: wider sheet, justified text, photo at the top. */
.sr-letter .wp-block-group.is-style-letter p,
.sr-letter .wp-block-group.is-style-letter p:not(.sr-textlink):not(.sr-signature) { max-width: none; }
.sr-letter .wp-block-group.is-style-letter > p:not(.sr-signature):not(.sr-textlink):not(.sr-letter-highlight),
.sr-letter .wp-block-group.is-style-letter .sr-letter-highlight {
	text-align: justify; -webkit-hyphens: auto; hyphens: auto; text-wrap: wrap;
}
.sr-letter .wp-block-group.is-style-letter { padding-inline: clamp(1.5rem, 3.5vw, 3.5rem); }
.sr-letter .wp-block-group.is-style-letter::before { left: clamp(1.5rem, 3.5vw, 3.5rem); right: clamp(1.5rem, 3.5vw, 3.5rem); }
@media (min-width: 60em) {
	.wp-block-columns.sr-letter > .wp-block-column:first-child {
		align-self: flex-start !important; position: sticky;
		top: calc(var(--sr-header-h) + var(--wp-admin--admin-bar--height, 0px) + 2rem);
	}
}
@media (min-width: 77.5em) {
	.wp-block-columns.sr-letter > .wp-block-column:first-child { flex: 0 0 23% !important; }
	.wp-block-columns.sr-letter > .wp-block-column:has(.is-style-letter) { flex: 1 1 0 !important; min-width: 0; }
	.wp-block-columns.sr-letter > .sr-letter-aside { flex: 0 0 19% !important; }
	.wp-block-columns.sr-letter { column-gap: clamp(1.75rem, 2.5vw, 2.75rem) !important; }
}
@media (min-width: 60em) and (max-width: 77.49em) {
	.wp-block-columns.sr-letter > .wp-block-column:first-child { flex: 0 0 29% !important; }
}
/* Typewriter on the letter (theme.js #16). */
.sr-letter .sr-tw-r { color: transparent; }
.sr-letter .sr-caret { margin-left: 0; margin-right: -2px; }
.sr-letter .sr-letter-highlight.sr-tw-wait { border-left-color: transparent; }

.sr-letter .sr-tw-wait a, .sr-letter .sr-tw-wait.sr-textlink a { text-decoration-color: transparent !important; }
.sr-letter .sr-textlink a { transition: text-decoration-color .4s var(--sr-ease); }

/* Handwritten signature (Mrs Saint Delafield, OFL, self-hosted in the Font Library). */
@font-face {
	font-family: "Mrs Saint Delafield"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("/wp-content/uploads/fonts/mrs-saint-delafield-latin-400-normal.woff2") format("woff2");
}
.wp-block-group.is-style-letter p.sr-signature strong,
.sr-signature strong {
	display: block; margin: 0 0 .35rem; padding: .1em .15em 0 0;
	font-family: "Mrs Saint Delafield", "Snell Roundhand", "Segoe Script", cursive;
	font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 400; line-height: 1.05; letter-spacing: 0;
	color: var(--sr-ink); transform: rotate(-2.5deg); transform-origin: 0 100%;
}
.sr-signature strong .sr-caret { height: .55em; }

/* Scroll morph, compact: the stage is only as tall as the text plus the arc,
   less scroll distance, and no empty band before the next section. */
.sr-morph.is-morph { height: 190vh; height: 190svh; }
@media (max-width: 47.99em) { .sr-morph.is-morph { height: 170vh; height: 170svh; } }
.sr-morph-stage {
	height: min(41rem, calc(100vh - var(--sr-header-h) - var(--wp-admin--admin-bar--height, 0px)));
	height: min(41rem, calc(100svh - var(--sr-header-h) - var(--wp-admin--admin-bar--height, 0px)));
}
@media (max-width: 47.99em) {
	.sr-morph-stage {
		height: min(42rem, calc(100vh - var(--sr-header-h) - var(--wp-admin--admin-bar--height, 0px)));
		height: min(42rem, calc(100svh - var(--sr-header-h) - var(--wp-admin--admin-bar--height, 0px)));
	}
}
.wp-block-group.sr-section:has(> .sr-morph) { padding-bottom: 0 !important; }
.sr-morph { margin-bottom: 0 !important; }

/* Signature: hand-drawn underline + signing pen (theme.js #17). */
.sr-signature { position: relative; }
.wp-block-group.is-style-letter p.sr-signature strong, .sr-signature strong { position: relative; width: fit-content; }
.sr-sig-line {
	position: absolute; left: -3%; bottom: -.14em; width: 108%; height: .42em;
	overflow: visible; pointer-events: none;
}
.sr-sig-line path { fill: none; stroke: var(--sr-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-sig-anim .sr-sig-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sr-pen {
	position: absolute; left: 0; top: 0; z-index: 3; width: 56px; height: 45.5px; pointer-events: none;
	opacity: 0; transition: opacity .25s var(--sr-ease);
	filter: drop-shadow(2px 5px 4px rgba(23, 60, 84, .28)); will-change: transform;
}
.sr-pen svg { display: block; width: 100%; height: 100%; }
.sr-pen.is-on { opacity: 1; }
.sr-pen.is-off { opacity: 0; translate: 28px -36px; transition: opacity .6s .1s var(--sr-ease), translate .75s var(--sr-ease); }
.sr-signature strong .sr-caret { opacity: 0; } /* the pen is the caret here */
