/*
Theme Name: Valle Connect
Theme URI: https://valleconnect.com.br
Description: Tema institucional e comercial da Valle Connect Fibra, provedor de internet por fibra óptica em Cananéia, SP.
Author: Valle Connect Fibra
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: valle-connect
*/

/* ------------------------------------------------------------------
   0. Fonte hospedada no próprio tema (Hanken Grotesk, licença OFL)
   ------------------------------------------------------------------ */
@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Hanken Grotesk";
	src: url("assets/fonts/hanken-grotesk-latin-800-normal.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------
   1. Tokens
   Cores extraídas do logotipo e do panfleto oficial.
   ------------------------------------------------------------------ */
:root {
	--navy: #001860;
	--navy-deep: #001048;
	--night: #000C30;
	--blue: #0047D6;
	--cyan: #00D8F8;
	--yellow: #F8E800;
	--white: #FFFFFF;
	--paper: #F3F6FB;
	--ink: #001048;
	--ink-soft: #33466E;
	--on-navy-soft: #C9DBF7;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1344px;

	--step-small: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
	--step-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--step-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
	--step-head: clamp(2rem, 1.2rem + 3vw, 3.75rem);
	--step-display: clamp(30px, 8.2vw, 136px);

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

/* ------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--step-body);
	line-height: 1.55;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.02;
}

p,
dd,
dt,
ul {
	margin: 0;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 100;
	background: var(--yellow);
	color: var(--navy-deep);
	padding: 12px 16px;
	font-weight: 700;
}

.skip-link:focus {
	top: 12px;
}

:focus-visible {
	outline: 3px solid var(--cyan);
	outline-offset: 3px;
}

.section-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------
   3. Botões e links
   ------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 24px;
	font: inherit;
	font-weight: 700;
	font-size: var(--step-body);
	text-decoration: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn--accent {
	background: var(--yellow);
	color: var(--navy-deep);
}

.btn--accent:hover {
	background: #FFF23A;
}

.btn--ink {
	background: var(--navy);
	color: var(--white);
}

.btn--ink:hover {
	background: var(--navy-deep);
}

.btn--large {
	min-height: 60px;
	padding: 0 32px;
}

.btn-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	font-size: var(--step-body);
	color: var(--white);
	text-underline-offset: 4px;
}

/* ------------------------------------------------------------------
   4. Cabeçalho
   ------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--navy);
	color: var(--white);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 12px var(--gutter);
	max-width: var(--max);
	margin: 0 auto;
}

.site-brand {
	flex: 0 0 auto;
	display: block;
}

.site-brand__logo {
	width: auto;
	height: 64px;
}

.site-nav {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.site-nav__list {
	display: flex;
	justify-content: flex-end;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
	white-space: nowrap;
}

.site-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: var(--step-small);
	font-weight: 600;
	text-decoration: none;
	color: var(--white);
}

.site-nav__list a:hover {
	color: var(--cyan);
}

.site-header__cta {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 18px;
}

/* ------------------------------------------------------------------
   5. Hero: a frase é o layout
   ------------------------------------------------------------------ */
.hero {
	background: var(--navy);
	color: var(--white);
	min-height: calc(100svh - 76px);
	display: flex;
	align-items: center;
	padding: clamp(48px, 9vh, 120px) 0;
}

.hero__inner {
	max-width: var(--max);
	width: 100%;
	margin: 0 auto;
	padding-inline: var(--gutter);
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 7vh, 96px);
}

.hero__title {
	font-size: var(--step-display);
	font-weight: 800;
	line-height: 1.0;
	letter-spacing: -0.035em;
	max-width: 100%;
}

.hero__line {
	white-space: normal;
}

.hero__frame {
	display: inline-block;
	position: relative;
	width: 2.2em;
	height: 0.84em;
	margin: 0 0.1em;
	vertical-align: -0.04em;
	overflow: hidden;
	background: var(--cyan);
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: vc-shutter 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

@keyframes vc-shutter {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

.hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}

.hero__support {
	max-width: 36ch;
	font-size: var(--step-lead);
	line-height: 1.4;
	color: var(--white);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

/* ------------------------------------------------------------------
   6. Títulos de seção
   ------------------------------------------------------------------ */
.section-title {
	font-size: var(--step-head);
	color: var(--navy);
}

.section-title--light {
	color: var(--white);
}

.section-lead {
	margin-top: 16px;
	max-width: 46ch;
	font-size: var(--step-lead);
	color: var(--ink-soft);
}

.section-head {
	margin-bottom: clamp(40px, 6vw, 72px);
}

/* ------------------------------------------------------------------
   7. Planos: a velocidade vira altura
   ------------------------------------------------------------------ */
.plans {
	background: var(--paper);
	padding: clamp(96px, 12vw, 176px) 0;
}

.plans__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: end;
	gap: 8px;
}

.plan {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(24px, 3vw, 40px);
	min-width: 0;
}

.plan--s1 {
	background: var(--cyan);
	color: var(--navy-deep);
	min-height: 440px;
}

.plan--s2 {
	background: var(--blue);
	color: var(--white);
	min-height: 540px;
}

.plan--s3 {
	background: var(--navy);
	color: var(--white);
	min-height: 640px;
}

.plan__speed {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.plan__num {
	font-size: clamp(72px, 9vw, 168px);
	font-weight: 800;
	line-height: 0.85;
	letter-spacing: -0.05em;
}

.plan__unit {
	font-size: var(--step-lead);
	font-weight: 700;
}

.plan__price {
	align-self: flex-start;
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 16px;
	background: var(--yellow);
	color: var(--navy-deep);
}

.plan__currency {
	font-size: var(--step-lead);
	font-weight: 700;
}

.plan__value {
	font-size: clamp(40px, 4.4vw, 72px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.plan__period {
	font-size: var(--step-body);
	font-weight: 600;
}

.plan__list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 6px;
	font-size: var(--step-body);
	font-weight: 600;
}

.plan__actions {
	margin-top: auto;
	display: grid;
	gap: 10px;
}

.plan__select,
.plan__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 16px;
	font: inherit;
	font-weight: 700;
	font-size: var(--step-small);
	text-align: center;
	text-decoration: none;
	border-radius: 0;
	cursor: pointer;
}

.plan__select {
	background: transparent;
	color: inherit;
	border: 2px solid currentColor;
}

.plan__select[aria-pressed="true"] {
	background: var(--white);
	border-color: var(--white);
	color: var(--navy-deep);
}

.plan__cta {
	background: var(--white);
	color: var(--navy-deep);
	border: 2px solid var(--white);
}

.plan__cta:hover {
	background: var(--paper);
}

.plan-summary {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 24px 0 0;
}

.plan-summary__text {
	font-size: var(--step-lead);
	color: var(--ink);
}

.plans__conditions {
	margin-top: 24px;
	max-width: 70ch;
	font-size: var(--step-small);
	color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   8. Benefícios
   ------------------------------------------------------------------ */
.benefits {
	background: var(--navy);
	color: var(--white);
	padding: clamp(96px, 12vw, 176px) 0;
}

.benefits .section-title {
	max-width: 22ch;
	margin-bottom: clamp(48px, 6vw, 80px);
}

.benefits__list {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px);
}

.benefits__list li {
	display: grid;
	gap: 10px;
}

.benefits__list strong {
	font-size: var(--step-lead);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.benefits__list span {
	max-width: 36ch;
	color: var(--on-navy-soft);
	font-size: var(--step-body);
}

/* ------------------------------------------------------------------
   9. Cobertura
   ------------------------------------------------------------------ */
.coverage {
	background: var(--white);
	padding: clamp(96px, 12vw, 176px) 0;
}

.coverage__inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px;
	align-items: end;
}

.coverage__body {
	display: grid;
	gap: 24px;
	justify-items: start;
	font-size: var(--step-lead);
	color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   10. Dúvidas
   ------------------------------------------------------------------ */
.faq {
	background: var(--paper);
	padding: clamp(96px, 12vw, 176px) 0;
}

.faq__head {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: 48px;
	align-items: end;
	margin-bottom: clamp(48px, 6vw, 80px);
}

.faq__lead {
	font-size: var(--step-lead);
	color: var(--ink-soft);
	max-width: 36ch;
}

.faq__list {
	display: grid;
}

.faq__item {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: 48px;
	padding: 36px 0;
	align-items: start;
}

.faq__item dt {
	font-size: clamp(22px, 2.2vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--navy);
}

.faq__item dd {
	font-size: var(--step-body);
	color: var(--ink-soft);
	max-width: 44ch;
}

/* ------------------------------------------------------------------
   11. Sobre
   ------------------------------------------------------------------ */
.about {
	background: var(--blue);
	color: var(--white);
	padding: clamp(96px, 12vw, 176px) 0;
}

.about__inner {
	display: grid;
	gap: 40px;
}

.about__text {
	max-width: 30em;
	font-size: clamp(22px, 2.2vw, 32px);
	line-height: 1.3;
	font-weight: 500;
}

/* ------------------------------------------------------------------
   12. Contato e rodapé
   ------------------------------------------------------------------ */
.contact {
	background: var(--navy-deep);
	color: var(--white);
	padding: clamp(96px, 12vw, 160px) 0;
}

.contact__inner {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: 48px;
	align-items: end;
}

.contact .section-title {
	color: var(--white);
}

.contact__body {
	display: grid;
	justify-items: start;
	gap: 20px;
}

.contact__phone {
	font-size: var(--step-lead);
	font-weight: 700;
}

.contact__phone a {
	text-underline-offset: 4px;
}

.contact__city {
	color: var(--on-navy-soft);
}

.site-footer {
	background: var(--night);
	color: var(--white);
}

.site-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(48px, 6vw, 80px) var(--gutter) 32px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.site-footer__logo {
	width: auto;
	height: 56px;
	margin-bottom: 16px;
}

.site-footer__brand p,
.site-footer__legal {
	color: var(--on-navy-soft);
	font-size: var(--step-small);
}

.site-footer__list {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 4px;
}

.site-footer__list a,
.site-footer__wa {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--white);
	text-underline-offset: 4px;
}

.site-footer__phone a {
	font-size: var(--step-lead);
	font-weight: 700;
	color: var(--white);
}

.site-footer__base {
	max-width: var(--max);
	margin: 0 auto;
	padding: 20px var(--gutter) 32px;
	color: var(--on-navy-soft);
	font-size: var(--step-small);
}

/* ------------------------------------------------------------------
   13. Páginas internas
   ------------------------------------------------------------------ */
.page-main {
	padding: clamp(72px, 10vw, 128px) 0;
	min-height: 60vh;
}

.page-inner {
	max-width: 760px;
}

.page-title {
	font-size: var(--step-head);
	color: var(--navy);
	margin-bottom: 32px;
}

.page-lead {
	font-size: var(--step-lead);
	color: var(--ink-soft);
	margin-bottom: 32px;
}

.page-content {
	display: grid;
	gap: 1em;
}

.page-content h2 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	margin-top: 1em;
}

/* ------------------------------------------------------------------
   14. Revelação de conteúdo (apenas com JavaScript ativo)
   ------------------------------------------------------------------ */
.js-reveal .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.js-reveal .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------
   15. Responsividade
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.site-nav__list {
		gap: 18px;
	}

	.plan--s1 {
		min-height: 400px;
	}

	.plan--s2 {
		min-height: 480px;
	}

	.plan--s3 {
		min-height: 560px;
	}
}

@media (max-width: 900px) {
	.contact__inner {
		grid-template-columns: 1fr;
	}

	.site-header__inner {
		flex-wrap: wrap;
		row-gap: 8px;
	}

	.site-nav {
		order: 3;
		flex-basis: 100%;
	}

	.site-nav__list {
		justify-content: flex-start;
	}

	.plans__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.plan--s1,
	.plan--s2,
	.plan--s3 {
		min-height: 0;
	}

	.coverage__inner,
	.faq__item,
	.benefits__list {
		grid-template-columns: 1fr;
	}

	.faq__item {
		gap: 16px;
		padding: 28px 0;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.faq__head {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.site-brand__logo {
		height: 44px;
	}

	.site-header__cta {
		margin-left: auto;
	}

	.hero {
		min-height: auto;
	}

	.hero__frame {
		width: 3em;
		height: 1em;
		vertical-align: -0.1em;
	}

	.hero__support {
		font-size: var(--step-body);
	}

	.hero__actions {
		width: 100%;
	}

	.hero__actions .btn {
		flex: 1 1 100%;
	}

	.plan-summary {
		flex-direction: column;
		align-items: stretch;
	}

	.plan-summary .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js-reveal .reveal {
		opacity: 1;
		transform: none;
	}
}
