/* LUZOBIM — site institucional. Tokens da marca (marca/LUZOBIM_Plataforma_de_Marca.md). */
:root {
  --navy: #0b2a3a;
  --deep: #06161f;
  --panel2: #0f3346;
  --line: #1c4559;
  --yellow: #ffc107;
  --sky: #7cc4e4;
  --steel: #56666f;
  --paper: #f4f5f6;
  --white: #ffffff;
  --dim: #a9bcc7;
  --mid: #3f5563;
  --amber: #8a5a00;
  --radius: 14px;
  --wrap: 1200px;
  --display: "Red Hat Display", system-ui, sans-serif;
  --text: "Red Hat Text", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--text); color: var(--navy); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; max-width: 26ch; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; flex-shrink: 0; }
.word { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.word b { font-weight: 900; }
.word i { font-style: normal; font-weight: 300; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font-family: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--yellow); color: var(--navy); }
.btn.primary:hover { background: #ffcd38; }
.btn.ghost { border: 1px solid currentColor; color: inherit; background: transparent; }
.btn.lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--deep) 88%, transparent); backdrop-filter: blur(10px); color: var(--white); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { text-decoration: none; color: var(--dim); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--white); }
.top-cta { display: flex; gap: 10px; }
.top-cta .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { width: 18px; height: 2px; background: var(--white); border-radius: 2px; }
.menu-movel { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-top: 1px solid var(--line); }
.menu-movel[hidden] { display: none; }
.menu-movel a { padding: 12px 0; text-decoration: none; color: var(--white); font-weight: 600; }
.menu-movel .btn { margin-top: 8px; }

/* Hero: luz da marca que segue o ponteiro (--mx/--my em main.js) */
@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: 35%; }
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: clamp(72px, 12vw, 140px) 0 clamp(72px, 10vw, 120px);
  background:
    linear-gradient(rgba(124, 196, 228, .06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(124, 196, 228, .06) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(620px circle at var(--mx) var(--my), rgba(255, 193, 7, .22), transparent 62%),
    radial-gradient(900px circle at calc(100% - var(--mx)) calc(100% - var(--my)), rgba(124, 196, 228, .14), transparent 66%),
    linear-gradient(90deg, var(--deep) 0%, rgba(6, 22, 31, .94) 34%, rgba(6, 22, 31, .55) 62%, rgba(6, 22, 31, .15) 100%),
    url("/img/hero-obra.webp") right center / cover no-repeat,
    var(--deep);
  transition: --mx 1.1s cubic-bezier(.22, 1, .36, 1), --my 1.1s cubic-bezier(.22, 1, .36, 1);
}
.hero-in { position: relative; z-index: 1; }
.eyebrow, .kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-size: clamp(38px, 5.2vw, 76px); font-weight: 900; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--yellow); }
@media (min-width: 1000px) { .hero h1 span { white-space: nowrap; } }
.lead { margin-top: 24px; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.chips a:hover { border-color: var(--yellow); color: var(--white); }
.hero-art { position: absolute; right: -4%; top: 50%; width: min(46vw, 560px); transform: translateY(-50%); opacity: .9; }

/* Secções */
section { padding: clamp(64px, 9vw, 120px) 0; }
.areas { background: var(--paper); }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.area { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); text-decoration: none; min-height: 280px; transition: transform .2s ease, box-shadow .2s ease; }
.area:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(11, 42, 58, .45); }
.area-plat { background: var(--yellow); color: var(--navy); }
.area-mod { background: var(--navy); color: var(--white); }
.area-form { background: var(--sky); color: var(--navy); }
.area-n { font-family: var(--mono); font-size: 13px; opacity: .8; }
.area h3 { font-size: 28px; margin-top: 28px; }
.area p { font-size: 15px; opacity: .9; }
.more { font-weight: 700; font-size: 14px; margin-top: auto; padding-top: 12px; }

