/* =========================================================================
   Sacada Redes — design tokens
   Paleta pensada a partir do próprio produto: céu, altura e a malha
   diagonal da rede de proteção, que vira o motivo gráfico do site.
   ========================================================================= */
:root {
  --ink:        #12233B;   /* azul-noite — texto e base escura */
  --ink-deep:   #0B1930;   /* painel escuro mais profundo (hero, rodapé) */
  --paper:      #F3F5F4;   /* branco-névoa, fundo claro */
  --paper-soft: #E8ECEA;   /* seção alternada clara */
  --white:      #FFFFFF;
  --amber:      #D89B3C;   /* latão / corda — cor de ação */
  --amber-deep: #B87F27;
  --sage:       #4F7864;   /* verde-mata — segurança, sucesso */
  --muted:      #5C6B7A;
  --line:       #D9DEDD;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 40px -22px rgba(11, 25, 48, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================================
   Reset básico
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: .75rem 1.25rem;
  z-index: 999; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 2px;
}

/* =========================================================================
   Motivo de malha (a "rede") — usado como textura em fundos escuros
   ========================================================================= */
.net-pattern {
  position: relative;
  isolation: isolate;
}
.net-pattern::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.055) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.055) 0 1px, transparent 1px 28px);
  pointer-events: none;
  z-index: 0;
}
.net-pattern > * { position: relative; z-index: 1; }

/* =========================================================================
   Header
   ========================================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 245, 244, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 245, 244, .96);
}
.header__row {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .9rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; color: var(--amber-deep); flex: none; }
.brand__text { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; }
.brand__text strong { font-weight: 700; }
.brand__text--footer { color: var(--white); font-size: 1.3rem; }

.nav {
  display: flex; align-items: center; gap: 1.9rem;
  font-size: .96rem; font-weight: 500;
}
.nav a { color: var(--ink); opacity: .82; transition: opacity .2s var(--ease); }
.nav a:hover { opacity: 1; }
.nav__cta {
  opacity: 1 !important;
  background: var(--ink); color: var(--white) !important;
  padding: .6rem 1.15rem; border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav__cta:hover { background: var(--amber-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; padding: 0;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--ink-deep);
  min-height: 640px;
  overflow: clip;
}
.hero__panel {
  background: var(--ink-deep);
  display: flex; align-items: center;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
  padding-right: 4rem;
  position: relative;
}
.hero__panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 30px);
}
.hero__inner { position: relative; padding-block: 5rem; color: var(--white); }
.hero__eyebrow {
  color: var(--amber);
  font-weight: 600; font-size: .92rem;
  margin-bottom: 1.1rem;
}
.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.015em;
  max-width: 14ch;
  opacity: 0; transform: translateY(14px);
  animation: rise .7s var(--ease) .1s forwards;
}
.hero__lead {
  margin-top: 1.4rem; max-width: 42ch;
  font-size: 1.08rem; color: rgba(255,255,255,.78);
  opacity: 0; transform: translateY(14px);
  animation: rise .7s var(--ease) .28s forwards;
}
.hero__actions {
  margin-top: 2.2rem; display: flex; gap: .9rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px);
  animation: rise .7s var(--ease) .44s forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.hero__media-mesh {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,25,48,.55), rgba(11,25,48,.05) 55%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-deep); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--block { width: 100%; }

/* =========================================================================
   Faixa de confiança (sobrepõe o hero levemente — sensação fluida)
   ========================================================================= */
.trust { margin-top: -3rem; position: relative; z-index: 5; }
.trust__card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 1.9rem 1rem;
}
.trust__item { text-align: center; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: none; }
.trust__num {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: var(--ink);
}
.trust__label { font-size: .85rem; color: var(--muted); }

/* =========================================================================
   Seções gerais
   ========================================================================= */
