/* =====================================================
   FORTE — Portões Automáticos, Serralheria e Vidraçaria
   CSS único — todas as páginas usam este arquivo
   Laranja exato do logo: #F39501 (RGB 243,149,1)
   ===================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  background: #111;
  color: #ccc;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: #F39501; text-decoration: none; }
a:hover { color: #ffb23d; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1,h2,h3,h4 { color: #fff; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .8rem; }
h3 { font-size: 1.1rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; max-width: 68ch; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 3.5rem 0; }
.section-alt { background: #181818; }

/* ---------- Botões — estilo Google/Gmail ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .75rem 1.6rem;
  border: none;
  border-radius: 50px;          /* cantos arredondados estilo Google */
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  line-height: 1;
}
.btn-wa  { background: #25D366; color: #fff; box-shadow: 0 2px 8px rgba(37,211,102,.35); }
.btn-wa:hover  { background: #1da851; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(37,211,102,.45); }
.btn-tel { background: #25D366; color: #fff; box-shadow: 0 2px 8px rgba(37,211,102,.35); }
.btn-tel:hover { background: #1da851; color: #fff; transform: translateY(-2px); }
.btn-orange { background: #F39501; color: #111; }
.btn-orange:hover { background: #ffb23d; color: #111; transform: translateY(-2px); }

/* Ícone WhatsApp nos botões — quase toda a altura do botão */
.btn svg {
  width: auto;
  height: 2.6em;      /* grande, proporcional à altura do botão */
  flex-shrink: 0;
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(17,17,17,.97);
  border-bottom: 2px solid #F39501;
  /* backdrop-filter removido — interferia no z-index do menu mobile */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; font-weight: 700; text-decoration: none; flex-shrink: 0;
}
.logo img { height: 48px; width: auto; }
.logo-text { font-size: 1.05rem; line-height: 1.15; }
.logo-text small { display: block; font-size: .62rem; font-weight: 400; color: #888; letter-spacing: .08em; text-transform: uppercase; }

/* Navegação desktop */
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav > a {
  color: #ccc; font-size: .88rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  padding: .3rem 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.main-nav > a:hover, .main-nav > a.ativo { color: #fff; border-color: #F39501; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a {
  color: #ccc; font-size: .88rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  padding: .3rem 0; border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .15s, border-color .15s;
}
.nav-item:hover > a, .nav-item:focus-within > a { color: #fff; border-color: #F39501; }
.dropdown {
  display: none; position: absolute;
  top: calc(100% + 14px); left: 0; min-width: 230px;
  background: #1a1a1a; border: 1px solid #333;
  border-top: 2px solid #F39501;
  box-shadow: 0 12px 28px rgba(0,0,0,.7); z-index: 200;
  border-radius: 0 0 8px 8px;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block; padding: .65rem .9rem;
  font-size: .85rem; color: #bbb;
  border-bottom: 1px solid #2a2a2a;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #222; color: #F39501; }

/* ── Sub-dropdown cascata (desktop) ── */
.sub-toggle { display: none; }
.has-sub { position: relative; }
.has-sub > a { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.has-sub > a::after { content: '›'; font-size: .8em; opacity: .5; flex-shrink: 0; }
.sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  top: -1px;
  background: #1e1e1e;
  min-width: 220px;
  border: 1px solid #333;
  border-radius: 6px;
  box-shadow: 4px 4px 20px rgba(0,0,0,.55);
  list-style: none;
  padding: 0; margin: 0;
  z-index: 300;
}
.has-sub:hover .sub-dropdown,
.has-sub:focus-within .sub-dropdown { display: block; }
.sub-dropdown li a {
  display: block; padding: .65rem .9rem;
  font-size: .85rem; color: #bbb;
  border-bottom: 1px solid #2a2a2a;
  white-space: nowrap;
}
.sub-dropdown li:last-child a { border-bottom: none; }
.sub-dropdown li a:hover { background: #222; color: #F39501; }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-phone { color: #fff; font-weight: 700; font-size: .9rem; }

/* ---------- Hambúrguer ---------- */
.hamburger {
  display: none;
  background: none;
  border: 1.5px solid #555;
  border-radius: 6px;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; cursor: pointer; flex-shrink: 0;
  transition: border-color .15s;
}
.hamburger:hover { border-color: #F39501; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
  position: relative; top: 0;
}
/* X quando aberto */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(135deg, #111 60%, #1a1100 100%);
  border-bottom: 1px solid #2a2a2a;
}
.hero-label {
  display: inline-block; background: #F39501; color: #111;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .8rem;
  border-radius: 50px; margin-bottom: 1.2rem;
}
.hero p { font-size: 1.1rem; color: #bbb; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #2a2a2a;
}
.stat-num { font-size: 2rem; font-weight: 700; color: #F39501; display: block; line-height: 1; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #888; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #1a1a1a; border: 1px solid #2a2a2a;
  border-top: 3px solid #F39501; padding: 1.5rem;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}
.card:hover { background: #1f1f1f; transform: translateY(-3px); }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card h3 { color: #fff; margin-bottom: .5rem; }
.card h3 a { color: #fff; }
.card h3 a:hover { color: #F39501; }
.card p { font-size: .92rem; color: #aaa; margin-bottom: .75rem; }
.card .saiba { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #F39501; }
.card .saiba:hover { color: #ffb23d; }

.diferencial {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: #1a1a1a;
  border: 1px solid #2a2a2a; border-radius: 8px;
}
.diferencial-icon { font-size: 1.8rem; flex-shrink: 0; }
.diferencial h3 { color: #fff; margin-bottom: .25rem; }
.diferencial p { font-size: .9rem; color: #aaa; margin: 0; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  background: #1a1a1a; border: 1px solid #333; color: #aaa;
  font-size: .78rem; padding: .3rem .7rem; border-radius: 50px;
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid #2a2a2a; }
.faq summary {
  cursor: pointer; padding: 1rem 0; font-weight: 600; color: #fff;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #F39501; font-size: 1.3rem; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq-body { padding: 0 0 1rem; color: #aaa; max-width: 66ch; }

/* ---------- CTA section ---------- */
.cta-section {
  background: #1a1a1a; border-top: 3px solid #25D366;
  text-align: center; padding: 3.5rem 0;
}
.cta-section h2 { margin-bottom: .5rem; }
.cta-section p { margin: 0 auto 1.5rem; color: #aaa; }
.cta-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .78rem; color: #666; padding: .75rem 0; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #F39501; }
.breadcrumb .sep { margin: 0 .4em; }
.breadcrumb .atual { color: #F39501; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #F39501; margin-bottom: .75rem;
}

/* ---------- Blog / Artigo ---------- */
.article-body h2 { margin: 2rem 0 .75rem; }
.article-body h3 { margin: 1.5rem 0 .5rem; color: #F39501; }
.article-body p  { color: #bbb; }
.article-meta { font-size: .78rem; color: #666; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.25rem; }

/* ---------- Formulário ---------- */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: .8rem; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: #1a1a1a; border: 1px solid #333;
  color: #fff; padding: .75rem .9rem; font-size: .95rem;
  font-family: inherit; border-radius: 8px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: #F39501;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0d0d0d; border-top: 1px solid #222; padding: 3rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { color: #F39501; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-grid a { display: block; color: #888; padding: .2rem 0; font-size: .88rem; }
.footer-grid a:hover { color: #F39501; }
.footer-grid p { font-size: .85rem; color: #666; }
.footer-bottom {
  border-top: 1px solid #222; padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; font-size: .78rem; color: #555;
}

/* ---------- WhatsApp flutuante — redondo, shake a cada 9s ---------- */
@keyframes wa-shake {
  0%   { transform: rotate(0deg)   scale(1); }
  1%   { transform: rotate(-14deg) scale(1.08); }
  2%   { transform: rotate(13deg)  scale(1.08); }
  3%   { transform: rotate(-11deg) scale(1.06); }
  4%   { transform: rotate(10deg)  scale(1.06); }
  5%   { transform: rotate(-6deg)  scale(1.03); }
  6%   { transform: rotate(4deg)   scale(1.02); }
  6.5% { transform: rotate(0deg)   scale(1); }
  100% { transform: rotate(0deg)   scale(1); }
}

.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 62px; height: 62px;   /* igual em ambos → garante círculo */
  border-radius: 50%;           /* redondo */
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4), 0 2px 8px rgba(0,0,0,.5);
  animation: wa-shake 9s ease-in-out 2s infinite;
  transform-origin: center;
  flex-shrink: 0;
  text-decoration: none;
}
.wa-float:hover { animation-play-state: paused; transform: scale(1.1); }
.wa-float svg { width: 34px; height: 34px; }

/* ---------- Barra CTA mobile (fundo da tela) ---------- */
.mobile-bar { display: none; }

/* ---------- Focus acessível ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid #F39501; outline-offset: 3px; }

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 900px) {

  /* Logo maior e mais legível no mobile */
  .logo img { height: 52px; }
  .logo-text { font-size: 1.15rem; }
  .logo-text small { font-size: .65rem; }

  .header-phone { display: none !important; }
  .header-cta .btn { display: none; }  /* esconde botão WA do header */

  /* ── Menu mobile: gaveta lateral completa ── */
  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;                           /* máximo possível */
    background: #111111;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 1.5rem 110px;
    overflow-y: auto;
    transform: translateX(110%);             /* começa fora da tela */
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    gap: 0;
    border-top: none;
    isolation: isolate;                      /* novo stacking context */
    will-change: transform;
  }
  .main-nav.aberto {
    transform: translateX(0);
  }
  /* Linha laranja no topo do menu aberto */
  .main-nav.aberto::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    background: #111111;
    border-bottom: 2px solid #F39501;
    z-index: 10000;
  }

  /* Links do menu mobile — maiores e fáceis de tocar */
  .main-nav > a,
  .main-nav .nav-item > a {
    display: block;
    padding: 1rem .25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #222;
    border-right: none; border-left: none;
  }
  .main-nav > a:hover, .main-nav .nav-item > a:hover { color: #F39501; }

  /* Dropdown aberto por padrão dentro do menu mobile */
  .nav-item { position: static; }
  .dropdown {
    position: static;
    display: block;
    border: none; background: none;
    box-shadow: none; padding-left: 1rem;
    border-radius: 0;
  }
  .dropdown li a {
    font-size: .95rem; color: #aaa;
    padding: .6rem .25rem; border-bottom: 1px solid #1e1e1e;
  }
  .dropdown li a:hover { color: #F39501; background: none; }

  /* Sub-dropdown mobile */
  .has-sub > a::after { content: none; }
  .has-sub > a { justify-content: flex-start; }
  .sub-dropdown {
    position: static;
    display: none;
    box-shadow: none; border: none; background: none;
    padding-left: 1rem; min-width: unset;
  }
  .has-sub.sub-aberto > .sub-dropdown { display: block; }
  .sub-toggle {
    background: none; border: 1px solid #444; border-radius: 4px;
    color: #888; font-size: .85rem; cursor: pointer;
    padding: 2px 7px; margin-left: auto; flex-shrink: 0;
  }
  .has-sub.sub-aberto .sub-toggle { color: #F39501; border-color: #F39501; }

  .hamburger { display: flex; }

  /* ── Botões CTA centralizados e largura total no mobile ── */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;        /* ocupa a largura toda */
    text-align: center;
  }
  .hero-actions .btn {
    justify-content: center;     /* conteúdo interno centralizado */
    width: 100%;
  }

  /* ── WhatsApp flutuante — REDONDO, grande, sempre visível ── */
  .wa-float {
    width: 64px;
    height: 64px;               /* quadrado igual → círculo perfeito */
    border-radius: 50% !important;
    bottom: 88px;               /* acima da barra CTA (70px) + folga */
    right: 16px;
    z-index: 9000;
    box-shadow: 0 6px 22px rgba(37,211,102,.55), 0 2px 10px rgba(0,0,0,.6);
  }
  .wa-float svg { width: 36px; height: 36px; }

  /* Barra CTA fixa no rodapé */
  body { padding-bottom: 70px; }
  .site-footer { padding-bottom: calc(1.5rem + 70px); }

  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 110; height: 70px;
  }
  .mobile-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: .5rem; background: #25D366; color: #fff;
    font-weight: 700; font-size: .9rem;
    text-transform: uppercase; letter-spacing: .03em;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .mobile-bar a:active { background: #1da851; }
  .mobile-bar a + a { border-left: 2px solid rgba(0,0,0,.2); }
  .mobile-bar svg { width: 22px; height: 22px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 2.5rem 0; }
  .hero { padding: 2.5rem 0; }
}
