/* Mastrella Solutions · site.css (proposta ESU). Direção: ..\..\DESIGN.md
   Azul-marinho do logo + branco e linho frio; sálvia só no jardim; dourado só no brilho. Newsreader + Onest. Grid de 12 colunas. */
:root {
  --navy: #15324F; --navy-2: #0C2136; --linho: #F4F7F9; --azul-claro: #E6EFF6; --salvia: #2E6B4E; --salvia-claro: #E2EEE6;
  --ouro: #E9B949; --tinta: #13202D; --tinta-2: #4A5866; --linha: #D8E1E8; --sobre-navy: #C9D7E4;
  --f-disp: "Newsreader", Georgia, serif; --f-txt: "Onest", "Segoe UI", system-ui, sans-serif;
  --max: 1240px; --margem: clamp(16px, 4vw, 48px); --gap: clamp(16px, 2vw, 28px);
  --r: 14px; --r-l: 22px; --pill: 999px; --hdr: 80px;
  --ease: cubic-bezier(.23, 1, .32, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sec: clamp(72px, 9vw, 128px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--tinta); font: 400 1.0625rem/1.65 var(--f-txt); -webkit-font-smoothing: antialiased; }
::selection { background: var(--azul-claro); color: var(--navy-2); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--f-disp); font-weight: 500; letter-spacing: -.015em; text-wrap: balance; color: var(--navy-2); }
h1 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.4rem); line-height: 1.06; }
h3 { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); line-height: 1.15; }
p { margin: 0; max-width: 64ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; }
figure { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.topo { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }
.wrap { width: min(100% - 2 * var(--margem), var(--max)); margin-inline: auto; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.g12 > * { grid-column: 1 / -1; min-width: 0; }
.sec { padding-block: var(--sec); }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--tinta-2); }
.head { row-gap: 14px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.head h2 { grid-column: 1 / 7; }
.head .lead { grid-column: 8 / 13; }
.ico, .btn svg, .link svg { width: 20px; height: 20px; flex: none; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 2px solid transparent; border-radius: var(--pill); font: 600 1rem/1 var(--f-txt); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .16s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--azul-claro); }
.btn-sun { background: var(--ouro); color: var(--navy-2); }
.btn-sun:hover { background: #F2CB6A; }
.btn-line-claro { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-line-claro:hover { background: rgba(255, 255, 255, .1); }
.btn:hover svg, .link:hover svg { transform: translateX(3px); }
.btn svg, .link svg { transition: transform .25s var(--ease); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--navy); text-decoration: underline; }
.link-claro { color: #fff; }

/* cabeçalho */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease; }
.hdr.mini { border-bottom-color: var(--linha); box-shadow: 0 10px 30px -24px rgba(12, 33, 54, .5); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--hdr); transition: height .25s var(--ease); }
.hdr.mini .hdr-in { height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font: 600 1.7rem/1 var(--f-disp); letter-spacing: -.01em; }
.logo-ico { width: 38px; height: 38px; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: .97rem; text-decoration: none; color: var(--tinta-2); transition: color .18s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-tel { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; font-weight: 600; color: var(--navy); text-decoration: none; }
.hdr-tel svg { width: 18px; height: 18px; }
.menu-btn { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--azul-claro); cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); transition: transform .2s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* abertura */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #fff 0%, var(--linho) 100%); }
.hero .g12 { row-gap: 40px; align-items: center; }
.hero-tx { grid-column: 1 / 7; }
.hero .lead { margin-top: 22px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 28px; margin-top: 30px !important; font-weight: 600; font-size: .97rem; color: var(--navy); }
.trust li, .svc li { display: flex; align-items: flex-start; gap: 9px; }
.trust svg, .svc li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--salvia); }
.hero-fotos { grid-column: 7 / 13; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, clamp(170px, 16vw, 250px)); gap: var(--gap); }
.hero-fotos figure { border-radius: var(--r-l); overflow: hidden; background: var(--azul-claro); }
.hero-fotos img { width: 100%; height: 100%; object-fit: cover; }
.hf-a { grid-row: 1 / 3; }
.hf-nota { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 22px; border-radius: var(--r-l); background: var(--navy); color: #fff; text-decoration: none; transition: background-color .2s; }
.hf-nota:hover { background: var(--navy-2); }
.hf-nota b { font: 500 clamp(2.4rem, 1.8rem + 1.5vw, 3.4rem)/1 var(--f-disp); }
.hf-nota span { color: var(--sobre-navy); font-size: .95rem; }
.stars { display: inline-flex; gap: 3px; color: var(--ouro); }
.stars svg { width: 18px; height: 18px; }

/* o jeito brasileiro */
.why .g12 { row-gap: 40px; align-items: center; }
.why-ph { grid-column: 1 / 6; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--azul-claro); }
.why-ph img { width: 100%; height: 100%; object-fit: cover; }
.why-tx { grid-column: 7 / 13; }
.why-tx .lead { margin-top: 20px; color: var(--tinta); }
.why-tx .lead + p { margin-top: 16px; color: var(--tinta-2); }
.habits { margin-top: 28px !important; border-top: 1px solid var(--linha); }
.habits li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.habits b { font: 500 1.2rem/1.3 var(--f-disp); color: var(--navy-2); }
.habits span { color: var(--tinta-2); }

