/*
Theme Name: Toit Azur
Theme URI: https://toit-azur.com
Author: Toit Azur
Description: Fully custom theme for the Toit Azur real estate vitrine site (Marrakech luxury programmes). No page builders, no build pipeline.
Version: 0.1.0
License: Proprietary
Text Domain: toit-azur
*/

/* ---------- Local fonts (self-hosted, no external CDN) ---------- */

@font-face {
	font-family: 'Playfair Display';
	src: url('assets/fonts/playfair-display-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Playfair Display';
	src: url('assets/fonts/playfair-display-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/poppins-300.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/poppins-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('assets/fonts/poppins-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* ---------- Design tokens ---------- */

:root {
	--color-cream: #F7E3CD;
	--color-white: #FFFFFF;
	--color-navy: #111E2D;
	--color-gold: #E4C07D;
	--color-gold-deep: #7A5A24;
	--color-whatsapp: #25D366;

	--font-heading: 'Playfair Display', Georgia, serif;
	--font-body: 'Poppins', Arial, sans-serif;

	--container-max: 1200px;
	--gutter: 24px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure {
	margin: 0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ---------- Base typography & palette ---------- */

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-navy);
	background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-navy);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

a {
	color: var(--color-gold-deep);
	text-decoration: none;
	transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover,
a:focus {
	text-decoration: underline;
}

.button,
.pill {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	background-color: var(--color-navy);
	color: var(--color-white);
	font-family: var(--font-body);
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
		color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover,
.pill:hover {
	background-color: var(--color-gold);
	color: var(--color-navy);
	text-decoration: none;
	transform: translateY(-2px);
}

.container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section--cream {
	background-color: var(--color-cream);
}

/* ---------- Header / footer ---------- */

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-block: 20px;
}

.site-header {
	position: relative;
	z-index: 100;
	background-color: var(--color-navy);
}

.site-header__brand a {
	display: inline-block;
}

.site-header__brand img {
	height: 60px;
	width: auto;
}

.site-header__nav ul {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__nav a {
	color: var(--color-cream);
	transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header__nav a:hover,
.site-header__nav .current-menu-item > a {
	color: var(--color-gold);
}

/* Submenus (if a client adds dropdown children via Apparence > Menus) */
.site-header__nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	flex-direction: column;
	gap: 0;
	/* Flush against the trigger on purpose: a margin/gap here would sit
	   outside the parent <li>'s hover box (this is absolutely positioned,
	   so it doesn't extend that box), and the cursor crossing that gap
	   to reach the dropdown would drop :hover and close the menu before
	   a click could land. Visual breathing room comes from padding
	   inside the dropdown box instead, which doesn't have that problem. */
	margin-top: 0;
	padding: 12px 0 8px;
	background-color: var(--color-navy);
	box-shadow: 0 12px 24px rgba(17, 30, 45, 0.25);
	min-width: 200px;
}

.site-header__nav li {
	position: relative;
}

.site-header__nav li:hover > ul,
.site-header__nav li:focus-within > ul {
	display: flex;
}

.site-header__nav ul ul a {
      display: block;
      padding: 8px 20px;
      font-size: 0.85rem;
      color: rgba(247, 227, 205, 0.68);
}

.site-header__nav ul ul a:hover,
.site-header__nav ul ul .current-menu-item > a {
      color: var(--color-gold);
}
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-cream);
}

@media (max-width: 767px) {
	.nav-toggle {
		display: flex;
	}

	.site-header__nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.site-header__nav.is-open {
		display: block;
	}

	.site-header__nav ul {
		flex-direction: column;
		gap: 4px;
		padding-block: 12px;
	}

	.site-header__nav ul ul {
      position: static;
      box-shadow: none;
      margin-top: 0;
      padding-left: 16px;
      gap: 0;
}

.site-header__nav ul ul a {
      padding-block: 6px;
}

	.site-header__nav li:hover > ul,
	.site-header__nav li:focus-within > ul {
		display: none;
	}

	.site-header__nav li.menu-item-has-children > ul {
		display: block;
	}
}

.site-footer {
	padding-block: 32px;
	margin-top: 64px;
	background-color: var(--color-navy);
	color: var(--color-white);
	text-align: center;
}

.site-footer__logo {
	height: 72px;
	width: auto;
	margin: 0 auto 16px;
}

.site-footer a {
	color: var(--color-white);
}

.site-footer__legal-links {
	margin-top: 8px;
	font-size: 0.85rem;
	opacity: 0.8;
}

/* ---------- Hero ---------- */

.hero {
	padding-block: 96px;
	text-align: center;
}

.hero__subtitle {
	margin: 20px auto 0;
	max-width: 640px;
	font-weight: 300;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	line-height: 1.6;
}

/* ---------- Homepage programme cards ---------- */

.programme-card {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 40px;
	margin-block: 48px;
	padding: 24px;
	border-radius: 16px;
	border: 1px solid rgba(17, 30, 45, 0.1);
	box-shadow: 0 6px 16px rgba(17, 30, 45, 0.08);
	transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.programme-card:hover {
	box-shadow: 0 16px 32px rgba(17, 30, 45, 0.16);
	transform: translateY(-3px);
}

.programme-card--reverse {
	flex-direction: row-reverse;
}

.programme-card__body {
	flex: 1 1 420px;
}

.programme-card__media {
	position: relative;
	overflow: hidden;
	flex: 1 1 380px;
	height: 380px;
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(17, 30, 45, 0.18);
}

.programme-card__media a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.programme-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.programme-card__media a:hover img {
	opacity: 0.9;
}

.programme-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 24px var(--gutter);
}

.programme-card__body p {
	line-height: 1.85;
}

.programme-card__tagline {
	font-family: var(--font-heading);
	font-style: italic;
	color: var(--color-gold-deep);
}

.programme-card__features {
	color: #444;
}

.programme-card__price {
	font-weight: 500;
}

.programme-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 16px;
	border-radius: 999px;
	background-color: var(--color-white);
	color: var(--color-navy);
	font-size: 0.8rem;
	font-weight: 500;
}

.pill--outline {
	background-color: transparent;
	border: 1px solid var(--color-navy);
	color: var(--color-navy);
}

.pill--outline:hover {
	background-color: var(--color-navy);
	color: var(--color-white);
}

/* ---------- Programme detail ---------- */

.programme-title-band {
	padding-block: 64px;
	text-align: center;
}

.programme-intro__inner,
.programme-details__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--gutter);
	padding-block: 64px;
}

