/*
Theme Name: Krassmann e Ribas
Description: Tema próprio do escritório Krassmann e Ribas Advogados.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: kribas
*/

:root {
	--ink: #14181f;
	--ink-2: #2a303b;
	--muted: #5d6573;
	--line: #e4e0d8;
	--paper: #fbfaf7;
	--white: #ffffff;
	--gold: #a8823f;
	--gold-dark: #85652c;
	--gold-soft: #f4ede0;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1160px;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-2);
	font: 400 17px/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-top: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p, ul, ol { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }

/* Header */
.topbar { background: var(--ink); color: #c9ccd2; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand strong { font: 600 1.35rem/1.1 var(--serif); display: block; }
.brand span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav .current-menu-item a { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-line { border: 1px solid currentColor; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .btn-line { color: #fff; }
.hero .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Hero */
.hero { background: var(--ink) linear-gradient(120deg, #14181f 0%, #1f2632 60%, #2b2418 100%); color: #d6d8dc; padding: 96px 0 104px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p.lead { font-size: 1.15rem; max-width: 680px; margin-bottom: 2rem; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-top: 0; }

.featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 40px; display: flex; flex-direction: column; }
.feature h3 { font-size: 1.7rem; margin-top: 0; }
.feature ul { padding-left: 1.1em; color: var(--ink-2); }
.feature .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.tag { display: inline-block; background: var(--gold-soft); color: var(--gold-dark); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; margin-bottom: 18px; align-self: flex-start; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
.fact { padding: 30px 26px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font: 600 1.9rem/1.1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.fact span { font-size: .9rem; color: var(--muted); }
.facts-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area { background: var(--white); padding: 32px; text-decoration: none; color: inherit; transition: background .2s; }
.area:hover { background: var(--gold-soft); }
.area h3 { margin: 0 0 8px; font-size: 1.3rem; }
.area p { margin: 0; font-size: .93rem; color: var(--muted); }

.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.office { border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; }
.office h3 { margin: 0 0 6px; }
.office p { margin: 0; color: var(--muted); }

.cta { background: var(--ink); color: #d6d8dc; padding: 72px 0; text-align: center; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { max-width: 640px; margin: 0 auto 1.6rem; }

/* Content pages */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-hero h1 { max-width: 900px; margin-bottom: 0; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 56px 0 88px; }
.content-layout.full { grid-template-columns: minmax(0, 1fr); }
.entry { max-width: 760px; }
.entry h2 { padding-top: .4em; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; background: var(--white); }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry th { background: var(--gold-soft); color: var(--ink); }
.entry blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--ink); font-style: italic; }
.aside-box { background: var(--white); border: 1px solid var(--line); padding: 26px; margin-bottom: 24px; position: sticky; top: 100px; }
.aside-box h3 { margin-top: 0; font-size: 1.2rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { border-top: 1px solid var(--line); }
.aside-box li a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink-2); font-size: .93rem; }
.aside-box li.current a { color: var(--gold-dark); font-weight: 600; }
.aside-box .btn { width: 100%; text-align: center; margin-top: 16px; }

/* Footer */
.site-footer { background: #0f1217; color: #a7abb3; font-size: .9rem; padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin: 0 0 12px; }
.site-footer a { color: #e2d3b4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-bottom { border-top: 1px solid #262b33; margin-top: 40px; padding-top: 20px; font-size: .8rem; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; background: #1f7a4d; color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.wa-float:hover { background: #17633e; color: #fff; }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }

/* SiteOrigin legacy content */
.entry .panel-grid { margin-bottom: 0 !important; }
.entry .metaslider { display: none; }
.entry > .panel-layout > .panel-grid:first-child .so-widget-sow-headline { display: none; }
.entry .panel-grid { display: block !important; }
.entry .panel-grid-cell { width: 100% !important; float: none !important; margin: 0 0 8px !important; }
.entry .panel-grid-cell:has(.so-widget-sow-image:empty) { display: none; }
.entry .sow-headline, .entry .widget-title { font-family: var(--serif) !important; color: var(--ink) !important; text-align: left !important; font-weight: 600 !important; }
.entry .widget-title { font-size: 1.35rem !important; margin: 1.2em 0 .3em !important; }
.entry .textwidget, .entry .textwidget p { font-family: var(--sans) !important; font-size: 1rem !important; line-height: 1.7 !important; text-align: left !important; color: var(--ink-2) !important; }
.entry .decoration { display: none; }

@media (max-width: 960px) {
	.featured, .offices, .footer-grid { grid-template-columns: 1fr; }
	.facts { grid-template-columns: repeat(2, 1fr); }
	.fact:nth-child(2) { border-right: 0; }
	.fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.areas { grid-template-columns: 1fr 1fr; }
	.content-layout { grid-template-columns: 1fr; }
	.aside-box { position: static; }
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
	.nav.open { display: block; }
	.nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
	.nav li a { display: block; padding: 10px 0; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.wrap.content-layout { padding-top: 36px; padding-bottom: 64px; }
	.hero { padding: 64px 0 72px; }
	.section { padding: 60px 0; }
	.feature { padding: 28px 22px; }
	.areas, .facts { grid-template-columns: 1fr; }
	.fact { border-right: 0; border-bottom: 1px solid var(--line); }
	.topbar .wrap { justify-content: center; }
	.topbar .hide-sm { display: none; }
	.wa-float span { display: none; }
	.wa-float { padding: 14px; }
}
