/* Karpinski — site institucional
   Fontes: Zilla Slab e Figtree (SIL Open Font License), hospedadas localmente. */

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/zillaslab-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/zillaslab-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-var-latin.woff2") format("woff2");
}

:root {
  --red: #C8102E;
  --red-deep: #9A0C22;
  --yellow: #FFC20E;
  --white: #FFFFFF;
  --ink: #2B1F1F;
  --ink-soft: #5E5050;
  --tint: #FBF0EE;

  --font-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 2.75rem);
  --step-4: clamp(2.75rem, 1.6rem + 5.6vw, 5.5rem);

  --gutter: 16px;
  --max: 1160px;
  --header-h: 68px;
  --radius-btn: 999px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

button, input, select { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h2 { font-size: var(--step-3); color: var(--red); }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}
.skip-link:focus { top: 8px; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--red-deep); border-color: var(--white); }
.btn-call { background: var(--red); color: var(--white); }
.btn-call:hover { background: var(--red-deep); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--red);
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}
.brand-since {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 2px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.9rem;
  background: none;
  border: 2px solid var(--red);
  border-radius: var(--radius-btn);
  color: var(--red);
  font: 700 var(--step--1) var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 0.5rem var(--gutter) 1.5rem;
  border-bottom: 4px solid var(--red);
  box-shadow: 0 12px 24px rgba(43, 31, 31, 0.12);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav li a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tint);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--step-1);
}
.site-nav li a:hover { color: var(--red); }
.nav-call { width: 100%; }

/* Toldo: assinatura visual, listras com borda recortada */
.awning {
  height: 34px;
  background: repeating-linear-gradient(90deg, var(--red) 0 36px, var(--white) 36px 72px);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 16px no-repeat,
    radial-gradient(circle 18px at 18px 16px, #000 97%, transparent 100%) 0 0 / 36px 34px repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% 16px no-repeat,
    radial-gradient(circle 18px at 18px 16px, #000 97%, transparent 100%) 0 0 / 36px 34px repeat-x;
  position: relative;
  z-index: 2;
  margin-bottom: -34px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--red-deep);
  color: var(--white);
  padding: calc(34px + 3rem) 0 4rem;
  overflow: hidden;
}
.hero--photo {
  background:
    linear-gradient(90deg, rgba(122, 9, 26, 0.92) 0%, rgba(122, 9, 26, 0.6) 55%, rgba(122, 9, 26, 0.15) 100%),
    var(--hero-image) center / cover no-repeat,
    var(--red-deep);
}
.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--yellow);
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 11ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Camada visual da hero: formas, aparelho, selo e chamada do app.
   Mobile: o aparelho entra pela base da hero, cortado pela borda inferior. */
.hero:has(.hero-visual) { padding-bottom: 0; }

.hero-visual {
  --phone-w: 214px;
  --tilt: 4deg;
  position: relative;
  height: 360px;
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-orb,
.hero-ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
}
.hero-orb { width: 320px; right: -48px; top: 34px; background: var(--red); }
.hero-ring { width: 410px; right: -96px; top: -12px; border: 2px solid rgba(255, 194, 14, 0.45); }

.device {
  position: absolute;
  z-index: 1;
  right: 14px;
  top: 26px;
  width: var(--phone-w);
  padding: 9px;
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(150deg, #2E2729 0%, #141012 55%, #221C1E 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 34px 60px -14px rgba(48, 0, 10, 0.7),
    0 12px 24px -6px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt));
  animation: device-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both, device-float 6s ease-in-out 1.2s infinite alternate;
}
/* botão lateral */
.device::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: #1C1718;
}
.device-screen {
  position: relative;
  aspect-ratio: 640 / 1387;
  border-radius: calc(var(--phone-w) * 0.125);
  overflow: hidden;
  background: #3A3A3A;
}
/* Dynamic Island */
.device-screen::after {
  content: "";
  position: absolute;
  top: 1.6%;
  left: 50%;
  width: 30%;
  height: 2.6%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; }

@keyframes device-in {
  from { transform: translateY(56px) rotate(var(--tilt)); }
  to { transform: rotate(var(--tilt)); }
}
@keyframes device-float {
  from { transform: rotate(var(--tilt)) translateY(0); }
  to { transform: rotate(var(--tilt)) translateY(-6px); }
}

.seal {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--red-deep);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 0 0 4px var(--red-deep), 0 0 0 6px var(--yellow), 0 14px 28px -8px rgba(48, 0, 10, 0.6);
  transform: rotate(-8deg);
}
.seal-top {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
}
.seal-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.app-card {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 32px;
  width: 188px;
  padding: 0.9rem 1rem 1rem;
  border-radius: 16px;
  border-top: 4px solid var(--yellow);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 40px -14px rgba(48, 0, 10, 0.6);
  animation: card-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}