.programme-details__inner--reverse {
	flex-direction: row-reverse;
}

.programme-intro__text,
.programme-intro__media,
.programme-details__text,
.programme-details__media {
	flex: 1 1 420px;
}

.programme-intro__media,
.programme-details__media {
	min-height: 320px;
}

.programme-intro__media a,
.programme-details__media a {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.programme-intro__media img,
.programme-details__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(17, 30, 45, 0.16);
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.programme-intro__media a:hover img,
.programme-details__media a:hover img {
	opacity: 0.9;
}

.programme-gallery {
	padding-block: 64px;
}

.programme-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.programme-gallery__item img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(17, 30, 45, 0.14);
}

.programme-specs {
	padding-block: 64px;
	text-align: center;
}

.programme-specs__list {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.programme-specs__list li {
	font-weight: 700;
}

.programme-cta {
	padding-block: 64px;
	text-align: center;
}

.programme-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.programme-cta__price {
	font-family: var(--font-heading);
	font-size: 1.5rem;
}

.programme-location {
	padding-block: 64px;
	text-align: center;
}

.programme-location__meta {
	list-style: none;
	margin: 24px 0 40px;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.programme-location__meta li {
	font-weight: 700;
}

.programme-location .programme-map__embed,
.programme-location .pill {
	margin-top: 0;
}

.programme-map {
	padding-block: 64px;
	text-align: center;
}

.programme-map__embed {
	position: relative;
	width: 100%;
	padding-top: 50%;
}

.programme-map__embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Archive ---------- */

.programme-archive {
	padding-block: 64px;
}

.programme-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px;
	margin-top: 32px;
}

.programme-archive__card {
	display: block;
	padding: 16px 16px 24px;
	color: inherit;
	background-color: var(--color-white);
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(17, 30, 45, 0.08);
	transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.programme-archive__card:hover {
	text-decoration: none;
	box-shadow: 0 20px 40px rgba(17, 30, 45, 0.14);
	transform: translateY(-4px);
}

.programme-archive__card img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 4px;
}

.programme-archive__card h2 {
	margin-top: 12px;
	font-size: 1.25rem;
}

/* ---------- Generic page / 404 ---------- */

.page-content,
.error-404 {
	padding-block: 64px;
}

.error-404 {
	text-align: center;
}

.error-404 .pill {
	margin-top: 16px;
}

/* ---------- Rich text content (blog posts, programme long description) ---------- */

.entry-content > * + * {
	margin-top: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 40px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content li + li {
	margin-top: 8px;
}

.entry-content blockquote {
	margin: 0;
	padding-left: 20px;
	border-left: 3px solid var(--color-gold);
	font-style: italic;
	color: var(--color-gold-deep);
}

.entry-content img {
	border-radius: 12px;
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 0.875rem;
	color: #646970;
	text-align: center;
}

/* ---------- Blog ---------- */

.blog-index__intro {
	margin-top: 12px;
}

.blog-card__date {
	margin-top: 8px;
	font-size: 0.875rem;
	color: var(--color-gold-deep);
}

.blog-single__meta {
	margin-top: 12px;
	font-family: var(--font-heading);
	font-style: italic;
	color: var(--color-gold-deep);
}

.blog-single__media {
	padding-block: 48px 0;
}

.blog-single__media img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 12px;
}

.blog-single__content {
	padding-block: 48px;
}

.blog-single__content .entry-content {
	max-width: 760px;
}

.blog-single__back {
	padding-block: 0 64px;
}

.pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
	gap: 16px;
	font-weight: 500;
}

