/* =========================================================
   PN Drill — Folha de estilos
   Cores oficiais: preto, amarelo e branco
   ========================================================= */

/* ---------- Variáveis e Configurações Globais ---------- */
:root {
  --black: #0a0a0a;
  --graphite: #141414;
  --graphite-2: #1c1c1c;
  --line: #2a2a2a;
  --yellow: #ffd200;
  --yellow-dark: #e6bb00;
  --white: #ffffff;
  --gray: #b8b8b8;
  --radius: 10px;
  --header-h: 72px;
  --timbrado-black: #1b1b1b;
  --font-title: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.08;
  margin: 0 0 .6em;
  text-transform: uppercase;
  letter-spacing: .01em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.45rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--gray);
}

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}


/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: .92rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--yellow-dark);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-whatsapp {
  background: var(--white);
  color: var(--black);
  margin-top: 8px;
}

.btn-whatsapp:hover {
  background: var(--yellow);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}


/* ---------- Cabeçalho: timbrado do topo ---------- */

/* Fundo com degradê atrás do timbrado transparente */
.site-header {
  position: relative;
  z-index: 200; /* mantém o painel do menu acima do conteúdo (hero) */
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f5f5f5 18%,
    #d6d6d6 38%,
    #858585 58%,
    #383838 78%,
    #141414 92%,
    #0a0a0a 100%
  );
}

/* A imagem original permanece intacta */

/* Menu sobre a área branca do timbrado (desktop) */
.bar {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.bar-inner {
  position: absolute;
  left: 7%;
  right: 12%;
  top: 88%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.logo-badge {
  display: none;
}

.logo-badge img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}

.nav-cta {
  flex: none;
  margin-left: 28px;
}

.main-nav ul {
  display: flex;
  gap: 26px;
}

.main-nav ul a {
  color: #d8d8d8;
  font-weight: 600;
  font-size: .98rem;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}

.main-nav ul a:hover,
.main-nav ul a.active {
  border-color: var(--yellow);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  background: rgba(27,27,27,.92);
  border: 0;
  border-radius: 8px;
  padding: 10px 9px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

.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);
}

/* Barra fixa: aparece quando o timbrado sai da tela */
body.scrolled .bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--timbrado-black);
  border-bottom: 1px solid var(--yellow);
  pointer-events: auto;
  animation: barIn .3s ease;
}

body.scrolled .bar-inner {
  position: static;
  width: min(1180px, 100% - 40px);
  height: 100%;
  margin-inline: auto;
}

body.scrolled .logo-badge {
  display: block;
  flex: none;
  margin-right: 28px;
}

body.scrolled .main-nav ul a {
  color: var(--white);
}

body.scrolled .main-nav ul a:hover,
body.scrolled .main-nav ul a.active {
  color: var(--yellow);
  border-color: var(--yellow);
}

@keyframes barIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 30px 0 45px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.78) 55%, rgba(10,10,10,.55) 100%),
    /* url("../assets/images/hero.jpg") center / cover no-repeat, */
    radial-gradient(circle at 80% 30%, #2a2200 0%, var(--black) 60%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .25;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  max-width: 15ch;
}

.accent {
  color: var(--yellow);
}

.lead {
  font-size: 1.15rem;
  max-width: 60ch;
  color: #dcdcdc;
  margin-bottom: 1.6em;
}

.eyebrow {
  color: var(--yellow);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--yellow);
  vertical-align: middle;
  margin-right: 10px;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 2px solid var(--gray);
  border-radius: 14px;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scroll 1.8s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(16px); }
}


/* ---------- Seções ---------- */
.section {
  padding: clamp(45px, 6vw, 75px) 0;
}

.section-alt {
  background: var(--graphite);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-sub {
  font-size: 1.08rem;
}


/* ---------- Cartões de serviços ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s, border-color .25s;
}

/* Imagens dos cartões de serviços */
.card-image {
  display: block;
  width: calc(100% + 52px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: -30px -26px 22px;
  border-radius: 9px 9px 0 0;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--yellow);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.35rem;
}

.card p {
  flex: 1;
  font-size: .95rem;
}

.card-link {
  color: var(--yellow);
  font-weight: 600;
  margin-top: 6px;
}

.card-link:hover {
  text-decoration: underline;
}


/* ---------- Detalhes ---------- */
.details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.detail {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
}


.detail h3 {
  color: var(--yellow);
}

.check-list {
  margin: 0 0 24px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #dcdcdc;
  font-size: .95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  rotate: -45deg;
}


/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}

.placeholder-note {
  border-left: 3px solid var(--yellow);
  padding: 10px 16px;
  background: var(--graphite);
  color: var(--gray);
  font-size: .92rem;
  font-style: italic;
}

.pillars {
  display: grid;
  gap: 16px;
}

.pillars li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.pillars h3 {
  font-size: 1.25rem;
  margin-bottom: .2em;
}

.pillars p {
  margin: 0;
  font-size: .93rem;
}

.pillar-n,
.feature-n {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--yellow);
  line-height: 1;
}


