/* ==========================================================================
   Westh Energia — Estilos do tema
   Sumário:
   1. Variáveis / Reset
   2. Tipografia base
   3. Utilitários (container, botões, eyebrow, reveal)
   4. Header
   5. Hero
   6. Sobre + Diferenciais
   7. Serviços
   8. CTA
   9. Contato
   10. Footer + WhatsApp flutuante
   11. Templates internos (blog, página, 404)
   12. Responsivo
   ========================================================================== */

/* 1. Variáveis / Reset ----------------------------------------------------- */
:root {
	--color-dark: #12161f;
	--color-dark-2: #1b2130;
	--color-red: #e3001b;
	--color-light: #f5f6f8;
	--color-white: #ffffff;
	--color-text: #232733;
	--color-muted: #6b7280;
	--color-border: #e7e8ec;

	--font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 22px;
	--shadow-sm: 0 4px 14px rgba(18, 22, 31, 0.06);
	--shadow: 0 16px 40px rgba(18, 22, 31, 0.10);
	--shadow-lg: 0 24px 60px rgba(18, 22, 31, 0.16);
	--container: 1180px;
	--header-h: 84px;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-white);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

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

button {
	font-family: inherit;
	cursor: pointer;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
	color: var(--color-dark);
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; margin-bottom: 10px; }

p { margin: 0 0 16px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: -60px;
	left: 12px;
	background: var(--color-dark);
	color: #fff;
	padding: 12px 18px;
	border-radius: var(--radius-sm);
	z-index: 9999;
	transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* 3. Utilitários ------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
.container--narrow { max-width: 820px; }

.section { padding: 96px 0; }
.section--sobre { background: var(--color-white); }
.section--servicos { background: var(--color-light); }
.section--contato { background: var(--color-white); }

.section-head {
	max-width: 680px;
	margin: 0 auto 56px;
	text-align: center;
}
.section-head .lead { color: var(--color-muted); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-red);
	margin: 0 0 14px;
}
.eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--color-red);
	display: inline-block;
}
.eyebrow--light { color: #ff8a94; }
.eyebrow--light::before { background: #ff8a94; }

.lead {
	font-size: 1.08rem;
	color: var(--color-muted);
}

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Botões */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.98rem;
	border: 2px solid transparent;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease, color .18s ease;
	white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
	background: var(--color-red);
	color: #fff;
	box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--color-red) 70%, transparent);
}
.btn--primary:hover { filter: brightness(0.92); }

.btn--outline {
	background: transparent;
	border-color: rgba(18, 22, 31, 0.16);
	color: var(--color-dark);
}
.btn--outline:hover { border-color: var(--color-dark); background: var(--color-dark); color: #fff; }

.hero .btn--outline {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}
.hero .btn--outline:hover { background: #fff; color: var(--color-dark); border-color: #fff; }

.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

.btn--whatsapp {
	background: #25d366;
	color: #fff;
}
.btn--whatsapp:hover { filter: brightness(0.94); }

.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-light);
	color: var(--color-dark);
	transition: transform .18s ease, background-color .18s ease;
}
.btn-icon:hover { transform: translateY(-2px) scale(1.04); }
.btn-icon--whatsapp { background: #25d366; color: #fff; }
.btn-icon svg { width: 20px; height: 20px; }

.westh-icon { width: 22px; height: 22px; }

/* 4. Header ----------------------------------------------------------------- */
.site-header {
	/* Sem backdrop-filter/transform aqui de propósito: qualquer uma dessas
	   propriedades criaria um novo "containing block" para o menu mobile
	   (position: fixed) que vive dentro deste header, quebrando seu
	   posicionamento em tela cheia. */
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(18, 22, 31, 0.08);
	border-bottom-color: var(--color-border);
}

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

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.site-logo img { max-height: 56px; width: auto; }
.site-logo__mark {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.6rem;
	color: var(--color-dark);
	background: var(--color-light);
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.site-logo__mark .accent { color: var(--color-red); }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo__text strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-dark); }
.site-logo__text small { font-size: 0.72rem; color: var(--color-muted); letter-spacing: .04em; text-transform: uppercase; }

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 34px;
}
.site-nav__list a {
	font-weight: 600;
	font-size: 0.96rem;
	color: var(--color-text);
	position: relative;
	padding: 6px 0;
}
.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--color-red);
	transition: right .22s ease;
}
.site-nav__list a:hover::after,
.site-nav__list a:focus::after { right: 0; }

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}
.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 0.94rem;
	color: var(--color-dark);
}
.header-phone__icon { width: 18px; height: 18px; color: var(--color-red); }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: var(--color-light);
	color: var(--color-dark);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* 5. Hero --------------------------------------------------------------------*/
