:root {
  --ink: var(--wp--preset--color--aztec-ink, #0f0f04);
  --muted: var(--wp--preset--color--aztec-muted, #56584e);
  --paper: var(--wp--preset--color--aztec-paper, #f8f8f3);
  --surface: var(--wp--preset--color--aztec-surface, #ffffff);
  --orange: var(--wp--preset--color--aztec-orange, #ff7f00);
  --orange-dark: var(--wp--preset--color--aztec-orange-dark, #a94800);
  --green: var(--wp--preset--color--aztec-green, #66aa33);
  --blue: var(--wp--preset--color--aztec-blue, #1476bb);
  --line: #dedfd5;
  --radius: 1.25rem;
  --shadow: 0 1rem 3rem rgba(15, 15, 4, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.7rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Aptos, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.sr-only { 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 { position: fixed; z-index: 20; left: 1rem; top: -4rem; padding: .7rem 1rem; background: var(--orange); color: var(--ink); border-radius: .5rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; z-index: 10; top: 0; background: rgba(248, 248, 243, .96); border-bottom: 1px solid rgba(15, 15, 4, .1); backdrop-filter: blur(12px); }
.header-inner { min-height: 5.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { width: 190px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 1.35rem; font-size: .9rem; font-weight: 650; }
.main-nav a { text-decoration: none; transition: color .2s ease; }
.main-nav a:not(.nav-cta):hover { color: var(--orange-dark); }
.nav-cta { padding: .6rem .95rem; color: #fff; background: var(--ink); border-radius: .45rem; }
.nav-cta:hover { background: var(--orange-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: .65rem; background: transparent; border: 1px solid var(--ink); border-radius: .45rem; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { position: relative; min-height: min(720px, calc(100vh - 5.35rem)); display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--ink); }
.hero-backdrop { position: absolute; inset: 0; background: var(--ink); }
.hero-content { position: relative; padding: 7.5rem 0 5rem; max-width: 1160px; }
.eyebrow { margin: 0 0 1rem; color: var(--orange-dark); font-size: .78rem; font-weight: 850; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.hero .eyebrow { color: #ffb35b; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 { max-width: 850px; margin-bottom: 1.3rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 5.5vw, 5.5rem); font-weight: 500; letter-spacing: -.055em; }
.hero-copy { max-width: 680px; margin-bottom: 2rem; color: rgba(255,255,255,.88); font-size: clamp(1.03rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3.05rem; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: .45rem; font-weight: 800; text-align: center; text-decoration: none; transition: transform .2s ease, background .2s ease, border .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--orange); }
.button-primary:hover { background: #ff9a38; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); }
.button-ghost:hover { background: rgba(255,255,255,.16); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: var(--orange-dark); }
.hero-highlights { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; padding: 0; margin: 4rem 0 0; list-style: none; font-size: .83rem; font-weight: 700; }
.hero-highlights li::before { display: inline-block; width: .45rem; height: .45rem; margin-right: .5rem; border-radius: 50%; background: var(--orange); content: ""; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-heading { max-width: 700px; margin-bottom: 3rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .quote-panel h2, .about h2, .closing-cta h2 { margin-bottom: 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4.3vw, 4rem); font-weight: 500; letter-spacing: -.05em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.06rem; }

.solutions { background: var(--surface); }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.solution-card { position: relative; display: grid; grid-template-rows: 200px auto; min-height: 540px; overflow: hidden; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.solution-card > img { width: 100%; height: 100%; object-fit: cover; }
.solution-card > div { display: flex; flex-direction: column; padding: 1.6rem; background: var(--surface); }
.solution-card h3 { margin-bottom: .85rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; font-weight: 500; }
.solution-card p:not(.card-number) { color: var(--muted); }
.card-number { margin-bottom: .65rem; color: var(--orange-dark); font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.text-link { align-self: flex-start; padding: 0; margin-top: auto; color: var(--ink); border: 0; background: none; font-weight: 850; text-decoration: none; }
.text-link:hover { color: var(--orange-dark); }

.quote-panel { color: #fff; background: var(--ink); }
.quote-panel .eyebrow { color: #ffb35b; }
.quote-panel p:not(.eyebrow):not(.form-note) { max-width: 560px; color: rgba(255,255,255,.76); }
.quote-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.unit-list { display: grid; gap: .75rem; margin-top: 2rem; }
.unit-list a { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: 1rem; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: .6rem; text-decoration: none; }
.unit-list a:hover { border-color: var(--orange); background: rgba(255,255,255,.05); }
.unit-list span { color: #ffb35b; font-size: .9rem; }
.quote-form { display: grid; gap: 1.05rem; padding: clamp(1.35rem, 3vw, 2.4rem); color: var(--ink); background: var(--surface); border-radius: var(--radius); }
.quote-form label { display: grid; gap: .4rem; font-weight: 750; }
.optional, .form-note { color: var(--muted); font-size: .8rem; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: .75rem; color: var(--ink); border: 1px solid #85867c; border-radius: .35rem; background: #fff; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 3px solid rgba(255,127,0,.35); border-color: var(--orange-dark); }
.quote-form textarea { resize: vertical; }
.quote-form .button { width: 100%; }
.quote-form .form-note { margin: 0; text-align: center; }

.process { background: #ecece4; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.process-grid li { position: relative; min-height: 285px; padding: 1.3rem; background: var(--surface); border-top: 4px solid var(--orange); border-radius: .75rem; }
.process-grid li img { width: 48px; height: 48px; margin-bottom: 1.3rem; }
.process-grid li > span { position: absolute; top: 1rem; right: 1rem; color: #65665b; font-size: .83rem; font-weight: 800; }
.process-grid h3 { margin-bottom: .75rem; font-size: 1.28rem; }
.process-grid p { color: var(--muted); font-size: .92rem; }

.projects { background: var(--surface); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.project-card { position: relative; min-height: 300px; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.04); }
.project-card::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,15,4,.9), rgba(15,15,4,.02) 65%); content: ""; }
.project-card > div { position: absolute; z-index: 1; right: 1.4rem; bottom: 1.25rem; left: 1.4rem; color: #fff; }
.project-card p { margin-bottom: .35rem; color: #ffb35b; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin-bottom: .35rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 500; }
.project-card span { display: block; max-width: 520px; color: rgba(255,255,255,.82); font-size: .92rem; }
.project-wide { grid-row: span 2; min-height: 620px; }

.about { background: #e7f0df; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-layout > img { min-height: 500px; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-layout p:not(.eyebrow) { color: #45483e; }
.about-layout .button { margin-top: .7rem; }

.closing-cta { padding: clamp(4.5rem, 8vw, 7rem) 0; color: #fff; background: linear-gradient(115deg, #1476bb, #0d446e); text-align: center; }
.closing-cta .container { max-width: 780px; }
.closing-cta .eyebrow { color: #ffd38f; }
.closing-cta h2 { margin-bottom: 1rem; }
.closing-cta p:not(.eyebrow) { max-width: 630px; margin-inline: auto; color: rgba(255,255,255,.88); }
.closing-cta .button { margin-top: .8rem; }

.site-footer { padding: 3rem 0 1.2rem; color: #fff; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { filter: brightness(0) invert(1); }
.footer-grid h2 { margin-bottom: .65rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid div { display: grid; align-content: start; gap: .45rem; }
.footer-grid div a { color: rgba(255,255,255,.76); font-size: .9rem; text-decoration: none; }
.footer-grid div a:hover { color: #ffb35b; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.15); font-size: .75rem; }

@media (max-width: 900px) {
  .main-nav { gap: .8rem; font-size: .82rem; }
  .solution-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-layout, .about-layout { grid-template-columns: 1fr; }
  .about-layout > img { min-height: 360px; max-height: 520px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 2rem, 1160px); }
  .header-inner { min-height: 4.6rem; }
  .brand img { width: 165px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: .7rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 1rem 1.5rem rgba(15,15,4,.08); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: .85rem .4rem; }
  .main-nav .nav-cta { margin-top: .4rem; padding: .8rem 1rem; text-align: center; }
  .hero { min-height: 680px; }
  .hero-backdrop { background-position: 62% center; }
  .hero-content { padding: 5.7rem 0 3.5rem; }
  h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-highlights { display: grid; gap: .6rem; margin-top: 2.5rem; }
  .section { padding: 4.2rem 0; }
  .solution-grid, .process-grid, .project-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: auto; grid-template-rows: 190px auto; }
  .solution-card > div { min-height: 315px; }
  .process-grid li { min-height: auto; }
  .project-wide { min-height: 430px; }
  .project-card { min-height: 300px; }
  .unit-list a { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Ajustes de integração e acessibilidade; o layout da homepage é preservado. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 4px; }
.hero :focus-visible, .quote-panel > .container > div :focus-visible, .site-footer :focus-visible { outline-color: #ffb35b; }
.hero-backdrop .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-backdrop::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(15,15,4,.95) 0%, rgba(15,15,4,.73) 51%, rgba(15,15,4,.36) 100%); }
.brand, .custom-logo-link { flex-shrink: 0; display: block; }
.custom-logo { width: 190px; height: auto; }
.main-nav { gap: 0; }
.main-nav ul { list-style: none; padding: 0; margin: 0; }
.main-nav > .menu { display: flex; align-items: center; gap: 1rem; }
.main-nav .menu > li { position: relative; display: flex; align-items: center; }
.main-nav .menu > li > a { white-space: nowrap; }
.main-nav .sub-menu { display: none; position: absolute; z-index: 12; top: 100%; left: 0; min-width: 245px; padding: .65rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; box-shadow: var(--shadow); }
.main-nav .sub-menu a { display: block; padding: .75rem; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.aztec-nav-ready .main-nav li > .sub-menu { display: none; }
.aztec-nav-ready .main-nav li.submenu-open > .sub-menu { display: block; }
.submenu-toggle { width: 28px; min-height: 36px; border: 0; background: transparent; color: inherit; }
.footer-menu { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.footer-brand .custom-logo { filter: brightness(0) invert(1); }
.admin-bar .site-header { top: 32px; }
.admin-bar { scroll-padding-top: 8rem; }
.quote-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.05rem; }
.quote-form[data-enhanced="false"] .quote-fields { display: none; }
.quote-form input, .quote-form select, .quote-form textarea { min-width: 0; }
.quote-form label > .optional { margin-top: -.3rem; }
.field-error { color: #aa241b; font-size: .8rem; font-weight: 600; }
.field-error:empty { display: none; }
.quote-form [aria-invalid="true"] { border: 2px solid #aa241b; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.whatsapp-result { width: 100%; }
.project-card > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-grid > .project-card:last-child:nth-child(4) { grid-column: 1 / -1; }
.project-card a { text-underline-offset: .15em; }
.project-managed { min-height: 330px; }
.project-managed:not(:has(> img)) { background: linear-gradient(135deg, #0f0f04, #244357); }
.internal-main { min-height: 55vh; }
.page-heading { max-width: 900px; margin-bottom: 2.5rem; }
.page-heading h1 { max-width: 900px; font-size: clamp(2.3rem, 4.7vw, 4rem); overflow-wrap: anywhere; }
.page-heading .search-form { margin-top: 2rem; }
.entry-content { max-width: 800px; margin-inline: auto; overflow-wrap: anywhere; }
.entry-content h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3vw, 2.8rem); margin-top: 2rem; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.5rem; }
.entry-content a:not(.wp-element-button) { color: var(--orange-dark); text-underline-offset: .15em; }
.entry-content .alignwide { width: min(1160px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: calc(100vw - 40px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content figure { max-width: 100%; margin-inline: 0; }
.entry-content iframe { max-width: 100%; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: #ecece4; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .65rem; }
.page-featured { max-width: 1160px; margin-bottom: 2rem; }
.page-featured img { width: 100%; height: auto; max-height: 650px; object-fit: contain; border-radius: var(--radius); }
.entry-meta { color: var(--muted); font-size: .875rem; }
.entry-taxonomies { max-width: 800px; margin: 2rem auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; margin-top: 2rem; }
.post-card { overflow: hidden; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.post-card-image img { width: 100%; height: 220px; object-fit: cover; }
.post-card-content { padding: 1.5rem; }
.post-card-content h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; overflow-wrap: anywhere; }
.post-card-content h2 a { text-decoration: none; }
.post-card-content .text-link { display: inline-block; margin-top: 1rem; }
.entry-summary { color: var(--muted); overflow-wrap: anywhere; }
.pagination, .posts-navigation, .post-navigation { margin-top: 2.5rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.page-numbers { display: inline-block; padding: .6rem .85rem; }
.page-numbers.current { background: var(--ink); color: #fff; border-radius: .4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.search-form { max-width: 650px; margin-bottom: 2rem; }
.search-form label { display: block; font-weight: 700; margin-bottom: .5rem; }
.search-controls { display: flex; gap: .75rem; }
.search-controls input { flex: 1; width: 100%; min-width: 0; font: inherit; padding: .75rem; border: 1px solid #85867c; border-radius: .35rem; }
.comments-area { margin: 3rem auto 0; max-width: 800px; }
.comment-list { padding-left: 1.25rem; }
.comment-list .children { padding-left: 1.25rem; }
.comment-form label { display: block; margin-bottom: .4rem; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { max-width: 100%; padding: .75rem; border: 1px solid #85867c; border-radius: .35rem; }
.comment-form textarea { width: 100%; }
.comment-form .submit { color: var(--ink); background: var(--orange); font-weight: 800; cursor: pointer; }
.comment-form-cookies-consent label { display: inline; }
.empty-state { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 1rem; padding-block: 1rem; }
  .site-header { position: relative; }
  .aztec-nav-ready .site-header { position: sticky; }
  .aztec-nav-ready .menu-toggle { display: block; }
  .main-nav { display: block; position: static; width: 100%; padding: 0; background: var(--paper); box-shadow: none; }
  .main-nav > .menu { display: grid; gap: 0; }
  .main-nav .menu > li { display: flex; flex-wrap: wrap; }
  .main-nav .menu > li > a { flex: 1; padding: .85rem .4rem; white-space: normal; }
  .main-nav .menu > li > .nav-cta { padding: .8rem 1rem; text-align: center; }
  .main-nav .sub-menu { display: block; position: static; flex-basis: 100%; min-width: 0; padding-left: 1rem; border: 0; box-shadow: none; }
  .aztec-nav-ready .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; width: 100%; padding: .5rem 1rem 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - 100px); overflow-y: auto; }
  .aztec-nav-ready .main-nav.is-open { display: block; }
  .submenu-toggle { width: 44px; min-height: 44px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 680px) {
  .hero-backdrop .hero-image { object-position: 62% center; }
  .custom-logo { width: 165px; }
  .header-inner { padding-block: .9rem; }
  .project-grid > .project-card:last-child:nth-child(4) { grid-column: auto; }
  .project-wide { min-height: 430px; }
  .post-grid { grid-template-columns: 1fr; }
  .search-controls { flex-direction: column; }
  .entry-content .alignwide, .entry-content .alignfull { width: calc(100vw - 32px); }
  .unit-list a { min-width: 0; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
