/*
Theme Name: Imacon
Theme URI: https://sites.williarts.com.br/imacon/
Author: Williarts
Description: Tema institucional customizado para a Imacon, desenvolvido a partir do layout aprovado em Adobe XD.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: imacon
*/

/* ==========================================================================
   Fontes (self-hosted — Ubuntu 400/500/700, Poppins 700)
   ========================================================================== */

@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/ubuntu-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/ubuntu-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/ubuntu-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/ubuntu-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/ubuntu-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/ubuntu-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/poppins-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/poppins-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--font-heading: 'Ubuntu', Arial, Helvetica, sans-serif;
	--font-body: 'Ubuntu', Arial, Helvetica, sans-serif;
	--font-credit: 'Poppins', Arial, Helvetica, sans-serif;

	--c-primary: #2576B2;
	--c-primary-dark: #09446F;
	--c-primary-mid: #2776B2;
	--c-primary-soft: #80BAE5;
	--c-accent-light: #C7E2EF;
	--c-text: #23201F;
	--c-gray: #707070;
	--c-white: #FFFFFF;
	--c-whatsapp: #25D366;

	--container-width: 1760px;
	--radius-lg: 24px;
	--radius-md: 12px;
	--shadow-card: 0 10px 30px rgba(0, 0, 0, 0.16);
}

/* ==========================================================================
   Reset base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: clamp(24px, 8vw, 140px);
}

.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;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 20px;
	color: var(--c-white);
	background: var(--c-primary);
	padding: 14px 32px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--c-primary-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--c-accent-light); outline-offset: 2px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background: var(--c-primary);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 96px;
}

.site-logo img { height: 56px; width: auto; }

.header-nav-group { display: flex; align-items: center; gap: 40px; }

.main-nav ul { display: flex; align-items: center; gap: 48px; }

.main-nav a {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 16px;
	color: var(--c-white);
	padding: 8px 2px;
	border-bottom: 2px solid transparent;
	transition: border-color .2s ease;
}
.main-nav a:hover,
.main-nav a.current { border-color: var(--c-white); }

.header-social { display: flex; align-items: center; gap: 16px; }
.header-social a { display: inline-flex; width: 22px; height: 22px; }
.header-social img, .header-social svg { width: 100%; height: 100%; }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--c-white);
	width: 32px; height: 32px;
	cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
	content: "";
	display: block;
	width: 26px;
	height: 3px;
	background: currentColor;
	margin: 5px auto;
	border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; background: #cfd8e0; }
.hero img { width: 100%; height: auto; }
.hero-cta-overlay {
	position: absolute;
	left: 28.2%;
	top: 57%;
	width: 16.6%;
	height: 12%;
	min-width: 140px;
}
.hero-cta-overlay a { display: block; width: 100%; height: 100%; }

/* Banners administráveis pelo painel (mesmo padrão do site Frei Galvão) */
.hero-managed { overflow: hidden; aspect-ratio: 2000 / 550; background: #cfd8e0; }
.imacon-home-banners,
.imacon-banner-slider,
.imacon-banner-slide,
.imacon-banner-slide a { width: 100%; height: 100%; }
.imacon-banner-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease;
	pointer-events: none;
}
.imacon-banner-slide.is-active { opacity: 1; pointer-events: auto; }
.imacon-banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.imacon-banner-slider--mobile { display: none; }

/* ==========================================================================
   About / Sobre
   ========================================================================== */

.about {
	padding: 96px 0;
	position: relative;
	overflow: visible;
}

.about .container {
	display: grid;
	grid-template-columns: minmax(320px, 560px) 1fr;
	gap: 64px;
	align-items: center;
}

.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); }

.about-content h2 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 32px;
	line-height: 1.3;
	max-width: 520px;
	margin-bottom: 24px;
}
.about-content h2 .accent { color: var(--c-primary); }

.about-content p {
	font-size: 17px;
	line-height: 1.55;
	color: var(--c-text);
	margin-bottom: 32px;
	max-width: 620px;
}

.whatsapp-float {
	position: fixed;
	right: 32px;
	bottom: 32px;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--c-whatsapp);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0,0,0,.25);
	z-index: 200;
	transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float img { width: 44px; height: 44px; }

/* ==========================================================================
   Por que escolher
   ========================================================================== */

.why {
	background: linear-gradient(235deg, var(--c-primary-dark) 0%, var(--c-primary-mid) 100%);
	color: var(--c-white);
	padding-top: 96px;
}

.why .container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 56px;
}

.why-media { display: none; }
.why-text { padding-bottom: 96px; }