/* ---------- Diferenciais ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color .25s;
}

.feature:hover {
  border-color: var(--yellow);
}

.feature h3 {
  font-size: 1.2rem;
  margin-top: 14px;
}

.feature p {
  margin: 0;
  font-size: .93rem;
}

.fine-print {
  margin: 28px 0 0;
  font-size: .85rem;
  color: var(--gray);
}


/* ---------- Método ---------- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.steps {
  counter-reset: s;
  margin: 0 0 1.2em;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  color: #dcdcdc;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: .9rem;
}

.diagram {
  margin: 0;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.diagram svg {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.diagram figcaption {
  font-size: .82rem;
  color: var(--gray);
  margin-top: 10px;
  text-align: center;
}


/* ---------- Portfólio ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.project {
  margin: 0;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project figcaption {
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}

.project figcaption span {
  color: var(--gray);
  font-size: .92rem;
}


/* ---------- Contato ---------- */
.contact {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1500 100%);
  border-top: 4px solid var(--yellow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  margin: 28px 0;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 600;
}

.value {
  font-size: 1.1rem;
  word-break: break-word;
}

a.value:hover {
  color: var(--yellow);
}

.pending {
  color: var(--gray);
  font-style: italic;
}

.form {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.form h3 {
  color: var(--yellow);
  margin-bottom: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--graphite-2);
  color: var(--white);
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  transition: border-color .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,210,0,.25);
}

.field.invalid input,
.field.invalid textarea {
  border-color: #ff6b6b;
}

.error {
  display: block;
  color: #ff8b8b;
  font-size: .82rem;
  min-height: 1.1em;
  margin-top: 4px;
}

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

.form-status {
  margin: 14px 0 0;
  font-size: .95rem;
  min-height: 1.4em;
}

.form-status.ok {
  color: #7be08f;
}

.form-status.fail {
  color: #ff8b8b;
}

.btn[disabled] {
  opacity: .6;
  cursor: wait;
  transform: none;
}


/* ==========================
   GALERIA DE SERVIÇOS
========================== */

.gallery {
  padding: 90px 0;
  overflow: hidden;
}

.gallery .section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}

.gallery .section-header p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}

.gallery-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--graphite);
}

.gallery-track {
  position: relative;
}

.gallery-slide {
  display: none;
  position: relative;
  animation: galleryFade .6s ease;
}

.gallery-slide.active {
  display: block;
}

.gallery-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.gallery-slide video {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
  background: #171717;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 55px 30px 45px;
  color: #fff;
  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, .88)
  );
}

.gallery-caption h3 {
  color: var(--yellow);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.gallery-caption p {
  font-size: .95rem;
  line-height: 1.5;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.gallery-arrow:hover {
  background: var(--yellow);
  color: #111;
}

.gallery-prev {
  left: 18px;
}

.gallery-next {
  right: 18px;
}

.gallery-dots {
  position: absolute;
  bottom: 17px;
  right: 25px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}

.gallery-dot.active {
  background: var(--yellow);
  transform: scale(1.25);
}

@keyframes galleryFade {
  from {
    opacity: .4;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .gallery {
    padding: 60px 0;
  }

  .gallery-slide img {
    height: 360px;
  }

  .gallery-caption {
    padding: 45px 20px 48px;
  }

  .gallery-caption h3 {
    font-size: 1.2rem;
  }

  .gallery-caption p {
    font-size: .85rem;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-dots {
    right: 20px;
    bottom: 15px;
  }

  .gallery-slide video {
  height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slide {
    animation: none;
  }
}


/* ---------- Rodapé: conteúdo + timbrado inferior ---------- */
.site-footer {
  background: #fff;
  color: var(--timbrado-black);
  border-top: 4px solid var(--yellow);
  padding-top: 5px;
}

.site-footer p {
  color: #444;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.footer-grid h3 {
  font-size: 1.1rem;
  color: var(--timbrado-black);
  display: inline-block;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 4px;
  margin-bottom: 0.6em;
}

.footer-grid li {
  margin-bottom: 4px;
}

.footer-grid a:hover {
  color: #9c7b00;
}

.footer-logo img {
  width: 230px;
  height: auto;
  border-radius: 6px;
  transform: translateY(10px);
}

.footer-text {
  margin-top: 8px;
  margin-bottom: 0;
  max-width: 36ch;
  font-size: .93rem;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  padding: 1px 0 0;
  margin: 0;
}

.footer-bottom p {
  margin: 0 0 0 15px;
  padding: 0;
  font-size: .85rem;
  text-align: left;
}

/* ====== TIMBRADO EM SVG (substitui as imagens PNG/WEBP) ====== */

/* Topo */
.timbrado.timbrado-topo {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}
.timbrado-topo svg {
  display: block;
  width: 100%;
  /* proporcional ao desktop; no celular nunca fica menor que 150px */
  height: clamp(165px, 23.4vw, 470px);
}

/* Rodapé */
.timbrado.timbrado-rodape {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-top: -2px;
  line-height: 0;
  background: #fff;
}
.timbrado-rodape svg {
  display: block;
  width: 100%;
  height: clamp(90px, 20.8vw, 420px);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--black);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform .2s;
}

.to-top:hover {
  transform: translateY(-3px);
}


/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .about-grid,
  .method-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Menu mobile: hambúrguer (esquerda) + botão de orçamento (direita), na mesma linha.
     Os links abrem num painel ao tocar no hambúrguer. */
  :root { --header-h: 68px; }

  .bar { position: static; inset: auto; }
  .bar-inner {
    position: relative;
    left: auto; right: auto; top: auto;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 12px 18px;
  }
  /* Ordem na linha: hambúrguer | logo (centro) | botão */
  .nav-toggle {
    order: 1;
    display: block;
    flex: none;
    border: 1px solid rgba(255, 255, 255, .28);
  }

  /* A logo só aparece depois que a página é rolada */
  .logo-badge {
    order: 2;
    display: none;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }
  body.scrolled .logo-badge {
    display: flex;
    margin: 0;
  }
  .logo-badge img {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
  }

  .nav-cta {
    order: 3;
    flex: none;
    margin: 0;
    padding: 10px 12px;
    font-size: clamp(.72rem, 3.3vw, .9rem);
    white-space: nowrap;
  }

  /* Painel de links (fechado por padrão) */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    padding: 8px 0;
    background: rgba(20, 20, 20, .97);
    border-top: 2px solid var(--yellow);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
  }
  .main-nav.open { display: flex; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .main-nav ul a,
  body.scrolled .main-nav ul a {
    display: block;
    padding: 14px 20px;
    border-bottom: 0;
    border-left: 4px solid transparent;
    color: #e8e8e8;
    font-size: 1rem;
  }
  .main-nav ul a:hover,
  .main-nav ul a.active,
  body.scrolled .main-nav ul a:hover,
  body.scrolled .main-nav ul a.active {
    color: var(--yellow);
    border-left-color: var(--yellow);
    border-bottom-color: transparent;
  }

  /* Barra fixa ao rolar */
  body.scrolled .bar {
    position: fixed;
    inset: 0 0 auto 0;
    height: auto;
  }
  body.scrolled .bar-inner {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 6px 10px 8px;
  }

}


/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: #25D366;
  color: #fff;

  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .25s ease, background .25s ease;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  max-width: none;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}


@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-group .btn {
    width: 100%;
  }
  
  .scroll-hint {
    display: none;
  }
}

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

/* Ajuste responsivo das caixas de detalhes */
@media (max-width: 960px) {
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .details {
    grid-template-columns: 1fr;
  }
}


/* ---------- Barra de rolagem personalizada ---------- */

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #f5c400 #141414;
}