.app-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--red);
  margin: 0 0 0.3rem;
}
.app-card-text { margin: 0 0 0.65rem; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
/* App Store e Google Play lado a lado, mesma altura; o cartão cresce na largura
   para caber os dois e só empilha se faltar espaço */
.app-card:has(.app-badges li + li) { width: max-content; max-width: 100%; }
.app-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-badges a { display: block; border-radius: 7px; transition: transform 0.15s ease; }
.app-badges a:hover { transform: translateY(-2px); }
.app-badges a:focus-visible { outline-color: var(--red); }
.app-badges img { display: block; height: 40px; width: auto; }

/* Celular: mantém título, CTAs e o badge do app na primeira dobra */
@media (max-width: 719px) {
  .hero:has(.hero-visual) { padding-top: calc(34px + 2rem); }
  .hero:has(.hero-visual) .hero-title { margin-bottom: 1.5rem; }
  .hero-visual { height: 330px; }
  .app-card { bottom: 52px; }
}
@media (max-width: 359px) {
  .app-card:has(.app-badges li + li) { padding-inline: 0.75rem; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Seções */
.section { padding: 4rem 0; }
.section-tint { background: var(--tint); }

.about-inner { display: grid; gap: 1rem; align-items: center; }
.about-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 3rem + 12vw, 11rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  letter-spacing: -0.03em;
}
.lead { font-size: var(--step-1); line-height: 1.45; font-weight: 500; }

.dept-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.dept img { border-radius: 12px; margin-bottom: 0.75rem; }
.dept h3 { font-size: var(--step-1); color: var(--ink); }

.contact-grid { display: grid; gap: 3rem; }
.phones { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--yellow);
}
.phone:hover { color: var(--red); }

/* Facilidades: canais e serviços externos (grupo de ofertas, WhatsApp, cartão).
   Mobile: cartões empilhados. Tablet: cartões em linha. Desktop: três colunas. */
.services { padding-top: 0; }
.services-intro { color: var(--ink-soft); margin-bottom: 1.75rem; }
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--tint);
  border-radius: 20px;
  border-top: 4px solid var(--yellow);
}
.service-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--red-deep);
}
.service-copy h3 { font-size: var(--step-2); color: var(--ink); margin-bottom: 0.3em; }
.service-copy p { margin: 0; }
.service-copy .service-note {
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--red-deep);
}
.service-cta { gap: 0.5rem; }
.service-cta-ext { flex: none; transition: transform 0.15s; }
.service-cta:hover .service-cta-ext { transform: translate(2px, -2px); }

/* Ofertas e novidades: publicações recentes do Instagram (cache do servidor), logo após a hero.
   Celular: 2 colunas, 6 posts. Tablet: 3 colunas, 6 posts. Desktop: 4 colunas, 8 posts. */
.btn-outline { border-color: var(--red); color: var(--red); background: var(--white); }
.btn-outline:hover { background: var(--red); color: var(--white); }

.instagram { padding-bottom: 0; } /* o espaço até "O Karpinski" vem do padding dela */
.instagram-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}
.instagram-head h2 { margin-bottom: 0.15em; }
.instagram-handle { margin: 0; font-weight: 700; }
.instagram-handle a { color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.instagram-handle a:hover { color: var(--red); text-decoration: underline; }
.instagram-cta { gap: 0.5rem; min-height: 44px; padding: 0.55rem 1.2rem; font-size: var(--step--1); }
.instagram-cta:hover .service-cta-ext { transform: translate(2px, -2px); }

/* Destaque da última publicação: coluna central com largura máxima.
   Celular: mídia em cima, texto embaixo. Tablet e desktop: mídia à esquerda, texto à direita.
   A mídia mantém a proporção original (sem corte nem distorção), com altura máxima para Reels. */
.instagram-inner { max-width: 480px; margin: 0 auto; }
.instagram-feature-card {
  display: grid;
  overflow: hidden;
  border-radius: 20px;
  background: var(--tint);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.instagram-feature-card:hover { box-shadow: 0 18px 36px -16px rgba(48, 0, 10, 0.4); transform: translateY(-2px); }
.instagram-feature-card:focus-visible { outline-offset: 3px; border-radius: 20px; }
.instagram-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EADBD8;
}
.instagram-media img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.instagram-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-btn);
  background: rgba(43, 31, 31, 0.72);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}
