/* ==========================================================================
   CTO Home (M0 spike) — hero section only
   Extracted from the frozen mockup: brain/output/mockups/CTO-site-soft-redesign
   (styles.css, Proposal A tokens). Scoped under .cto-home so nothing here
   affects the rest of the OceanWP site. Loaded only on the CTO Home template.
   ========================================================================== */

.cto-home {
	/* Proposal A (theme-a) tokens the home depends on. */
	--ink:        #262321;
	--ink-soft:   #5c554e;   /* muted meta text */
	--accent:     #EF1C1C;   /* live-site red CTA */
	--accent-ink: #ffffff;
	--radius:     6px;

	--cream:       #FBF9F4;  /* ambient cream, near-white warm (cream delta) */
	--card-fill:   #FFFFFF;  /* quiet cards: white on cream frame */
	--hairline:    #ECE7DC;  /* warm hairline separating card from frame */
	--card-shadow: 0 1px 2px rgba(60,50,35,0.06);

	--accent-wash-1: rgba(239,28,28,.16);
	--accent-wash-2: rgba(239,28,28,.04);

	--font-body:  "Helvetica Neue", Arial, "Segoe UI", Roboto, system-ui, sans-serif;
	--font-ui:    system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--space-1: 8px;
	--space-2: 16px;
	--space-3: 24px;
	--space-4: 40px;
	--space-section: 64px;   /* generous white / air */

	--maxw-page: 1180px;

	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.cto-home * { box-sizing: border-box; }
.cto-home img { max-width: 100%; display: block; }

/* Content shell (centered column inside the full-bleed hero). */
.cto-home .shell {
	max-width: var(--maxw-page);
	margin: 0 auto;
	padding: 0 var(--space-3);
}

/* ---- HERO with self-hosted background video ----------------------------- */
.cto-home .hero-video {
	position: relative;
	overflow: hidden;
	min-height: 560px;
	background: #0b0b0b;                 /* fallback behind the video */
	display: flex;
	align-items: center;
}
.cto-home .hero-video .video-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	border: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}
.cto-home .hero-video .overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.45));
}
.cto-home .hero-video .shell {
	position: relative;
	z-index: 2;
	padding-top: 70px;
	padding-bottom: 70px;
}
.cto-home .hero-video .kicker {
	font-family: var(--font-ui);
	text-transform: uppercase;
	letter-spacing: .28em;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	opacity: .85;
	margin: 0 0 var(--space-2);
}
.cto-home .hero-video h1 {
	color: #fff;
	font-weight: 300;
	font-size: 46px;
	line-height: 1.12;
	margin: 0 0 var(--space-3);
	max-width: 20ch;
}
.cto-home .hero-video .lede {
	color: rgba(255,255,255,.92);
	font-size: 17px;
	line-height: 1.7;
	max-width: 62ch;
	margin: 0 0 var(--space-4);
}

/* ---- Button (hero CTA) -------------------------------------------------- */
.cto-home .btn {
	font-family: var(--font-ui);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--accent-ink);
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.cto-home .btn:hover { filter: brightness(1.06); }

/* Visible focus for the CTA (a11y). */
.cto-home a:focus-visible,
.cto-home button:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---- Split section heading: divider bar + light word + bold word -------- */
.cto-home .heading-split {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 var(--space-4);
}
.cto-home .heading-split .rule {
	width: 3px;
	align-self: stretch;
	min-height: 30px;
	background: var(--accent);
	flex: 0 0 auto;
}
.cto-home .heading-split h2 {
	margin: 0;
	font-size: 26px;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ink);
	font-weight: 300;
}
.cto-home .heading-split h2 b { font-weight: 800; }

/* ---- FIQUE POR DENTRO (CREAM DELTA) ------------------------------------- */
.cto-home .fpd {
	background: var(--cream);
	padding: var(--space-section) 0;
}
.cto-home .fpd-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--space-4) var(--space-2);
}
.cto-home .fpd-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	padding: 6px 4px;
}
.cto-home .fpd-ico {
	/* Real red brand PNGs from the live site (transparent bg). Sized to match
	   the live WordPress render: scale to the cell, cap at 160px. */
	width: 100%;
	max-width: 160px;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
	object-position: left center;
	display: block;
}
.cto-home .fpd-cat {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: lowercase;
	color: var(--ink-soft);
}
.cto-home .fpd-label {
	font-size: 15px;
	font-weight: 800;
	color: var(--ink);
	line-height: 1.25;
}
.cto-home .fpd-item:hover .fpd-label { color: var(--accent); }