.pagination .page-numbers.current {
	color: var(--color-gold-deep);
}

/* ---------- Lightbox (vanilla JS, assets/js/lightbox.js) ---------- */

.ta-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	align-items: center;
	justify-content: center;
	background-color: rgba(17, 17, 17, 0.92);
}

.ta-lightbox.is-open {
	display: flex;
}

.ta-lightbox__image {
	max-width: 90vw;
	max-height: 85vh;
	width: auto;
}

.ta-lightbox__close,
.ta-lightbox__prev,
.ta-lightbox__next {
	position: absolute;
	background: none;
	border: none;
	color: var(--color-white);
	cursor: pointer;
	font-size: 2.5rem;
	line-height: 1;
	padding: 8px 16px;
}

.ta-lightbox__close {
	top: 16px;
	right: 16px;
}

.ta-lightbox__prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.ta-lightbox__next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

body.ta-lightbox-open {
	overflow: hidden;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.hero {
		padding-block: 64px;
	}

	.programme-card,
	.programme-card--reverse {
		flex-direction: column;
	}

	/* In column direction the items' flex-basis (420px) controls height,
	   so declare the media height explicitly instead of relying on a
	   height property the flex algorithm would silently override. */
	.programme-card__media {
		flex: 0 0 auto;
		height: 320px;
	}

	.programme-card {
		gap: 24px;
	}

	.programme-intro__inner,
	.programme-details__inner,
	.programme-details__inner--reverse {
		flex-direction: column;
	}
}

/* ---------- WhatsApp floating button ---------- */

.whatsapp-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--color-whatsapp);
	color: var(--color-white);
	box-shadow: 0 4px 12px rgba(17, 17, 17, 0.25);
	z-index: 900;
}

.whatsapp-float:hover {
	text-decoration: none;
	filter: brightness(0.95);
}

.whatsapp-float svg {
	width: 30px;
	height: 30px;
}

/* ---------- Contact sidebar (TEST -- 2026-07-09, delete-safe: this whole
   block + contact-sidebar.js + footer.php's .contact-sidebar markup) ---------- */

.contact-sidebar {
	position: fixed;
	top: 140px;
	right: 0;
	z-index: 900;
	width: 176px;
	padding: 14px 14px 12px;
	background-color: var(--color-white);
	border-radius: 16px 0 0 16px;
	box-shadow: 0 12px 32px rgba(17, 30, 45, 0.2);
	text-align: center;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-sidebar.is-collapsed {
	transform: translateX(120%);
	opacity: 0;
	pointer-events: none;
}

.contact-sidebar__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: none;
	font-size: 1.25rem;
	line-height: 1;
	color: #8a8f98;
	cursor: pointer;
	padding: 4px;
}

