/* =========================================================
   DEMA ENGENHARIA — design tokens
   ========================================================= */
:root {
  --graphite-950: #15171A;
  --graphite-900: #1C1F23;
  --graphite-800: #262A2F;
  --graphite-700: #33383F;

  --paper: #F4F1EA;
  --paper-dim: #E9E4D8;
  --ink: #201F1C;
  --ink-dim: #5B5852;

  --steel-200: #DADCDE;
  --steel-400: #9CA0A5;
  --line: #8B8F94;

  --accent: #C7CCD0;
  --accent-dim: #6C7278;
  --accent-deep: #4A4F54;
  --accent-soft: rgba(108, 114, 120, 0.14);

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1180px;
  --radius: 3px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-dim);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  font-family: var(--font-mono);
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================
   Type utilities
   ========================================================= */
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 18px;
}
.eyebrow-light { color: var(--accent); }

.tick {
  width: 22px;
  height: 8px;
  flex: none;
  background-image:
    linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}
.tick::before, .tick::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1.5px;
  height: 8px;
  background: currentColor;
}
.tick::before { left: 0; }
.tick::after { right: 0; }

.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-bottom: 20px;
  max-width: 16ch;
}
.text-accent { color: var(--accent); }
.text-light { color: #fff; }
.text-light-dim { color: var(--steel-200); }

.section-intro {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 56ch;
  margin-bottom: 44px;
}

.fine-print {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel-400);
  margin-top: 28px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 19px; height: 19px; flex: none; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.btn-accent {
  background: var(--accent-dim);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-deep); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--graphite-950);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand img { height: 34px; width: auto; filter: brightness(0) invert(1); }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-200);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero-compact { padding: 56px 0 64px; }
.display-xl-sm { font-size: clamp(38px, 6vw, 64px); }
.back-link {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--steel-400);
  margin-bottom: 22px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--accent); }

.hero {
  position: relative;
  background: var(--graphite-950);
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--graphite-950) 30%, rgba(21,23,26,0.55) 68%, rgba(21,23,26,0.25) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-text { max-width: 680px; }
.hero-sub {
  font-size: 18px;
  color: var(--steel-200);
  max-width: 52ch;
  margin: 24px 0 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-note {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel-400);
}

.hero-dimline {
  position: relative;
  z-index: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0,
    var(--line) 1px,
    transparent 1px,
    transparent 24px
  );
  opacity: 0.35;
  margin-top: 64px;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 96px 0; }
.section-no-bottom { padding-bottom: 0; }
.section-dark { background: var(--graphite-900); }
.section-tint { background: var(--paper-dim); }

/* =========================================================
   Produtos — carrossel
   ========================================================= */
.carousel { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 40px 0 64px; }

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 clamp(230px, 26vw, 280px);
  scroll-snap-align: start;
  color: inherit;
}
.carousel-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  margin: 18px 0 8px;
}
.carousel-card p { color: var(--ink-dim); font-size: 14.5px; }

.carousel-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--steel-200);
}
.carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.carousel-card:hover .carousel-img img { transform: scale(1.05); }

.carousel-badge {
  position: absolute;
  left: 14px;
  bottom: -16px;
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dim);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.carousel-badge .icon { width: 22px; height: 22px; }

.carousel-card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--graphite-950);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}
.carousel-card-cta .icon-lg { width: 30px; height: 30px; margin-bottom: 14px; }
.carousel-card-cta h3 { color: #fff; }
.carousel-card-cta p { color: var(--steel-200); font-size: 14px; }

.carousel-nav {
  position: absolute;
  top: 128px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--steel-200);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.carousel-nav:hover { background: var(--steel-200); }
.carousel-nav:disabled { opacity: 0.35; cursor: default; }
.carousel-nav:disabled:hover { background: var(--paper); }
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }
.carousel-nav .icon { width: 20px; height: 20px; }

.section-cta { margin-top: 52px; }

/* =========================================================
   Linhas de perfil
   ========================================================= */
.grid-lines {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--graphite-700);
  border: 1px solid var(--graphite-700);
  margin-top: 8px;
}
.card-line {
  background: var(--graphite-900);
  padding: 32px 24px;
}
.card-line h3 {
  font-size: 26px;
  color: #fff;
  margin: 14px 0 12px;
}
.card-line p { color: var(--steel-200); font-size: 14.5px; }
.line-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel-400);
  border: 1px solid var(--graphite-700);
  padding: 4px 9px;
  border-radius: 999px;
}
.line-badge-accent {
  color: var(--accent);
  border-color: var(--accent);
}
.card-line-premium { background: #21262c; }

/* =========================================================
   Sobre
   ========================================================= */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}
.sobre-grid-reverse { grid-template-columns: 1fr 0.85fr; }
.sobre-grid-reverse .sobre-text { order: -1; }
.sobre-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}
.sobre-img img { width: 100%; height: 100%; object-fit: cover; }
.sobre-text p { font-size: 17px; color: var(--ink-dim); margin-bottom: 32px; }
.icon-inline { display: inline-flex; margin-right: 2px; }
.icon-inline .icon { width: 15px; height: 15px; }

.feature-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list .icon {
  width: 22px; height: 22px; flex: none; margin-top: 3px;
  color: var(--accent-dim);
}
.feature-list strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.feature-list span { font-size: 14.5px; color: var(--ink-dim); }

/* =========================================================
   Galeria
   ========================================================= */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-tall { grid-row: span 3; }
.gallery-wide { grid-column: span 2; }

.gallery-placeholder { background: var(--graphite-800); border: 1px dashed var(--graphite-700); }
.placeholder-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--steel-400);
}
.placeholder-visual .icon { width: 30px; height: 30px; }
.placeholder-visual .mono { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(21,23,26,0.85), rgba(21,23,26,0));
  color: #fff;
}
.gallery-caption .mono { font-size: 12.5px; letter-spacing: 0.04em; }
.gallery-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-400);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--graphite-950);
  padding: 100px 0;
  text-align: center;
}
.cta-band-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band .display-lg { max-width: 20ch; margin-bottom: 16px; }
.cta-band p { font-size: 17px; margin-bottom: 40px; }
.hero-ctas-center { justify-content: center; }
.hero-dimline-top { width: 100%; max-width: 220px; margin: 0 auto 44px; opacity: 0.5; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--graphite-950); color: var(--steel-200); padding: 76px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--graphite-700);
}
.footer-brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--steel-400); max-width: 26ch; }
.footer-col h3 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--steel-200); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.contact-list a { display: flex; align-items: center; gap: 10px; }
.contact-list .icon { width: 18px; height: 18px; flex: none; }

.footer-address { font-size: 14.5px; color: var(--steel-200); line-height: 1.6; margin-bottom: 16px; }

.map-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.92) contrast(0.9); }

.footer-bottom {
  padding: 22px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel-400);
}

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  z-index: 200;
  animation: pulse-wa 2.6s ease-in-out infinite;
}
.whatsapp-float .icon { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.06); }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 0 0 rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .grid-lines { grid-template-columns: repeat(2, 1fr); }
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre-img { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: span 2; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    z-index: 150;
    background: var(--graphite-950);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding: 32px 24px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav a { font-size: 16px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm span { display: none; }
  .header-actions .btn-sm { padding: 10px; }

  .section { padding: 64px 0; }
  .grid-lines { grid-template-columns: 1fr; }
  .carousel-nav { top: 96px; width: 38px; height: 38px; }
  .carousel-card { flex-basis: 200px; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-tall { grid-row: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-map { grid-column: span 1; }
  .hero { padding: 64px 0 56px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