.hero {
	position: relative;
	background: var(--color-dark);
	color: #fff;
	padding: 110px 0 90px;
	overflow: hidden;
}
.hero--has-image {
	background-size: cover;
	background-position: center;
}
.hero--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg, rgba(18, 22, 31, .95) 0%, rgba(18, 22, 31, .88) 45%, rgba(18, 22, 31, .58) 100%);
}
.hero__shapes {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}
.hero__shape {
	position: absolute;
	display: block;
}
.hero__shape--dark {
	width: 620px;
	height: 620px;
	right: -220px;
	top: -260px;
	background: linear-gradient(135deg, #232a3b, #0b0e14);
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 30%);
	opacity: .9;
}
.hero__shape--red {
	width: 340px;
	height: 340px;
	right: -60px;
	top: 40px;
	background: var(--color-red);
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 30%);
	opacity: .92;
}

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 700px; }
.hero__title {
	color: #fff;
	margin-bottom: 20px;
}
.hero__subtitle {
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.12rem;
	max-width: 600px;
	margin-bottom: 34px;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 56px;
}

/* 6. Sobre + Diferenciais ---------------------------------------------------- */
.sobre__grid { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.sobre__text .eyebrow { justify-content: center; }
.sobre__text .eyebrow::before { display: none; }

.diferenciais__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.diff-card {
	background: var(--color-light);
	border-radius: var(--radius);
	padding: 30px 26px;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.diff-card:hover {
	background: var(--color-white);
	box-shadow: var(--shadow);
	transform: translateY(-6px);
}
.diff-card__icon {
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: var(--color-red);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}
.diff-card__icon svg { width: 26px; height: 26px; }
.diff-card p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

/* 7. Serviços ----------------------------------------------------------------*/
.servicos__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.servico-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 32px 28px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	display: block;
}
.servico-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
	border-color: transparent;
}
.servico-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 13px;
	background: color-mix(in srgb, var(--color-red) 10%, white);
	color: var(--color-red);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}
.servico-card__icon svg { width: 25px; height: 25px; }
.servico-card p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

.servico-card--com-imagem { padding: 0; overflow: hidden; }
.servico-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-light);
}
.servico-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.servico-card:hover .servico-card__media img { transform: scale(1.06); }
.servico-card__icon--sobre-imagem {
	position: absolute;
	left: 22px;
	bottom: -22px;
	margin-bottom: 0;
	border: 3px solid var(--color-white);
	box-shadow: 0 10px 22px -8px rgba(18, 22, 31, .4);
}
.servico-card--com-imagem .servico-card__body { padding: 32px 26px 26px; }

.servicos__vazio {
	text-align: center;
	background: var(--color-white);
	border: 1px dashed var(--color-border);
	border-radius: var(--radius);
	padding: 40px;
}
.servicos__vazio a { color: var(--color-red); font-weight: 700; }

/* 8. CTA ---------------------------------------------------------------------*/
.cta {
	position: relative;
	background: linear-gradient(135deg, var(--color-dark), #232a3b);
	color: #fff;
	padding: 90px 0;
	overflow: hidden;
	text-align: center;
}
.cta__shapes span {
	position: absolute;
	width: 480px;
	height: 480px;
	right: -180px;
	bottom: -220px;
	background: var(--color-red);
	opacity: .18;
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 30%);
}
.cta__inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.72); font-size: 1.08rem; margin-bottom: 34px; }

