/*
Theme Name: SH Consultax
Theme URI: https://shconsultax.com.br/
Author: SH Consultax
Description: Tema institucional exclusivo da SH Consultoria Tributária.
Version: 1.0.0
Text Domain: sh-consultax
*/

:root {
  --blue: #005a83;
  --blue-dark: #003f5c;
  --blue-deep: #022f46;
  --gold: #d3aa61;
  --gold-dark: #ae8950;
  --ink: #6f7177;
  --white: #fff;
  --off: #f5f5f4;
  --line: #e1e1df;
  --shadow: 0 14px 38px rgba(0, 39, 58, .12);
  --container: 1130px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 16px/1.65 "Segoe UI", Arial, sans-serif; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 105px 0; }
.section-sm { padding: 72px 0; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.display, h1, h2, h3, h4 { margin-top: 0; color: var(--blue); font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { font-size: clamp(42px, 5vw, 68px); }
h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 400; }
h3 { font-size: 23px; }
p { margin: 0 0 1.2em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 13px 28px; border: 1px solid var(--gold); background: var(--gold); color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; transition: .25s; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue); border-color: #fff; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 9999; padding: 10px 18px; background: #fff; color: var(--blue); }
.skip-link:focus { top: 20px; }

/* Header */
.site-header { background: #fff; position: relative; z-index: 50; }
.header-inner { min-height: 164px; display: grid; grid-template-columns: 186px 1fr; gap: 50px; }
.brand-block { height: 203px; padding: 35px 30px; align-self: start; background: linear-gradient(180deg, var(--gold), var(--blue)); position: relative; z-index: 3; }
.brand-block img { width: 125px; height: 125px; object-fit: contain; margin: 4px auto 0; }
.header-main { min-width: 0; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ddd; color: #777; font-size: 14px; }
.top-contact, .socials { display: flex; align-items: center; gap: 17px; }
.top-contact a, .socials a { transition: color .2s; }
.top-contact a:hover, .socials a:hover { color: var(--gold); }
.socials svg { width: 18px; height: 18px; display: block; }
.divider { width: 20px; height: 2px; background: var(--gold); }
.nav-row { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.main-nav ul { display: flex; align-items: center; gap: 42px; list-style: none; padding: 0; margin: 0; }
.main-nav a { color: var(--blue); font-size: 15px; font-weight: 600; }
.main-nav .current-menu-item a, .main-nav a:hover { color: var(--gold); }
.search-icon { color: var(--blue); font-size: 24px; }
.menu-toggle { display: none; border: 0; background: none; color: var(--blue); font-size: 29px; cursor: pointer; }

/* Hero */
.home-hero { position: relative; min-height: 655px; background: linear-gradient(90deg, rgba(0,40,60,.92), rgba(0,57,82,.58)), url("assets/images/hero.jpg") center/cover; color: #fff; display: flex; align-items: center; }
.hero-copy { width: min(700px, 100%); padding: 120px 0 150px; }
.home-hero .eyebrow { color: var(--gold); }
.home-hero h1 { color: #fff; font-size: clamp(40px, 4.4vw, 62px); font-weight: 400; }
.home-hero p { max-width: 680px; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 28px; }
.hero-actions .btn { min-width: 310px; }
.stats-wrap { position: relative; margin-top: -105px; z-index: 4; }
.stats { margin-left: auto; width: min(710px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow); }
.stat { min-height: 220px; padding: 28px 26px; background: var(--gold-dark); color: #fff; }
.stat:nth-child(3) { background: linear-gradient(145deg, #0c6689, #c09a58); }
.stat strong { display: block; margin-bottom: 4px; font: 400 44px/1 Georgia, serif; }
.stat h3 { margin-bottom: 18px; color: #fff; font-size: 18px; }
.stat p { font-size: 14px; line-height: 1.35; }

.intro-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 75px; align-items: center; }
.portrait-wrap { position: relative; padding: 0 0 55px 40px; }
.portrait-wrap img { width: 100%; height: 600px; object-fit: cover; object-position: 48% 20%; }
.experience-badge { position: absolute; left: 0; bottom: 0; width: 240px; padding: 30px 20px; background: #fff; text-align: center; }
.experience-badge strong { display: block; color: var(--blue); font: 400 48px/1 Georgia, serif; }
.signature { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--blue); font-weight: 700; }

.services { background: linear-gradient(rgba(152,113,54,.9), rgba(20,18,15,.96)), url("assets/images/office.jpg") center/cover; color: #e5e1da; }
.services .section-title { text-align: center; }
.services h2, .services h3 { color: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 48px; margin-top: 55px; }
.service-card { min-height: 150px; padding: 22px 18px; border: 1px solid rgba(255,255,255,.25); }
.service-card h3 { margin-bottom: 12px; font-size: 19px; }
.service-card p { margin: 0; color: #d7d3cc; font-size: 15px; }

.difference-band { padding: 84px 0 0; background: linear-gradient(rgba(10,10,9,.65), rgba(10,10,9,.95)), url("assets/images/contract.jpg") center/cover; color: #fff; }
.difference-band h2 { color: #fff; text-align: center; }
.difference-band .eyebrow { text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: translateY(50px); }
.feature-card { min-height: 235px; padding: 30px 25px; background: #f2f2f2; border-left: 1px solid #999; color: #777; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.feature-card h3 { margin-top: 22px; margin-bottom: 8px; }
.icon-box { width: 46px; height: 46px; color: var(--gold); }

.testimonials { padding-top: 155px; }
.testimonial-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; align-items: center; }
.testimonial-image { width: 100%; height: 610px; object-fit: cover; object-position: center top; }
.testimonial-content { min-width: 0; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: calc(100% + 55px); margin: 38px 0 0 -72px; }
.quote { min-height: 265px; padding: 42px 38px 62px; background: #fff; box-shadow: var(--shadow); font-size: 18px; font-style: italic; position: relative; }
.quote::before { content: "\201C"; position: absolute; right: 18px; top: -25px; color: #eee; font: 100px/1 Georgia, serif; }
.quote-person { position: absolute; left: 50%; bottom: -82px; width: 100%; transform: translateX(-50%); text-align: center; font-style: normal; }
.quote-person img { width: 76px; height: 76px; margin: 0 auto 5px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.quote-person strong { display: block; margin: 0; color: var(--blue); font: 20px Georgia, serif; }
.quote-person small { color: var(--gold); font-size: 15px; }

.cta { padding: 100px 0; background: linear-gradient(rgba(177,135,73,.82), rgba(8,15,20,.96)), url("assets/images/law-bg.jpg") center/cover; color: #fff; text-align: center; }
.cta h2 { max-width: 760px; margin-inline: auto; color: #fff; }
.cta p { max-width: 800px; margin: 0 auto 28px; }
.cta .btn { width: min(100%, 740px); }

.news-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 60px; }
.news-heading h2 { max-width: 740px; margin-bottom: 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: linear-gradient(145deg, #9d9873, #00618c); color: #fff; }
.post-card img { width: 100%; height: 245px; object-fit: cover; }
.post-card-body { padding: 27px 20px 25px; }
.post-card .category { color: var(--gold); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; }
.post-card h3 { min-height: 54px; margin: 14px 0 25px; color: #fff; font-size: 21px; }
.post-card .date { font-size: 12px; }

/* Internal pages */
.page-hero { min-height: 490px; display: grid; place-items: center; padding: 80px 20px; color: #fff; text-align: center; background-position: center; background-size: cover; }
.page-hero.about { background-image: linear-gradient(rgba(0,58,84,.78), rgba(0,14,22,.88)), url("assets/images/law-bg.jpg"); }
.page-hero.news { background-image: linear-gradient(rgba(0,58,84,.78), rgba(0,14,22,.88)), url("assets/images/news-bg.jpg"); }
.page-hero.contact { background-image: linear-gradient(rgba(0,58,84,.78), rgba(0,14,22,.88)), url("assets/images/contact-bg.jpg"); }
.page-hero h1 { margin-bottom: 16px; color: #fff; font-weight: 400; }
.breadcrumbs { font-size: 16px; }
.breadcrumbs span { color: var(--gold); padding: 0 10px; }
.about-lead { display: grid; grid-template-columns: 1fr 1.15fr .65fr; gap: 50px; align-items: center; }
.about-lead > img { height: 340px; width: 100%; object-fit: cover; }
.awards h3 { margin-bottom: 25px; }
.award-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.award-grid img { width: 100%; height: 80px; object-fit: contain; filter: grayscale(1); opacity: .7; }
.about-story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.story-benefit { display: grid; grid-template-columns: 65px 1fr; gap: 16px; align-items: start; margin-top: 28px; }
.story-benefit-icon { width: 65px; height: 65px; display: grid; place-items: center; background: var(--gold); color: var(--blue); }
.story-benefit-icon svg { width: 32px; height: 32px; }
.story-benefit h3 { margin: 0 0 6px; }
.story-benefit p { margin: 0; }
.story-visual { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(285px, 1fr)); align-self: stretch; }
.mosaic-image { width: 100%; height: 100%; min-height: 285px; object-fit: cover; }
.mosaic-card { min-height: 285px; padding: 48px 50px; display: flex; flex-direction: column; justify-content: center; color: #eee; }
.mosaic-card.vision { background: linear-gradient(135deg, #116184, #b29a6c); }
.mosaic-card.mission { background: #b28e53; color: #fff; }
.mosaic-card h3 { color: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 65px; text-align: center; }
.process-icon { width: 120px; height: 120px; display: grid; place-items: center; margin: 0 auto 28px; background: var(--gold); color: var(--blue); }
.process-icon svg { width: 48px; height: 48px; }
.split-difference { display: grid; grid-template-columns: 1fr 1fr; }
.split-difference > img { width: 100%; height: 620px; object-fit: cover; }
.split-difference-copy { padding: 80px 90px; color: #fff; background: linear-gradient(145deg, #c49b59, #00658a); }
.split-difference-copy h2 { color: #fff; }
.check-list { list-style: none; padding: 0; margin: 35px 0 0; }
.check-list li { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; font: 700 19px Georgia, serif; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 60px; }
.team-card { position: relative; }
.team-card img { width: 100%; height: 650px; object-fit: cover; object-position: top center; }
.team-meta { width: 90%; margin: -80px auto 0; padding: 22px; position: relative; color: #fff; text-align: center; background: linear-gradient(180deg, rgba(0,83,119,.9), rgba(211,170,97,.9)); }
.team-meta h3 { margin: 0 0 4px; color: #fff; font-size: 26px; }
.team-meta span { color: #f0c779; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

.archive-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.archive-card img { width: 100%; height: 275px; object-fit: cover; }
.archive-card .category { display: inline-block; margin: -18px 0 0 20px; padding: 8px 20px; position: relative; background: #fff; color: var(--gold); font-size: 13px; }
.archive-card h2 { margin: 18px 0 14px; font-size: 23px; font-weight: 700; }
.archive-card .date { color: #aaa; font-size: 13px; }
.read-more { display: inline-block; margin-top: 28px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.single-content { max-width: 840px; margin: 0 auto; }
.single-content .featured { width: 100%; max-height: 480px; object-fit: cover; margin-bottom: 40px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 45px 35px; margin-top: 40px; }
.contact-item { display: grid; grid-template-columns: 65px 1fr; gap: 16px; align-items: center; }
.contact-item .icon { width: 65px; height: 65px; display: grid; place-items: center; background: var(--gold); color: var(--blue); }
.contact-item svg { width: 28px; }
.contact-item h3 { margin-bottom: 5px; }
.contact-form { padding: 48px; background: #fff; box-shadow: var(--shadow); }
.contact-form h2 { font-size: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 4px; color: var(--blue); font: 700 17px Georgia, serif; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #ccc; background: #fff; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(211,170,97,.2); }
.contact-form .btn { width: 100%; }
.form-message { margin-bottom: 20px; padding: 12px 15px; background: #edf8f1; color: #247044; }
.social-section { padding: 38px 0; border-top: 1px solid #ddd; text-align: center; }
.social-section .socials { justify-content: center; }
.social-section a { display: grid; place-items: center; width: 40px; height: 40px; background: var(--gold); color: var(--blue); }

/* Footer */
.site-footer { padding: 105px 0 24px; background: linear-gradient(rgba(179,138,78,.85), rgba(8,13,17,.96)), url("assets/images/law-bg.jpg") center/cover; color: #ddd; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 55px; align-items: start; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.site-footer h3 { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 10px 0; }
.site-footer li::before { content: "⊙"; margin-right: 10px; color: var(--gold); }
.footer-brand { text-align: center; }
.footer-brand img { width: 120px; margin: 0 auto 25px; }
.footer-brand .socials { justify-content: center; }
.footer-brand .socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); color: var(--gold); }
.footer-contact p { margin-bottom: 10px; }
.copyright { margin-top: 80px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); text-align: center; font-size: 13px; color: #fff; }
.whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #12ca63; color: #fff; box-shadow: 0 7px 20px rgba(0,0,0,.2); }
.whatsapp svg { width: 27px; height: 27px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 135px 1fr; gap: 25px; }
  .brand-block { height: 164px; padding: 20px; }
  .brand-block img { width: 100px; height: 110px; }
  .topbar { display: none; }
  .nav-row { height: 164px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 164px 0 auto; padding: 25px 30px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
  .intro-grid, .testimonial-grid, .about-story, .contact-grid { grid-template-columns: 1fr; }
  .service-grid, .archive-posts { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { width: 100%; margin-left: 0; }
  .about-lead { grid-template-columns: 1fr 1fr; }
  .awards { grid-column: 1 / -1; }
  .split-difference-copy { padding: 60px 45px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-row: 2; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 70px 0; }
  .header-inner { grid-template-columns: 100px 1fr; gap: 12px; }
  .brand-block { height: 128px; padding: 12px; }
  .brand-block img { width: 76px; height: 92px; }
  .nav-row { height: 128px; }
  .main-nav { inset: 128px 0 auto; }
  .home-hero { min-height: 620px; }
  .hero-copy { padding: 90px 0 120px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { min-width: 100%; }
  .stats-wrap { margin-top: -65px; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: auto; }
  .portrait-wrap { padding-left: 0; }
  .portrait-wrap img { height: 470px; }
  .experience-badge { width: 180px; }
  .service-grid, .feature-grid, .posts-grid, .archive-posts, .team-grid, .process-grid, .contact-cards, .footer-grid, .footer-links { grid-template-columns: 1fr; }
  .feature-grid { transform: translateY(35px); }
  .testimonials { padding-bottom: 170px; }
  .quotes { grid-template-columns: 1fr; gap: 120px; }
  .testimonial-image { height: 420px; }
  .news-heading { align-items: start; flex-direction: column; }
  .page-hero { min-height: 360px; }
  .about-lead { grid-template-columns: 1fr; }
  .about-lead > img { height: 360px; }
  .story-visual { grid-template-columns: 1fr; grid-template-rows: none; }
  .mosaic-card, .mosaic-image { min-height: 300px; }
  .split-difference { grid-template-columns: 1fr; }
  .split-difference > img { height: 380px; }
  .split-difference-copy { padding: 55px 28px; }
  .team-card img { height: 500px; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-brand { grid-row: auto; }
  .site-footer { padding-top: 75px; }
  .copyright { margin-top: 50px; }
}
