/*
 * site-chrome.css — footer of the hand-coded surfaces.
 *
 * Every value here was READ OFF the Elementor footer (template 278) in the
 * browser with getComputedStyle, not guessed, so the replacement is a visual
 * no-op. The measurements, at a 1350px viewport:
 *
 *   background  #eee            bar background   #191919, 45px tall
 *   headings    Poppins 700 18px/27 uppercase #333
 *   list text   Poppins 300 16px/24 #000, 3px between items
 *   paragraph   16px/24 #333, text-align: justify
 *   social      36x36, #191919, border-radius 10%, 5px apart
 *   gallery     auto-fill minmax(96px, 1fr), 6px gap, 3:2 tiles, cover
 *   columns     251 / 189 / 376 / 439 px inside a 1315px wrapper, 20px gap
 *
 * Poppins is deliberate, not drift: it is what the Elementor footer uses, and
 * the point of this file is to change nothing visually. The face arrives via
 * Elementor's local google-fonts CSS (`elementor-gf-local-poppins`), which is
 * why that handle is NOT in the dequeue list in functions.php.
 */

.kc-foot {
	--kc-foot-bg: #eee;
	--kc-foot-ink: #000;
	--kc-foot-head: #333;
	--kc-foot-dark: #191919;
	--kc-foot-font: Poppins, sans-serif;

	background: var(--kc-foot-bg);
}

/*
 * ⚠ Poppins goes on the headings and the lists ONLY — do not hoist it to
 * .kc-foot. Measured on the Elementor footer: the headings and every icon-list
 * label resolve to `Poppins, sans-serif`, while the "We are committed to…"
 * paragraph and both lines of the bottom bar resolve to the BODY stack
 * (-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, …) — Elementor never
 * set a family on those two widgets, so they inherit.
 *
 * It reads like a detail and it is not: setting Poppins on the whole footer
 * re-wraps the justified paragraph at different words. Same seven lines, but
 * the breaks move, which is exactly the kind of "nothing changed" that shows up
 * in a screenshot diff.
 */
.kc-foot__head,
.kc-foot__list {
	font-family: var(--kc-foot-font);
}

/* The 10px here and the 10px on the column are not arbitrary: Elementor nested
   an outer container (padding 0 10px), a wrapper (padding 10px 0) and four
   columns (padding 10px). That is what puts the first baseline 20px below the
   footer edge and leaves the gallery column 356px of usable width — which is
   exactly three 115px tiles plus two 6px gaps. Drop either one and the tiles
   grow to 122px and the last row clips into the bottom bar. */
.kc-foot__inner {
	display: grid;
	grid-template-columns: 251fr 189fr 376fr 439fr;
	gap: 20px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 10px;
}

.kc-foot__col {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 10px;
}

.kc-foot__col--brand {
	gap: 10px;
}

/* Brand column ---------------------------------------------------------- */

/* Centred in the column at every width — measured on the Elementor footer:
   logo at x=94 and the social row at x=97 inside a column whose content box
   runs 20→251, i.e. dead centre. The paragraph between them is NOT centred; it
   stays full-width and justified. */
.kc-foot__logo {
	display: block;
	width: 82px;
	margin: 0 auto;
}

.kc-foot__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.kc-foot__about {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--kc-foot-head);
	text-align: justify;
}

.kc-foot__social {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kc-foot__social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: var(--kc-foot-dark);
	border-radius: 10%;
	color: #fff;
	text-decoration: none;
	transition: opacity .2s ease;
}

.kc-foot__social a:hover,
.kc-foot__social a:focus-visible {
	opacity: .8;
}

/* Headings and lists ---------------------------------------------------- */

.kc-foot__head {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	text-transform: uppercase;
	color: var(--kc-foot-head);
}

.kc-foot__list {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kc-foot__list li {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	color: var(--kc-foot-ink);
}

.kc-foot__list a {
	color: inherit;
	text-decoration: none;
	transition: opacity .2s ease;
}

.kc-foot__list a:hover,
.kc-foot__list a:focus-visible {
	opacity: .65;
	text-decoration: underline;
}

/* The icon box is 18px wide and must not shrink when the label wraps — the
   address is two lines on mobile and the pin has to stay on the first one. */
.kc-foot__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
}

