/* =========================================================================
   SERTUB — Design System
   Tema industrial: aço escuro + acento incandescente (curvamento por indução)
   ========================================================================= */

:root {
  /* Cores — Aço */
  --steel-950: #080d13;
  --steel-900: #0c1520;
  --steel-850: #101c2b;
  --steel-800: #142334;
  --steel-700: #1d3145;
  --steel-600: #2a465f;
  --steel-500: #3d6180;
  --steel-400: #6b869f;
  --steel-300: #9db0c4;
  --steel-200: #c7d3df;
  --steel-100: #e6ecf2;
  --steel-50:  #f4f7fa;

  /* Cores — Incandescente (aço aquecido) */
  --ember-700: #b83e08;
  --ember-600: #d4540f;
  --ember-500: #f2681f;
  --ember-400: #ff8038;
  --ember-300: #ffa066;
  --ember-glow: rgba(242, 104, 31, 0.35);

  /* Semânticos */
  --bg: var(--steel-950);
  --surface: var(--steel-900);
  --surface-2: var(--steel-850);
  --text: #eef3f8;
  --text-muted: var(--steel-300);
  --accent: var(--ember-500);
  --accent-strong: var(--ember-600);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Tipografia */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 12px 40px var(--ember-glow);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  color-scheme: dark;
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }

::selection { background: var(--ember-500); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--steel-950); }
::-webkit-scrollbar-thumb { background: var(--steel-700); border-radius: 20px; border: 3px solid var(--steel-950); }
::-webkit-scrollbar-thumb:hover { background: var(--steel-600); }

/* -------------------------------------------------------------------------
   Utilitários de layout
   ------------------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--light { background: var(--steel-50); color: var(--steel-900); }
.section--surface { background: var(--surface); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section--light .eyebrow { color: var(--ember-600); }

.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 1.1rem; }
.section-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-muted); max-width: 60ch; }
.section--light .section-lead { color: var(--steel-600); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* -------------------------------------------------------------------------
   Botões
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: linear-gradient(135deg, var(--ember-500), var(--ember-600)); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px var(--ember-glow); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-3px); border-color: var(--accent); }
.section--light .btn--ghost { border-color: var(--steel-300); color: var(--steel-800); }
.section--light .btn--ghost:hover { background: rgba(0,0,0,0.04); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 13, 19, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 78px; }
.nav__logo img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  font-family: var(--font-display); font-weight: 500; font-size: 0.94rem;
  padding: 0.55rem 0.9rem; border-radius: 999px; color: var(--steel-200);
  transition: color 0.25s, background 0.25s; position: relative;
}
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255,255,255,0.06); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 78px 0 0 0; flex-direction: column; justify-content: flex-start;
    gap: 0.5rem; padding: 2rem 1.5rem; background: var(--steel-950);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    border-top: 1px solid var(--border);
  }
  body.menu-open .nav__menu { transform: translateX(0); }
  .nav__menu .nav__link { width: 100%; font-size: 1.15rem; padding: 0.9rem 1rem; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8,13,19,0.94) 0%, rgba(8,13,19,0.75) 42%, rgba(8,13,19,0.35) 100%),
    linear-gradient(0deg, var(--steel-950) 2%, transparent 40%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 78px; width: 100%; }
.hero__content { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero h1 .glow { color: var(--ember-400); text-shadow: 0 0 40px var(--ember-glow); }
.hero__lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: var(--steel-200); max-width: 56ch; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Faixa de estatísticas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.stat { background: var(--steel-950); padding: 2rem 1.5rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; line-height: 1; }
.stat__num .u { color: var(--ember-500); }
.stat__label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.6rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------
   Grid helpers
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-frame::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 0 1px var(--border); border-radius: inherit; pointer-events:none; }

/* -------------------------------------------------------------------------
   Cards de serviço
   ------------------------------------------------------------------------- */