/* ---- ULTIMAS NOTICIAS (CREAM DELTA) ------------------------------------- */
.cto-home .noticias {
	background: var(--cream);
	padding: var(--space-section) 0;
}
.cto-home .cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-3);
}
/* Hidden cards (beyond the current batch) and the button once exhausted. */
.cto-home [hidden] { display: none !important; }
.cto-home .card {
	background: var(--card-fill);
	border: 1px solid var(--hairline);
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.cto-home .card:hover { transform: translateY(-2px); }
.cto-home .card .photo {
	aspect-ratio: 4 / 3;
	position: relative;
	overflow: hidden;
	/* red-tint placeholder shows through when a post has no featured image */
	background:
		linear-gradient(135deg, var(--accent-wash-1), var(--accent-wash-2)),
		repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 12px, transparent 12px 24px),
		var(--hairline);
	display: grid;
	place-items: center;
}
.cto-home .card .photo span {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-soft);
	opacity: .7;
}
/* Real featured image fills the card photo box (crops to 4:3). Absolutely
   positioned so the img's intrinsic ratio can't push .photo taller. */
.cto-home .card .photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cto-home .card .card-title {
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	padding: var(--space-2);
	margin: 0;
	/* Explicit: OceanWP styles headings white on this site, which would make the
	   card title invisible on the white card. The mockup relied on color:inherit. */
	color: var(--ink);
}
/* 2-line ellipsis on an INNER span (the flex-item .card-title blockifies
   -webkit-box and would kill the clamp; the span stays in normal flow). */
.cto-home .card .card-title .clamp {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cto-home .card .card-more {
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--accent);
	padding: 0 var(--space-2) var(--space-2);
	margin: 0;
}
.cto-home .load-more-wrap {
	text-align: center;
	margin-top: var(--space-4);
}
/* FIX 1 (vuelta 5): the "Carregar mais" <button> was rendering as a full-width
   red block (the button element picked up a full width in this context). Make it
   hug its text with comfortable padding and center it in the row, matching the
   CTA visual weight. The 3->6->9 reveal (cto-home.js) is unaffected. */
.cto-home .load-more-wrap .btn {
	width: auto;
	max-width: 100%;
	padding: 12px 28px;
}

/* ---- NOSSA MISSAO (BLACK, untouched) ------------------------------------ */
.cto-home .mission {
	background: #111;
	color: #f4f1ea;
	padding: var(--space-section) 0;
}
.cto-home .mission .cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
	align-items: start;
}
.cto-home .mission .heading-split h2 { color: #fff; }
.cto-home .mission .statement {
	font-size: 26px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
	margin: 0 0 var(--space-3);
	max-width: 20ch;
}
.cto-home .mission .desc {
	color: #b9b3aa;
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
	max-width: 46ch;
}
.cto-home .pillars {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3) var(--space-4);
}
.cto-home .pillar b {
	display: block;
	font-size: 19px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 4px;
}
.cto-home .pillar span {
	color: #b9b3aa;
	font-size: 14px;
	line-height: 1.5;
}

/* ---- CONTATO (team photo bg, untouched) --------------------------------- */
.cto-home .contato {
	position: relative;
	overflow: hidden;
	min-height: 640px;                    /* taller frame so full heads fit, no crop */
	display: flex;
	align-items: center;                  /* vertically center the Contato panel */
	padding: 40px 0;
	color: #fff;
	/* Real team photo (Lapa building). URL is relative to this stylesheet at
	   /assets/css/, so ../contato-equipe.jpg resolves to /assets/. */
	background:
		url("../contato-equipe.jpg") center 82% / cover no-repeat,
		linear-gradient(120deg, #6d4a34, #3a2418);
}
.cto-home .contato::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.5);
}
.cto-home .contato .shell {
	position: relative;
	z-index: 2;
	width: 100%;
}
.cto-home .contato .panel {
	max-width: 460px;
	margin-left: auto;
	text-align: left;
}
.cto-home .contato h2 {
	font-size: 34px;
	font-weight: 300;
	margin: 0 0 var(--space-2);
	color: #fff;
}
.cto-home .contato p {
	color: rgba(255,255,255,.9);
	margin: 0 0 var(--space-3);
	line-height: 1.7;
}
.cto-home .contato .field {
	display: block;
	font-weight: 800;
	margin: 2px 0;
	color: #fff;
}
.cto-home .contato .btn { margin-top: var(--space-3); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
	.cto-home .fpd-grid { grid-template-columns: repeat(3, 1fr); }
	.cto-home .cards { grid-template-columns: repeat(2, 1fr); }
	.cto-home .mission .cols { grid-template-columns: 1fr; }
	.cto-home .contato .panel { margin-left: 0; }
	.cto-home .hero-video h1 { font-size: 34px; }
}
@media (max-width: 640px) {
	.cto-home .hero-video h1 { font-size: 34px; }
	.cto-home .hero-video .shell { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 560px) {
	.cto-home .fpd-grid { grid-template-columns: repeat(2, 1fr); }
	.cto-home .cards { grid-template-columns: 1fr; }
	.cto-home .pillars { grid-template-columns: 1fr; }
	.cto-home .hero-video { min-height: 480px; }
	.cto-home .hero-video h1 { font-size: 28px; }
	.cto-home .heading-split h2 { font-size: 22px; }
}