.kc-foot__list--nav li {
	display: block;
}

/* Gallery --------------------------------------------------------------- */

.kc-foot__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kc-foot__gallery li {
	margin: 0;
	padding: 0;
	/* Explicit ratio + cover: the tile geometry cannot depend on when the image
	   arrives, which is what made the Elementor gallery collapse to 372x2 px on
	   a cold load. */
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.kc-foot__gallery a,
.kc-foot__gallery img {
	display: block;
	width: 100%;
	height: 100%;
}

.kc-foot__gallery img {
	object-fit: cover;
	transition: transform .35s ease;
}

.kc-foot__gallery a:hover img,
.kc-foot__gallery a:focus-visible img {
	transform: scale(1.05);
}

/* Bottom bar ------------------------------------------------------------ */

.kc-foot__bar {
	background: var(--kc-foot-dark);
	color: #fff;
}

.kc-foot__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 45px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 10px;
	font-size: 16px;
	line-height: 24px;
}

.kc-foot__bar a {
	color: inherit;
	text-decoration: none;
}

.kc-foot__bar a:hover,
.kc-foot__bar a:focus-visible {
	text-decoration: underline;
}

/* Mobile ---------------------------------------------------------------- */

/* 1024px is Elementor's own tablet breakpoint — matching it keeps the switch
   happening at the same width as on the Elementor pages, which still render the
   Theme Builder footer. */
@media (max-width: 1024px) {
	.kc-foot__inner {
		grid-template-columns: 1fr;
	}

	/* ⚠ Centre with text-align, NOT align-items. The reference keeps every
	   column BOX at full width (measured: 377px, content starting at x=20 for
	   all four) and only centres the text inside. Using align-items:center
	   shrinks each box to its content, which re-wraps the justified paragraph
	   and narrows the gallery. */
	.kc-foot__col {
		text-align: center;
	}

	.kc-foot__logo {
		width: 123px;
	}

	/* Contact and opening hours stay left-aligned: the icon belongs against the
	   left edge of the label, and centring a two-line address puts the pin in
	   the middle of nowhere. */
	.kc-foot__col--contact .kc-foot__list {
		text-align: left;
	}

	.kc-foot__bar-inner {
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		padding: 12px 10px;
		text-align: center;
	}
}

/* ============================================================================
 * HEADER — replaces Elementor Theme Builder template 270.
 *
 * Measured off the reference, desktop @1350 / mobile @412:
 *
 *   header        #eee, 112px tall desktop / 75px mobile, padding 16px 32px / 16px
 *   logo          300x51 / 179x30, flush left at the padding edge
 *   nav links     body stack, 15px/500, #000, padding 0 15px, centred
 *   current item  #707070
 *   CTA           #000 pill, radius 9px, padding 10px 23px, 18px #E1E1E1 label,
 *                 white 18px icon, 7px apart → 169x40. Mobile: 34x34, icon only
 *   burger        45x43, black
 *   panel         fixed left, 350px, #f7f7f7, z 1000,
 *                 transition: left .6s cubic-bezier(.6,.1,.68,.53)
 *   panel logo    96x96   ·   X: 25px, 45x54 at x=293
 *   panel links   full width, 43px tall, padding 10px 15px, 15px/500
 *   scrim         rgba(51,51,51,.5)
 * ========================================================================= */