.services-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 340px; background: var(--surface-2); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.service-card__img { position: absolute; inset: 0; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.08); }
.service-card__img::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(8,13,19,0.96) 8%, rgba(8,13,19,0.35) 65%, rgba(8,13,19,0.15) 100%); }
.service-card__body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.8rem; min-height: 340px; }
.service-card__num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--ember-400); letter-spacing: 0.15em; margin-bottom: auto; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--steel-200); font-size: 0.96rem; }
.service-card__more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ember-400); transition: gap 0.3s; }
.service-card:hover .service-card__more { gap: 0.85rem; }

/* -------------------------------------------------------------------------
   Setores (chips)
   ------------------------------------------------------------------------- */
.sectors { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.sector {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.15rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.sector:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--steel-800); }
.sector .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember-500); box-shadow: 0 0 8px var(--ember-glow); }

/* -------------------------------------------------------------------------
   Feature list / specs
   ------------------------------------------------------------------------- */
.feature-list { display: grid; gap: 0.9rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--text-muted); }
.section--light .feature-list li { color: var(--steel-700); }
.feature-list .check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ember-500); display: grid; place-items: center; margin-top: 2px; }
.feature-list .check svg { width: 13px; height: 13px; color: #fff; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--surface); padding: 1.5rem; }
.spec__k { font-family: var(--font-display); color: var(--ember-400); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.spec__v { color: var(--text); font-weight: 500; }

/* Cards genéricos (tecnologias, compromisso) */
.card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--ember-500), var(--ember-600)); display: grid; place-items: center; margin-bottom: 1.3rem; box-shadow: var(--shadow-glow); }
.card__icon svg { width: 26px; height: 26px; color: #fff; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

/* Certificações */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cert { display: flex; gap: 1rem; align-items: center; padding: 1.3rem 1.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.cert__badge { flex: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--ember-500); color: var(--ember-400); display: grid; place-items: center; }
.cert__badge svg { width: 22px; height: 22px; }
.cert strong { display: block; font-family: var(--font-display); }
.cert span { font-size: 0.85rem; color: var(--text-muted); }

/* -------------------------------------------------------------------------
   Page hero (subpáginas)
   ------------------------------------------------------------------------- */
.page-hero { position: relative; padding: calc(78px + clamp(3rem,8vw,6rem)) 0 clamp(3rem,7vw,5rem); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(8,13,19,0.96), rgba(8,13,19,0.7) 60%, rgba(8,13,19,0.45)); }
.page-hero__inner { position: relative; z-index: 2; max-width: 800px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: 1.2rem; }
.page-hero p { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--steel-200); max-width: 62ch; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--steel-400); margin-bottom: 1.4rem; font-family: var(--font-display); }
.breadcrumb a:hover { color: var(--ember-400); }

/* -------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--steel-800), var(--steel-900)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-band::before { content:""; position:absolute; width: 420px; height: 420px; background: radial-gradient(circle, var(--ember-glow), transparent 70%); top: -180px; right: -120px; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .hero__cta { justify-content: center; }

/* -------------------------------------------------------------------------
   Contato / Localização
   ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--steel-800); display: grid; place-items: center; color: var(--ember-400); }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item .k { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-display); }
.contact-item .v { font-weight: 500; color: var(--text); }
.contact-item a.v:hover { color: var(--ember-400); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg); }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--steel-950); border-top: 1px solid var(--border); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.footer-brand img { height: 38px; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--text-muted); max-width: 34ch; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--steel-400); margin-bottom: 1.1rem; }
.footer-col a, .footer-col li { color: var(--steel-200); padding: 0.35rem 0; display: block; transition: color 0.25s; }
.footer-col a:hover { color: var(--ember-400); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--steel-200); transition: all 0.3s; }
.footer-social a:hover { border-color: var(--ember-500); color: var(--ember-400); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--steel-400); font-size: 0.88rem; }

/* -------------------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------------------
   WhatsApp float
   ------------------------------------------------------------------------- */
.wa-float {
  position: fixed; z-index: 850; right: 22px; bottom: 22px;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
@media (max-width: 600px) { .wa-float { right: 16px; bottom: 88px; width: 52px; height: 52px; } }
