/* RJ Sistemas de Segurança — site estático */
:root {
  --yellow: #f6df31;
  --yellow-dark: #d9c214;
  --black: #111;
  --dark: #1b1b1b;
  --dark-2: #242424;
  --gray: #6b6b6b;
  --light: #f4f4f2;
  --white: #fff;
  --radius: 10px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: #2a2a2a; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; color: var(--black); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-style: italic; text-transform: uppercase; letter-spacing: .5px; }
h2 em { color: var(--black); font-style: italic; background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: var(--yellow); padding: 8px 14px; color: var(--black); }

/* Botões */
.btn { display: inline-block; background: var(--yellow); color: var(--black); font-family: var(--head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; padding: 14px 28px; border: 0; border-radius: 6px; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: var(--white); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Topbar */
.topbar { background: var(--black); color: #cfcfcf; font-size: 14px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar__tag { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .5px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc5f; box-shadow: 0 0 0 0 rgba(61, 220, 95, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 95, 0); } }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar__links a:hover { color: var(--yellow); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--dark); border-bottom: 3px solid var(--yellow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.header__logo img { width: 180px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--white); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .5px; }
.nav a:not(.btn):hover { color: var(--yellow); }
.nav .btn { color: var(--black); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--yellow); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { background: var(--black); }
.hero img { width: 100%; }

.cta-bar { background: var(--yellow); }
.cta-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.cta-bar p { margin: 0; font-size: 1.1rem; color: var(--black); }
.cta-bar .btn { background: var(--black); color: var(--yellow); white-space: nowrap; }
.cta-bar .btn:hover { background: var(--dark-2); }

/* Seções */
.section { padding: 90px 0; }
.section--dark { background: var(--dark) url("../img/banner-main.jpg") right center / cover no-repeat; position: relative; color: #d7d7d7; }
.section--dark::before { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, .93); }
.section--dark > * { position: relative; }
.section--dark h2 { color: var(--white); }
.section--dark h2 em { color: var(--yellow); background: none; padding: 0; }
.section--dark strong { color: var(--white); }
.section--alt { background: var(--light); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__head img { margin: 0 auto 12px; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gray); margin-bottom: 8px; }
.section--dark .eyebrow { color: var(--yellow); }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: var(--white); border: 1px solid #e7e7e7; border-radius: var(--radius); padding: 36px 28px; text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); border-color: var(--yellow); }
.service img { margin: 0 auto 18px; }
.service p { color: #555; margin: 0; }

.how { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 60px; background: var(--dark); color: #d7d7d7; border-radius: var(--radius); padding: 44px; }
.how h3 { color: var(--yellow); font-size: 1.8rem; font-style: italic; text-transform: uppercase; }
.how strong { color: var(--white); }
.how__text p { margin: 0; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how__steps li { display: flex; align-items: center; gap: 14px; background: var(--dark-2); padding: 12px 16px; border-radius: 8px; color: var(--white); font-weight: 500; }
.how__steps span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; background: var(--yellow); color: var(--black); font-family: var(--head); font-weight: 700; font-size: 1.2rem; border-radius: 50%; }

/* Sobre */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats li { background: rgba(255, 255, 255, .04); border: 1px solid rgba(246, 223, 49, .25); border-radius: var(--radius); padding: 26px 20px; text-align: center; text-transform: uppercase; font-size: .9rem; letter-spacing: 1px; }
.stats strong { display: block; font-family: var(--head); font-size: 3rem; font-style: italic; line-height: 1; color: var(--yellow) !important; margin-bottom: 6px; }

/* Visita */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.visit__text img { margin-bottom: 14px; }
.visit__phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 1.6rem; font-weight: 700; text-decoration: none; color: #128c4a; }
.visit__phone:hover { color: #0b6b37; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--light); padding: 34px; border-radius: var(--radius); border-top: 4px solid var(--yellow); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .form__error, .form .btn { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select { font: inherit; padding: 12px 14px; border: 1px solid #d5d5d5; border-radius: 6px; background: var(--white); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--yellow-dark); border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.form__error { margin: 0; color: #c0392b; font-weight: 600; }
.form .btn { background: var(--black); color: var(--yellow); }
.form .btn:hover { background: var(--dark-2); }

/* Dicas */
.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tip { background: var(--white); border-radius: var(--radius); padding: 34px; border-left: 4px solid var(--yellow); }
.tip ul { margin: 0; padding-left: 20px; }
.tip li { margin-bottom: 8px; }
.tip li::marker { color: var(--yellow-dark); }

/* Rodapé */
.footer { background: var(--black); color: #9a9a9a; padding: 50px 0 0; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; color: #cfcfcf; }
.footer__nav a:hover { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2a2a2a; padding-top: 20px; padding-bottom: 20px; padding-right: 90px; }
.footer__bottom p { margin: 0; }
.footer__credit { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #9a9a9a; opacity: .85; transition: opacity .2s; }
.footer__credit:hover { opacity: 1; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .services, .tips { grid-template-columns: 1fr; }
  .how, .about, .visit { grid-template-columns: 1fr; }
  .how { padding: 30px 24px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--dark); border-bottom: 3px solid var(--yellow); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav.is-open { max-height: 300px; box-shadow: 0 12px 24px rgba(0, 0, 0, .35); }
  .nav a { padding: 11px 20px; width: 100%; font-size: 1rem; border-top: 1px solid #2c2c2c; }
  .nav .btn { width: calc(100% - 40px); margin: 10px 20px 14px; padding: 10px; text-align: center; border-top: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .topbar { display: none; }
  .header__inner { min-height: 58px; }
  .header__logo img { width: 125px; }
  .nav-toggle span { width: 24px; }
  .cta-bar__inner { flex-direction: column; text-align: center; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .tip { padding: 26px 22px; }
  .stats strong { font-size: 2.4rem; }
  .footer__inner, .footer__bottom { flex-direction: column; text-align: center; }
  .footer__bottom { padding-right: 20px; padding-bottom: 92px; gap: 18px; }
  .footer__bottom p { font-size: 13px; }
  .footer__credit { flex-direction: column; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
  .footer__inner img { margin: 0 auto; }
  .footer__nav { justify-content: center; }
}
