/*
Theme Name: Ibiza Yacht Service
Theme URI: https://ibizayachtservice.com
Description: One-page business theme for a yacht services company in Ibiza: hero, services, about with key figures, gallery, testimonial and a quote request form. All texts, photos and contact details are editable in Appearance > Customize.
Version: 1.6.1
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ibiza-yacht-service
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #0b2545;
	--navy-deep: #081b33;
	--teal: #0b7f78;
	--teal-hover: #096a64;
	--teal-bright: #35cfc2;
	--sand: #f4eee5;
	--sand-line: #e6dccd;
	--ink: #16263a;
	--muted: #566575;
	--line: #e3e8ee;
	--white: #fff;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 8px;
	--shadow: 0 6px 24px rgba(11, 37, 69, 0.08);
	--container: 1200px;
	--gutter: 24px;
	--header-h: 76px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--teal);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--teal-hover);
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.12;
	color: var(--navy);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 3px solid var(--teal-bright);
	outline-offset: 2px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: clamp(56px, 8vw, 104px);
}

.section--sand {
	background: var(--sand);
}

.section__title {
	font-size: clamp(30px, 3.6vw, 44px);
}

.section__lead {
	color: var(--muted);
	max-width: 60ch;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	z-index: 200;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 10px 16px;
	background: var(--white);
	color: var(--navy);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}

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

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

.btn--ghost {
	border-color: rgba(255, 255, 255, 0.85);
	color: var(--white);
	background: rgba(8, 27, 51, 0.25);
}

.btn--ghost:hover {
	background: var(--white);
	color: var(--navy);
}

.btn--small {
	min-height: 42px;
	padding: 9px 18px;
	font-size: 15px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 2px 16px rgba(11, 37, 69, 0.06);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--navy);
	text-decoration: none;
	flex: none;
}

.brand:hover {
	color: var(--navy);
}

.brand__mark {
	width: 40px;
	height: 40px;
	flex: none;
}

.brand__mark .wave {
	stroke: var(--teal);
}

.brand__name {
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	white-space: nowrap;
}

.brand img {
	max-height: 48px;
	width: auto;
}

.site-nav {
	margin-left: auto;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 10px 14px;
	color: var(--ink);
	font-size: 16px;
	text-decoration: none;
	border-radius: 6px;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
	color: var(--teal);
}

.site-header__cta {
	flex: none;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--navy);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.nav-toggle svg {
	width: 22px;
	height: 22px;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(520px, 76vh, 760px);
	padding-block: 72px 132px;
	color: var(--white);
	background: linear-gradient(120deg, var(--navy-deep), #17577a 60%, #e59a6b);
	overflow: hidden;
}

.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 27, 51, 0.78) 0%, rgba(8, 27, 51, 0.42) 46%, rgba(8, 27, 51, 0) 78%);
}

.hero__content {
	position: relative;
	z-index: 1;
}

.hero__title {
	max-width: 13ch;
	margin-bottom: 18px;
	font-size: clamp(40px, 6.2vw, 72px);
	color: var(--white);
	text-wrap: balance;
}

.hero__lead {
	max-width: 36ch;
	margin-bottom: 30px;
	font-size: clamp(18px, 1.7vw, 21px);
	line-height: 1.45;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ---------- Services ---------- */
.services {
	position: relative;
	z-index: 2;
	margin-top: -72px;
	padding-bottom: clamp(40px, 6vw, 72px);
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.service-card__media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #bfe3e6, #5aa9b8 55%, #1f6f8b);
}

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

.service-card__body {
	position: relative;
	flex: 1;
	padding: 28px 24px;
}

/* With a photo, the icon sits on the photo's lower edge. */
.service-card--photo .service-card__body {
	padding-top: 40px;
}

.service-card--photo .service-card__icon {
	position: absolute;
	top: -29px;
	left: 24px;
	margin: 0;
	border: 3px solid var(--white);
	box-sizing: content-box;
}

.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--sand);
	color: var(--navy);
}

.service-card__icon svg {
	width: 26px;
	height: 26px;
}

.service-card__title {
	margin-bottom: 8px;
	font-size: 22px;
}

.service-card__text {
	margin: 0;
	color: var(--muted);
	font-size: 16px;
}

