/*
Theme Name: Casa de Ferro
Description: Site institucional de marketing e vendas para academias de bairro.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: casa-de-ferro
*/

@font-face {
	font-family: "Barlow Condensed";
	src: url("assets/barlow-condensed-bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: url("assets/inter.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	color-scheme: light;
	--base: #fdfdfb;
	--surface: #f0f0ed;
	--text: #171715;
	--muted: #52524d;
	--line: #d6d6cf;
	--dark: #1b1b19;
	--heading: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	--body: Inter, system-ui, sans-serif;
	--section-space: clamp(3.5rem, 7vw, 6.5rem);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--text); font-family: var(--body); line-height: 1.62; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: .99; font-weight: 700; }
h1, h2 { letter-spacing: -.015em; }
h2 { font-size: clamp(2.65rem, 5.3vw, 5.15rem); text-wrap: balance; }
.wrap { width: min(100% - 96px, 1220px); margin-inline: auto; }
main section[id] { scroll-margin-top: 1.5rem; }

.screen-reader-text:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 1rem; left: 1rem; z-index: 100; padding: .5rem 1rem; background: var(--base); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 79px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; }
.brand img { width: 155px; display: block; filter: brightness(0); }
.header-inner nav, .footer-top nav { display: flex; align-items: center; gap: clamp(.85rem, 2.5vw, 2.25rem); }
.header-inner nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.header-inner nav a:hover { text-decoration: underline; }
.nav-action { padding: .5rem .9rem; border: 1px solid var(--dark); }
.arrow {
	display: inline-block;
	flex: 0 0 .95em;
	width: .95em;
	height: .95em;
	background: currentColor;
	clip-path: polygon(47% 10%, 90% 10%, 90% 53%, 77% 53%, 77% 32%, 19% 90%, 10% 81%, 68% 23%, 47% 23%);
	vertical-align: -.075em;
}

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1.6rem, 4.8vw, 4.9rem); padding-block: clamp(2.8rem, 6vw, 5.25rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .74rem; line-height: 1.5; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: 0 0 1.15rem; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(3.4rem, 6vw, 6rem); margin-block: .85rem 1.15rem; }
.hero h1 span { display: block; color: #54544e; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.46vw, 1.16rem); max-width: 45ch; }
.hero-visual { position: relative; min-width: 0; aspect-ratio: 1.12; overflow: hidden; background: var(--surface); }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.hero-visual::after { content: ""; position: absolute; inset: .75rem; border: 1px solid rgb(255 255 255 / .38); pointer-events: none; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }
.button { display: inline-flex; gap: 1.05rem; justify-content: center; align-items: center; padding: .72rem 1.03rem; min-height: 49px; border: 1px solid var(--dark); font-size: .9rem; font-weight: 700; color: #fff; background: var(--dark); text-decoration: none; }
.button:hover { background: #373734; }
.button:focus-visible { outline-color: var(--dark); }
.button-secondary { color: var(--text); background: transparent; border-color: #777770; }
.button-secondary:hover { background: var(--surface); }
.hero-notice { max-width: 49ch; margin-top: .7rem; color: var(--muted); font-size: .8rem; }

.method { background: var(--surface); padding-block: var(--section-space); }
.method h2, .testimonials h2 { margin-top: .55rem; }
.section-intro { max-width: 62ch; margin-top: .85rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 1.9rem; }
.steps article { border-top: 1px solid #a3a39b; padding-top: 1.2rem; }
.steps h3 { font-size: clamp(1.85rem, 3vw, 2.45rem); margin-bottom: .55rem; }
.steps p { color: var(--muted); max-width: 42ch; }

.testimonials { padding-block: var(--section-space); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.35vw, 1.85rem); margin-top: 1.4rem; }
.video-card { min-width: 0; border: 1px solid var(--line); }
.video-media { width: 100%; aspect-ratio: 4 / 3; min-height: 200px; position: relative; background: #20201d; }
.video-cover, .video-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-media iframe:focus-visible { outline-color: var(--text); }
.video-cover { overflow: hidden; display: grid; place-items: center; color: #fff; }
.video-cover:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.play-icon { position: absolute; bottom: .65rem; left: .65rem; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgb(255 255 255 / .6); border-radius: 50%; background: rgb(20 20 18 / .86); }
.play-icon::after { content: ""; width: 15px; height: 17px; margin-left: 3px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video-cover:hover .play-icon { background: #141412; border-color: #fff; }
.video-time { position: absolute; bottom: .55rem; right: .6rem; padding: .13rem .4rem; background: #171715; border-radius: 2px; color: #fff; font-size: .75rem; font-weight: 600; }
.video-caption { padding: .95rem 1rem .8rem; }
.video-caption h3 { font-size: 1.75rem; }
.video-caption p { margin-top: .22rem; color: var(--muted); font-size: .9rem; }
.video-source { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; margin-top: .16rem; font-size: .8rem; font-weight: 600; }
.video-stop { min-height: 44px; margin-left: 1rem; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.more-testimonials { margin-top: 1.1rem; border-block: 1px solid var(--line); }
.more-testimonials summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .4rem; cursor: pointer; font-weight: 700; list-style: none; }
.more-testimonials summary::-webkit-details-marker { display: none; }
.more-testimonials summary:hover { text-decoration: underline; }
.more-indicator { position: relative; width: .85rem; height: .85rem; }
.more-indicator::before, .more-indicator::after { content: ""; position: absolute; inset: calc(50% - 1px) 0 auto; height: 2px; background: currentColor; }
.more-indicator::after { transform: rotate(90deg); }
.more-testimonials[open] .more-indicator::after { transform: none; }
.more-testimonials .video-grid { margin: .55rem 0 1.2rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: center; border-top: 1px solid var(--line); padding-block: clamp(2.1rem, 4.5vw, 3.5rem); }
.about .eyebrow { margin-bottom: .5rem; }
.about h2 { font-size: clamp(2.65rem, 5vw, 4.25rem); text-wrap: initial; }
.about > p { color: var(--muted); max-width: 60ch; }

.application { padding-bottom: var(--section-space); }
.application-box { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 1.5rem clamp(1.5rem, 6vw, 5rem); background: var(--dark); color: #fff; padding: clamp(1.4rem, 4.65vw, 3.7rem); }
.application-box h2 { font-size: clamp(2.6rem, 4.7vw, 4.55rem); text-wrap: initial; }
.application-box p { margin-top: .7rem; color: #e0e0d9; }
.application .button { border-color: #fff; color: var(--dark); background: #fff; }
.application .button:hover { background: #e7e7e0; }
.application .button:focus-visible { outline-color: #fff; }
#aviso-aplicacao { font-size: .84rem; margin-top: .7rem; max-width: 48ch; }
#aviso-aplicacao a { display: inline-block; margin-top: .25rem; font-weight: 600; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 2.35rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-bottom: 1.05rem; border-bottom: 1px solid var(--line); }
.footer-top a { font-size: .875rem; font-weight: 600; }
.brand-ownership { margin-top: 1.1rem; font-weight: 600; font-size: .91rem; }
address { margin-top: .6rem; color: var(--muted); font-style: normal; font-size: .84rem; }
address > * + *::before { content: "·"; display: inline-block; padding-inline: .45rem; text-decoration: none; }
.whatsapp-note { margin-top: .8rem; color: var(--muted); font-size: .86rem; }
.whatsapp-note strong { color: var(--text); }

.document { max-width: 840px; min-height: 45vh; padding-block: var(--section-space); overflow-wrap: anywhere; }
.document h1 { font-size: clamp(3.1rem, 7vw, 6rem); border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.document h2 { margin-top: 2.1rem; font-size: clamp(1.9rem, 4vw, 2.65rem); text-wrap: initial; }
.document p, .document ul, .document ol { margin-top: .85rem; color: var(--muted); }
.document article + article { margin-top: 2rem; }

@media (max-width: 970px) {
	.wrap { width: calc(100% - 56px); }
}
@media (max-width: 760px) {
	.hero, .about, .application-box { grid-template-columns: 1fr; }
	.hero-visual { aspect-ratio: 16 / 9; }
	.hero h1 { font-size: clamp(3.35rem, 9.7vw, 5.5rem); }
	.about > p { max-width: 69ch; }
	.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
	.wrap { width: calc(100% - 36px); }
	.header-inner { gap: .3rem .8rem; flex-wrap: wrap; padding-block: .65rem .3rem; }
	.brand img { width: 122px; }
	.header-inner nav { gap: .7rem; flex-wrap: wrap; }
	.header-inner nav a { font-size: .76rem; }
	.nav-action { border: 0; padding: 0; }
	.nav-action .arrow { display: none; }
	.steps, .video-grid { grid-template-columns: 1fr; }
	.steps article { padding-top: .9rem; }
	.video-media { aspect-ratio: 3 / 2; }
	address > * { display: block; }
	address > * + *::before { content: none; }
}
