/* =========================================================
   MARCIO WILLIANS — ESTILOS GERAIS
   Organização: base, componentes, layout e responsividade.
   ========================================================= */

/* 1. Variáveis visuais globais */
:root {
  --ink: #161616;
  --accent: #333333;
  --accent-dark: #111111;
  --soft: #eeeeec;
  --off: #f7f7f5;
  --paper: #ffffff;
  --muted: #606060;
  --line: #dededb;
  --dark: #151515;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .07);
  --max: 1180px;
}

/* 2. Base e acessibilidade */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 9999;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: var(--white);
}
.skip-link:focus { top: 16px; }

/* 3. Estrutura reutilizável */
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 70px 0; }
.section-tight { padding: 26px 0; }
.centered { text-align: center; }
.eyebrow {
  margin: 0 0 8px; color: #585858;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .11em; text-transform: uppercase;
}
.eyebrow-light { color: #bdbdbd; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 {
  margin: 0; font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -.04em; line-height: 1.05;
}

/* 4. Botões */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--accent);
  border-radius: 7px; background: var(--accent); color: var(--white);
  font-weight: 750; transition: .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--accent-dark); border-color: var(--accent-dark); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { color: var(--white); }
.button-small { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.button-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.button-light:hover { background: #e9e9e9; color: var(--ink); }

/* 5. Cabeçalho e navegação */
.site-header {
  position: relative; z-index: 100;
  background: rgba(247, 247, 245, .94);
  border-bottom: 1px solid rgba(23, 26, 24, .08);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  min-height: 88px; gap: clamp(24px, 3vw, 46px);
}
.brand, .footer-brand {
  font-family: Poppins, Inter, ui-sans-serif, sans-serif;
  font-size: 2.18rem; font-weight: 400; letter-spacing: -.065em;
}
.main-nav {
  display: flex; justify-content: center; gap: clamp(18px, 2vw, 32px);
  font-size: .94rem; font-weight: 700; white-space: nowrap;
}
.main-nav a { position: relative; padding: 8px 0; }
.main-nav a::after {
  content: ""; position: absolute; right: 100%; bottom: 1px; left: 0;
  height: 2px; background: var(--ink); transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }
.header-cta { justify-self: end; }

/* 6. Hero e faixas de confiança */
.hero { padding-top: 24px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 530px;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 52px clamp(34px, 4vw, 66px); }
.hero-copy h1 {
  max-width: 570px; margin: 0; font-size: clamp(2.7rem, 4.5vw, 4.7rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -.06em;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 460px; margin: 25px 0 0; color: #343434;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem); font-weight: 500; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-image { position: relative; min-height: 530px; margin: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.trust-strip { padding: 0 0 20px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.trust-grid article { display: flex; align-items: center; gap: 14px; padding: 22px 28px; }
.trust-grid article + article { border-left: 1px solid #d7d7d7; }
.trust-grid h3 { margin: 0 0 3px; font-size: 1rem; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.line-icon {
  display: grid; place-items: center; flex: 0 0 42px; height: 42px;
  border: 1px solid #a9a9a9; border-radius: 50%; color: var(--ink);
  font-size: 1.2rem; font-style: normal;
}

/* 7. Cards de serviços */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 240px;
  overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--paper); transition: .22s ease;
}
.service-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow); }
.service-watermark {
  position: absolute; right: 8px; bottom: -2px; color: var(--ink);
  font-size: 6.5rem; line-height: 1; opacity: .045; transform: rotate(-10deg); pointer-events: none;
}
.service-icon { color: var(--ink); font-size: 2rem; line-height: 1; font-style: normal; }
.service-card h3 { margin: 0 0 11px; font-size: 1.24rem; line-height: 1.18; }
.service-card p { max-width: 255px; margin: 0; color: var(--muted); font-size: .97rem; }

/* 8. Painel de apoio digital */
.digital-panel {
  display: grid; grid-template-columns: 46% 54%; min-height: 454px;
  overflow: hidden; isolation: isolate; border-radius: var(--radius);
  background: #191919; color: var(--white);
}
.digital-copy { position: relative; z-index: 1; overflow: hidden; padding: 52px 46px; background: #191919; }
.digital-copy::after {
  content: "\F4D0"; position: absolute; right: -23px; bottom: -45px;
  color: #fff; font-family: "bootstrap-icons"; font-size: 15rem; line-height: 1;
  opacity: .045; transform: rotate(-12deg); pointer-events: none;
}
.digital-copy > * { position: relative; z-index: 1; }
.digital-copy h2 { margin: 0; color: #fff; font-size: clamp(2.15rem, 3.2vw, 3.05rem); line-height: 1.04; letter-spacing: -.055em; }
.digital-copy > p:not(.eyebrow) { max-width: 430px; margin: 20px 0; color: #dedede; font-size: 1rem; line-height: 1.58; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .87rem; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.check-list li i { display: inline-grid; place-items: center; flex: 0 0 18px; margin-top: 1px; color: #d9e4de; font-size: 1.1rem; font-style: normal; }
.digital-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .55); color: #fff; font-size: .93rem; font-weight: 800; }
.digital-link:hover { color: #fff; border-color: #fff; }
.digital-link i { font-style: normal; }
.digital-image { position: relative; z-index: 0; min-height: 454px; margin: 0; background: #202020; line-height: 0; }
.digital-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .16), transparent 26%); pointer-events: none; }
.digital-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; vertical-align: top; }

/* 9. Públicos, sobre, FAQ e chamada final */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-card { position: relative; display: grid; grid-template-columns: 54% 46%; min-height: 260px; overflow: hidden; border-radius: 13px; background: var(--soft); }
.audience-card > div { z-index: 1; padding: 30px 20px 28px 30px; }
.audience-card h2 { margin: 0 0 12px; font-size: 1.75rem; letter-spacing: -.04em; }
.audience-card p { margin: 0 0 24px; color: #4f5752; font-size: .97rem; }
.audience-card a { color: var(--ink); font-size: .95rem; font-weight: 800; }
.audience-card a i { margin-left: 4px; font-style: normal; }
.audience-card img { width: 100%; height: 100%; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: 31% 69%; align-items: center; gap: 46px; }
.about-grid figure { margin: 0; overflow: hidden; border-radius: 18px; }
.about-grid figure img { width: 100%; height: 350px; object-fit: cover; object-position: center top; }
.about-copy h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.about-copy p:not(.eyebrow) { margin: 0 0 13px; color: #4f5754; }
.faq-wrap { max-width: 950px; }
.faq-list { display: grid; gap: 8px; }
details { border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .38); }
summary { position: relative; padding: 16px 48px 16px 18px; cursor: pointer; font-weight: 720; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 11px; right: 18px; color: var(--ink); font-size: 1.5rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 18px 17px; color: var(--muted); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 25px; overflow: hidden; padding: 31px 48px; border-radius: 14px; background: #202020; color: var(--white); }
.cta-panel h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.04em; }
.cta-panel p:not(.eyebrow) { margin: 5px 0 0; color: #dedede; }

/* 10. Rodapé */
.site-footer { margin-top: 14px; padding: 24px 0; border-top: 1px solid #d7d6d1; background: #e9e8e4; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .72fr) 1fr; gap: 36px; align-items: start; }
.footer-brand { font-size: 1.38rem; }
.footer-grid p { margin: 8px 0 0; color: #565656; font-size: .88rem; }
.footer-grid nav { display: grid; gap: 8px; }
.footer-grid nav h2 { margin: 0 0 5px; color: var(--ink); font-size: .9rem; }
.footer-grid nav a, .footer-domain a { color: #444; font-size: .88rem; }
.footer-grid nav a:hover, .footer-domain a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-domain { display: flex; flex-direction: column; align-items: flex-start; justify-self: end; gap: 10px; padding-top: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #646464; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom p a { color: var(--ink); font-weight: 700; }
.footer-bottom p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-language-switcher { display: inline-flex; align-items: center; gap: 7px; color: #777; font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.footer-language-switcher .is-active { color: var(--ink); }
.footer-language-switcher a { color: inherit; transition: color .2s ease; }
.footer-language-switcher a:hover, .footer-language-switcher a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.language-separator { color: #aaa; font-weight: 400; }
.footer-instagram { display: inline-flex; align-items: center; gap: 8px; color: #353535; font-weight: 600; }
.footer-instagram:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-instagram i { font-size: 1rem; }

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

/* Desktop e notebook grande — menu tradicional e header fixo */
@media (min-width: 1081px) {
  body { padding-top: 88px; }
  .site-header { position: fixed; top: 0; right: 0; left: 0; width: 100%; box-shadow: 0 5px 18px rgba(0, 0, 0, .04); }
}

/* Tablet, notebook compacto e telas intermediárias — menu móvel */
@media (max-width: 1080px) {
  .header-inner { display: flex; justify-content: center; min-height: 88px; }
  .main-nav {
    position: fixed; top: 82px; right: 24px; z-index: 101; display: none;
    flex-direction: column; gap: 0; width: min(330px, calc(100vw - 40px));
    padding: 10px; border: 1px solid #d8d8d4; border-radius: 14px;
    background: #f1f1ef; box-shadow: 0 16px 38px rgba(0, 0, 0, .12); font-size: .95rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; border-bottom: 1px solid rgba(23, 26, 24, .10); border-radius: 8px; transition: background .2s ease; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a:hover { background: rgba(23, 26, 24, .055); }
  .main-nav a::after { display: none; }
  .menu-toggle {
    position: fixed; top: 17px; right: 24px; z-index: 102; display: grid; place-content: center;
    width: 50px; height: 50px; padding: 0; border: 1px solid #dededb; border-radius: 50%;
    background: #f5f5f3; box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    transition: transform .2s ease, background .2s ease;
  }
  .menu-toggle:hover { background: #ededeb; transform: translateY(-1px); }
  .menu-toggle span { display: block; width: 21px; height: 2px; margin: 3px 0; border-radius: 2px; background: #151515; transition: transform .24s ease, opacity .18s ease; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 56px 9%; }
  .hero-image { min-height: 400px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .digital-panel { grid-template-columns: 1fr; }
  .digital-image { min-height: 340px; }
  .about-grid { grid-template-columns: 1fr 1.4fr; }
  .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
  .footer-domain { justify-self: start; }
  .footer-grid nav:nth-of-type(3) { display: none; }
}

/* Celular em pé — até 700px */
@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 54px 0; }
  .section-tight { padding: 22px 0; }
  .header-inner { min-height: 76px; }
  /* Tamanho confirmado para a logo no mobile. */
  .brand { font-size: 2.4rem; }
  .menu-toggle { top: 13px; right: 14px; width: 46px; height: 46px; }
  .main-nav { top: 69px; right: 14px; width: calc(100vw - 28px); }
  .hero { padding-top: 14px; }
  .hero-copy { padding: 38px 25px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .hero-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.05rem; }
  .hero-actions { display: grid; }
  .hero-image { min-height: 310px; }
  .trust-grid article { padding: 19px 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 27px 24px; }
  .service-watermark { right: 6px; bottom: -1px; font-size: 6.2rem; }
  .digital-copy { padding: 38px 25px; }
  .check-list { grid-template-columns: 1fr; gap: 10px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { grid-template-columns: 55% 45%; min-height: 230px; }
  .audience-card > div { padding: 25px 12px 24px 24px; }
  .audience-card h2 { font-size: 1.5rem; }
  .audience-card p { margin-bottom: 18px; font-size: .9rem; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-domain { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Celulares pequenos — até 420px */
@media (max-width: 420px) {
  .hero-copy h1 { font-size: 2.2rem; }
  .audience-card { grid-template-columns: 1fr; }
  .audience-card img { height: 180px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child, .footer-domain { grid-column: auto; }
}

/* Celular deitado — pouca altura disponível */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1080px) {
  .header-inner { min-height: 68px; }
  .brand { font-size: 2.4rem; }
  .menu-toggle { top: 9px; }
  .main-nav { top: 62px; max-height: calc(100vh - 76px); overflow-y: auto; }
  .hero-copy { padding-block: 40px; }
  .hero-image { min-height: 280px; }
}

/* Tablet em pé — mais espaço para leitura e cards */
@media (min-width: 701px) and (max-width: 1080px) {
  .container { width: min(calc(100% - 56px), var(--max)); }
  .section { padding: 76px 0; }
  .hero-copy { padding-inline: 11%; }
  .service-card { min-height: 255px; }
}

/* Smart TVs e monitores muito largos — evita conteúdo excessivamente aberto */
@media (min-width: 1600px) {
  :root { --max: 1320px; }
  .section { padding: 86px 0; }
  .hero-grid { min-height: 580px; }
  .hero-image { min-height: 580px; }
}
