/* ==========================================================================
   Penimar — component styles
   Uses the theme.json palette via CSS custom properties.
   ========================================================================== */

/* Site-wide image copy deterrent: no native drag-out, no long-press "save
   image" callout on iOS, no text-selection handles landing on an image.
   Paired with the contextmenu/dragstart JS below and the .htaccess hotlink
   rule — none of this stops a determined user (screenshots always work),
   it just removes the one-click ways of lifting a photo. */
img {
	-webkit-user-drag: none;
	user-drag: none;
	-webkit-touch-callout: none;
	user-select: none;
	-webkit-user-select: none;
}

/* Self-hosted brand typeface (not Google Fonts CDN — keeps the site off a
   third-party request and avoids the GDPR consent question that CDN fonts
   raise for an EU business). */
@font-face {
	font-family: "Montserrat";
	src: url("fonts/Montserrat-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("fonts/Montserrat-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--pm-ink:          var(--wp--preset--color--ink, #0e2436);
	--pm-ink-soft:     var(--wp--preset--color--ink-soft, #1c3c54);
	--pm-paper:        var(--wp--preset--color--paper, #eef2f4);
	--pm-white:        var(--wp--preset--color--white, #ffffff);
	--pm-accent:       var(--wp--preset--color--accent, #2271b3);
	--pm-accent-dark:  var(--wp--preset--color--accent-strong, #16496f);
	--pm-steel:        var(--wp--preset--color--steel, #52667a);
	--pm-steel-soft:   var(--wp--preset--color--steel-soft, #7c8fa0);
	--pm-line:         var(--wp--preset--color--line, #c7d2d9);
	--pm-line-soft:    var(--wp--preset--color--line-soft, #dbe3e8);
	--pm-shadow:       0 2px 4px rgba(14, 36, 54, 0.06), 0 12px 28px rgba(14, 36, 54, 0.08);
	--pm-font-mono:    var(--wp--preset--font-family--mono, "Montserrat", sans-serif);
	--pm-font-cond:    var(--wp--preset--font-family--condensed, "Montserrat", sans-serif);
}

/* --- Accessibility basics ------------------------------------------------ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--pm-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Page shell --------------------------------------------------------- */

/* The parent theme's block gap leaves a strip of page background between the
   header and a full-bleed hero. Sections carry their own spacing instead. */
.wp-site-blocks > main {
	margin-block-start: 0;
}

/* --- Body copy ------------------------------------------------------------ */

.wp-block-post-content p {
	text-align: justify;
	text-align-last: left;
}

/* --- Header ------------------------------------------------------------- */

.penimar-header {
	position: sticky;
	top: 0;
	z-index: 5;
}

.penimar-header > .wp-block-group {
	position: relative;
	z-index: 1;
	/* WordPress's default block-spacing applies a margin-top here because
	   this is the second child of a "constrained" layout (after the wave
	   background div) — not because it's meant to have any. Without this,
	   the header padding looks symmetric in code but the logo/menu sit
	   visibly lower than centered, with extra empty space above them. */
	margin-top: 0;
}

.penimar-logo img {
	display: block;
	height: auto;
}

/* Keep the logo small enough that it never wraps onto a second line next
   to the menu button on narrow phones — if it did, the header would grow
   much taller and the wave background (stretched via preserveAspectRatio
   "none" to exactly fill the header box) would distort badly. */
@media (max-width: 400px) {
	.penimar-logo img {
		width: 150px;
	}
}

/* Navy wave filling the header bar, with a white shape carved out on the
   left behind the logo. Inline SVG (from Figma) stretched to the header's
   exact box — vector, so it stays crisp at any header width. */
.penimar-header__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	line-height: 0;
	/* .penimar-header uses layout:"constrained", which caps direct children
	   to the site content width via `.is-layout-constrained > *` — override
	   it here so the wave background truly reaches the header's real edges
	   on wide viewports instead of stopping at ~1200px. */
	max-width: none;
}

.penimar-header__bg svg {
	display: block;
	width: 100%;
	height: 100%;
}

.penimar-lang-switcher {
	display: flex;
	align-items: center;
}

.penimar-lang-switcher select {
	appearance: none;
	-webkit-appearance: none;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-family: var(--pm-font-condensed, inherit);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 22px 3px 8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 4px center;
	background-size: 14px;
}

.penimar-lang-switcher select option {
	color: #0e2436;
}

.penimar-lang-switcher select:hover,
.penimar-lang-switcher select:focus-visible {
	background-color: rgba(255, 255, 255, 0.18);
}

.penimar-header .wp-block-navigation a,
.penimar-header .wp-block-navigation .wp-block-navigation-item__label,
.penimar-header .wp-block-navigation__responsive-container-open {
	color: #fff;
}

/* Mobile header: white bar instead of the navy wave, shorter, with the
   hamburger icon and language switcher in blue instead of white — the wave
   graphic is just hidden (not swapped for a white one), since the header's
   own block background is already white underneath it. Matches core's own
   breakpoint for switching the nav block into its hamburger toggle
   (wp-includes/blocks/navigation/style.min.css), so this only applies
   exactly when the collapsed mobile bar is what's actually showing — the
   opened dropdown panel keeps its own navy background/white text
   untouched, that part is a separate component with its own contrast. */
@media (max-width: 599px) {
	.penimar-header__bg {
		display: none;
	}

	.penimar-header {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}

	.penimar-logo img {
		width: 130px;
	}

	.penimar-header .wp-block-navigation__responsive-container-open {
		color: var(--pm-accent-dark);
	}

	.penimar-lang-switcher select {
		background-color: transparent;
		border-color: var(--pm-accent-dark);
		color: var(--pm-accent-dark);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316496f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	}

	.penimar-lang-switcher select:hover,
	.penimar-lang-switcher select:focus-visible {
		background-color: rgba(22, 73, 111, 0.08);
	}
}

/* Mobile menu: a dropdown panel below the header instead of the core
   block's default fullscreen takeover, so the rest of the page (and the
   hero video) stays visible behind it. `top` is set inline by JS to the
   header's actual rendered height — the block's own `<nav>` wrapper (not
   `.penimar-header`) is this element's CSS positioning context, and its
   box doesn't reliably match the header's visible height, so a CSS-only
   `top: 100%` lands in the wrong place. */
.penimar-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	left: 0;
	right: 0;
	/* The core stylesheet's `inset: 0` still supplies `bottom: 0` since we
	   never override that specific longhand — with top *and* bottom both
	   set, the box is forced to span down to the viewport edge no matter
	   what `height` says. Freeing bottom is what lets `height: auto`
	   actually shrink to the menu's content. */
	bottom: auto;
	height: auto;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

/* Was unscoped before — this padding is only meant for the mobile dropdown
   panel's own content, but was being applied unconditionally, which added
   up to 40px of invisible padding-bottom to the *desktop* nav row too and
   made the whole header noticeably taller than its visible content. */
.penimar-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-right: clamp(20px, 5vw, 40px);
	padding-left: clamp(20px, 5vw, 40px);
	padding-bottom: clamp(20px, 5vw, 40px);
	box-sizing: border-box;
}

/* --- Small label / eyebrow ---------------------------------------------- */

.penimar-eyebrow {
	font-family: var(--pm-font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pm-accent);
	font-weight: 700;
}

/* --- Hero (core/cover with video background) --------------------------- */

.penimar-hero-cover {
	position: relative;
	align-items: flex-end;
	padding-bottom: clamp(40px, 6vw, 60px) !important;
}

/* Light scrim only: the hero now carries no copy, so the video stays clean.
   Just enough darkening at the edges to keep the header and the year legible. */
.penimar-hero-cover > .wp-block-cover__background {
	background: linear-gradient(0deg, rgba(9, 20, 30, 0.55) 0%, rgba(9, 20, 30, 0) 35%, rgba(9, 20, 30, 0.35) 100%) !important;
	opacity: 1 !important;
}

/* Visually-hidden but real H1: every page needs exactly one for SEO and
   screen readers, but the hero is meant to stay clean (video only). This
   is the standard "sr-only" pattern — present in the DOM, invisible on screen. */
.penimar-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.penimar-hero__since {
	position: absolute;
	right: clamp(20px, 5vw, 48px);
	bottom: clamp(28px, 5vw, 44px);
	text-align: right;
	z-index: 2;
}

.penimar-hero__since .small {
	display: block;
	font-family: var(--pm-font-mono);
	font-size: clamp(0.8rem, 1.4vw, 0.95rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 2px;
}

.penimar-hero__since .year {
	display: block;
	font-weight: 700;
	font-size: clamp(3.4rem, 8vw, 5.6rem);
	color: #8fc1e8;
	line-height: 0.95;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Pause control for the autoplaying background video (WCAG 2.2.2). */
.penimar-video-pause {
	position: absolute;
	right: clamp(20px, 5vw, 40px);
	top: 20px;
	z-index: 3;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(9, 20, 30, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
}

.penimar-video-pause:hover {
	background: rgba(9, 20, 30, 0.8);
}

.penimar-video-pause svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

@media (max-width: 600px) {
	.penimar-hero__since {
		position: static;
		text-align: left;
		margin-top: 24px;
	}
}

/* --- Section heading ---------------------------------------------------- */

.penimar-sectionhead {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 16px;
	border-bottom: 1px solid var(--pm-line);
	padding-bottom: 20px;
	margin-bottom: 44px;
}

.penimar-sectionhead p {
	color: var(--pm-steel);
	font-size: 1.05rem;
	max-width: 42ch;
	margin: 6px 0 0;
}

/* --- Service cards ------------------------------------------------------ */

.penimar-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

/* Fixed 2-column grid on mobile instead of the auto-fit columns collapsing
   to a single-column stack (220px min doesn't fit twice on a phone width).
   With 5 tiles, grid's own auto-placement already puts the 5th in row 3's
   first column with the second cell simply empty — no extra markup needed
   to left-align it. */
@media (max-width: 599px) {
	.penimar-services {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.penimar-service {
		padding: 18px 10px;
	}

	.penimar-service svg,
	.penimar-service img {
		width: 44px;
		height: 44px;
		margin-bottom: 10px;
	}

	.penimar-service h3 {
		font-size: 0.85rem;
		margin: 0;
	}
}

.penimar-service {
	background: var(--pm-white);
	border-radius: 14px;
	box-shadow: var(--pm-shadow);
	padding: 38px 28px;
	text-align: center;
	display: block;
	color: inherit;
	text-decoration: none;
}

a.penimar-service {
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.penimar-service:hover,
a.penimar-service:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(14, 36, 54, 0.14);
	color: inherit;
}

.penimar-service svg,
.penimar-service img {
	width: 74px;
	height: 74px;
	margin: 0 auto 20px;
	color: var(--pm-accent);
	display: block;
	object-fit: contain;
}

.penimar-service h3 {
	font-size: 1.15rem;
	margin: 0 0 12px;
}

.penimar-service p {
	color: var(--pm-steel);
	font-size: 0.92rem;
	line-height: 1.5;
	margin: 0;
	text-align: center;
}

/* --- Portfolio filters + grid ------------------------------------------ */

.penimar-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.penimar-filter {
	font-family: var(--pm-font-cond);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
	font-weight: 700;
	background: var(--pm-white);
	color: var(--pm-steel);
	border: 1px solid var(--pm-line);
	padding: 10px 20px;
	cursor: pointer;
}

.penimar-filter .count {
	font-family: var(--pm-font-mono);
	font-weight: 400;
	opacity: 0.7;
	margin-left: 6px;
}

.penimar-filter.is-active {
	background: var(--pm-ink);
	color: #fff;
	border-color: var(--pm-ink);
}

.penimar-filter:hover:not(.is-active) {
	border-color: var(--pm-accent);
	color: var(--pm-accent-dark);
}

.penimar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.penimar-card {
	position: relative;
}

.penimar-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--pm-line-soft);
	display: block;
	border-radius: 12px;
}

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

.penimar-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, var(--pm-line-soft) 0 10px, var(--pm-line) 10px 20px);
}

.penimar-card__tag {
	position: absolute;
	left: 0;
	bottom: 0;
	background: rgba(14, 36, 54, 0.82);
	color: #fff;
	font-family: var(--pm-font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 5px 8px;
	display: flex;
	gap: 8px;
}

.penimar-card__tag b {
	color: #8fc1e8;
	white-space: nowrap;
	flex-shrink: 0;
}

.penimar-card__title {
	font-size: 1.02rem;
	margin: 12px 0 0;
	line-height: 1.3;
}

.penimar-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Stretch the title link over the whole card so the image is clickable too,
   while keeping the accessible link text limited to the project name. */
.penimar-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.penimar-card__title a:hover {
	color: var(--pm-accent-dark);
	text-decoration: underline;
}

.penimar-card__cat {
	color: var(--pm-steel-soft);
	font-family: var(--pm-font-mono);
	font-size: 0.72rem;
	margin: 4px 0 0;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* --- Technical spec sheet ---------------------------------------------- */

.penimar-ficha {
	background: var(--pm-white);
	border: 1px solid var(--pm-line);
	border-left: 3px solid var(--pm-accent);
	padding: 26px 28px;
	box-shadow: var(--pm-shadow);
}

.penimar-ficha__label {
	display: block;
	margin: 0 0 16px;
	font-family: var(--pm-font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pm-accent);
	font-weight: 700;
	margin-bottom: 16px;
}

.penimar-ficha__list {
	margin: 0;
}

.penimar-ficha__row {
	display: grid;
	grid-template-columns: minmax(auto, 110px) 1fr;
	align-items: baseline;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--pm-line-soft);
	font-size: 0.92rem;
}

.penimar-ficha__row:last-child {
	border-bottom: none;
}

.penimar-ficha__row dt {
	color: var(--pm-steel-soft);
	margin: 0;
	white-space: nowrap;
}

.penimar-ficha__row dd {
	color: var(--pm-ink-soft);
	font-weight: 600;
	font-family: var(--pm-font-mono);
	font-variant-numeric: tabular-nums;
	margin: 0;
	text-align: right;
	overflow-wrap: break-word;
}

.penimar-ficha__pdf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--pm-line-soft);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--pm-accent-dark);
	text-decoration: none;
	width: 100%;
}

.penimar-ficha__pdf span {
	background: #dce9f3;
	color: var(--pm-accent-dark);
	font-family: var(--pm-font-mono);
	font-size: 0.6rem;
	font-weight: 700;
	padding: 3px 6px;
	border-radius: 3px;
}

.penimar-ficha__pdf:hover {
	text-decoration: underline;
}

/* --- Arranjo Geral (general-arrangement drawing) ------------------------ */

.penimar-ag {
	margin: var(--wp--preset--spacing--40, 2rem) 0 0;
}

.penimar-ag__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	border: 1px solid var(--pm-line);
	border-radius: 12px;
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	cursor: zoom-in;
	padding: 0;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.penimar-ag__thumb:focus-visible {
	outline: 2px solid var(--pm-accent-strong);
	outline-offset: 2px;
}

/* Lightbox overlay for zooming the drawing without exposing a direct <img>
   or file link — the drawing is only ever painted as a CSS background so
   there is no element to right-click "Save image as" on. */
.penimar-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 5vw, 64px);
	background: rgba(10, 14, 20, 0.92);
}

.penimar-lightbox[hidden] {
	display: none;
}

.penimar-lightbox__img {
	width: 100%;
	height: 100%;
	max-width: 1400px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	pointer-events: none;
}

.penimar-lightbox__close {
	position: absolute;
	top: clamp(10px, 3vw, 24px);
	right: clamp(10px, 3vw, 24px);
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.penimar-lightbox__close:hover,
.penimar-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.18);
}

.penimar-social {
	display: flex;
	gap: 14px;
	margin: 4px 0 22px;
}
.penimar-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--pm-ink-soft, #1c3c54);
	color: var(--pm-line-soft, #dbe3e8);
	transition: border-color 0.15s ease, color 0.15s ease;
}
.penimar-social a:hover,
.penimar-social a:focus-visible {
	border-color: currentColor;
	color: #fff;
}
.penimar-social svg {
	width: 17px;
	height: 17px;
}

/* --- Per-project video embed + extra gallery ---------------------------- */

.penimar-video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--pm-line-soft);
	margin: var(--wp--preset--spacing--40, 2rem) 0;
	border-radius: 12px;
	overflow: hidden;
}

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

.penimar-photogrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: var(--wp--preset--spacing--30, 1.25rem) 0;
}

.penimar-photogrid__item {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.penimar-photogrid__item:focus-visible {
	outline: 2px solid var(--pm-accent-strong);
	outline-offset: 2px;
}

.penimar-photogrid img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

/* --- Featured-image cover, doubling as the gallery opener --------------- */

.penimar-cover {
	position: relative;
	margin-bottom: var(--wp--preset--spacing--40, 2rem);
}

.penimar-cover__open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.penimar-cover__open:focus-visible {
	outline: 2px solid var(--pm-accent-strong);
	outline-offset: 2px;
}

.penimar-cover__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

.penimar-cover__gallery-btn {
	position: absolute;
	right: 14px;
	top: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	background: rgba(10, 14, 20, 0.72);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}

.penimar-cover__gallery-btn svg {
	width: 16px;
	height: 16px;
}

.penimar-cover__gallery-btn:hover,
.penimar-cover__gallery-btn:focus-visible {
	background: rgba(10, 14, 20, 0.88);
}

.penimar-cover__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(10, 14, 20, 0.55);
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.penimar-cover__nav:hover,
.penimar-cover__nav:focus-visible {
	background: rgba(10, 14, 20, 0.78);
}

.penimar-cover__nav--prev {
	left: 12px;
}

.penimar-cover__nav--next {
	right: 12px;
}

.penimar-cover__dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	padding: 6px 10px;
	background: rgba(10, 14, 20, 0.4);
	border-radius: 20px;
}

.penimar-cover__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}