/* serviços */
.services { background: var(--linho); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.svc { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-l); background: #fff; box-shadow: 0 1px 0 var(--linha), 0 24px 50px -40px rgba(12, 33, 54, .45); transition: transform .3s var(--ease), box-shadow .3s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--linha), 0 34px 60px -40px rgba(12, 33, 54, .55); }
.svc figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--azul-claro); }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover img { transform: scale(1.04); }
.svc-tx { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 30px); }
.svc-tx p { margin-top: 10px; color: var(--tinta-2); }
.svc ul { display: grid; gap: 8px; margin: 18px 0 20px !important; padding-top: 16px !important; border-top: 1px solid var(--linha); font-size: .98rem; }
.svc .link { margin-top: auto; }
.svc.garden h3 { color: #1E4A35; }
.svc.garden li svg { color: var(--salvia); }

/* trabalhos */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(170px, 18vw, 280px)); gap: var(--gap); }
.gal figure, .g5 { border-radius: var(--r-l); overflow: hidden; background: var(--azul-claro); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal figure:hover img { transform: scale(1.04); }
.g1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.g5 { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; background: var(--salvia); color: #fff; text-decoration: none; transition: background-color .2s; }
.g5:hover { background: #245A40; }
.g5 svg { width: 30px; height: 30px; margin-bottom: auto; }
.g5 b { font: 500 1.5rem/1.2 var(--f-disp); }
.g5 span { color: #D4E8DC; }

/* avaliações */
.reviews { background: var(--navy); color: #fff; }
.reviews h2 { color: #fff; }
.reviews .g12 { row-gap: 40px; align-items: start; }
.rev-head { grid-column: 1 / 5; }
.rev-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 22px 0 10px; color: var(--sobre-navy); }
.rev-score b { font: 500 3.2rem/1 var(--f-disp); color: #fff; }
.quotes { grid-column: 6 / 13; display: grid; gap: 22px; }
.quotes figure { padding: 0 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.quotes blockquote { margin: 0; }
.quotes p { font: 500 clamp(1.25rem, 1.05rem + .7vw, 1.6rem)/1.35 var(--f-disp); color: #fff; }
.quotes figcaption { margin-top: 10px; font-size: .92rem; font-weight: 600; color: var(--sobre-navy); }

/* áreas */
.areas .g12 { row-gap: 32px; align-items: start; }
.areas-tx { grid-column: 1 / 6; }
.areas-tx .lead { margin-top: 18px; }
.counties { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.counties li { padding: 22px; border: 1px solid var(--linha); border-radius: var(--r); background: var(--linho); }
.counties b { display: block; font: 500 1.4rem/1.2 var(--f-disp); color: var(--navy-2); }
.counties span { display: block; margin-top: 6px; color: var(--tinta-2); font-size: .97rem; }

/* orçamento (pico) */
.quote { background: var(--navy-2); color: #fff; }
.quote .g12 { row-gap: 32px; align-items: start; }
.q-form { grid-column: 1 / 8; }
.q-form h2 { color: #fff; }
.q-form .lead { margin-top: 14px; color: var(--sobre-navy); }
fieldset { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 10px; padding: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: var(--pill); font-weight: 500; transition: background-color .18s, border-color .18s, color .18s, transform .16s var(--ease); }
.chips label:hover span { border-color: #fff; }
.chips input:checked + span { background: var(--ouro); border-color: var(--ouro); color: var(--navy-2); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: 3px; }
.chips label:active span { transform: scale(.96); }
.q-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.field { margin-top: 22px; max-width: none; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; }
.field small { font-weight: 400; color: var(--sobre-navy); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; outline: none; transition: border-color .18s, background-color .18s; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9FB2C4; }
.field input:focus, .field textarea:focus { border-color: var(--ouro); background: rgba(255, 255, 255, .1); }
.err { margin-top: 8px; color: #FFC2B3; font-size: .92rem; font-weight: 600; }
.q-send { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.q-note { margin-top: 16px; color: var(--sobre-navy); }
.q-note a { color: #fff; font-weight: 600; }
.ticket { grid-column: 9 / 13; position: sticky; top: 96px; padding: 26px; border-radius: var(--r-l); background: #fff; color: var(--tinta); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.t-top { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px dashed var(--linha); font: 500 1.4rem/1 var(--f-disp); color: var(--navy-2); }
.t-top svg { width: 22px; height: 22px; color: var(--ouro); }
.ticket dl { margin: 6px 0 0; }
.ticket dl div { padding: 12px 0; border-bottom: 1px solid var(--linha); }
.ticket dt { font-size: .82rem; font-weight: 700; color: var(--tinta-2); }
.ticket dd { margin: 3px 0 0; font-weight: 600; color: var(--navy-2); }
.ticket dd.vazio { color: #8796A4; font-weight: 500; }
.ticket dd.pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.05); } }
.t-foot { margin-top: 14px; font-size: .85rem; color: var(--tinta-2); }

/* dúvidas */
.faq .g12 { row-gap: 28px; align-items: start; }
.faq h2 { grid-column: 1 / 5; }
.faq-list { grid-column: 6 / 13; border-top: 1px solid var(--linha); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--navy), var(--navy)) center / 14px 2px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 2px 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--tinta-2); }

/* chamada + rodapé */
.cta { padding-block: clamp(56px, 7vw, 96px); background: var(--azul-claro); }
.cta .g12 { row-gap: 20px; align-items: center; }
.cta h2 { grid-column: 1 / 8; }
.cta-btns { grid-column: 9 / 13; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.ftr { padding-block: 56px 32px; background: var(--navy-2); color: var(--sobre-navy); font-size: .95rem; }
.ftr .g12 { row-gap: 32px; }
.ftr .logo { color: #fff; }
.ftr-brand { grid-column: 1 / 5; }
.ftr-brand p { margin-top: 14px; }
.ftr-col { grid-column: span 2; }
.ftr-col:nth-of-type(2) { grid-column: 6 / 9; }
.ftr-col:nth-of-type(3) { grid-column: 9 / 11; }
.ftr-col:nth-of-type(4) { grid-column: 11 / 13; }
.ftr h2 { margin-bottom: 10px; font: 600 .95rem/1.2 var(--f-txt); color: #fff; letter-spacing: 0; }
.ftr a { color: #fff; }
.ftr-legal { grid-column: 1 / -1; max-width: none; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .82rem; }

/* entrada e revelações */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-tx > * { animation: sobe .8s var(--ease) both; }
  .js .hero-tx > :nth-child(2) { animation-delay: .08s; }
  .js .hero-tx > :nth-child(3) { animation-delay: .16s; }
  .js .hero-tx > :nth-child(4) { animation-delay: .24s; }
  .js .hero-fotos > * { animation: revela 1s var(--ease) both; }
  .js .hero-fotos > :nth-child(2) { animation-delay: .1s; }
  .js .hero-fotos > :nth-child(3) { animation-delay: .2s; }
  .js [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-rv].in { opacity: 1; transform: none; }
}
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } }
@keyframes revela { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }

/* tamanhos */
@media (max-width: 1100px) {
  .nav { display: none; position: fixed; inset: 66px 0 auto; z-index: 49; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--margem) 24px; background: #fff; box-shadow: 0 20px 40px -24px rgba(12, 33, 54, .4); }
  .nav.open { display: flex; }
  .nav a { min-height: 56px; border-bottom: 1px solid var(--linha); font: 500 1.5rem/1 var(--f-disp); color: var(--navy-2); }
  .nav a::after { display: none; }
  .menu-btn { display: block; }
  .hdr-tel span { display: none; }
}
@media (max-width: 900px) {
  .hero-tx, .hero-fotos, .why-ph, .why-tx, .head h2, .head .lead, .rev-head, .quotes, .areas-tx, .counties, .q-form, .ticket, .faq h2, .faq-list, .cta h2, .cta-btns { grid-column: 1 / -1; }
  .why-ph { max-width: 460px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: clamp(220px, 60vw, 360px) repeat(2, clamp(150px, 40vw, 240px)); }
  .g1 { grid-column: 1 / -1; grid-row: 1; }
  .ticket { position: static; }
  .ftr-brand, .ftr-col, .ftr-col:nth-of-type(2), .ftr-col:nth-of-type(3), .ftr-col:nth-of-type(4) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hdr-cta { display: none; }
  .hero-ctas .btn, .q-send .btn { width: 100%; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .hero-fotos { grid-template-rows: repeat(2, clamp(140px, 38vw, 200px)); }
  .habits li { grid-template-columns: minmax(0, 1fr); }
  .counties, .q-row { grid-template-columns: minmax(0, 1fr); }
}
