/*
Theme Name: Pinheiro Junior
Theme URI: https://pinheiro-junior-mogi-2028.lovable.app
Author: Pinheiro Junior
Description: Site institucional one-page de Pinheiro Junior, com galeria, formulário de demandas e opções editáveis no painel.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: pinheiro-junior
*/

:root {
	--background: #0B1530;
	--card: #13234A;
	--card-elevated: #1A2B55;
	--primary: #F5A623;
	--primary-hover: #C97F00;
	--foreground: #FFFFFF;
	--foreground-soft: #D5DCEB;
	--muted: #C9D1E4;
	--surface-light: #F4F2ED;
	--border: rgba(255,255,255,.12);
	--font-heading: "Montserrat", Arial, sans-serif;
	--font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand, .footer-brand { font-family: var(--font-heading); letter-spacing: -.025em; }
h1, h2, h3 { line-height: 1.12; }
a, button, input, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--primary); }
[hidden] { display: none !important; }
.container { width: min(100% - 2rem, 1152px); margin-inline: auto; }
.section { position: relative; padding: 5rem 0; }
.section-light { background: var(--surface-light); color: var(--background); }
.section-card { background: var(--card); }
.section-title { margin-bottom: .75rem; font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 900; }
.section-title .accent, .accent { color: var(--primary); }
.section-light .accent { color: var(--primary-hover); }
.section-intro { max-width: 42rem; margin-bottom: 0; color: var(--muted); font-size: 1.125rem; }
.section-light .section-intro { color: rgba(11,21,48,.75); }
.icon { display: inline-block; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 1000; padding: .75rem 1rem; transform: translateY(-150%); background: var(--primary); color: var(--background); border-radius: .5rem; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: .65rem; font-weight: 700; line-height: 1.25; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: var(--background); }
.button-primary:hover { background: var(--primary-hover); }
.button-outline { border-color: rgba(255,255,255,.25); background: rgba(19,35,74,.6); color: var(--foreground); }
.button-outline:hover { border-color: rgba(245,166,35,.6); background: var(--card-elevated); }
.button-outline .icon { color: var(--primary); }
.button-wide { width: 100%; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid var(--border); background: rgba(11,21,48,.92); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.brand { font-size: 1.2rem; font-weight: 900; }
.brand span, .footer-brand span { color: var(--primary); }
.desktop-nav, .header-whatsapp { display: none; }
.menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: .65rem; background: transparent; color: var(--foreground); }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }
.mobile-nav { padding: .75rem 1rem 1.25rem; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav > a:not(.button) { display: block; padding: .65rem .75rem; border-radius: .5rem; color: var(--foreground-soft); }
.mobile-nav > a:not(.button):hover { background: var(--card); color: var(--primary); }
.mobile-nav .button { margin-top: .75rem; width: 100%; }

.hero { position: relative; display: flex; align-items: center; min-height: 100svh; overflow: hidden; padding: 7rem 0 4rem; }
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; color: var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ""; width: .5rem; height: .5rem; flex: 0 0 auto; border-radius: 50%; background: var(--primary); }
.hero h1 { margin-bottom: 1.4rem; font-size: clamp(2.65rem, 8vw, 4.25rem); font-weight: 900; }
.hero-subtitle { max-width: 36rem; color: var(--foreground-soft); font-size: 1.075rem; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.hero-photo { position: relative; width: min(100%, 450px); margin-inline: auto; padding: .5rem; border: 1px solid rgba(245,166,35,.25); border-radius: 1.1rem; background: var(--card); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.hero-photo .photo-frame { border-radius: .75rem; }
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(35px); }
.glow-title { width: 560px; height: 420px; top: 20%; left: -200px; background: radial-gradient(ellipse, rgba(245,166,35,.13), transparent 70%); }
.glow-photo { inset: -40px; background: radial-gradient(circle, rgba(245,166,35,.24), rgba(245,166,35,.06) 40%, transparent 70%); }
.photo-wrap { position: relative; }
.photo-frame { position: relative; overflow: hidden; width: 100%; background: var(--card); color: var(--foreground-soft); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-hero { aspect-ratio: 4 / 5; }
.aspect-landscape { aspect-ratio: 4 / 3; }
.aspect-square { aspect-ratio: 1; }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; border: 1px solid var(--border); text-align: center; }
.photo-placeholder::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: rgba(245,166,35,.6); }
.photo-placeholder strong { overflow-wrap: anywhere; font-family: var(--font-heading); font-size: .8rem; }
.photo-placeholder small { color: var(--muted); font-size: .68rem; overflow-wrap: anywhere; }
.placeholder-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(245,166,35,.3); border-radius: 50%; color: var(--primary); }

