/* Controle Contabilidade — folha de estilo
   Direção: minimalismo editorial nas cores do logo. Branco e um azul-gelo quase
   neutro alternando as seções, linhas de 1px, cartões discretos, títulos em serifa
   (Newsreader) e texto em Switzer. O azul-marinho do logo fica nos botões, nos
   ícones e no rodapé. A superfície abre com uma galeria de cantos arredondados, como os
   cartões: a fachada em destaque, a logo grande sobre a mesa azul-marinho e a mesa de trabalho. */

:root {
  /* cor: os tons do logo, em versões neutras e suaves */
  --bg: #FFFFFF;
  --tint: #F3F7FB;           /* seções alternadas: azul-gelo, quase neutro */
  --tint-2: #E7EFF7;         /* fundo dos ícones */
  --line: #E1E7EF;
  --line-strong: #C9D3E0;
  --ink: #18223D;            /* títulos: marinho quase preto */
  --text: #333D4F;
  --muted: #5F6B7D;
  --brand: #384E7F;          /* azul-marinho do logo */
  --brand-press: #2A3B63;
  --sky: #0C90CC;            /* azul-claro do logo */
  --tile-pale: #D2E8F5;      /* seleção de texto */
  --desk-navy: #0A1F3E;      /* o azul-marinho da foto da mesa, atrás da logo */
  --on-navy: rgba(255, 255, 255, 0.8);
  --on-navy-line: rgba(255, 255, 255, 0.22);
  --pill-neutral: #EEF1F5;
  --pill-blue: #E3EEF8;
  --pale-green: #EDF3EC;  --pale-green-ink: #346538;
  --pale-yellow: #FBF3DB; --pale-yellow-ink: #956400;
  --pale-red: #FDEBEC;    --pale-red-ink: #9F2F2D;

  /* tipo */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  /* escala única: 13 · 15 · 17 · 20 · 28 · h2 · h1 */
  --fs-micro: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --fs-h3: 1.25rem;
  --fs-title: 1.75rem;
  --fs-h2: clamp(2.125rem, 1.6rem + 2vw, 3.25rem);
  --fs-h1: clamp(3rem, 1.9rem + 4.6vw, 5.5rem);

  /* espaço e forma */
  --wrap: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 9vw, 128px);
  --radius: 12px;
  --radius-sm: 6px;
  --header-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h3, h4 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 160ms; }
strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--tile-pale); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.125em; height: 1.125em; flex: none; fill: currentColor; }
.nw { white-space: nowrap; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.skip {
  position: absolute; left: var(--pad); top: -64px; z-index: 50;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 500 var(--fs-body)/1 var(--sans); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms, border-color 160ms, transform 160ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { background: var(--brand-press); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--tint); border-color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }

/* ---------- Etiquetas ---------- */
/* em caixa baixa e 13px: lidas de relance, sem letras miúdas espaçadas */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 10px; border-radius: 9999px;
  background: var(--pill-neutral); color: var(--muted);
  font-size: var(--fs-micro); font-weight: 500; line-height: 1.6;
  white-space: nowrap;
}
.pill-blue { background: var(--pill-blue); color: var(--brand); }
.pill-yellow { background: var(--pale-yellow); color: var(--pale-yellow-ink); }
.pill-red { background: var(--pale-red); color: var(--pale-red-ink); }
.pill[data-state]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill[data-state="open"] { background: var(--pale-green); color: var(--pale-green-ink); }
.pill[data-state="lunch"] { background: var(--pale-yellow); color: var(--pale-yellow-ink); }

/* ícone num quadrado azul-gelo: serviços e endereço */
.card-chip {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--tint-2);
}
.card-icon { width: 24px; height: 24px; fill: var(--brand); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { font-size: var(--fs-small); color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--brand); text-decoration: underline; }
.header-cta { flex: none; }
.menu-toggle { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu .wrap { display: grid; padding-block: 8px 24px; }
.mobile-menu a:not(.btn) {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-lead); color: var(--ink); text-decoration: none;
}
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Superfície (primeira tela) ---------- */
.hero { padding-bottom: clamp(72px, 8vw, 120px); }

/* galeria: a fachada grande à esquerda; à direita, a logo sobre a mesa azul-marinho e,
   embaixo, a mesa de trabalho. Alinhada à largura do conteúdo, como o cabeçalho. */