.split { background: var(--white); }
.split.alt { background: var(--deep); color: var(--white); }
.split.alt .kicker { color: var(--yellow); }
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-in.rev .split-txt { order: 2; }
.feat { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.feat li { display: grid; gap: 4px; padding-left: 26px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 16px; background: var(--yellow); clip-path: polygon(0 35%, 100% 0, 100% 65%, 0 100%); }
.feat b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.feat span { color: var(--mid); font-size: 15px; }
.split.alt .feat span { color: var(--dim); }

/* Mock da plataforma */
.mock { border-radius: var(--radius); overflow: hidden; background: var(--deep); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(6, 22, 31, .6); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--navy); color: var(--dim); font-size: 12px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 8px; }
.mock-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--deep); object-fit: cover; }
.mock-body { display: grid; grid-template-columns: 56px minmax(0, 1fr); min-height: 300px; }
.mock-side { background: #0b2432; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; }
.mock-side b { height: 10px; border-radius: 4px; background: var(--line); }
.mock-side b.on { background: var(--yellow); }
.mock-main { padding: 18px; display: grid; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-kpis div { background: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--white); }
.mock-kpis small, .mock-chart small { display: block; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.mock-kpis strong { font-family: var(--display); font-size: 22px; font-weight: 900; }
.mock-chart { background: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mock-chart svg { width: 100%; height: 130px; margin-top: 8px; }

.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(6, 22, 31, .55); aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

.cert { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px -30px rgba(11, 42, 58, .35); border: 1px solid #d6dde2; display: grid; gap: 12px; max-width: 520px; margin-inline: auto; width: 100%; }
.photo-stack { position: relative; padding-bottom: 72px; }
.cert-float { position: absolute; right: -8px; bottom: 0; width: min(62%, 340px); padding: 20px; gap: 8px; }
.cert-float strong { font-size: 19px; }
.cert-float .cert-head svg { width: 26px; height: 26px; }
.cert-float .cert-head span { font-size: 17px; }
.cert-float small { margin-top: 8px; font-size: 10px; }
.cert-head { display: flex; align-items: center; gap: 10px; }
.cert-head svg { width: 34px; height: 34px; }
.cert-head span { font-family: var(--display); font-size: 22px; }
.cert-head b { font-weight: 900; }
.cert-head i { font-style: normal; font-weight: 300; }
.cert small { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--amber); }
.cert strong { font-family: var(--display); font-size: 26px; font-weight: 900; line-height: 1.15; }
.cert-line { height: 8px; border-radius: 4px; background: #e3e8ec; }
.cert-line.short { width: 55%; }

.why { background: var(--paper); }
.why-grid, .who-grid { display: grid; gap: 20px; margin-top: 44px; }
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-grid div, .who-grid div { background: var(--white); border: 1px solid #d6dde2; border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.why-grid p, .who-grid p { color: var(--mid); font-size: 15px; }

.who { background: var(--white); }
.who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }

/* Contacto */
.contact { background: var(--navy); color: var(--white); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact .kicker { color: var(--yellow); }
.contact h2 { font-weight: 300; }
.contact h2 span { display: block; font-weight: 900; color: var(--yellow); }
.contact-lead { margin-top: 20px; color: var(--dim); font-size: 17px; max-width: 42ch; }
.contact-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-form { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.tipo { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tipo legend { font-family: var(--display); font-weight: 800; font-size: 17px; margin-bottom: 10px; padding: 0; }
.tipo label { position: relative; }
.tipo input { position: absolute; opacity: 0; inset: 0; }
.tipo span { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; border: 1px solid #d6dde2; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.tipo input:checked + span { border-color: var(--navy); background: #fff7dc; box-shadow: inset 0 0 0 1px var(--navy); }
.tipo input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field small { font-weight: 400; color: var(--steel); }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 15px; color: var(--navy); border: 1px solid #c3ccd3; border-radius: 10px; padding: 11px 12px; min-height: 46px; background: var(--white); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.4em; font-size: 14px; font-weight: 600; }
.form-status[data-state="ok"] { color: #1f8f58; }
.form-status[data-state="error"] { color: #c62828; }

.cta { background: var(--navy); color: var(--white); text-align: center; }
.cta-in { display: grid; justify-items: center; gap: 36px; }
.cta h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 300; max-width: none; }
.cta h2 span { font-weight: 900; color: var(--yellow); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.foot { background: var(--deep); color: var(--dim); padding: 36px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.foot-brand small { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 18px; flex: 1; }
.foot-nav a { text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--white); }
.copy { font-size: 13px; }

/* Responsivo */
@media (max-width: 1000px) {
  .nav, .top-cta { display: none; }
  .menu-btn { display: flex; }
  .area-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-grid > :last-child { grid-column: 1 / -1; }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-in { grid-template-columns: minmax(0, 1fr); }
  .split-in.rev .split-txt { order: 0; }
  .contact-in { grid-template-columns: minmax(0, 1fr); }
  .who-in { grid-template-columns: minmax(0, 1fr); }
  .photo-stack { padding-bottom: 0; }
  .cert-float { display: none; }
  .hero {
    background:
      linear-gradient(180deg, rgba(6, 22, 31, .86) 0%, rgba(6, 22, 31, .62) 55%, rgba(6, 22, 31, .88) 100%),
      url("/img/hero-obra-900.webp") 70% center / cover no-repeat,
      var(--deep);
  }
}
@media (max-width: 600px) {
  .area-grid, .why-grid, .who-grid { grid-template-columns: minmax(0, 1fr); }
  .area { min-height: 220px; }
  .mock-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-kpis div:last-child { grid-column: 1 / -1; }
  .hero-cta .btn, .cta-actions .btn, .contact-form .btn { width: 100%; }
  .tipo, .row2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { transition: none; }
  .btn, .area { transition: none; }
}