.instagram-badge svg { width: 15px; height: 15px; }
.instagram-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 4px solid var(--yellow);
}
.instagram-meta { font-size: var(--step--1); font-weight: 700; color: var(--red-deep); }
.instagram-caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.instagram-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--red);
}
.instagram-feature-card:hover .instagram-more { text-decoration: underline; }
.instagram-feature-card:hover .service-cta-ext { transform: translate(2px, -2px); }

@media (min-width: 720px) {
  .instagram-inner { max-width: 880px; }
  .instagram-feature-card { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .instagram-media img { max-height: 480px; }
  .instagram-copy {
    justify-content: center;
    padding: 2rem 2.25rem;
    border-top: 0;
    border-left: 6px solid var(--yellow);
  }
  .instagram-caption { font-size: var(--step-1); line-height: 1.45; -webkit-line-clamp: 6; line-clamp: 6; }
}
@media (min-width: 960px) {
  .instagram-feature-card { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
  .instagram-media img { max-height: 560px; }
  .instagram-copy { padding: 2.5rem 3rem; }
}

/* Trabalhe Conosco */
.jobs { padding-top: 0; }
.jobs-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--red);
  color: var(--white);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  border-left: 10px solid var(--yellow);
}
.jobs-card h2 { color: var(--white); margin-bottom: 0.35em; }
.jobs-card p { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.jobs-open { justify-self: start; }

.jobs-dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.jobs-dialog::backdrop { background: rgba(43, 31, 31, 0.6); }
.jobs-dialog[open] { animation: jobs-in 0.2s ease-out; }
@keyframes jobs-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.jobs-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: var(--red);
  color: var(--white);
  border-bottom: 4px solid var(--yellow);
}
.jobs-dialog-head h2 { color: var(--white); font-size: var(--step-2); margin: 0; }
.jobs-close {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: none;
  color: var(--white);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.jobs-close:hover { background: var(--white); color: var(--red); }

.jobs-form { padding: 1.5rem var(--gutter) 2rem; display: grid; gap: 1.1rem; }
.jobs-intro { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }

.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.field > input,
.field > select {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 2px solid #D9C7C4;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field > select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field > input:focus,
.field > select:focus { border-color: var(--red); outline: 3px solid var(--yellow); outline-offset: 1px; }
.field > [aria-invalid="true"] { border-color: var(--red); background-color: #FFF7F6; }
.field-optional { font-weight: 400; color: var(--ink-soft); }
.field-hint { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.field > input[type="file"] {
  min-height: 0;
  padding: 0.6rem;
  border-style: dashed;
  cursor: pointer;
}
.field > input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--tint);
  color: var(--red-deep);
  font: 700 var(--step--1) var(--font-body);
  cursor: pointer;
}
.field > input[type="file"]:hover::file-selector-button { background: var(--yellow); color: var(--ink); }
.field-error { margin: 0; min-height: 0; color: var(--red-deep); font-size: var(--step--1); font-weight: 600; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.jobs-status:empty { display: none; }
.jobs-status {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.45;
}
.jobs-status.is-success { background: #EAF6EC; color: #1E5B2B; border-left: 6px solid #2E8540; }
.jobs-status.is-error { background: var(--tint); color: var(--red-deep); border-left: 6px solid var(--red); }

.jobs-submit { width: 100%; min-height: 54px; }
.jobs-submit:disabled { opacity: 0.65; cursor: not-allowed; }

body.has-dialog { overflow: hidden; }

/* Rodapé */
.site-footer {
  background: var(--red);
  color: var(--white);
  padding: 3.5rem 0 0;
  border-top: 6px solid var(--yellow);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-social-title { margin-top: 1.5rem; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  margin: 0 0 0.25rem;
}
.footer-since { font-weight: 600; margin: 0 0 0.25rem; }
.footer-slogan { margin: 0; opacity: 0.9; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: var(--step--1);
}
.footer-bottom p { margin: 0; }

/* Caixa de concordância (LGPD) */
.field-check { grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.field-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--red);
  cursor: pointer;
}
.field-check label { font-weight: 500; font-size: var(--step--1); line-height: 1.5; cursor: pointer; }
.field-check .field-error { grid-column: 1 / -1; }

/* Anti-robô ALTCHA, com as cores e cantos dos demais campos */
.field-altcha altcha-widget {
  display: block;
  min-height: 62px; /* reserva o espaço antes do script carregar: sem salto de layout */
  --altcha-max-width: 100%;
  --altcha-border-width: 2px;
  --altcha-border-color: #D9C7C4;
  --altcha-border-radius: 10px;
  --altcha-color-base: var(--white);
  --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--red);
  --altcha-color-primary-content: var(--white);
  --altcha-color-success: #2E8540;
  --altcha-color-error: var(--red-deep);
  --altcha-checkbox-size: 22px;
  --altcha-checkbox-outline-color: var(--yellow);
  --altcha-spinner-color: var(--red);
  --altcha-shadow: none;
  font-family: var(--font-body);
}

/* Páginas de texto (Aviso de Privacidade) */
.legal-head {
  background: var(--red-deep);
  color: var(--white);
  padding: calc(34px + 2.5rem) 0 2.5rem;
}
.legal-inner { max-width: 760px; }
.legal-head h1 { font-size: var(--step-3); color: var(--white); margin-bottom: 0.4rem; }
.legal-head .legal-updated { color: var(--yellow); margin: 0; font-weight: 600; }
.legal-body { padding-top: 2.75rem; padding-bottom: 4.5rem; }
.legal h2 { font-size: var(--step-1); color: var(--ink); margin-top: 2.25rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; max-width: 62ch; }
.legal li { margin-bottom: 0.4rem; }
.legal-updated { color: var(--ink-soft); font-size: var(--step--1); }

/* Página 404 */
.notfound { padding: 6rem 0; }
.notfound h1 { font-size: var(--step-3); color: var(--red); }

/* Tablet + */
@media (min-width: 720px) {
  .hero { padding: calc(34px + 5rem) 0 6rem; }
  .hero:has(.hero-visual) { padding-top: calc(34px + 3rem); padding-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr auto; }
  .hero-inner:has(.hero-visual) { grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: end; }
  .hero-copy { align-self: center; padding-bottom: 3rem; }

  .hero-visual { --phone-w: 236px; --tilt: 5deg; height: 480px; }
  .hero-orb { width: 360px; right: -70px; top: 70px; }
  .hero-ring { width: 460px; right: -130px; top: 10px; }
  .device { right: 10px; top: 40px; }
  .seal { width: 128px; left: -10px; top: 18px; }
  .seal-top { font-size: 1rem; }
  .seal-year { font-size: 2.4rem; }
  .app-card { left: -40px; bottom: 56px; }
  .about-inner { grid-template-columns: auto 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .section { padding: 5.5rem 0; }
  .jobs { padding-top: 0; }
  .services { padding-top: 0; }
  .instagram { padding-bottom: 0; }
  .service {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-top: 0;
    border-left: 6px solid var(--yellow);
  }
  .jobs-card { grid-template-columns: 1fr auto; padding: 2.5rem 3rem; gap: 2.5rem; }
  .jobs-open { justify-self: end; }

  .jobs-dialog {
    width: min(560px, calc(100% - 2rem));
    height: fit-content;
    max-height: calc(100% - 3rem);
    margin: auto;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(43, 31, 31, 0.35);
  }
  .jobs-dialog-head { padding: 1.1rem 1.75rem; }
  .jobs-form { padding: 1.75rem 1.75rem 2rem; }
}

/* Desktop: menu horizontal */
@media (min-width: 960px) {
  :root { --header-h: 80px; }

  /* Hero: texto protagonista, aparelho deslocado à direita e cortado pela base */
  .hero:has(.hero-visual) { padding-top: calc(34px + 3.5rem); }
  .hero-inner:has(.hero-visual) { grid-template-columns: minmax(0, 1fr) 440px; gap: 3rem; }
  .hero-copy { padding-bottom: 5rem; }
  .hero-visual { --phone-w: 290px; --tilt: 5deg; height: 600px; }
  .device { padding: 11px; right: 30px; top: 48px; }
  .hero-orb { width: 470px; right: -60px; top: 72px; }
  .hero-ring { width: 600px; right: -140px; top: -14px; }
  .seal { width: 160px; left: 0; top: 40px; }
  .seal-top { font-size: 1.2rem; }
  .seal-year { font-size: 2.9rem; }
  .app-card { width: 224px; left: -56px; bottom: 76px; padding: 1.1rem 1.2rem 1.2rem; }
  .app-card:has(.app-badges li + li) { left: -80px; }
  .app-card-title { font-size: 1.35rem; }
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav ul { display: flex; gap: 1.75rem; margin: 0; }
  .site-nav li a {
    padding: 0.4rem 0;
    border: 0;
    font-size: var(--step-0);
    border-bottom: 3px solid transparent;
  }
  .site-nav li a:hover { border-bottom-color: var(--yellow); color: var(--ink); }
  .nav-call { width: auto; }
  .brand-name { font-size: 2rem; }

  .services-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .service {
    display: flex;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    border-left: 0;
    border-top: 4px solid var(--yellow);
  }
  .service-cta { margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