.numbers { padding-bottom: 4rem; }
.numbers-grid { display: grid; gap: 1rem; }
.number-card { display: flex; min-height: 128px; flex-direction: column; justify-content: space-between; padding: 1.5rem; border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: .8rem; background: var(--card); }
.number-card strong { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 900; line-height: 1.15; }
.number-card span { margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.about-grid { display: grid; align-items: center; gap: 2.5rem; }
.about-photo { overflow: hidden; border: 1px solid rgba(11,21,48,.1); border-radius: 1rem; box-shadow: 0 18px 40px rgba(11,21,48,.15); }
.about-copy p { color: rgba(11,21,48,.86); font-size: 1.05rem; }
.about-copy p:last-child { margin-bottom: 0; }

.timeline-wrap { display: grid; gap: 2.5rem; margin-top: 3rem; }
.timeline { position: relative; margin: 0; padding: 0 0 0 1.75rem; border-left: 2px solid rgba(245,166,35,.35); list-style: none; }
.timeline li { position: relative; padding-bottom: 1.8rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; top: .35rem; left: -2.3rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--background); }
.timeline-period { margin-bottom: .35rem; color: var(--primary); font-family: var(--font-heading); font-weight: 800; }
.timeline p:last-child { margin-bottom: 0; color: var(--foreground-soft); font-size: .95rem; }
.trajectory-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.trajectory-photos .photo-frame { border: 1px solid var(--border); border-radius: .75rem; }
.education-card { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 1rem; background: var(--card); }
.education-heading { display: flex; align-items: center; gap: .75rem; }
.education-heading .icon { color: var(--primary); }
.education-heading h3 { margin: 0; font-size: 1.3rem; }
.education-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
.education-item { padding: 1rem; border: 1px solid var(--border); border-radius: .75rem; background: rgba(26,43,85,.6); }
.education-item strong { display: block; color: var(--primary); font-family: var(--font-heading); }
.education-item span { display: block; margin-top: .3rem; }
.proposals-grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
.proposal-card { height: 100%; padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); transition: border-color .2s, background .2s; }
.proposal-card:hover { border-color: rgba(245,166,35,.4); background: var(--card-elevated); }
.proposal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: .75rem; background: var(--card-elevated); color: var(--primary); }
.proposal-icon .icon { width: 1.5rem; height: 1.5rem; }
.proposal-card h3 { margin: 1.25rem 0 .65rem; font-size: 1.25rem; }
.proposal-card p { margin: 0; color: var(--foreground-soft); }