/* Chrome, Edge e Safari */
html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: #141414;
}

html::-webkit-scrollbar-thumb {
  background: #f5c400;
  border-radius: 8px;
  border: 2px solid #141414;
}

html::-webkit-scrollbar-thumb:hover {
  background: #ffd633;
}

/* ---------- Ajuste do hero em tablets, celulares e telas altas ----------
   Antes: min-height 80vh + conteúdo centralizado deixava um vazio preto
   enorme entre o timbrado e o primeiro texto em telas altas (tablet em pé). */
@media (max-width: 1100px), (orientation: portrait) {
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
  }
}

/* Timbrado: mantém exatamente a proporção do desktop em tablets */
@media (min-width: 601px) {
  .timbrado-topo svg { height: 23.4vw; max-height: 470px; }
  .timbrado-rodape svg { height: 20.8vw; max-height: 420px; }
}

/* ---------- Rodapé responsivo: mantém as 3 colunas do desktop ----------
   Antes: em telas <= 960px virava 2 colunas e o "Contato" descia. */
.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(16px, 4vw, 40px);
  align-items: start;
}
.footer-logo img { width: min(230px, 100%); }

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 14px;
  }
  .footer-grid h3 { font-size: .95rem; }
  .footer-grid li,
  .footer-grid a { font-size: .85rem; }
  .footer-logo img { transform: none; }
}

/* Celulares bem estreitos: logo em cima, Navegação e Contato lado a lado */
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Barra de navegação fixa mais transparente ao rolar ---------- */
body.scrolled .bar {
  background: rgba(27, 27, 27, .68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- Botão de orçamento pelo WhatsApp ---------- */
.btn-wa-orcamento {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
}
.btn-wa-orcamento:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #fff;
}
@media (max-width: 600px) {
  .btn-wa-orcamento { justify-content: center; }
}

/* Separador "ou" entre os botões do formulário */
.form-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #9a9a9a;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.form-or::before,
.form-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .35;
}

/* Formulário: remove o espaço vazio abaixo do último botão.
   A mensagem de status só ocupa lugar quando tem texto. */
.form-status:empty {
  display: none;
}
.form {
  padding: 28px 28px 24px;
}

/* ---------- Destaque da caixa de detalhes (pulsa 3x em 1,5 s) ---------- */
.detail.pulse {
  animation: detailPulse .5s ease-in-out 3;
}
@keyframes detailPulse {
  0%, 100% {
    border-color: var(--line);
    box-shadow: 0 0 0 0 rgba(255, 210, 0, 0);
  }
  50% {
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px rgba(255, 210, 0, .45), 0 0 24px rgba(255, 210, 0, .35);
  }
}