.kc-head {
	--kc-head-bg: #eee;
	--kc-head-ink: #000;
	/*
	 * #666, nao o #707070 do header do Elementor: aquele da 4,27:1 sobre o #eee e
	 * REPROVA no color-contrast do axe (15px regular exige 4,5:1). Medido em
	 * 26/08/2026 no Lighthouse desktop, no item de menu da pagina atual — no
	 * mobile passa despercebido so porque essa barra e display:none.
	 *
	 * #666 da 4,95:1 e continua nitidamente mais claro que o #000 dos demais
	 * itens, que e o que a cor comunica. O header do Theme Builder segue com o
	 * 4,27:1 nas paginas Elementor — isso e wp-admin, nao daqui.
	 */
	--kc-head-muted: #666;
	--kc-head-cta-bg: #000;
	--kc-head-cta-ink: #e1e1e1;
	--kc-head-font: Poppins, sans-serif;

	background: var(--kc-head-bg);
}

.kc-head__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	/* 112px total, border-box — the reference height. It comes from padding the
	   ElementsKit nav widget adds internally; there is nothing 80px tall in the
	   content, so the number has to be stated rather than derived. */
	min-height: 112px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 16px 32px;
}

.kc-head__logo {
	display: block;
	flex: 0 0 auto;
	width: 300px;
}

.kc-head__logo img {
	display: block;
	width: 100%;
	height: auto;
}

/*
 * ⚠ The menu is NOT centred, despite ElementsKit's setting being called
 * `elementskit-menu-po-center`. Measured on the reference: the header is a
 * space-between flex of two groups — the 300px logo, and a 632px group holding
 * [menu, CTA] with `justify-content: flex-end` and a 20px gap. The menu ends up
 * at x=671 purely because it is 443px wide and sits 20px left of a 169px CTA
 * whose right edge is the padding edge.
 *
 * `margin-left: auto` reproduces that with one declaration. Giving the nav
 * `flex: 1 1 auto` instead centres it in the leftover space and lands the first
 * item ~156px too far left.
 */
.kc-head__nav {
	flex: 0 0 auto;
	margin-left: auto;
	min-width: 0;
}

.kc-head__menu {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kc-head__menu a {
	display: block;
	padding: 0 15px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--kc-head-ink);
	text-decoration: none;
}

.kc-head__menu a:hover,
.kc-head__menu a:focus-visible {
	color: var(--kc-head-muted);
}

/* Current page. WordPress sets several of these depending on how the item was
   created (page vs custom link vs ancestor), so match them all — picking only
   `current-menu-item` is why hand-rolled menus so often lose the state. */
.kc-head__menu .current-menu-item > a,
.kc-head__menu .current_page_item > a,
.kc-head__menu .current-menu-ancestor > a,
.kc-head__menu .current-page-ancestor > a {
	color: var(--kc-head-muted);
}

/* CTA -------------------------------------------------------------------- */

.kc-head__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	padding: 10px 23px;
	background: var(--kc-head-cta-bg);
	border-radius: 9px;
	color: var(--kc-head-cta-ink);
	font-size: 18px;
	line-height: 20px;
	text-decoration: none;
	transition: opacity .2s ease;
}

.kc-head__cta:hover,
.kc-head__cta:focus-visible {
	opacity: .85;
}

/* The icon is white while the label is #E1E1E1 in the reference — not a
   mistake of mine, the two were separate settings on the Elementor widget. */
.kc-head__cta .kc-foot__icon {
	color: #fff;
	margin-top: 0;
}

/*
 * ⚠ The label is Poppins 13px, NOT the 18px the button declares. Measured on
 * the reference: the Premium Addons wrapper carries font-size 18px — which is
 * what sizes the 18px icon — and the <span> around the number overrides it to
 * Poppins 13px. Inheriting the 18px makes the label 120px instead of 98px, the
 * button 191px instead of 169px, and since the [menu, CTA] group is right
 * aligned, the whole menu shifts 22px left.
 */
.kc-head__cta-label {
	font-family: var(--kc-head-font);
	font-size: 13px;
	line-height: 20px;
}

/* Burger ----------------------------------------------------------------- */

/*
 * ⚠ Specificity is 0,2,0 on purpose — `.kc-head__burger` alone (0,1,0) LOSES.
 * Elementor's Global Kit ships `.elementor-kit-358 button { background-color: … }`
 * in post-358.css at 0,1,1, and <body> still carries `elementor-kit-358` because
 * the Metform shortcode keeps the kit enqueued. The visible symptom was a black
 * filled box with white bars instead of three black bars on the header ground.
 *
 * Any bare <button> we add anywhere in this theme has the same problem. Scope it
 * under its block rather than reaching for !important.
 */