/* 9. Contato -------------------------------------------------------------------*/
.contato__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-bottom: 32px;
}
.contato-card {
	background: var(--color-light);
	border-radius: var(--radius);
	padding: 30px 24px;
	text-align: center;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.contato-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
	background: var(--color-white);
}
.contato-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--color-red);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}
.contato-card__icon svg { width: 24px; height: 24px; }
.contato-card__icon--whatsapp { background: #25d366; }
.contato-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.contato-card p { margin: 0; color: var(--color-muted); font-size: 0.92rem; word-break: break-word; }

.contato__horario {
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--color-muted);
	font-weight: 600;
}
.contato__horario svg { width: 18px; height: 18px; color: var(--color-red); }

/* 10. Footer + WhatsApp flutuante ----------------------------------------------*/
.site-footer {
	background: var(--color-dark);
	color: rgba(255, 255, 255, 0.78);
	padding-top: 80px;
}
.footer-top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 56px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .site-logo__text strong { color: #fff; }
.footer-brand .site-logo__mark { background: rgba(255, 255, 255, 0.08); color: #fff; }
.footer-brand__text { margin: 18px 0 22px; font-size: 0.92rem; max-width: 320px; }

.footer-col h3 {
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.86rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.94rem; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }

.footer-contact-list li { display: block; }
.footer-contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
}
.footer-contact-item__icon { width: 17px; height: 17px; color: var(--color-red); flex-shrink: 0; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .18s ease, transform .18s ease;
}
.footer-social a:hover { background: var(--color-red); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }

.footer-bottom {
	padding: 24px 0;
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
}

.whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #25d366;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
	z-index: 600;
	animation: westh-pulse 2.4s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }
.whatsapp-float:hover { animation-play-state: paused; }

@keyframes westh-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 12px 30px -8px rgba(37, 211, 102, 0.6); }
	70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 12px 30px -8px rgba(37, 211, 102, 0.6); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 12px 30px -8px rgba(37, 211, 102, 0.6); }
}

.back-to-top {
	position: fixed;
	right: 22px;
	bottom: 92px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 600;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.back-to-top svg { width: 20px; height: 20px; color: #fff; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* 11. Templates internos --------------------------------------------------------*/
.page-banner {
	background: var(--color-dark);
	color: #fff;
	padding: 70px 0;
	text-align: center;
}
.page-banner h1 { color: #fff; margin: 0; }
.page-banner .eyebrow { justify-content: center; }

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.post-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	padding: 0 0 26px;
}
.post-card__thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 1.15rem; padding: 22px 22px 0; margin-bottom: 6px; }
.post-card > p, .post-card .post-card__meta, .post-card > a { padding-left: 22px; padding-right: 22px; }
.post-card__meta { color: var(--color-muted); font-size: 0.82rem; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }

.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }

.single-servico__cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
}

.error-404 { padding: 130px 0; }
.error-404 .btn { margin-top: 10px; }

/* 12. Responsivo -----------------------------------------------------------------*/
@media (max-width: 1023px) {
	.diferenciais__grid,
	.contato__grid { grid-template-columns: repeat(2, 1fr); }
	.servicos__grid,
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.site-nav {
		position: fixed;
		top: var(--header-h);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 480;
		background: #fff;
		padding: 28px 24px;
		transform: translateX(100%);
		transition: transform .3s ease;
		overflow-y: auto;
	}
	.site-nav.is-open { transform: translateX(0); }
	.site-nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
	.site-nav__list a { display: block; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--color-border); }
	.header-phone span { display: none; }
	.nav-toggle { display: inline-flex; }
}

@media (max-width: 680px) {
	.section { padding: 68px 0; }
	.hero { padding: 90px 0 60px; }
	.diferenciais__grid,
	.contato__grid,
	.servicos__grid,
	.posts-grid { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; }
	.hero__actions .btn { width: 100%; }
	.hero__shape--dark { width: 420px; height: 420px; right: -180px; top: -200px; }
	.hero__shape--red { width: 220px; height: 220px; right: -40px; top: 20px; }
	.whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
	.back-to-top { right: 16px; bottom: 82px; }
}
