/* IDENTIDADE: altere estas variáveis para ajustar as cores do site. */
:root {
  --navy: #02023e;
  --header: #000032;
  --blue: #003bff;
  --cyan: #49acd5;
  --accent: #285f9c;
  --text: #263149;
  --muted: #f4f7fb;
  --line: #e2e8f0;
  --white: #fff;
  --container: 1140px;
  --header-height: 112px;
  --header-compact-height: 68px;
  --radius: 16px;
  --card-shadow: 0 10px 32px #172b4d0a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--text); background: var(--white); font-family: "Montserrat", Arial, sans-serif; font-size: 16px; line-height: 1.75; text-align: center; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; text-align: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0 0 20px; color: var(--navy); font-family: "Barlow", Arial, sans-serif; text-wrap: balance; }
h1 { font-weight: 500; }
h2 { font-size: 44px; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
h3 { font-family: "Montserrat", Arial, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
/* Justificado: as linhas completas alinham nas duas bordas do bloco. */
p { margin: 0 0 24px; text-align: justify; text-align-last: left; text-wrap: wrap; hyphens: auto; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 100px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; }
.grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.section-heading { max-width: 920px; margin: 0 auto 55px; text-align: center; }
.section-heading p { max-width: 780px; margin: 0 auto; text-align: center; text-align-last: center; text-wrap: pretty; hyphens: none; }
.muted-section { background: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 12px 20px; transform: translateY(-160%); background: var(--white); color: var(--navy); }
.skip-link:focus { transform: translateY(0); }

/* MENU: transparente; is-scrolled troca a logo e reduz a altura. */
.site-header { position: fixed; z-index: 10; top: 0; left: 0; width: 100%; color: var(--white); background: transparent; pointer-events: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 24px; transition: height .25s ease; }
.site-header.is-scrolled .header-inner { height: var(--header-compact-height); }
.brand { position: relative; flex-shrink: 0; width: 238px; height: 88px; pointer-events: auto; transition: width .25s ease, height .25s ease; }
.brand img { position: absolute; top: 50%; left: 0; object-fit: contain; transform: translateY(-50%); transition: opacity .2s ease, transform .25s ease; }
.brand-full { width: 238px; height: 88px; opacity: 1; }
.brand .brand-symbol { width: 44px; height: 54px; opacity: 0; transform: translateY(-50%) scale(.85); }
.site-header.is-scrolled .brand { width: 44px; height: 54px; }
.site-header.is-scrolled .brand-full { opacity: 0; }
.site-header.is-scrolled .brand-symbol { opacity: 1; transform: translateY(-50%) scale(1); }
.main-nav { display: flex; align-items: center; gap: 24px; pointer-events: auto; }
.main-nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 4px; text-decoration: none; font-size: 14px; font-weight: 700; text-shadow: 0 1px 8px #00003280; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; bottom: 4px; left: 4px; right: 4px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.site-header.is-light { color: var(--navy); }
.site-header.is-light .main-nav a { text-shadow: 0 1px 8px #ffffffd9; }
.main-nav a:hover { color: var(--cyan); }
.main-nav .nav-system { padding-inline: 16px; border: 1px solid currentColor; border-radius: 8px; }
.main-nav .nav-system::after { display: none; }
.menu-toggle { display: none; }

/* ABERTURA: vídeo original no computador, imagem leve no celular. */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 780px; padding: 200px 0; color: var(--white); background: var(--header) url("../images/fundo-tecnologia.jpg") center / cover no-repeat; }
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-video { object-fit: cover; }
.hero-shade { background: linear-gradient(180deg, #00003270, #0000329e); }
.hero-content { text-align: center; }
.hero h1 { max-width: 1050px; margin-inline: auto; font-size: 75.2px; line-height: 1.1; letter-spacing: -.02em; color: var(--white); text-shadow: 0 4px 24px #00003280; }
.hero p { max-width: 850px; margin: 24px auto 0; font-size: 18px; font-weight: 500; line-height: 1.7; text-align: center; text-align-last: center; hyphens: none; }
.button-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; padding-top: 40px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; max-width: 100%; min-height: 48px; padding: 18px 28px; border: 1px solid transparent; border-radius: 12px; background: var(--cyan); color: var(--navy); font-family: "Montserrat", Arial, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .4px; text-align: center; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.button:hover { background: #70d5ff; color: var(--navy); box-shadow: 0 6px 18px #00aaeb26; transform: translateY(-2px); }
.button-outline { border-color: #ffffffb3; background: #02023e33; color: var(--white); }
.button-outline:hover { background: var(--white); color: var(--navy); }

/* SERVIÇOS */
.services { position: relative; z-index: 1; padding: 0 0 74px; scroll-margin-top: 100px; }
.service-grid { margin-top: -90px; }
.service-card { padding: 42px 30px; background: var(--white); border: 1px solid #02023e0a; border-radius: var(--radius); box-shadow: var(--card-shadow); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.service-card h2 { font-family: "Montserrat", Arial, sans-serif; font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.service-icon { width: 56px; height: 56px; margin: 0 auto 24px; }
.check-list { margin: 0; padding: 0; list-style: none; text-align: left; }
.check-list li { position: relative; margin-bottom: 9px; padding-left: 21px; text-wrap: wrap; hyphens: none; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* EMPRESA E VANTAGENS */
.about-grid { align-items: center; }
.about { padding-top: 60px; }
.about-logo { padding: 48px 30px; border-radius: var(--radius); background: var(--header); }
.about-logo img { width: 100%; }
.feature { text-align: center; }
.feature > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 30px; border-radius: var(--radius); }
.feature p, .centered-features p { margin-bottom: 0; }
.centered-features { text-align: center; }

/* DUAS FAIXAS COM IMAGENS E TEXTO ALTERNADOS */
.split-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-image { min-height: 650px; background-size: cover; background-repeat: no-repeat; }
.automation-image { background-image: url("../images/automacao-residencial.png"); background-position: 52% 51%; }
.security-image { background-image: url("../images/seguranca-eletronica.png"); background-position: 40% 43%; }
.split-content { display: flex; flex-direction: column; justify-content: center; padding: 90px clamp(35px, 7vw, 140px); background: var(--muted); }
.split-content h2 { font-size: 44px; }

/* MARCAS, COMPROMISSOS E ORÇAMENTO */
.brand-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.brand-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.brand-gallery a { overflow: hidden; border: 1px solid #02023e0a; border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.brand-gallery a:hover { box-shadow: var(--card-shadow); transform: translateY(-3px); }

/* Entrada única e discreta; sem JavaScript, todo o conteúdo continua visível. */
.reveal-enter {
  animation: sentinel-reveal .65s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms) backwards;
}
@keyframes sentinel-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.commitments article { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--card-shadow); }
.commitments h3 { font-size: 19px; }
.commitments .service-icon { width: 40px; height: 40px; margin-bottom: 20px; }
.commitments p { font-size: 15px; line-height: 1.8; }
.quote-section { color: var(--white); background: var(--header) url("../images/fundo-tecnologia.jpg") center / cover no-repeat; }
.quote-section .section-heading { margin-bottom: 0; }
.quote-section h2 { color: var(--white); }
.quote-section p { margin-bottom: 35px; }
.areas-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; text-align: center; }
.areas-grid img { width: 120px; height: 120px; object-fit: cover; margin: 0 auto 25px; border-radius: 20px; }
.areas-grid h3 { margin-bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.stats-grid > div { display: flex; flex-direction: column; align-items: center; padding: 28px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #f7fafe, var(--white)); }
.stat-icon, .contact-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent); background: #eaf2fa; }
.stat-icon { margin-bottom: 18px; }
.stat-icon svg, .contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stats-grid h3 { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-bottom: 16px; color: #465570; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.stats-grid p { margin: auto 0 0; color: var(--navy); font-family: "Montserrat", Arial, sans-serif; font-size: 32px; line-height: 1.3; font-weight: 700; letter-spacing: -.03em; text-align: center; text-align-last: center; hyphens: none; }
.stats-grid .stat-location { font-size: 24px; }

/* ACESSO: login administrativo disponível; Área do Cliente futura. */
.system-access { scroll-margin-top: 88px; }
.system-access .section-heading p, .system-access-card p { text-align: center; text-align-last: center; }
.system-access-grid { max-width: 960px; margin-inline: auto; gap: 30px; }
.system-access-card { display: flex; flex-direction: column; align-items: center; padding: 32px; border: 1px solid #02023e14; border-radius: var(--radius); background: var(--white); box-shadow: var(--card-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.system-access-card h3 { font-weight: 700; }
.system-access-card p { max-width: 390px; hyphens: none; }
.system-access-card .button { width: 100%; max-width: 360px; margin-top: auto; }
.system-access-card .button:focus-visible { outline-color: var(--blue); }
.system-access-card .button:disabled { gap: 10px; padding: 20px 24px; border-color: #d4d4e2; background: #eeeef4; color: #4f4f68; text-transform: uppercase; }
.system-status { flex-shrink: 0; padding: 4px 8px; border: 1px solid #bdbdd0; border-radius: 4px; font-size: 10px; letter-spacing: 0; }

/* CONTATOS E PRÉVIA DO FORMULÁRIO */
.contact { background: var(--muted); border-top: 1px solid var(--line); }
.contact-grid { align-items: stretch; gap: 32px; }
.contact-info { display: flex; flex-direction: column; justify-content: center; padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--card-shadow); text-align: left; }
.contact-info h2 { text-align: left; }
.contact-info p { text-align: left; hyphens: none; }
.contact-info .button { align-self: flex-start; }
.contact-list { padding: 0; margin: 30px 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 22px; align-items: center; font-size: 14px; }
.contact-list a { min-width: 0; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }
.form-preview { padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--card-shadow); text-align: left; }
.form-notice { margin-bottom: 24px; padding: 16px; color: #405574; background: #eff5fb; border-left: 3px solid #76a2ca; border-radius: 0 10px 10px 0; font-size: 13px; text-align: left; hyphens: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
input, textarea { width: 100%; margin-bottom: 18px; padding: 12px 14px; color: var(--text); background: var(--white); border: 1px solid #d7dfeb; border-radius: 10px; }
input:disabled, textarea:disabled { background: #f6f8fb; opacity: 1; }
textarea { resize: vertical; }
.message-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 0; }
.message-label span { font-size: 12px; color: #59596e; }
.button:disabled { cursor: not-allowed; background: #e8edf3; border-color: #d7dfeb; color: #59657a; padding: 12px 25px; text-transform: none; transform: none; box-shadow: none; }
.site-footer { padding: 32px 0; color: #d6ddea; background: var(--header); border-top: 1px solid #ffffff14; text-align: center; font-size: 13px; }
.site-footer p { margin: 0; text-align: center; text-align-last: center; hyphens: none; }

/* CONTATO RÁPIDO: usa o mesmo número de WhatsApp da página. */
.whatsapp-float { position: fixed; z-index: 9; right: 24px; bottom: 24px; display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--white); border-radius: 50%; background: #128c48; box-shadow: 0 6px 24px #02023e26; transition: transform .2s, background .2s; }
.whatsapp-float:hover { background: #08753a; transform: translateY(-3px); }
.whatsapp-label { position: absolute; right: 68px; padding: 9px 14px; border-radius: 8px; background: var(--navy); color: var(--white); font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s; pointer-events: none; }
.whatsapp-float:hover .whatsapp-label, .whatsapp-float:focus-visible .whatsapp-label { opacity: 1; visibility: visible; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card:hover, .system-access-card:hover {
    transform: translateY(-4px);
    border-color: #00aaeb38;
    box-shadow: 0 16px 36px #02023e12;
  }
}

@media (min-width: 768px) {
  .site-header.is-light .main-nav a:hover { color: var(--accent); }
  .site-header.is-light .nav-system:focus-visible { outline-color: var(--accent); }
}

/* TABLETS */
@media (max-width: 1023px) {
  .main-nav { gap: 14px; }
  .section { padding-block: 60px; }
  h2, .split-content h2 { font-size: 40px; }
  .hero { min-height: 730px; padding: 180px 0; }
  .hero h1 { font-size: 64px; }
  .grid-two { gap: 32px; }
  .grid-three { gap: 20px; }
  .service-card { padding: 32px 20px; }
  .service-card h2 { font-size: 21px; }
  .service-card li { font-size: 14px; }
  .split-image { min-height: 530px; }
  .split-content { padding: 35px; }
  .areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
  .stats-grid p { font-size: 28px; }
  .stats-grid .stat-location { font-size: 22px; }
  .contact-info, .form-preview { padding: 24px; }
}

/* CELULAR: texto sem corte, colunas empilhadas e menu acessível. */
@media (max-width: 767px) {
  :root { --header-height: 88px; --header-compact-height: 60px; }
  html { scroll-padding-top: 80px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 40px; }
  h2, .split-content h2 { font-size: 36px; }
  .brand { width: 190px; height: 70px; }
  .brand-full { width: 190px; height: 70px; }
  .site-header.is-scrolled .brand, .brand .brand-symbol { width: 38px; height: 46px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid currentColor; color: inherit; background: transparent; padding: 10px; border-radius: 8px; pointer-events: auto; }
  .menu-toggle span { width: 100%; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; display: flex; top: 100%; left: 20px; right: 20px; padding: 12px; border: 1px solid #ffffff1a; border-radius: 12px; background: #000032f5; color: var(--white); box-shadow: 0 12px 30px #02023e26; gap: 0; flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 14px; border-radius: 6px; }
  .main-nav a::after { left: calc(50% - 12px); right: auto; width: 24px; }
  .main-nav .nav-system { margin-top: 8px; }
  .site-header.is-light .main-nav a { text-shadow: none; }
  .js-enabled .main-nav { display: none; }
  .js-enabled .main-nav.is-open { display: flex; }
  .hero { min-height: 720px; padding: 160px 0 190px; }
  .hero h1 { font-size: 44.8px; }
  .hero p { font-size: 16px; }
  .button-group { padding-top: 30px; gap: 14px; }
  .button { padding: 18px 24px; font-size: 12px; }
  .button-group .button { width: 100%; }
  .grid-two, .grid-three { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .system-access-card { padding: 28px 20px; }
  .services { padding-bottom: 30px; }
  .service-grid { margin-top: -100px; }
  .service-card { padding: 32px 26px; }
  .service-card li { font-size: 16px; }
  .service-card h2 { font-size: 21px; }
  .section-heading { margin-bottom: 35px; }
  .about-logo { padding: 32px 24px; }
  .feature > img { margin-bottom: 20px; }
  .split-section { grid-template-columns: minmax(0, 1fr); }
  .split-image { min-height: 380px; }
  .split-content { padding: 40px 20px; }
  .split-reverse .security-image { grid-row: 1; }
  .centered-features { gap: 40px; }
  .brand-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quote-section .section-heading { text-align: center; }
  .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 15px; }
  .areas-grid h3 { font-size: 21px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stats-grid > div { padding: 24px 12px; }
  .stats-grid h3 { min-height: 60px; font-size: 13px; }
  .stats-grid p { font-size: 26px; }
  .stats-grid .stat-location { font-size: 20px; }
  .contact-info, .form-preview { padding: 24px 20px; }
  .site-footer { padding: 30px 0 95px; }
  .whatsapp-float { right: 16px; bottom: 20px; width: 52px; height: 52px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 39px; }
  h2, .split-content h2 { font-size: 32px; }
  .container { width: calc(100% - 32px); }
  .areas-grid img { width: 100px; height: 100px; }
  .stats-grid p { font-size: 26px; }
}

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