.penimar-cover__dot.is-active {
	background: #fff;
	transform: scale(1.3);
}

.penimar-cover__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.penimar-cover__gallery-btn:hover,
.penimar-cover__gallery-btn:focus-visible {
	background: rgba(10, 14, 20, 0.88);
}

/* --- Multi-photo lightbox (real <img>, unlike the Arranjo Geral one —
   these are marketing photos, not copyright-restricted drawings) -------- */

.penimar-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 5vw, 64px);
	background: rgba(10, 14, 20, 0.92);
}

.penimar-gallery-lightbox[hidden] {
	display: none;
}

.penimar-gallery-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.penimar-gallery-lightbox__close {
	position: absolute;
	top: clamp(10px, 3vw, 24px);
	right: clamp(10px, 3vw, 24px);
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.penimar-gallery-lightbox__close:hover,
.penimar-gallery-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.18);
}

.penimar-gallery-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.3rem;
	cursor: pointer;
}

.penimar-gallery-lightbox__nav:hover,
.penimar-gallery-lightbox__nav:focus-visible {
	background: rgba(255, 255, 255, 0.18);
}

.penimar-gallery-lightbox__nav--prev {
	left: clamp(8px, 3vw, 24px);
}

.penimar-gallery-lightbox__nav--next {
	right: clamp(8px, 3vw, 24px);
}