.section { padding-block: 6rem; }
.section--muted { background: var(--paper-soft); }
.section--dark { background: var(--ink-deep); color: var(--white); }
.section__head { max-width: 46ch; margin-bottom: 3rem; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section__head p { margin-top: .85rem; color: var(--muted); font-size: 1.03rem; }
.section__head--onDark p { color: rgba(255,255,255,.72); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; max-width: none; }
.section__foot { margin-top: 2.6rem; text-align: center; }

.grid { display: grid; gap: 1.6rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Serviços */
.service-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.6rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.service-card__icon { width: 40px; height: 40px; color: var(--amber-deep); margin-bottom: 1.1rem; }
.service-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* Galeria de trabalhos */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px; gap: 1.4rem;
}
.gallery__item { grid-row: span 1; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gallery__item--tall { grid-row: span 2; }
.gallery__photo-placeholder {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(160deg, #DCE3E1, #C9D2CF);
  color: var(--muted); text-align: center; padding: 1rem;
}
.gallery__photo-placeholder svg { width: 34px; height: 34px; opacity: .6; }
.gallery__photo-placeholder span { font-size: .78rem; max-width: 16ch; }
.gallery__item figcaption { padding: 1.1rem 1.3rem; }
.gallery__item figcaption p { font-size: .92rem; color: var(--ink); }
.gallery__item figcaption cite { display: block; margin-top: .55rem; font-style: normal; font-size: .82rem; color: var(--muted); }

/* Avaliações */
.score-badge { display: flex; align-items: center; gap: .9rem; }
.score-badge__num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.score-badge__stars { color: var(--amber-deep); letter-spacing: 2px; }
.score-badge__total { display: block; color: var(--muted); font-size: .88rem; }

.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem;
}
.review-card__stars { color: var(--amber-deep); letter-spacing: 2px; }
.review-card__text { font-size: .93rem; color: var(--ink); }
.review-card footer { display: flex; flex-direction: column; margin-top: auto; }
.review-card footer strong { font-size: .9rem; }
.review-card footer span { font-size: .78rem; color: var(--muted); }

.link-arrow { font-weight: 600; border-bottom: 1.5px solid var(--amber-deep); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* Diferenciais */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 3rem; margin-top: 1rem; }
.feature-list li { display: flex; gap: 1.2rem; }
.feature-list__num { font-family: var(--font-display); font-size: 1.3rem; color: var(--amber); font-weight: 600; flex: none; }
.feature-list h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature-list p { color: rgba(255,255,255,.72); font-size: .93rem; }

/* Formulário de orçamento */
.orcamento { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; }
.orcamento__info h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .9rem; }
.orcamento__info > p { color: var(--muted); max-width: 38ch; }
.orcamento__contatos { margin-top: 2.2rem; display: grid; gap: 1.2rem; }
.orcamento__contatos dt { font-size: .78rem; color: var(--muted); text-transform: none; }
.orcamento__contatos dd { margin: .15rem 0 0; font-weight: 600; }
.orcamento__contatos a:hover { color: var(--amber-deep); }

.orcamento__form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row--split { flex-direction: row; gap: 1rem; }
.form-row--split > div { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--amber-deep); background: var(--white); outline: none;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-feedback { margin-top: 1rem; font-size: .9rem; min-height: 1.2em; }
.form-feedback.is-success { color: var(--sage); }
.form-feedback.is-error { color: #B33A3A; }

/* Rodapé */
.footer { background: var(--ink-deep); color: rgba(255,255,255,.82); padding-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__grid p { margin-top: .8rem; font-size: .92rem; color: rgba(255,255,255,.62); max-width: 32ch; }
.footer h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.footer nav, .footer > .container > div:last-child { display: flex; flex-direction: column; gap: .65rem; font-size: .92rem; }
.footer a:hover { color: var(--amber); }
.footer__social { display: flex; gap: 1rem; margin-top: 1.1rem; font-size: .85rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.5); }

/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .55);
  animation: pulse-once 1.8s var(--ease) .8s 1;
  transition: transform .2s var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.06); }
@keyframes pulse-once {
  0% { transform: scale(1); }
  30% { transform: scale(1.12); }
  55% { transform: scale(.97); }
  100% { transform: scale(1); }
}

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 62px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 1.5rem 1.5rem 2rem; gap: 1.1rem; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .25s var(--ease); }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__cta { text-align: center; }
  .nav-toggle { display: flex; }

  .hero { grid-template-columns: 1fr; }
  .hero__panel { clip-path: none; padding-right: 0; }
  .hero__media img { min-height: 280px; }

  .trust__card { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .trust__item:nth-child(3) { border-left: none; }
  .trust__item { border-left: none; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .orcamento { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding-block: 4rem; }
  .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--tall { grid-row: span 1; }
  .form-row--split { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .score-badge { width: 100%; }
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}