.contact-sidebar__close:hover {
	color: var(--color-navy);
}

.contact-sidebar__avatar-wrap {
	position: relative;
	display: block;
	width: 56px;
	margin: 0 auto 10px;
}

.contact-sidebar__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 4px 12px rgba(17, 30, 45, 0.18);
}

.contact-sidebar__badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--color-whatsapp);
	color: var(--color-white);
	border: 2px solid var(--color-white);
}

.contact-sidebar__badge svg {
	width: 12px;
	height: 12px;
}

.contact-sidebar__name {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--color-navy);
}

.contact-sidebar__message {
	margin-top: 4px;
	font-size: 0.8rem;
	color: #444;
}

.contact-sidebar__cta {
	display: block;
	margin-top: 10px;
	padding: 7px 16px;
	font-size: 0.85rem;
}

.contact-sidebar-tab {
	position: fixed;
	top: 160px;
	right: 0;
	z-index: 899;
	width: 28px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-navy);
	color: var(--color-gold);
	border: 0;
	border-radius: 8px 0 0 8px;
	box-shadow: 0 4px 12px rgba(17, 30, 45, 0.2);
	cursor: pointer;
	font-size: 1.1rem;
	opacity: 0;
	transform: translateX(100%);
	pointer-events: none;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-sidebar-tab.is-visible {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.contact-sidebar-tab:hover {
	background-color: var(--color-gold);
	color: var(--color-navy);
}

@media (max-width: 480px) {
	.contact-sidebar {
		width: 124px;
		top: 88px;
		right: 0;
		padding: 10px 8px 8px;
	}

	.contact-sidebar__avatar-wrap {
		width: 40px;
	}

	.contact-sidebar__avatar {
		width: 40px;
		height: 40px;
	}

	.contact-sidebar__badge {
		width: 16px;
		height: 16px;
	}

	.contact-sidebar__badge svg {
		width: 9px;
		height: 9px;
	}

	.contact-sidebar__name {
		font-size: 0.8rem;
	}

	.contact-sidebar__message {
		font-size: 0.7rem;
	}

	.contact-sidebar__cta {
		padding: 6px 10px;
		font-size: 0.75rem;
	}

	.contact-sidebar-tab {
		top: 100px;
		width: 22px;
		height: 44px;
	}
}

/* ---------- Cookie consent banner (Phase 6) ---------- */

.cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	background-color: var(--color-navy);
	box-shadow: 0 -4px 16px rgba(17, 30, 45, 0.2);
}

.cookie-consent__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 1.25rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	padding: 4px;
}

.cookie-consent__close:hover {
	color: var(--color-white);
}

.cookie-consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 16px;
	padding-right: 32px;
}

.cookie-consent__text {
	flex: 1 1 480px;
	margin: 0;
	color: var(--color-white);
	font-size: 0.9rem;
}

.cookie-consent__actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

.cookie-consent__accept,
.cookie-consent__decline {
	padding: 10px 24px;
}

.cookie-consent__decline {
	border-color: var(--color-white);
	color: var(--color-white);
}

.cookie-consent__decline:hover {
	background-color: var(--color-white);
	color: var(--color-navy);
}

@media (max-width: 600px) {
	.cookie-consent__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	  .cookie-consent__text {
              flex-basis: auto;
      }

	.cookie-consent__actions {
		justify-content: center;
	}
}

.pill--whatsapp {
	background-color: var(--color-whatsapp);
	color: var(--color-navy);
}

.pill--whatsapp:hover {
	background-color: var(--color-navy);
	color: var(--color-white);
}

/* ---------- Programme CTA (price + brochure/WhatsApp) ---------- */

.programme-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* ---------- Programme contact (embedded form) ---------- */

.programme-contact {
	padding-block: 64px;
	text-align: center;
}

.programme-contact__inner {
	max-width: 560px;
	margin: 0 auto;
	text-align: left;
}

.programme-contact__inner h2 {
	text-align: center;
	margin-bottom: 24px;
}

/* ---------- Contact Form 7 ---------- */

.wpcf7-form p {
	margin-bottom: 20px;
}