.penimar-gallery-lightbox__counter {
	position: absolute;
	bottom: clamp(10px, 3vw, 24px);
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: 4px 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	color: #fff;
	font-family: var(--pm-font-mono);
	font-size: 0.78rem;
}

/* --- Video poster (Vimeo link) ----------------------------------------- */

.penimar-videoposter {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	text-decoration: none;
}

.penimar-videoposter img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.penimar-videoposter::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(9, 20, 30, 0.38);
}

.penimar-videoposter__play {
	position: relative;
	z-index: 1;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	display: grid;
	place-items: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s;
}

.penimar-videoposter:hover .penimar-videoposter__play {
	transform: scale(1.08);
}

.penimar-videoposter__play svg {
	width: 30px;
	height: 30px;
	fill: var(--pm-accent-dark);
	margin-left: 4px;
}

/* --- Partners strip ---------------------------------------------------- */

.penimar-partners {
	background: var(--pm-white);
	border-top: 1px solid var(--pm-line);
	border-bottom: 1px solid var(--pm-line);
	padding: 36px clamp(20px, 5vw, 40px);
}

.penimar-partners__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}

.penimar-partners__label {
	font-family: var(--pm-font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pm-steel-soft);
}

.penimar-partners img {
	height: 56px;
	width: auto;
	display: block;
}

/* --- Contact form in footer ------------------------------------------- */

.penimar-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.penimar-form label {
	font-family: var(--pm-font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7fa9c4;
}

.penimar-form input[type="text"],
.penimar-form input[type="email"],
.penimar-form textarea {
	background: #122636;
	border: 1px solid #24404f;
	color: #fff;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 0.92rem;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
}

.penimar-form textarea {
	resize: vertical;
	min-height: 70px;
}

.penimar-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.8rem;
	color: #a9c1d1;
	line-height: 1.4;
}

.penimar-form__consent input {
	width: auto;
	margin-top: 3px;
	flex-shrink: 0;
}

/* --- Map ---------------------------------------------------------------- */

.penimar-map iframe {
	display: block;
	width: 100%;
	border: 0;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
}