.why-heading {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 45px;
	line-height: 1.25;
	margin-bottom: 40px;
}
.why-heading .accent { color: var(--c-accent-light); }

.why-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.why-card {
	background: var(--c-white);
	color: var(--c-text);
	border-radius: var(--radius-md);
	padding: 32px 24px;
	box-shadow: var(--shadow-card);
}

.why-card .icon { display: inline-block; width: 56px; height: 56px; margin-bottom: 20px; }
.why-card .icon img, .why-card .icon svg { width: 100%; height: 100%; }

.why-card h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	color: var(--c-primary-mid);
	line-height: 1.35;
	margin-bottom: 12px;
}

.why-card p { font-size: 17px; line-height: 1.65; color: var(--c-text); }

/* ==========================================================================
   Produtos
   ========================================================================== */

.products { padding: 96px 0; }

.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.product-card { text-align: center; }
.product-card img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); margin-bottom: 20px; }

.product-card h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	color: var(--c-text);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
	background: var(--c-text);
	color: var(--c-white);
	padding: 64px 0;
	text-align: center;
}
.cta-banner h2 {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 25px;
	margin-bottom: 16px;
}
.cta-banner p {
	font-size: 17px;
	max-width: 820px;
	margin: 0 auto 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--c-primary); color: var(--c-white); padding: 56px 0 28px; }

.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	padding-bottom: 32px;
}

.footer-logo { background: var(--c-white); border-radius: var(--radius-md); padding: 18px 28px; }
.footer-logo img { height: 84px; width: auto; }

.footer-col h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 19px;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-bottom: 14px;
}

.footer-col address,
.footer-col p {
	font-style: normal;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.7;
}

.footer-phone {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 21px;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a { display: inline-flex; width: 25px; height: 25px; }
.footer-social img, .footer-social svg { width: 100%; height: 100%; }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.25);
	padding-top: 20px;
	text-align: right;
}
.footer-bottom p {
	font-family: var(--font-credit);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .02em;
}

/* ==========================================================================
   Página de produtos
   ========================================================================== */

.products-page { padding: 96px 0; }

.products-page-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 56px;
}
.products-page-header h1 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 40px;
	color: var(--c-primary);
	margin-bottom: 16px;
}
.products-page-header p { font-size: 18px; color: var(--c-gray); }

a.product-card { display: block; transition: transform .2s ease; }
a.product-card:hover { transform: translateY(-4px); }

.product-single { padding: 72px 0 96px; }

.product-back {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 500;
	color: var(--c-primary);
	margin-bottom: 40px;
}
.product-back:hover { text-decoration: underline; }

.product-single-grid {
	display: grid;
	grid-template-columns: minmax(320px, 560px) 1fr;
	gap: 64px;
	align-items: start;
}

.willis-product-gallery { width: 100%; display: flex; flex-direction: column; }
.willis-product-gallery-main { order: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.willis-product-gallery-thumbs { order: 2; margin-top: 16px; margin-bottom: 0; }
.willis-product-gallery-thumbs button.is-active { border-color: var(--c-primary) !important; }

.product-single-content h1 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 32px;
	color: var(--c-text);
	margin-bottom: 24px;
}
.product-single-description {
	font-size: 17px;
	line-height: 1.65;
	color: var(--c-text);
	margin-bottom: 32px;
}
.product-single-description p { margin-bottom: 1em; }
.product-single-cta { margin-left: 12px; background: var(--c-text); }
.product-single-cta:hover { background: #000; }

/* ==========================================================================
   Página de contato
   ========================================================================== */

.contact-page { padding: 96px 0; }

.contact-page-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 48px;
}
.contact-page-header h1 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 40px;
	color: var(--c-primary);
	margin-bottom: 16px;
}
.contact-page-header p { font-size: 18px; color: var(--c-gray); }

.contact-notice {
	max-width: 640px;
	margin: 0 auto 32px;
	padding: 16px 20px;
	border-radius: var(--radius-md);
	font-family: var(--font-heading);
	font-weight: 500;
	text-align: center;
}
.contact-notice-ok { background: #e3f5e9; color: #1e7a44; }
.contact-notice-erro { background: #fce8e6; color: #b3261e; }

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 640px;
	margin: 0 auto;
}
.contact-form label {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 15px;
	color: var(--c-text);
	margin-top: 16px;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form textarea {
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--c-text);
	border: 1px solid #d7dde3;
	border-radius: 6px;
	padding: 12px 14px;
	resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px var(--c-accent-light);
}
.contact-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-gray);
	cursor: pointer;
}
.contact-consent input[type="checkbox"] {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: var(--c-primary);
}
.contact-form button.btn { margin-top: 24px; align-self: flex-start; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Quem Somos
   ========================================================================== */

.about-page { padding: 96px 0; }

.about-page-grid {
	display: grid;
	grid-template-columns: minmax(280px, 480px) 1fr;
	gap: 64px;
	align-items: center;
}

.about-page-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

.about-page-content h1 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 40px;
	color: var(--c-primary);
	margin-bottom: 24px;
}
.about-page-content p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--c-text);
	margin-bottom: 20px;
}