.kc-head .kc-head__burger {
	display: none;
	flex: 0 0 auto;
	width: 45px;
	height: 43px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--kc-head-ink);
	cursor: pointer;
}

/* Three bars drawn with a gradient instead of three elements: one box, no
   pseudo-element juggling, and it scales with currentColor. */
.kc-head__burger-bars {
	display: block;
	width: 22px;
	height: 16px;
	margin: 0 auto;
	background: linear-gradient(
		to bottom,
		currentColor 0 2px, transparent 2px 7px,
		currentColor 7px 9px, transparent 9px 14px,
		currentColor 14px 16px
	);
}

/* Off-canvas panel ------------------------------------------------------- */

.kc-head__scrim {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(51, 51, 51, .5);
	opacity: 0;
	transition: opacity .4s ease;
}

.kc-head__panel {
	position: fixed;
	top: 0;
	left: -350px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	width: 350px;
	max-width: 90vw;
	height: 100%;
	padding: 10px 0;
	background: #f7f7f7;
	overflow-y: auto;
	transition: left .6s cubic-bezier(.6, .1, .68, .53);
}

/* [hidden] is removed by the JS one frame BEFORE .is-open is added, so the
   panel has a painted starting position to animate from. Without that split it
   jumps straight to open — display:none has no transition. */
.kc-head__panel[hidden],
.kc-head__scrim[hidden] {
	display: none;
}

.kc-head__panel.is-open {
	left: 0;
}

.kc-head__scrim.is-open {
	opacity: 1;
}

.kc-head__panel-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	/* The X sits 12px in from the panel edge in the reference (x=293 of 350),
	   not flush against it. */
	padding-right: 12px;
}

.kc-head__panel-logo {
	display: block;
	width: 96px;
}

.kc-head__panel-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.kc-head__panel .kc-head__close {
	width: 45px;
	height: 54px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--kc-head-ink, #000);
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.kc-head__panel-menu {
	display: flex;
	flex-direction: column;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.kc-head__panel-menu a {
	display: block;
	padding: 10px 15px;
	font-size: 15px;
	font-weight: 500;
	line-height: 23px;
	color: var(--kc-head-ink, #000);
	text-decoration: none;
}

.kc-head__panel-menu .current-menu-item > a,
.kc-head__panel-menu .current_page_item > a {
	color: var(--kc-head-muted, #707070);
}

@media (prefers-reduced-motion: reduce) {
	.kc-head__panel,
	.kc-head__scrim {
		transition: none;
	}
}

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

/* 1024px matches Elementor's tablet breakpoint AND the footer above, so the
   whole chrome switches at one width. */
@media (max-width: 1024px) {
	.kc-head__inner {
		/* 20px, not 12: it is the only gap that matters here (the CTA is pushed
		   right with margin-left:auto), and it is what lands the phone button at
		   x=282 like the reference. */
		gap: 20px;
		min-height: 43px;
		padding: 16px;
	}

	.kc-head__logo {
		width: 179px;
	}

	/* The desktop bar is replaced by the panel, not hidden alongside it — two
	   copies of the same menu in the DOM is fine, two VISIBLE copies is not. */
	.kc-head__nav {
		display: none;
	}

	.kc-head .kc-head__burger {
		display: block;
	}

	/* Icon-only, 34x34. The accessible name lives on the <a>'s aria-label, so
	   hiding the label costs nothing to a screen reader. */
	.kc-head__cta {
		margin-left: auto;
		width: 34px;
		height: 34px;
		padding: 0;
		justify-content: center;
	}

	.kc-head__cta-label {
		display: none;
	}
}

@media (min-width: 1025px) {
	.kc-head__panel,
	.kc-head__scrim {
		display: none;
	}
}
