/*
Theme Name: Tirentulho Papa Tudo
Theme URI: https://tirentulhojatai.com.br
Author: Telex
Description: Bold, industrial-strength WordPress block theme for Tirentulho Papa Tudo — waste management and equipment rental services in Jataí, Goiás. Features a high-visibility construction palette, condensed industrial typography, and modular drag-and-drop-ready layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tirentulho-papa-tudo
Tags: full-site-editing, block-themes, one-column, custom-colors, custom-fonts, featured-images, wide-blocks
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ==========================================================================
   Reset & Foundations
   ========================================================================== */

:root,
body,
.wp-site-blocks {
	overflow: visible;
}

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

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

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--charcoal);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.site-header {
	transition: padding 0.25s ease;
}

/* ==========================================================================
   Typography Polish
   ========================================================================== */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	margin-bottom: 0;
}

p {
	margin-top: 0;
}

/* Bebas Neue needs a tighter tracking for smaller sizes */
h4, h5, h6 {
	letter-spacing: 0.03em;
}

/* Body text — Barlow Semi Condensed at medium weight for better legibility */
.has-body-font-family {
	font-weight: 400;
}

/* Strong/bold in body text */
strong,
b {
	font-weight: 600;
}

/* Captions and small print */
figcaption,
.wp-element-caption {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-top: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   Link Styles
   ========================================================================== */

a {
	transition: color 0.2s ease;
}

a:focus-visible {
	outline: 2px solid var(--wp--preset--color--yellow);
	outline-offset: 2px;
}

/* ==========================================================================
   Button Variants & Polish
   ========================================================================== */

.wp-block-button .wp-block-button__link {
	transition: all 0.2s ease;
	font-weight: 400;
	text-decoration: none;
	cursor: pointer;
}

/* Primary (filled) button — industrial box-shadow like the reference */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	box-shadow: 4px 4px 0px var(--wp--preset--color--black);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0px var(--wp--preset--color--black);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0px var(--wp--preset--color--black);
}

/* Outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
	border-style: solid;
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	border-color: var(--wp--preset--color--white);
}

/* WhatsApp-themed button */
.wp-block-button.is-style-whatsapp .wp-block-button__link {
	background-color: var(--wp--preset--color--green);
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--black);
	box-shadow: 4px 4px 0px var(--wp--preset--color--black);
}

.wp-block-button.is-style-whatsapp .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0px var(--wp--preset--color--black);
}

/* ==========================================================================
   Navigation — Desktop & Overlay
   ========================================================================== */

.wp-block-navigation a {
	text-decoration: none;
	transition: color 0.2s ease;
	position: relative;
}

.wp-block-navigation a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--wp--preset--color--yellow);
	transition: width 0.3s ease;
}

.wp-block-navigation a:hover::after,
.wp-block-navigation a:focus::after {
	width: 100%;
}

/* Mobile hamburger overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* ==========================================================================
   Images — Industrial Zero-Radius Treatment
   ========================================================================== */

.wp-block-image img {
	border-radius: 0;
	display: block;
	width: 100%;
	height: auto;
}

/* High-contrast image treatment for construction imagery */
.wp-block-image.is-style-industrial img {
	filter: contrast(1.05) saturate(0.95);
}

.wp-block-image.is-style-industrial img:hover {
	filter: contrast(1.1) saturate(1);
}

/* Gallery images */
.wp-block-gallery .wp-block-image img {
	transition: filter 0.3s ease, transform 0.3s ease;
}

.wp-block-gallery .wp-block-image img:hover {
	filter: contrast(1.08);
	transform: scale(1.02);
}

/* ==========================================================================
   Cover Block — Hero Overlays
   ========================================================================== */

.wp-block-cover {
	overflow: hidden;
}

.wp-block-cover .wp-block-cover__inner-container {
	z-index: 10;
	position: relative;
}

/* Hazard-stripe pattern overlay for hero covers */
.wp-block-cover.has-pattern-overlay::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 15px,
		rgba(0, 0, 0, 0.06) 15px,
		rgba(0, 0, 0, 0.06) 30px
	);
	z-index: 2;
	pointer-events: none;
	mix-blend-mode: overlay;
}

/* ==========================================================================
   Service Cards & Benefit Blocks
   ========================================================================== */