.gallery { columns: 2; column-gap: 1rem; margin-top: 2.5rem; }
.gallery-item { display: block; width: 100%; margin: 0 0 1rem; padding: 0; break-inside: avoid; overflow: hidden; border: 1px solid rgba(11,21,48,.1); border-radius: .8rem; background: var(--card); box-shadow: 0 4px 12px rgba(11,21,48,.08); text-align: left; transition: transform .2s; }
.gallery-item:hover { transform: translateY(-2px); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .photo-placeholder { border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(11,21,48,.97); backdrop-filter: blur(8px); }
.lightbox-inner { width: min(100%, 800px); }
.lightbox-close { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 0 .75rem auto; border: 1px solid var(--border); border-radius: .6rem; background: var(--card); color: var(--foreground); }
.lightbox-image-wrap { display: grid; place-items: center; min-height: 240px; max-height: 72vh; overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.lightbox-image { width: 100%; max-height: 72vh; object-fit: contain; }
.lightbox-placeholder { padding: 4rem 1rem; color: var(--muted); text-align: center; }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.lightbox-controls .button { min-height: 40px; padding: .55rem .8rem; font-size: .85rem; }
.lightbox-caption { margin: 0; color: var(--foreground-soft); font-size: .8rem; text-align: center; }
.sports-grid { display: grid; align-items: center; gap: 2rem; }
.sports-copy p { margin-bottom: 0; color: var(--foreground-soft); font-size: 1.05rem; }
.sports-photos { display: grid; gap: 1rem; }
.sports-photos .photo-frame { border: 1px solid var(--border); border-radius: .75rem; }

.contact { overflow: hidden; }
.contact-grid { position: relative; display: grid; gap: 3rem; }
.contact-copy p { color: var(--foreground-soft); font-size: 1.05rem; }
.social-buttons { display: flex; flex-direction: column; gap: .8rem; margin-top: 2rem; }
.contact-form { padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); }
.form-row { display: grid; gap: 1.25rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: .55rem; background: var(--background); color: var(--foreground); }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(201,209,228,.65); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,166,35,.15); outline: none; }
.form-field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.consent input { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: .25rem; accent-color: var(--primary); }
.consent span { color: var(--muted); font-size: .78rem; }
.form-note { margin: .75rem 0 0; color: var(--muted); font-size: .75rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 150; width: min(calc(100% - 2rem), 400px); padding: 1rem 1.2rem; border: 1px solid rgba(245,166,35,.45); border-radius: .75rem; background: var(--card-elevated); color: var(--foreground); box-shadow: 0 15px 40px rgba(0,0,0,.35); }
.toast strong { display: block; color: var(--primary); }
.toast-error { border-color: rgba(255,255,255,.35); }
.toast-error strong { color: var(--foreground); }
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-brand { margin-bottom: .75rem; font-weight: 800; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: .55rem; color: var(--foreground-soft); }
.footer-social a:hover { border-color: var(--primary); color: var(--primary); }
.legal { max-width: 600px; margin: 0; color: var(--muted); font-size: .75rem; }
.inner-page { min-height: 75vh; padding: 9rem 0 5rem; }
.entry-content { max-width: 760px; }
.entry-content a { color: var(--primary); text-decoration: underline; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 640px) {
	.container { width: min(100% - 3rem, 1152px); }
	.hero-actions { flex-direction: row; }
	.numbers-grid { grid-template-columns: repeat(2, 1fr); }
	.education-grid, .form-row { grid-template-columns: repeat(2, 1fr); }
	.proposals-grid { grid-template-columns: repeat(2, 1fr); }
	.gallery { columns: 3; }
	.sports-photos { grid-template-columns: repeat(3, 1fr); }
	.contact-form { padding: 2rem; }
}

@media (min-width: 1024px) {
	.section { padding: 6rem 0; }
	.desktop-nav { display: flex; align-items: center; gap: 1.75rem; }
	.desktop-nav a { color: var(--foreground-soft); font-size: .9rem; font-weight: 500; }
	.desktop-nav a:hover { color: var(--primary); }
	.header-whatsapp { display: inline-flex; min-height: 42px; padding: .6rem 1rem; font-size: .85rem; }
	.menu-toggle { display: none; }
	.hero { padding: 7rem 0 5rem; }
	.hero-grid { grid-template-columns: 7fr 5fr; gap: 2.5rem; }
	.numbers-grid { grid-template-columns: repeat(4, 1fr); }
	.about-grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
	.timeline-wrap { grid-template-columns: 9fr 3fr; }
	.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding: 2rem 0 0; border: 0; }
	.timeline::before { content: ""; position: absolute; top: .35rem; right: 0; left: 0; height: 2px; background: rgba(245,166,35,.35); }
	.timeline li { padding: 0; }
	.timeline-dot { top: -2rem; left: 0; }
	.trajectory-photos { grid-template-columns: 1fr; }
	.education-card { padding: 2rem; }
	.proposals-grid { grid-template-columns: repeat(3, 1fr); }
	.gallery { columns: 4; }
	.sports-grid { grid-template-columns: 4fr 8fr; gap: 2rem; }
	.contact-grid { grid-template-columns: 5fr 7fr; }
	.footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
	.legal { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}
