/*
Theme Name: Oliveira Vittae
Theme URI: https://www.oliveiravittae.com.br/
Author: Oliveira Vittae
Description: Tema institucional da Oliveira Vittae: Consultoria & Licenciamento Ambiental.
Version: 1.0.8
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: oliveira-vittae
*/

:root {
  --ov-navy-950: #041426;
  --ov-navy-900: #06203a;
  --ov-navy-800: #0b3150;
  --ov-green-700: #205f4a;
  --ov-green-500: #4f8b65;
  --ov-gold-500: #d6ad5b;
  --ov-gold-300: #ecd18e;
  --ov-ink: #132536;
  --ov-muted: #526477;
  --ov-paper: #f7f8f4;
  --ov-white: #fff;
  --ov-border: rgba(6, 32, 58, .13);
  --ov-shadow: 0 24px 70px rgba(4, 20, 38, .12);
  --ov-radius: 22px;
  --ov-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ov-ink); background: var(--ov-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--ov-gold-500); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 9999; width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto; color: var(--ov-white); background: var(--ov-navy-950); }
.ov-container { width: min(calc(100% - 40px), var(--ov-container)); margin-inline: auto; }
.ov-section { padding: clamp(72px, 8vw, 116px) 0; }
.ov-section--soft { background: var(--ov-paper); }
.ov-eyebrow { margin: 0 0 12px; color: var(--ov-green-700); font-size: .79rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ov-heading { max-width: 780px; margin: 0; color: var(--ov-navy-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
.ov-lead { max-width: 720px; margin: 22px 0 0; color: var(--ov-muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.ov-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.ov-button:hover { transform: translateY(-2px); }
.ov-button--gold { color: var(--ov-navy-950); background: var(--ov-gold-300); box-shadow: 0 12px 32px rgba(214, 173, 91, .25); }
.ov-button--gold:hover { background: #f5dea4; }
.ov-button--outline { color: var(--ov-white); border-color: rgba(255,255,255,.52); background: rgba(4,20,38,.22); backdrop-filter: blur(9px); }
.ov-button--navy { color: var(--ov-white); background: var(--ov-navy-900); }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--ov-border); color: var(--ov-navy-950); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.site-header__inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; min-width: 0; align-items: center; text-decoration: none; }
.site-branding img { width: 250px; max-height: 62px; object-fit: contain; object-position: left center; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: var(--ov-navy-900); font-size: .94rem; font-weight: 750; text-decoration: none; }
.primary-nav a:hover { color: #9c6c12; }
.menu-toggle { display: none; width: 46px; height: 46px; place-items: center; border: 1px solid var(--ov-border); border-radius: 50%; color: var(--ov-navy-900); background: transparent; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle span { margin: 4px 0; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.hero { position: relative; min-height: min(790px, calc(100svh - 82px)); display: grid; align-items: center; isolation: isolate; color: var(--ov-white); background-color: var(--ov-navy-950); background-image: url("assets/images/banner-consultoria-licenciamento-ambiental-rj.webp"); background-position: center; background-size: cover; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4,20,38,.98) 0%, rgba(4,20,38,.86) 35%, rgba(4,20,38,.35) 63%, rgba(4,20,38,.12) 100%); }
.hero__content { max-width: 720px; padding: 88px 0 104px; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(236,209,142,.35); border-radius: 999px; margin-bottom: 24px; color: var(--ov-gold-300); background: rgba(4,20,38,.35); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6.2vw, 6.25rem); line-height: .98; letter-spacing: -.05em; }
.hero p { max-width: 610px; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.07rem, 1.8vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__location { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 38px 0 0; color: rgba(255,255,255,.72); list-style: none; font-size: .9rem; font-weight: 650; }
.hero__location li::before { margin-right: 8px; color: var(--ov-gold-300); content: "•"; }

.ov-grid { display: grid; gap: 24px; }
.ov-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { position: relative; min-height: 360px; padding: clamp(30px, 4vw, 48px); overflow: hidden; border: 1px solid var(--ov-border); border-radius: var(--ov-radius); background: var(--ov-white); box-shadow: var(--ov-shadow); }
.service-card::after { position: absolute; right: -60px; bottom: -90px; width: 230px; height: 230px; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(214,173,91,.18), transparent 68%); }
.service-card__number { color: var(--ov-gold-500); font-size: .83rem; font-weight: 900; letter-spacing: .14em; }
.service-card h3 { margin: 62px 0 16px; color: var(--ov-navy-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.1; }
.service-card p { max-width: 520px; margin: 0; color: var(--ov-muted); }
.service-card a { display: inline-flex; margin-top: 26px; color: var(--ov-green-700); font-weight: 850; text-decoration: none; }
.content-cards { margin-top: 48px; }
.content-cards .service-card { min-height: 330px; }

.about { overflow: hidden; background: var(--ov-navy-950); color: var(--ov-white); }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.about__brand { position: relative; display: grid; min-height: 460px; place-items: center; padding: 30px; isolation: isolate; }
.about__brand::after { position: absolute; z-index: 2; width: min(92%, 470px); aspect-ratio: 1; border: 2px solid rgba(214,173,91,.78); border-radius: 50%; content: ""; pointer-events: none; }
.about__brand img { position: relative; z-index: 1; width: min(100%, 470px); margin: auto; }
.about__credential { max-width: 720px; padding-left: 20px; border-left: 3px solid var(--ov-gold-500); margin: 24px 0 0; color: var(--ov-ink); }
.about .ov-heading { color: var(--ov-white); }
.about .ov-eyebrow { color: var(--ov-gold-300); }
.about .ov-lead { color: rgba(255,255,255,.72); }

.process-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 0; margin: 48px 0 0; list-style: none; counter-reset: steps; }
.process-list li { position: relative; padding: 28px 22px; border: 1px solid var(--ov-border); border-radius: 18px; counter-increment: steps; background: var(--ov-white); }
.process-list li::before { display: block; margin-bottom: 22px; color: var(--ov-gold-500); font-weight: 900; content: "0" counter(steps); }
.process-list h3 { margin: 0 0 10px; color: var(--ov-navy-950); font-size: 1.08rem; }
.process-list p { margin: 0; color: var(--ov-muted); font-size: .94rem; }

.coverage { position: relative; overflow: hidden; background: linear-gradient(135deg, #eef4eb, #f8f7f0); }
.coverage__panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; padding: clamp(32px, 5vw, 64px); border: 1px solid rgba(32,95,74,.16); border-radius: 28px; background: rgba(255,255,255,.7); box-shadow: var(--ov-shadow); }
.coverage__places { display: flex; flex-wrap: wrap; align-content: center; gap: 12px; }
.coverage__places span { padding: 10px 15px; border-radius: 999px; color: var(--ov-green-700); background: #e3eee4; font-weight: 800; }

.contact { background: var(--ov-paper); }
.contact__grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(34px, 7vw, 90px); }
.contact__links { display: grid; gap: 12px; margin-top: 34px; }
.contact__links a, .contact__links span { display: block; color: var(--ov-navy-900); font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.contact-form { padding: clamp(26px, 4vw, 46px); border: 1px solid var(--ov-border); border-radius: var(--ov-radius); background: var(--ov-white); box-shadow: var(--ov-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: var(--ov-navy-950); font-size: .9rem; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cdd5d8; border-radius: 12px; color: var(--ov-ink); background: var(--ov-white); }
.form-field textarea { min-height: 142px; resize: vertical; }
.form-consent label { display: flex; align-items: flex-start; gap: 10px; color: var(--ov-muted); font-size: .86rem; font-weight: 650; }
.form-consent input { flex: 0 0 auto; width: 18px; min-height: 18px; margin-top: 3px; }
.form-field--trap { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 26px; margin: 16px 0 0; font-weight: 700; }
.form-status.is-success { color: #14613f; }
.form-status.is-error { color: #9b2c2c; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }

.site-footer { color: rgba(255,255,255,.76); background: var(--ov-navy-950); }
.site-footer__main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 46px; padding: 64px 0 46px; }
.site-footer__brandmark { position: relative; display: grid; width: 210px; max-width: 100%; min-height: 210px; place-items: center; isolation: isolate; }
.site-footer__brandmark::after { position: absolute; z-index: 2; width: 200px; aspect-ratio: 1; border: 1.5px solid rgba(214,173,91,.74); border-radius: 50%; content: ""; pointer-events: none; }
.site-footer__logo { position: relative; z-index: 1; width: 168px; max-height: 82px; object-fit: contain; object-position: center; }
.site-footer h2 { margin: 0 0 18px; color: var(--ov-white); font-size: 1rem; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ov-gold-300); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.whatsapp-float { position: fixed; z-index: 1200; right: 38px; bottom: 42px; display: grid; width: 58px; height: 58px; place-items: center; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 12px 30px rgba(4,20,38,.28); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 36px rgba(4,20,38,.34); }
.whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; }

.content-area { min-height: 55vh; padding: 70px 0 100px; }
.entry-header, .entry-content, .post-navigation { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.entry-title { color: var(--ov-navy-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem,5vw,4.5rem); line-height: 1.08; }
.entry-content { font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content a { color: var(--ov-green-700); }
.not-found { text-align: center; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  .primary-nav { position: fixed; top: 82px; right: 0; bottom: 0; width: min(86vw, 390px); padding: 30px; background: var(--ov-white); transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 30px 60px rgba(0,0,0,.2); }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 6px; }
  .primary-nav a { display: block; padding: 12px 8px; font-size: 1.06rem; }
  .about__grid, .coverage__panel, .contact__grid { grid-template-columns: 1fr; }
  .about__brand { max-width: 460px; margin: auto; }
  .process-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .ov-container { width: min(calc(100% - 28px), var(--ov-container)); }
  .site-header__inner { min-height: 74px; }
  .site-branding img { width: 205px; max-height: 56px; }
  .primary-nav { top: 74px; }
  .hero { min-height: 720px; background-image: url("assets/images/banner-consultoria-licenciamento-ambiental-rj-mobile.webp"); background-position: 58% center; }
  .hero::before { background: linear-gradient(180deg, rgba(4,20,38,.97) 0%, rgba(4,20,38,.84) 47%, rgba(4,20,38,.52) 100%); }
  .hero__content { padding: 70px 0 86px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .ov-button { width: 100%; }
  .ov-grid--2, .form-grid, .process-list, .site-footer__main { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 38px; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; }
  .about__brand { min-height: 360px; }
  .about__brand::after { width: min(94%, 360px); }
  .site-footer__brandmark { width: 190px; min-height: 190px; }
  .site-footer__brandmark::after { width: 180px; }
  .site-footer__logo { width: 150px; max-height: 74px; }
  .whatsapp-float { right: 24px; bottom: 30px; width: 54px; height: 54px; }
}

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