/*
Theme Name: Chede Advogados
Theme URI: https://chede.com.br
Author: KLIFMedia
Description: Tema institucional sob medida para o Chede Advogados. Sem construtor de páginas — HTML, CSS e PHP nativos do WordPress.
Version: 1.2.5
Text Domain: chede
*/

:root {
	--navy: #0e2338;
	--navy-2: #163654;
	--navy-tint: #eef2f6;
	--gold: #ad8a4e;
	--gold-light: #d9c8a3;
	--cream: #f7f4ee;
	--ink: #1b2027;
	--muted: #5b6472;
	--white: #ffffff;
	--border: #e3ddd0;
	--radius: 4px;
	--container: 1180px;
	--font-display: 'Fraunces', 'Georgia', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 .5em;
	color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #cfd8e2; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #a9b6c6; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 28px; border-radius: var(--radius);
	font-weight: 600; font-size: .95rem; border: 1px solid transparent;
	cursor: pointer; transition: all .2s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #96793e; }
.btn-outline { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(14,35,56,.97);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.site-logo img { height: 42px; width: auto; }
.site-logo { color: var(--white); font-family: var(--font-display); font-size: 1.4rem; }
.nav-menu { display: flex; gap: 32px; }
.nav-menu a {
	color: #dfe6ee; font-size: .93rem; font-weight: 500;
	padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu li.current-menu-item a { color: var(--white); border-color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone { color: var(--white); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.header-phone svg { width: 16px; height: 16px; stroke: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

@media (max-width: 1100px) {
	.nav-menu {
		position: fixed; inset: 72px 0 0 0; background: var(--navy);
		flex-direction: column; gap: 0; padding: 12px 24px;
		transform: translateY(-110%); transition: transform .25s ease; overflow-y: auto;
	}
	.nav-menu.is-open { transform: translateY(0); }
	.nav-menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.header-phone span { display: none; }
	.nav-toggle { display: block; }
}

/* Hero */
.hero {
	position: relative; color: var(--white);
	min-height: 640px; display: flex; align-items: center;
	background-size: cover; background-position: center;
}
.hero::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(14,35,56,.94) 0%, rgba(14,35,56,.78) 45%, rgba(14,35,56,.4) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; padding: 100px 0; }
.hero h1 { color: var(--white); }
.hero-lede { font-size: 1.1rem; color: #cdd7e2; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.stat-bar { background: var(--navy-2); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; }
.stat { text-align: center; color: var(--white); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-light); }
.stat span { font-size: .82rem; color: #b7c2d0; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* About teaser */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); }
.about-media img.about-img-2 {
	position: absolute; bottom: -40px; right: -40px; width: 55%;
	border: 8px solid var(--white); box-shadow: 0 20px 40px rgba(14,35,56,.18);
}
.about-since { display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	width: 108px; height: 108px; border-radius: 50%; background: var(--gold); color: var(--white);
	position: absolute; top: -24px; left: -24px; font-family: var(--font-display); text-align: center; line-height: 1.1; }
.about-since strong { font-size: 1.6rem; }
.about-since span { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.diff-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 32px; }
.diff-item { display: flex; gap: 14px; }
.diff-item .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-tint); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; }
.diff-item h4 { font-size: 1rem; margin-bottom: 4px; }
.diff-item p { font-size: .9rem; margin: 0; }
@media (max-width: 860px) { .about-grid, .diff-list { grid-template-columns: 1fr; } .about-media { margin-bottom: 60px; } }

/* Areas grid */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.area-card {
	background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 32px 28px; transition: box-shadow .2s ease, transform .2s ease;
}
.area-card:hover { box-shadow: 0 16px 32px rgba(14,35,56,.08); transform: translateY(-3px); }
.area-card .num { font-family: var(--font-display); color: var(--gold-light); font-size: 1.6rem; }
.area-card h3 { margin-top: 10px; }
.area-card p { font-size: .92rem; margin-bottom: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 3/3.4; border-radius: var(--radius); overflow: hidden; background: var(--navy-tint); margin-bottom: 16px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.is-initials { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.4rem; color: var(--navy-2); }
.team-card h4 { margin: 0 0 2px; font-size: 1.05rem; }
.team-card span { font-size: .84rem; color: var(--gold); font-weight: 600; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.news-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-tint); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 24px; }
.news-date { font-size: .78rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.news-body h3 { font-size: 1.1rem; margin: 10px 0; }
.news-body a.read-more { font-size: .88rem; font-weight: 600; color: var(--navy); }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0; max-width: 520px; }

/* Offices */
.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.office-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.office-card h3 { color: var(--navy); }
.office-card .office-tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.office-card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; }
@media (max-width: 760px) { .offices-grid { grid-template-columns: 1fr; } }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
	width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius);
	font-family: var(--font-body); font-size: .95rem; background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-notice { padding: 14px 16px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 20px; }
.form-notice.success { background: #e9f5ec; color: #2a6b3f; border: 1px solid #bfe3c9; }
.form-notice.error { background: #fbeaea; color: #a3312c; border: 1px solid #f0c4c2; }
@media (max-width: 860px) { .contact-layout, .form-grid { grid-template-columns: 1fr; } }

.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 24px; }

/* Footer */
.site-footer { background: var(--navy); color: #a9b6c6; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.social-row a:hover { background: var(--gold); border-color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; padding: 22px 0; font-size: .82rem; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page header (interior pages) */
.page-hero {
	background: var(--navy); color: var(--white); padding: 64px 0 56px; text-align: center;
}
.page-hero.has-photo { position: relative; padding: 110px 0 96px; background-size: cover; background-position: center 30%; }
.page-hero.has-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,35,56,.82), rgba(14,35,56,.9)); }
.page-hero.has-photo .container { position: relative; z-index: 1; }
.page-hero p { color: #c3cedb; margin: 0; }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero .breadcrumb { color: #9fadbe; font-size: .88rem; }
.page-hero .breadcrumb a { color: var(--gold-light); }

/* Blog single */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-meta { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }

/* Photo-led components */
.hero { min-height: 720px; background-position: center 35%; }
.hero::before { background: linear-gradient(100deg, rgba(14,35,56,.93) 0%, rgba(14,35,56,.7) 42%, rgba(14,35,56,.12) 100%); }
.hero-badges { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; font-size: .85rem; color: #cdd7e2; }
.hero-badges strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); }

.about-media img.about-main { width: 82%; aspect-ratio: 3/4; object-fit: cover; }
.about-media img.about-img-2 { aspect-ratio: 4/3; object-fit: cover; width: 62%; }

.area-card.has-photo { padding: 0; overflow: hidden; }
.area-photo { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.area-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.area-card:hover .area-photo img { transform: scale(1.06); }
.area-photo .num { position: absolute; left: 14px; bottom: 10px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.area-body { padding: 22px 24px 26px; }
.area-body h3 { margin: 0 0 8px; }
.areas-grid.photo-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.team-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.team-grid.compact .team-card h4 { font-size: .92rem; }
.section-navy .team-card h4 { color: #fff; }
.team-photo img { transition: transform .4s ease; }
.team-card:hover .team-photo img { transform: scale(1.05); }

.cta-photo { position: relative; background-size: cover; background-position: center 30%; padding: 110px 0; color: #fff; }
.cta-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,35,56,.92), rgba(14,35,56,.6)); }
.cta-photo .container { position: relative; z-index: 1; }
.cta-photo h2 { color: #fff; max-width: 560px; }
.cta-photo p { color: #cdd7e2; max-width: 520px; }

.founder { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.founder img { border-radius: var(--radius); aspect-ratio: 3/3.4; object-fit: cover; width: 100%; }
.split-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split-photo > div { min-height: 420px; background-size: cover; background-position: center; }
@media (max-width: 860px) { .founder, .split-photo { grid-template-columns: 1fr; } .hero { min-height: 620px; } .about-media img.about-main { width: 100%; } .about-media img.about-img-2 { display: none; } }
.area-card { display: block; }

/* Fixes v1.2 */
.hero { background-position: 68% 30%; }
.hero .hero-inner { margin: 0 auto 0 max(0px, calc((100% - var(--container)) / 2)); padding: 110px 24px; max-width: 688px; width: 100%; }
.admin-bar .site-header { top: 32px; }
.site-footer p { color: #a9b6c6; }
.areas-grid.photo-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 1100px) { .header-phone span { display: none; } .admin-bar .nav-menu { inset: 106px 0 0 0; } }
@media (max-width: 640px) {
	.header-inner { padding: 12px 20px; }
	.site-logo img { height: 34px; }
	.header-cta .btn { display: none; }
	.hero .hero-inner { padding: 72px 20px; }
	.hero { min-height: 560px; }
	.hero-badges { display: none; }
	.section { padding: 64px 0; }
	.cta-photo { padding: 72px 0; }
	.page-hero.has-photo { padding: 72px 0 64px; }
}
.news-thumb { display: block; }
.news-card { display: flex; flex-direction: column; }
.news-card .news-body { flex: 1; }
.klif-credit { display: inline-flex; align-items: center; opacity: .85; transition: opacity .2s; }
.klif-credit:hover { opacity: 1; }
.klif-credit img { height: 28px; width: auto; }
