/* ═══════════════════════════════════════════════════
   Contae
   Identidade preservada: vermelho da logo sobre papel
   creme e tinta quase preta. Display em serif, como o
   lettering da marca.
   ═══════════════════════════════════════════════════ */

:root {
  --red: #a81527;
  --red-dark: #760b18;
  --red-bright: #e42a38;
  --ink: #151515;
  --paper: #f4f0ea;
  --white: #fff;
  --muted: #6e6864;
  --line: rgba(21, 21, 21, .14);
  --shell: min(1180px, calc(100% - 48px));
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: min(860px, calc(100% - 48px)); }
.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; left: 16px; top: -60px; z-index: 999; background: var(--white); padding: 10px 16px; font-weight: 800; border-radius: 0 0 8px 8px; transition: top .2s; }
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible, .depo-trilho:focus-visible {
  outline: 3px solid var(--red-bright); outline-offset: 3px;
}

/* ── Cabecalho ──────────────────────────────────── */
.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; color: var(--white); }
.header-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.18); }
/* a logo do cabecalho usa a versao clara, com fundo transparente, direto
   sobre o hero escuro: sem cartao atras */
.brand { display: grid; place-items: center; }
.brand img { width: auto; height: 80px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .91rem; font-weight: 650; }
.main-nav > a:not(.nav-cta) { position: relative; white-space: nowrap; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--white); transition: width .25s; }
.main-nav > a:hover::after, .main-nav > a:focus-visible::after { width: 100%; }
.nav-cta { border: 1px solid rgba(255,255,255,.55); padding: 12px 18px; white-space: nowrap; transition: background .2s, color .2s; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--white); color: var(--red-dark); }
.menu-button { display: none; border: 0; background: none; color: inherit; padding: 12px; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

/* ── Hero ───────────────────────────────────────── */
.hero { position: relative; color: var(--white); background: var(--ink); min-height: 790px; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 47% 0 0; background: radial-gradient(circle at 70% 48%, rgba(228,42,56,.20), transparent 52%); z-index: -1; }
.hero-cut { position: absolute; z-index: -2; right: -8%; top: 0; width: 58%; height: 100%; background: linear-gradient(135deg, var(--red-bright), var(--red) 58%, var(--red-dark)); clip-path: polygon(20% 0,100% 0,100% 100%,0 100%,15% 58%,2% 29%); }
.hero-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 70px; align-items: center; min-height: 790px; padding-top: 124px; padding-bottom: 58px; }
.hero-copy { max-width: 660px; }
.eyebrow { margin: 0 0 20px; color: #ffbac1; font-size: .75rem; line-height: 1.2; font-weight: 850; text-transform: uppercase; letter-spacing: .18em; }
.eyebrow::before { content: ""; display: inline-block; width: 36px; height: 2px; margin-right: 12px; vertical-align: 4px; background: currentColor; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; max-width: 720px; font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 3.7rem); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
h1 em, h2 em { color: #ff5d68; font-weight: 600; }
.hero-lead { max-width: 610px; margin: 28px 0 0; color: #d5d2d0; font-size: 1.12rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 14px; padding: 13px 22px; font-size: .9rem; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--red-bright); color: var(--white); box-shadow: 0 14px 35px rgba(228,42,56,.28); }
.button-primary:hover { box-shadow: 0 17px 40px rgba(228,42,56,.4); }
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.text-link { font-weight: 750; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 4px; }
.text-link span { margin-left: 8px; }
.hero-contact { display: flex; flex-direction: column; margin-top: 48px; padding-left: 18px; border-left: 2px solid var(--red-bright); }
.hero-contact span { color: #a9a5a1; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.hero-contact strong { margin-top: 4px; font-size: .94rem; font-weight: 650; }
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 500px; }
.hero-brand-card { position: relative; display: flex; flex-direction: column; padding: 52px 16px 16px; color: var(--ink); background: #f8f5f0; box-shadow: 0 30px 70px rgba(0,0,0,.32); transform: rotate(1.5deg); overflow: hidden; }
.hero-brand-card::before { content: ""; position: absolute; inset: -22px 25px 22px -25px; border: 1px solid rgba(255,255,255,.38); z-index: -1; }
.hero-brand-card::after { content: ""; position: absolute; right: -90px; top: -80px; width: 235px; height: 235px; background: var(--red-bright); transform: rotate(34deg); opacity: .96; }
.hero-brand-card img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-card-kicker { position: absolute; z-index: 2; left: 28px; top: 26px; color: var(--red); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .16em; }
.hero-card-services { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding: 4px 0 8px; }
.hero-card-services span { color: var(--muted); font-size: .72rem; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .09em; border-right: 1px solid rgba(21,21,21,.16); }
.hero-card-services span:last-child { border-right: 0; }
.floating-contact { position: absolute; left: -72px; bottom: -28px; display: flex; align-items: center; gap: 13px; min-width: 260px; padding: 16px 18px; color: var(--ink); background: var(--white); box-shadow: 0 18px 45px rgba(0,0,0,.26); }
.floating-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--red); color: var(--white); border-radius: 50%; }
.floating-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.floating-contact small, .floating-contact strong { display: block; }
.floating-contact small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.floating-contact strong { font-size: .93rem; }

/* ── Faixa ──────────────────────────────────────── */
.signal-bar { color: var(--white); background: var(--red-dark); }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal-grid > div { display: flex; align-items: center; gap: 18px; min-height: 118px; padding: 25px 38px; border-right: 1px solid rgba(255,255,255,.15); }
.signal-grid > div:first-child { border-left: 1px solid rgba(255,255,255,.15); }
.signal-grid span { font-family: var(--serif); color: #ff7b84; font-style: italic; font-size: 1.4rem; }
.signal-grid p { margin: 0; font-size: .9rem; font-weight: 620; line-height: 1.5; }

/* ── Secoes ─────────────────────────────────────── */
.section { padding: 118px 0; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; margin-bottom: 58px; }
.eyebrow-dark { color: var(--red); }
h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.3rem, 4.3vw, 4rem); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }

/* ── Servicos ───────────────────────────────────── */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 330px; position: relative; display: flex; flex-direction: column; padding: 34px; background: rgba(255,255,255,.28); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color .25s, background .25s, transform .25s; }
.service-card:hover { color: var(--white); background: var(--red); transform: translateY(-5px); z-index: 2; }
.service-card-featured { color: var(--white); background: var(--ink); }
.service-number { align-self: flex-end; font-family: var(--serif); color: var(--red); font-style: italic; }
.service-card:hover .service-number, .service-card-featured .service-number { color: #ff9da4; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 28px 0 32px; border: 1px solid currentColor; border-radius: 50%; }
.service-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: auto 0 12px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.service-card:hover p, .service-card-featured p { color: rgba(255,255,255,.72); }
.service-card-wide { grid-column: span 3; min-height: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.service-card-wide .service-number { position: absolute; right: 34px; top: 28px; }
.service-card-wide .service-icon { margin: 0; }
.service-card-wide h3 { margin: 0 0 5px; }
.service-card-wide a { align-self: end; margin-right: 38px; font-weight: 800; border-bottom: 1px solid currentColor; }

/* ── A Contae ───────────────────────────────────── */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 100px; }
.about-mark { position: relative; }
.about-mark::before { content: ""; position: absolute; inset: 14% -24px -24px 22%; background: var(--ink); }
.about-mark img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.red-frame { position: absolute; z-index: 2; width: 105px; height: 105px; right: -38px; top: -36px; border: 13px solid var(--red-bright); }
.about-label { position: absolute; z-index: 3; right: -40px; bottom: 18px; min-width: 182px; padding: 18px 22px; color: var(--white); background: var(--red); }
.about-label span, .about-label small { display: block; }
.about-label span { font-family: var(--serif); font-size: 1.45rem; }
.about-label small { color: #ffb8bd; text-transform: uppercase; letter-spacing: .1em; }
.about-copy > p { margin: 28px 0 0; color: var(--muted); font-size: 1.06rem; line-height: 1.8; }
.principles { margin: 38px 0 34px; border-top: 1px solid var(--line); }
.principles > div { display: grid; grid-template-columns: 55px 1fr; gap: 16px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.principles span { color: var(--red); font-family: var(--serif); font-style: italic; }
.principles strong { font-size: .96rem; }
.text-link-dark { display: inline-block; color: var(--red); border-color: currentColor; }

/* ── Depoimentos ────────────────────────────────── */
.depo { background: var(--paper); padding-bottom: 92px; }
.depo h2 { margin-bottom: 46px; }
.depo-trilho { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(24px, calc((100% - 1180px) / 2)) 28px; scrollbar-width: thin; }
.depo-trilho blockquote { margin: 0; scroll-snap-align: start; flex: 0 0 min(390px, 80vw); display: flex; flex-direction: column; gap: 22px; padding: 32px 30px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.depo-trilho p { margin: 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; }
.depo-trilho footer { margin-top: auto; color: var(--muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.depo-trilho::-webkit-scrollbar { height: 6px; }
.depo-trilho::-webkit-scrollbar-thumb { background: rgba(21,21,21,.2); }

/* ── Onde estamos ───────────────────────────────── */
.onde { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-top: 1px solid var(--line); }
.onde > * { min-width: 0; }
.onde-mapa { min-height: 100%; }
.onde-mapa iframe { width: 100%; height: 100%; min-height: 520px; border: 0; filter: grayscale(.55) contrast(1.04); }
.onde-info { padding: clamp(48px, 5vw, 92px) clamp(24px, 4vw, 72px); }
.onde-info > p { margin: 22px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.8; max-width: 52ch; }
.onde-dados { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin: 38px 0 0; }
.onde-dados > div { border-top: 1px solid var(--line); padding-top: 14px; }
.onde-dados dt { color: var(--red); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.onde-dados dd { margin: 7px 0 0; font-size: .98rem; font-weight: 600; line-height: 1.5; }
.onde-dados a:hover { color: var(--red); }
.onde-foto { margin: 36px 0 0; }
.onde-foto img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ── Duvidas ────────────────────────────────────── */
.faq-section { background: var(--paper); }
.faq-section h2 { margin-bottom: 40px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 2px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--red); transition: transform .25s, opacity .25s; }
.faq-plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq details[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq details p { margin: 0; padding: 0 2px 26px; color: var(--muted); line-height: 1.8; max-width: 66ch; }

/* ── Contato ────────────────────────────────────── */
.contact { position: relative; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -2; inset: 0 auto 0 0; width: 52%; background: linear-gradient(150deg, #a81527, #700914); }
.contact-shape { position: absolute; z-index: -1; left: 41%; top: -16%; width: 280px; height: 140%; background: var(--ink); transform: rotate(14deg); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 120px; align-items: center; }
.contact h2 em { color: #ff9da4; }
.contact-card { padding: 44px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); }
.contact-card > p { margin: 0 0 28px; color: #c9c4c1; font-size: 1.05rem; }
.button-light { color: var(--red-dark); background: var(--white); }
.contact-details { display: grid; gap: 17px; margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.16); }
.contact-details small, .contact-details strong { display: block; }
.contact-details small { color: #8f8985; text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; }
.contact-details strong { margin-top: 2px; font-size: .94rem; }

/* ── Rodape ─────────────────────────────────────── */
.site-footer { padding: 32px 0; color: #aaa4a0; background: #0e0e0e; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.footer-grid img { width: 54px; height: 54px; object-fit: contain; opacity: .9; }
.footer-grid p { margin: 0; font-size: .78rem; line-height: 1.6; }
.whatsapp-fab { position: fixed; z-index: 50; right: 24px; bottom: 24px; display: grid; place-items: center; width: 58px; height: 58px; color: var(--white); background: #25d366; border: 4px solid var(--white); border-radius: 50%; box-shadow: 0 14px 30px rgba(0,0,0,.25); transition: transform .2s; }
.whatsapp-fab:hover, .whatsapp-fab:focus-visible { transform: translateY(-4px) scale(1.03); }
.whatsapp-fab svg { width: 28px; fill: currentColor; }

/* ── Responsivo ─────────────────────────────────── */
@media (max-width: 1080px) {
  .main-nav { gap: 22px; font-size: .86rem; }
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .shell-narrow { width: min(100% - 36px, 760px); }
  .header-inner { min-height: 88px; }
  .brand { width: 82px; height: 64px; }
  .brand img { width: 62px; height: 52px; }
  .menu-button { display: block; z-index: 2; }
  .main-nav { position: absolute; top: 78px; left: 18px; right: 18px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; color: var(--ink); background: var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; }
  .main-nav > a:not(.nav-cta)::after { background: var(--red); }
  .nav-cta { margin-top: 5px; color: var(--white); background: var(--red); text-align: center; }
  .hero { min-height: auto; }
  .hero-cut { right: -44%; width: 100%; opacity: .5; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 142px; padding-bottom: 100px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { justify-self: center; max-width: 520px; }
  .floating-contact { left: 24px; }
  .signal-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .signal-grid > div, .signal-grid > div:first-child { min-height: auto; padding: 18px 8px; border-left: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .signal-grid > div:last-child { border-bottom: 0; }
  .section-heading, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
  .about-grid { max-width: 700px; }
  .about-mark { max-width: 500px; }
  .depo-trilho { padding-inline: 18px; }
  .onde { grid-template-columns: 1fr; }
  .onde-mapa iframe { min-height: 340px; }
  .contact::before { width: 100%; opacity: .92; }
  .contact-shape { display: none; }
  .footer-grid { grid-template-columns: auto 1fr; }
  .footer-grid p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  .shell-narrow { width: calc(100% - 28px); }
  .hero-grid { gap: 55px; padding-top: 122px; }
  h1 { font-size: clamp(2.5rem, 11.5vw, 3.6rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .button { width: 100%; }
  .floating-contact { position: relative; left: auto; bottom: auto; width: calc(100% - 24px); margin: -18px auto 0; }
  .hero-brand-card { min-height: 440px; padding: 48px 28px 36px; }
  .hero-brand-card img { width: min(100%, 270px); }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .service-card-wide { grid-column: auto; display: flex; align-items: flex-start; }
  .service-card-wide a { margin: 18px 0 0; align-self: flex-start; }
  .about-grid { gap: 70px; }
  .about-mark { width: calc(100% - 18px); }
  .red-frame { right: -18px; width: 76px; height: 76px; border-width: 9px; }
  .about-label { right: -18px; }
  .depo { padding-bottom: 66px; }
  .depo-trilho { padding-inline: 14px; }
  .onde-dados { grid-template-columns: 1fr; gap: 20px; }
  .contact-card { padding: 28px 22px; }
  .footer-grid { display: flex; flex-direction: column; align-items: flex-start; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

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