.wpcf7-form label {
	display: block;
	font-weight: 500;
	margin-bottom: 6px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: var(--font-body);
	font-size: 1rem;
}

.wpcf7-form textarea {
	min-height: 120px;
	resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: 2px solid var(--color-gold-deep);
	outline-offset: 2px;
}

.wpcf7-form .wpcf7-acceptance {
	display: block;
	font-size: 0.9rem;
}

.wpcf7-form .wpcf7-list-item {
	margin: 0;
}

.wpcf7-form .wpcf7-submit {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	border: none;
	background-color: var(--color-navy);
	color: var(--color-white);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 1rem;
	cursor: pointer;
}

.wpcf7-form .wpcf7-submit:hover {
	background-color: var(--color-gold);
	color: var(--color-navy);
}

.wpcf7-form .wpcf7-submit:disabled {
	background-color: #999;
	cursor: not-allowed;
}

.wpcf7-not-valid-tip {
	display: block;
	color: #b3261e;
	font-size: 0.85rem;
	margin-top: 4px;
}

.wpcf7-response-output {
	margin-top: 20px;
	padding: 12px 16px;
	border-radius: 4px;
	border: 1px solid var(--color-gold-deep);
}

.wpcf7-form.sent .wpcf7-response-output {
	border-color: var(--color-whatsapp);
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
	border-color: #b3261e;
}

/* ---------- Homepage: about / services / newsletter / contact line ---------- */

.about__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gutter);
	padding-block: 64px;
	max-width: 1400px;
}

.about__text,
.about__media {
	flex: 1 1 420px;
}

.about__media video {
	max-width: 100%;
	height: auto;
	display: block;
}

.about__text h2 {
	color: #000000;
}

.about__text h3 {
	margin-top: 24px;
}

.about__text p {
	margin-top: 12px;
}

.services {
	padding-block: 64px;
	text-align: center;
}

.services__intro {
	margin-top: 20px;
	max-width: 560px;
	margin-inline: auto;
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 32px;
	margin-top: 40px;
	text-align: left;
}

.services__item {
	margin: 0;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(17, 30, 45, 0.08);
	transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services__item:hover {
	box-shadow: 0 20px 40px rgba(17, 30, 45, 0.14);
	transform: translateY(-4px);
}

.services__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.services__item figcaption {
	margin-top: 4px;
	text-align: center;
	font-family: var(--font-heading);
	font-size: 1.125rem;
}

.newsletter {
	padding-block: 64px;
	text-align: center;
}

.newsletter__inner {
	max-width: 480px;
	margin: 0 auto;
}

.newsletter__inner .wpcf7-form {
	margin-top: 24px;
	text-align: left;
}

.contact-line {
	padding-block: 48px;
	text-align: center;
}

.contact-line p {
	margin-top: 8px;
}

.contact-line .pill {
	margin-top: 20px;
	display: inline-block;
}

/* ---------- À propos: value cards ---------- */

.values {
	padding-block: 64px;
	text-align: center;
}

.values__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 32px;
	margin-top: 40px;
	text-align: left;
}

.values__item {
	padding: 32px;
	background-color: var(--color-white);
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(17, 30, 45, 0.08);
	transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.values__item:hover {
	box-shadow: 0 20px 40px rgba(17, 30, 45, 0.14);
	transform: translateY(-4px);
}

.values__item h3 {
	color: var(--color-gold-deep);
}

.values__item p {
	margin-top: 12px;
}

@media (max-width: 767px) {
	.about__inner {
		flex-direction: column;
	}

	/* In column direction the 420px flex-basis meant for the desktop
	   side-by-side layout acts as a minimum height instead, leaving a
	   large blank gap under short text blocks (same class of bug as
	   .programme-card__media, see LOG) — let items size to content. */
	.about__text,
	.about__media {
		flex-basis: auto;
	}
}

/* ---------- Reveal-on-scroll (assets/js/reveal.js) ----------
   Gated behind html.js (set by an inline script in header.php)
   so content is always fully visible without JS — this is a
   progressive enhancement, not a requirement to see the page. */

html.js .smooth-reveal {
	opacity: 0;
	transform: translateY(48px);
	transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
		transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

html.js .smooth-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
	will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
	html.js .smooth-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