/* ==========================================================================
   Página placeholder
   ========================================================================== */

.page-placeholder {
	padding: 120px 0;
	text-align: left;
	overflow-x: hidden;
}
.page-placeholder .container { max-width: 1200px; }
.page-placeholder h1 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 40px;
	color: var(--c-primary);
	margin-bottom: 28px;
}
.page-placeholder p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--c-text);
	margin-bottom: 20px;
}
.page-placeholder h2 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--c-primary);
	margin-top: 8px;
	margin-bottom: 16px;
}
.page-placeholder h3 {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 19px;
	color: var(--c-text);
	margin-top: 24px;
	margin-bottom: 10px;
}
.page-placeholder ul {
	list-style: disc;
	padding-left: 22px;
	margin-bottom: 20px;
}
.page-placeholder li { font-size: 17px; line-height: 1.65; color: var(--c-text); margin-bottom: 8px; }
.page-placeholder a { color: var(--c-primary); text-decoration: underline; }

.client-logos-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 24px 0 40px;
	max-width: 100%;
}
.client-logo {
	padding: 20px;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}
.client-logo img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }

/* ==========================================================================
   Páginas legais (Política de Privacidade)
   ========================================================================== */

.legal-page { padding: 96px 0; }

.legal-page-header { max-width: 760px; margin: 0 auto 40px; }
.legal-page-header h1 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 40px;
	color: var(--c-primary);
}

.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content p { font-size: 16px; line-height: 1.7; color: var(--c-text); margin-bottom: 20px; }
.legal-content h2 {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--c-primary);
	margin-top: 48px;
	margin-bottom: 16px;
}
.legal-content h3 {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 18px;
	color: var(--c-text);
	margin-top: 28px;
	margin-bottom: 10px;
}
.legal-content ul {
	list-style: disc;
	padding-left: 22px;
	margin-bottom: 20px;
}
.legal-content li { font-size: 16px; line-height: 1.7; color: var(--c-text); margin-bottom: 8px; }
.legal-content a { color: var(--c-primary); text-decoration: underline; }

/* ==========================================================================
   Aviso de cookies
   ========================================================================== */

.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 300;
	background: var(--c-text);
	color: var(--c-white);
	padding: 18px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 14px; line-height: 1.6; margin: 0; max-width: 900px; }
.cookie-banner a { text-decoration: underline; color: inherit; }
.cookie-banner-btn {
	flex-shrink: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 15px;
	border: none;
	border-radius: 6px;
	padding: 12px 32px;
	cursor: pointer;
}
.cookie-banner-btn:hover { background: var(--c-accent-light); }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
	.about .container,
	.why .container,
	.product-single-grid,
	.about-page-grid { grid-template-columns: 1fr; }
	.why-cards { grid-template-columns: 1fr 1fr; }
	.products-grid { grid-template-columns: 1fr 1fr; }
	.footer-top { gap: 40px; }
	.client-logos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.main-nav { display: none; }
	.main-nav.is-open {
		display: block;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--c-primary);
		padding: 16px 24px 24px;
	}
	.main-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 16px; }
	.nav-toggle { display: block; }

	.why-heading { font-size: 34px; }
	.why-cards { grid-template-columns: 1fr; }
	.products-grid { grid-template-columns: 1fr; }
	.client-logos-grid { grid-template-columns: 1fr 1fr; }
	.footer-top { flex-direction: column; align-items: center; gap: 32px; text-align: center; }
	.footer-social { justify-content: center; }
	.footer-bottom { text-align: center; }
	.footer-col address { font-size: 14px; }

	.about, .why, .products { padding: 64px 0; }

	.hero-cta-overlay { min-width: 100px; }

	.cookie-banner { flex-direction: column; align-items: stretch; text-align: center; padding: 16px 20px; }
	.cookie-banner-btn { width: 100%; }

	.imacon-home-banners.has-mobile .imacon-banner-slider--desktop { display: none; }
	.imacon-home-banners.has-mobile .imacon-banner-slider--mobile { display: block; }
	.hero-managed:has(.imacon-banner-slider--mobile) { aspect-ratio: 1080 / 1350; }
}