.gallery {
  margin-top: clamp(16px, 2vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: clamp(400px, 56vh, 580px);
  height: clamp(400px, 56svh, 580px);
}
.shot { position: relative; min-height: 0; overflow: hidden; border-radius: var(--radius); background: var(--tint-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-fachada { grid-row: 1 / 3; }
.shot-fachada img { object-position: 30% 58%; }
.shot-marca { background: var(--desk-navy); }
.shot-marca img { object-position: 50% 30%; }
/* a logo em branco no espaço vazio da mesa, à esquerda do caderno */
.shot .shot-logo {
  position: absolute; left: 8%; top: 50%;
  width: min(52%, 232px); height: auto; object-fit: contain;
  transform: translateY(-50%);
}
.shot-mesa img { object-position: 50% 50%; }

.hero-grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 96px); align-items: end;
}
.hero h1 { font-size: var(--fs-h1); line-height: 1.0; letter-spacing: -0.035em; }
.hero h1 em { display: block; font-style: normal; color: var(--brand); }
.hero-lead { margin-top: 28px; max-width: 50ch; font-size: var(--fs-lead); line-height: 1.5; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.info-card { padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.info-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.info-head h2 { font-family: var(--sans); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.info-now { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); }
.info-list { margin-top: 20px; }
.info-list > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.info-list > div:last-child { padding-bottom: 0; }
.info-list dt { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--muted); }
.info-list dt .icon { align-self: center; }
.info-list dd { min-width: 0; text-align: right; font-size: var(--fs-small); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
/* seções alternadas em azul-gelo; ali as linhas ficam um tom mais firmes */
.section-tint { background: var(--tint); --line: #DCE4EE; }
.section-head { max-width: 760px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 18px; max-width: 54ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }

/* ---------- Serviços ---------- */
.group { margin-top: 64px; }
.group + .group { margin-top: 56px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.group-head p { color: var(--muted); }
.cards { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* cabeçalho (ícone ao lado do nome) e texto; o texto começa na mesma altura nos cartões vizinhos */
.card {
  display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 20px; align-content: start;
  padding: 28px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 200ms ease;
}
@supports not (grid-template-rows: subgrid) {
  .card { display: flex; flex-direction: column; gap: 20px; }
}
.card:hover { border-color: var(--line-strong); }
.card-head { display: flex; align-items: flex-start; gap: 16px; }
.card .gist { margin-top: 2px; font-size: var(--fs-small); color: var(--muted); }
.services-note {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding: 28px 32px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.services-note p { max-width: 62ch; }

/* ---------- Quem somos ---------- */
.people { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 7vw, 112px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.people-body h2 { font-size: var(--fs-h2); }
.person { margin-top: 32px; }
.person-name { font-family: var(--serif); font-size: var(--fs-title); font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
.person-role { margin-top: 4px; color: var(--brand); font-weight: 500; }
.person-text { margin-top: 20px; max-width: 52ch; }
.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 2px; font-size: var(--fs-small); color: var(--muted); }
.facts dd { font-weight: 500; color: var(--ink); }

/* ---------- Vencimentos ---------- */
.deadlines { margin-top: 48px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.deadline { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 22px 28px; }
.deadline + .deadline { border-top: 1px solid var(--line); }
.d-date { display: grid; line-height: 1.2; }
.d-day { font-family: var(--serif); font-size: var(--fs-title); letter-spacing: -0.015em; color: var(--brand); }
.d-week { font-size: var(--fs-small); color: var(--muted); }
.d-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.d-title h3 { font-size: var(--fs-body); }
.d-body > p { margin-top: 4px; max-width: 68ch; font-size: var(--fs-small); color: var(--muted); }
.d-when { justify-self: end; }
.deadlines-foot {
  margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: var(--fs-small); color: var(--muted);
}
.deadlines-foot a { font-weight: 500; color: var(--brand); }

/* ---------- Endereço ---------- */
.place { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.place-photo { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.place-photo img { width: 100%; height: 100%; object-fit: cover; }
.place-street { margin-top: 24px; font-family: var(--serif); font-size: var(--fs-title); letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
.place-area { margin-top: 6px; color: var(--muted); }
.place-hint { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.place-info .btn { margin-top: 28px; }

/* ---------- Perguntas ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }
.faq-side h2 { font-size: var(--fs-h2); }
.faq-side p { margin-top: 18px; max-width: 32ch; color: var(--muted); }
.faq-side a { font-weight: 500; color: var(--brand); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: var(--fs-h3); font-weight: 500; line-height: 1.4; color: var(--ink);
  transition: color 160ms;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--brand); }
.toggle { position: relative; flex: none; width: 14px; height: 14px; }
.toggle::before, .toggle::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px;
  background: var(--brand); transition: transform 240ms var(--ease);
}
.toggle::after { transform: rotate(90deg); }
.faq-list details[open] .toggle::after { transform: rotate(90deg) scaleX(0); }
.answer { padding: 0 40px 24px 0; max-width: 64ch; }

/* ---------- Rodapé: azul-marinho do logo, contato só com ícones ---------- */
.site-footer { padding-block: 72px 40px; background: var(--brand); color: var(--on-navy); font-size: var(--fs-small); }
.site-footer :focus-visible { outline-color: var(--bg); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 64px; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { margin-top: 16px; }
.footer-address { margin-top: 12px; font-style: normal; line-height: 1.6; }
.footer-contact h2 { font-size: var(--fs-title); color: var(--bg); }
.channels { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.channel {
  display: grid; place-items: center; width: 56px; height: 56px;
  border: 1px solid var(--on-navy-line); border-radius: var(--radius);
  color: var(--bg); text-decoration: none;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.channel .icon { width: 24px; height: 24px; }
.channel:hover { background: var(--bg); border-color: var(--bg); color: var(--brand); }
.footer-legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--on-navy-line);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px;
  font-size: var(--fs-micro);
}
.footer-legal a { color: var(--bg); }

/* botão flutuante do WhatsApp: só no telefone */
.float-wa { display: none; }

/* ---------- Entradas ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

/* ---------- Tablet ---------- */
@media (max-width: 1079px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
    background: var(--bg); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font: 500 var(--fs-small)/1 var(--sans); cursor: pointer;
  }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .info-card { max-width: 560px; }

  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { grid-row: auto; grid-template-rows: none; }
  .card .desc { max-width: 64ch; }
}

/* tablet em pé e telefone: a fachada ocupa a largura toda e as outras duas fotos ficam lado a lado embaixo */
@media (max-width: 899px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; height: auto; }
  .shot-fachada { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 16 / 10; }
  .shot-marca, .shot-mesa { grid-row: 2; aspect-ratio: 4 / 3; }
  .shot-marca img { object-position: 50% 27%; }   /* o teclado fica abaixo da logo */
  .shot .shot-logo { left: 50%; width: min(60%, 232px); transform: translate(-50%, -50%); }
}

@media (max-width: 879px) {
  .people, .place, .faq { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 440px; }
  .faq-side p { max-width: 46ch; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Telefone ---------- */
@media (max-width: 719px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }

  /* no telefone: fachada em 4:3 e as outras duas fotos em quadrado */
  .gallery { gap: 8px; }
  .shot-fachada { aspect-ratio: 4 / 3; }
  .shot-marca, .shot-mesa { aspect-ratio: 1; }
  .shot .shot-logo { width: 70%; }

  .hero-actions .btn { flex: 1 1 100%; }
  .info-card { padding: 24px; }
  /* rótulo em cima e valor embaixo: o @ do Instagram cabe inteiro numa linha */
  .info-list > div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .info-list dd { padding-left: calc(1.125em + 8px); text-align: left; }

  .card { padding: 24px; row-gap: 16px; }
  .services-note { flex-direction: column; align-items: flex-start; padding: 24px; }

  .facts > div { grid-template-columns: 96px minmax(0, 1fr); }

  .deadline { grid-template-columns: 76px minmax(0, 1fr); gap: 10px 16px; align-items: start; padding: 20px; }
  .d-day { font-size: var(--fs-h3); }
  .d-when { grid-column: 2; justify-self: start; }

  .answer { padding-right: 0; }

  .site-footer { padding-block: 56px 96px; }

  .float-wa {
    position: fixed; right: 16px; bottom: 16px; z-index: 25;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm);
    background: var(--brand); color: var(--bg); font-weight: 500; text-decoration: none;
    transform: translateY(calc(100% + 32px)); transition: transform 400ms var(--ease);
  }
  .float-wa.is-shown { transform: none; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .toggle::before, .toggle::after, .float-wa, .channel, .card { transition: none; }
}
