/* =========================================
   LAYOUT
   Header, footer, grid de página, containers
   ========================================= */

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,11,13,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}

header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10,11,13,0.97);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
}

.logo .x { color: var(--red); }

.logo small {
  display: block;
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: -2px;
}

nav.menu { display: flex; gap: 36px; }

nav.menu a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray);
  position: relative;
  transition: color .25s;
}

nav.menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s;
}

nav.menu a:hover { color: var(--white); }
nav.menu a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---- MOBILE TOGGLE ---- */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 8px;
  border-radius: var(--radius);
  transition: border-color .2s;
}

.menu-toggle:hover { border-color: var(--gray-dim); }
.menu-toggle svg { width: 20px; height: 20px; display: block; }
.menu-toggle .icon-close { display: none; }

/* ---- MOBILE NAV DRAWER ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(10,11,13,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 99;
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--white); }

/* ---- SECTION GENERIC ---- */
section { position: relative; }
.section-pad { padding: 96px 0; }

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 54px;
}

.section-head h2 {
  font-size: clamp(28px,3.4vw,40px);
  margin-top: 6px;
  white-space: nowrap;
}

.section-head p {
  color: var(--gray);
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
}

/* ---- LIGHT SECTIONS ---- */
.light { background: var(--paper); color: var(--ink); }
.light h1, .light h2, .light h3 { color: var(--ink); }
.light .section-head p, .light p { color: var(--ink-dim); }
.light .diag p strong { color: var(--ink); }
.light .pill-result { background: rgba(180,134,0,0.12); border-color: rgba(180,134,0,0.35); color: #9a7600; }
.light .metric { background: #fff; border-color: var(--line-light); }
.light .metric:hover { border-color: var(--red); }
.light .metric .icon { background: rgba(226,18,42,0.08); }
.light .metric .mtext .big { color: var(--ink); }
.light .metric .mtext .small { color: var(--ink-dim); }
.light .service-card { background: #fff; border-color: var(--line-light); }
.light .service-card:hover { background: var(--paper-2); border-color: #c5c8cc; box-shadow: 0 18px 36px -18px rgba(16,17,19,0.15); }
.light .service-card .icon { background: rgba(226,18,42,0.08); }
.light .service-card .icon svg { stroke: var(--red); }
.light .service-card:hover .icon { background: var(--red); }
.light .service-card:hover .icon svg { stroke: #fff; }
.light .service-card h3 { color: var(--ink); }
.light .service-card p { color: var(--ink-dim); }
.light .why-card p { color: var(--ink-dim); }
.light .info-row { border-bottom-color: var(--line-light); }
.light .info-row .icon { background: rgba(226,18,42,0.08); }
.light .info-row .t { color: var(--ink-dim); }
.light .info-row .v { color: var(--ink); }
.light .schedule { background: #fff; border-color: var(--line-light); }
.light .schedule h3 { color: var(--ink-dim); }
.light .sched-row { border-bottom-color: var(--line-light); }
.light .sched-row .day { color: var(--ink-dim); }
.light .sched-row .hr { color: var(--ink); }
.light .sched-row.today .day { color: var(--ink); }
.light .btn-ghost { border-color: var(--line-light); color: var(--ink); }
.light .btn-ghost:hover { border-color: var(--ink-dim); background: var(--paper-2); }

/* ---- FOOTER ---- */
footer {
  padding: 54px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  color: var(--gray-dim);
  font-size: 13.5px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-cols { display: flex; gap: 60px; }

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: var(--gray-dim);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12.5px; color: var(--gray-dim); }
.footer-bottom a { color: var(--gray-dim); font-size: 12.5px; transition: color .2s; }
.footer-bottom a:hover { color: var(--amber); }