/* ---------- About ---------- */
.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.about__media {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: linear-gradient(135deg, #cfe3ea, #8fb7c6);
}

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

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 36px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.stats__item {
	padding-inline: 20px;
	border-left: 1px solid var(--line);
}

.stats__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.stats__value {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(30px, 3.2vw, 40px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--navy);
}

.stats__label {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery {
	padding-bottom: clamp(56px, 8vw, 104px);
}

/* Six-column track: 3 photos per row; a short last row stretches to fill it. */
.gallery__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery__item {
	grid-column: span 2;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius);
	overflow: hidden;
	background: linear-gradient(135deg, #bfe3e6, #5aa9b8 55%, #1f6f8b);
}

.gallery__item:nth-child(2) {
	background: linear-gradient(135deg, #f6c79a, #e08a6a 55%, #6b4a7a);
}

.gallery__item:nth-child(3n + 1):nth-last-child(2),
.gallery__item:nth-child(3n + 2):last-child {
	grid-column: span 3;
}

.gallery__item:nth-child(3n + 1):last-child {
	grid-column: 1 / -1;
	aspect-ratio: 3 / 1;
}

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

/* ---------- Testimonial ---------- */
.testimonial {
	padding-block: clamp(48px, 6vw, 80px);
	background: var(--sand);
	text-align: center;
}

.testimonial blockquote {
	max-width: 46ch;
	margin: 0 auto;
	font-family: var(--serif);
	font-size: clamp(22px, 2.6vw, 30px);
	font-style: italic;
	line-height: 1.35;
	color: var(--navy);
}

.testimonial__author {
	margin: 20px 0 0;
	font-size: 15px;
	color: var(--muted);
}

/* ---------- Quote form ---------- */
.quote__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.contact-list {
	display: grid;
	gap: 16px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.contact-list svg {
	width: 22px;
	height: 22px;
	margin-top: 3px;
	flex: none;
	color: var(--teal);
}

.contact-list a {
	color: var(--ink);
	text-decoration: none;
}

.contact-list a:hover {
	color: var(--teal);
	text-decoration: underline;
}

.quote__whatsapp {
	margin-top: 28px;
}

.quote-form {
	padding: clamp(24px, 3vw, 40px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.quote-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.field {
	margin-bottom: 18px;
}

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--navy);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #b9c4d0;
	border-radius: 6px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.field textarea {
	min-height: 132px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: 3px solid var(--teal-bright);
	outline-offset: 0;
	border-color: var(--teal);
}

.field--check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 15px;
	color: var(--muted);
}

.field--check input {
	width: 20px;
	min-height: 0;
	height: 20px;
	margin: 3px 0 0;
	flex: none;
	accent-color: var(--teal);
}

.field--check label {
	margin: 0;
	font-weight: 400;
	color: var(--muted);
}

.field--trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.notice {
	margin-bottom: 20px;
	padding: 14px 16px;
	border-radius: 6px;
	border: 1px solid;
	font-size: 16px;
}

.notice--success {
	background: #e8f6f4;
	border-color: #9ad5cf;
	color: #07524d;
}

.notice--error {
	background: #fdeeee;
	border-color: #f0b4b4;
	color: #8a1f1f;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--navy);
	color: #d5deea;
	font-size: 16px;
}

.site-footer a {
	color: var(--white);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--teal-bright);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px 48px;
	padding-block: 44px;
}

.site-footer .brand {
	color: var(--white);
}

.site-footer .brand__mark .wave {
	stroke: var(--teal-bright);
}

.footer-contact {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-contact li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.footer-contact svg {
	width: 18px;
	height: 18px;
	margin-top: 4px;
	flex: none;
	color: var(--teal-bright);
}

.site-footer__end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
	margin-left: auto;
}

.social {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.social svg {
	width: 22px;
	height: 22px;
}

/* ---------- Buttons standing in for empty contact/social links ---------- */
.link-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.link-button:hover {
	color: var(--teal);
	text-decoration: underline;
}

.site-footer .link-button:hover {
	color: var(--teal-bright);
}

.social__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.social__button:hover {
	color: var(--teal-bright);
}

.iys-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 1000;
	max-width: calc(100% - 32px);
	padding: 12px 20px;
	border-left: 4px solid var(--teal);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
	box-shadow: 0 10px 34px rgba(8, 27, 51, 0.35);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s, transform 0.2s;
	pointer-events: none;
}

.iys-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.lang-switch {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lang-switch a {
	display: block;
	padding: 10px 8px;
}

.lang-switch .current-lang a {
	color: var(--teal-bright);
	text-decoration: underline;
	text-underline-offset: 6px;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	color: #a9b8cb;
}

.site-footer__bottom .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 18px;
}

.site-footer__bottom p {
	margin: 0;
}

/* ---------- Inner pages ---------- */
.page-head {
	padding-block: clamp(40px, 6vw, 72px);
	background: var(--sand);
}

.page-head h1 {
	margin: 0;
	font-size: clamp(34px, 4.6vw, 54px);
}

.prose {
	max-width: 760px;
	padding-block: clamp(40px, 6vw, 72px);
}

.prose h2 {
	margin-top: 1.6em;
	font-size: 30px;
}

.prose h3 {
	margin-top: 1.4em;
	font-size: 23px;
}

.prose img {
	border-radius: var(--radius);
}

.post-list {
	display: grid;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-list h2 {
	margin-top: 0;
}

.post-list h2 a {
	color: var(--navy);
	text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-header__cta {
		display: none;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		padding: 8px var(--gutter) 20px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(11, 37, 69, 0.08);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav a {
		padding: 14px 4px;
		border-bottom: 1px solid var(--line);
		border-radius: 0;
		font-size: 18px;
	}

	.site-nav .site-nav__cta {
		display: flex;
		margin-top: 16px;
		border-bottom: 0;
		border-radius: var(--radius);
		color: var(--white);
		font-size: 16px;
	}

	.about__grid,
	.quote__grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 961px) {
	.site-nav .site-nav__cta {
		display: none;
	}
}

@media (max-width: 700px) {
	:root {
		--gutter: 16px;
		--header-h: 66px;
	}

	body {
		font-size: 16px;
	}

	.brand__name {
		font-size: 15px;
		letter-spacing: 0.07em;
	}

	.brand__mark {
		width: 34px;
		height: 34px;
	}

	.hero {
		min-height: 540px;
		padding-block: 56px 112px;
	}

	.hero::after {
		background: linear-gradient(180deg, rgba(8, 27, 51, 0.62), rgba(8, 27, 51, 0.5));
	}

	.services__grid,
	.quote-form__row {
		grid-template-columns: 1fr;
	}

	.quote-form__row {
		gap: 0;
	}

	.stats {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.stats__item {
		padding: 0;
		border-left: 0;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer__end {
		margin-left: 0;
	}
}

/* Gallery: 2 per row on tablets, 1 on phones. */
@media (max-width: 960px) {
	.gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery__grid .gallery__item:nth-child(n) {
		grid-column: auto;
		aspect-ratio: 3 / 2;
	}

	.gallery__grid .gallery__item:nth-child(odd):last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.gallery__grid {
		grid-template-columns: 1fr;
	}

	.gallery__grid .gallery__item:nth-child(odd):last-child {
		grid-column: auto;
	}
}

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

	* {
		transition: none !important;
	}
}

/* ---------- Service card links (homepage) ---------- */
.service-card__title a {
	color: inherit;
	text-decoration: none;
}

/* The title link covers the card text, so the whole lower card is clickable. */
.service-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.service-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	color: var(--teal);
	font-size: 15px;
	font-weight: 500;
}

.service-card__more svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s;
}

.service-card:hover .service-card__title a,
.service-card__title a:focus-visible {
	color: var(--teal);
}

.service-card:hover .service-card__more svg {
	transform: translateX(3px);
}

/* ---------- Service pages ---------- */
.eyebrow {
	margin: 0 0 12px;
	color: var(--teal);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.service-hero {
	padding-block: clamp(40px, 6vw, 80px);
	background: var(--sand);
}

.service-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.service-hero__title {
	margin: 0 0 16px;
	font-size: clamp(34px, 4.4vw, 52px);
}

.service-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.service-hero__media {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: linear-gradient(135deg, #cfe3ea, #8fb7c6);
}

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

.btn--outline {
	border-color: var(--navy);
	color: var(--navy);
	background: transparent;
}

.btn--outline:hover {
	background: var(--navy);
	color: var(--white);
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 6px;
}

.prose li::marker {
	color: var(--teal);
}

.cta-band {
	padding-block: clamp(36px, 5vw, 56px);
	background: var(--navy);
	color: var(--white);
}

.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
}

.cta-band__title {
	margin: 0 0 6px;
	color: var(--white);
	font-size: clamp(26px, 3vw, 34px);
}

.cta-band__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
}

.other-services__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

/* 3 per row; a short last row of 2 shares the full width. */
.other-services__grid > li {
	grid-column: span 2;
}

.other-services__grid > li:nth-child(3n + 1):nth-last-child(2),
.other-services__grid > li:nth-child(3n + 2):last-child {
	grid-column: span 3;
}

.other-service {
	display: block;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
}

.other-service img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.other-service__title {
	display: block;
	padding: 18px 20px;
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 500;
}

.other-service:hover .other-service__title {
	color: var(--teal);
}

@media (max-width: 960px) {
	.service-hero__grid {
		grid-template-columns: 1fr;
	}

	.service-hero__media {
		order: -1;
	}

	.other-services__grid {
		grid-template-columns: 1fr;
	}

	.other-services__grid > li:nth-child(n) {
		grid-column: auto;
	}
}

/* ---------- Language switcher in the header (Polylang) ---------- */
@media (min-width: 961px) {
	.site-nav {
		display: flex;
		align-items: center;
	}

	.site-nav a {
		white-space: nowrap;
	}
}

/* Medium screens: tighter menu so longer (Spanish) labels fit on one line. */
@media (min-width: 961px) and (max-width: 1140px) {
	.site-nav ul {
		gap: 0;
	}

	.site-nav a {
		padding: 10px 9px;
		font-size: 15px;
	}

	.site-nav .lang-switch a {
		padding: 10px 4px;
	}
}

.site-nav .lang-switch {
	gap: 0;
	margin-left: 4px;
	padding-left: 8px;
	border-left: 1px solid var(--line);
}

.site-nav .lang-switch a {
	padding: 10px 6px;
	color: var(--muted);
	font-size: 14px;
}

.site-nav .lang-switch .current-lang a {
	color: var(--teal);
	text-decoration: underline;
	text-underline-offset: 6px;
}

@media (max-width: 960px) {
	.site-nav .lang-switch {
		flex-direction: row;
		margin: 0;
		padding: 12px 0 0;
		border-left: 0;
	}

	.site-nav .lang-switch a {
		padding: 8px 12px 8px 4px;
		border-bottom: 0;
		font-size: 15px;
	}
}