/* Card base — clean, industrial, no rounding */
.service-card,
.benefit-block {
	border: 2px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover,
.benefit-block:hover {
	border-color: var(--wp--preset--color--red);
	box-shadow: 4px 4px 0px var(--wp--preset--color--red);
	transform: translate(-2px, -2px);
}

/* Yellow top-bar accent on service cards */
.service-card::before {
	content: '';
	display: block;
	height: 4px;
	background: var(--wp--preset--color--yellow);
	margin-bottom: var(--wp--preset--spacing--30);
}

/* ==========================================================================
   Drag-and-Drop Sortable Feedback
   ========================================================================== */

.sortable-section .ui-sortable-handle {
	cursor: grab;
}

.sortable-section .ui-sortable-handle:active {
	cursor: grabbing;
}

.sortable-section .ui-sortable-helper {
	opacity: 0.85;
	box-shadow: 8px 8px 0px var(--wp--preset--color--black);
	transform: rotate(1deg);
	z-index: 1000;
}

.sortable-section .ui-sortable-placeholder {
	visibility: visible !important;
	border: 3px dashed var(--wp--preset--color--yellow);
	background: rgba(255, 193, 7, 0.08);
	border-radius: 0;
	min-height: 120px;
}

/* ==========================================================================
   Separator / Divider
   ========================================================================== */

.wp-block-separator {
	border: none;
	opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 80px;
	height: 4px;
	background: var(--wp--preset--color--red);
}

.wp-block-separator.is-style-wide {
	height: 2px;
}

/* ==========================================================================
   Quote Block — Industrial Border
   ========================================================================== */

.wp-block-quote {
	padding-left: var(--wp--preset--spacing--40);
}

.wp-block-quote cite {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ==========================================================================
   Site Title
   ========================================================================== */

.wp-block-site-title a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-site-title a:hover {
	color: var(--wp--preset--color--yellow);
}

/* ==========================================================================
   Badge / Tag utility (green accent — display only, never body text)
   ========================================================================== */

.badge-green {
	display: inline-block;
	background-color: var(--wp--preset--color--green);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.2em 0.8em;
	line-height: 1.4;
}

/* ==========================================================================
   Columns — Responsive Stacking
   ========================================================================== */

@media (max-width: 781px) {
	.wp-block-columns {
		flex-wrap: wrap;
	}

	.wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ==========================================================================
   Forms (Contact Section)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--black);
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--30);
	width: 100%;
	transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--wp--preset--color--red);
	box-shadow: 0 0 0 1px var(--wp--preset--color--red);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231A1A1A' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

/* ==========================================================================
   Mono utility — phone numbers, addresses
   ========================================================================== */

.has-mono-font-family {
	letter-spacing: 0.02em;
}

/* ==========================================================================
   Yellow highlight border-left (used on hero subtitle, callouts)
   ========================================================================== */

.yellow-border-left {
	border-left: 6px solid var(--wp--preset--color--yellow);
	padding-left: var(--wp--preset--spacing--40);
}

/* ==========================================================================
   Scroll-state header text inversion (Variant 2 — safe for style.css)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.wp-site-blocks > header.wp-block-template-part > .wp-block-group {
		transition: background-color 0.3s ease, color 0.3s ease;
	}
}

/* ==========================================================================
   Loop layout utilities
   ========================================================================== */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}

.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--border);
	opacity: 0.5;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--red);
	border-radius: 50%;
	background: var(--wp--preset--color--offwhite);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}

@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}

/* ==========================================================================
   Utility — Section backgrounds with full-bleed color
   ========================================================================== */

.has-red-background-color {
	background-color: var(--wp--preset--color--red);
}

.has-charcoal-background-color {
	background-color: var(--wp--preset--color--charcoal);
}

.has-black-background-color {
	background-color: var(--wp--preset--color--black);
}

/* ==========================================================================
   Accessibility — Focus styles
   ========================================================================== */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--yellow);
	outline-offset: 2px;
}

/* Skip link */
.skip-link {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--medium);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	text-decoration: none;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.site-header,
	.wp-block-navigation,
	.wp-block-button,
	.scroll-progress {
		display: none !important;
	}

	body {
		color: #000;
		background: #fff;
		font-size: 12pt;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #555;
	}
}