@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #090909;
  --bg-2: #111111;
  --card: rgba(255, 255, 255, 0.06);
  --card-2: rgba(255, 255, 255, 0.09);
  --text: #f4f1ea;
  --muted: #b7b0a5;
  --line: rgba(255, 255, 255, 0.14);
  --metal: #c4beb4;
  --gold: #d6b36a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 26px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 179, 106, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(135deg, #070707, #141414 42%, #070707);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url("../assets/logo-otf-concreto.jpg") center / cover no-repeat;
  opacity: 0.055;
  filter: grayscale(1) contrast(1.3);
  pointer-events: none;
  z-index: -3;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 94px 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(9, 9, 9, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.brand img {
  width: 154px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7));
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
}

.menu a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 179, 106, 0.55);
  background: linear-gradient(135deg, #e6c374, #9d7a34);
  color: #111;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 35px rgba(214, 179, 106, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(214, 179, 106, 0.28);
}

.btn-small {
  padding: 10px 16px;
  font-size: 0.86rem;
}

.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.95) 0%, rgba(9, 9, 9, 0.72) 45%, rgba(9, 9, 9, 0.35) 100%),
    url("../assets/edicula-render.jpg") right center / cover no-repeat;
  opacity: 0.95;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.8rem);
  max-width: 880px;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.hero-text {
  max-width: 680px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.checklist li {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--metal);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  filter: contrast(1.04) saturate(0.92);
}

.profile-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(9, 9, 9, 0.78);
  backdrop-filter: blur(16px);
}

.profile-card strong,
.profile-card span,
.profile-card small {
  display: block;
}

.profile-card strong {
  font-size: 1.05rem;
}

.profile-card span {
  color: var(--gold);
  font-weight: 800;
}

.profile-card small {
  color: var(--muted);
}

.two-cols,
.project-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.about p,
.projects p,
.contact p {
  color: var(--muted);
  margin-bottom: 16px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stats div,
.card,
.diff,
.contact-form,
.cta-box {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.stats div {
  padding: 28px;
  min-height: 150px;
}

.stats strong {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.45rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.stats span,
.card p,
.diff p {
  color: var(--muted);
}

.section-title {
  max-width: 780px;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 28px;
  min-height: 230px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 179, 106, 0.4);
  background:
    linear-gradient(145deg, rgba(214, 179, 106, 0.14), rgba(255, 255, 255, 0.04));
}

.project-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.project-image img {
  border-radius: calc(var(--radius) - 8px);
}

.checklist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.diff {
  padding: 26px;
  min-height: 250px;
}

.diff span {
  display: inline-flex;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--gold);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 28px;
  opacity: 0.9;
}

.cta {
  padding-top: 20px;
}

.cta-box {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(214, 179, 106, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.cta-box img {
  width: 150px;
}

.cta-box p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a,
.contact-list span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--metal);
  background: rgba(255, 255, 255, 0.04);
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  color: var(--metal);
  font-weight: 800;
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(214, 179, 106, 0.65);
}

textarea {
  resize: vertical;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  padding: 14px 18px;
  border-radius: 999px;
  background: #1fbf61;
  color: #06150b;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: rgba(0, 0, 0, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .menu-btn {
    display: block;
  }

  .menu {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 9, 9, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 14px;
  }

  .hero-grid,
  .two-cols,
  .project-grid,
  .contact-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0.84) 60%, rgba(9, 9, 9, 0.96) 100%),
      url("../assets/edicula-render.jpg") center / cover no-repeat;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .diff-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box img {
    width: 130px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 26px, 1160px);
  }

  .section {
    padding: 72px 0;
  }

  .brand img {
    width: 128px;
  }

  .cards,
  .diff-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .profile-card {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}


/* Atualização v2 - páginas internas, portfólio técnico e SEO local */
.subhero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  background:
    linear-gradient(115deg, rgba(9,9,9,.96), rgba(9,9,9,.74)),
    url("../assets/logo-otf-concreto.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.subhero h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); letter-spacing: -0.06em; max-width: 960px; }
.center-action { margin-top: 34px; display: flex; justify-content: center; }
.small-actions { margin-top: 28px; }
.compact-cards .card { min-height: 180px; }
.local-seo { background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.image-button { width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; display: block; }
.image-button img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.image-button:hover img { transform: scale(1.035); filter: contrast(1.05); }
.gallery-card-body { padding: 22px; }
.gallery-card-body span { color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.gallery-card-body h3 { margin-top: 10px; }
.gallery-card-body p { color: var(--muted); }
.services-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 26px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035)); }
.service-row span { color: var(--gold); font-family: "Montserrat", Arial, sans-serif; font-weight: 900; font-size: 1.8rem; }
.service-row h2 { font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: 0; }
.service-row p { color: var(--muted); }
.stacked { display: grid; align-items: start; justify-content: start; }
.stacked li { width: fit-content; }
.recommendation { background: rgba(214, 179, 106, .035); }
.lightbox { max-width: min(94vw, 1500px); width: fit-content; border: 1px solid var(--line); border-radius: 20px; padding: 12px; background: rgba(9,9,9,.96); box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 12px; }
.lightbox-close { float: right; margin-bottom: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: 1fr 1fr; } .service-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } .subhero { min-height: 54vh; padding-top: 125px; } }


/* Atualização v3 - correção da foto no topo e melhorias comerciais/SEO */
.hero-grid {
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
}

.hero-content {
  max-width: 900px;
}

.hero-content h1 {
  max-width: 860px;
  font-size: clamp(2.75rem, 5.2vw, 5.25rem);
}

.hero-card {
  width: min(100%, 360px);
  justify-self: end;
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.hero-photo-frame {
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.hero-photo-frame img,
.hero-card > img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius) - 8px);
  filter: contrast(1.04) saturate(0.92);
}

.profile-card {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 18px;
}

.process {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(214,179,106,.035));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-step,
.faq-item {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.20);
}

.process-step span {
  display: inline-flex;
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 22px;
}

.process-step p,
.faq-item p,
.service-note,
.legal-text p {
  color: var(--muted);
}

.faq-section {
  background: rgba(255,255,255,.018);
}

.faq-grid {
  grid-template-columns: 1fr 1fr;
}

.faq-item summary {
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.service-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
  padding-left: 0;
  list-style: none;
}

.detail-list li {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--metal);
  font-weight: 700;
}

.service-note {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.legal-text {
  max-width: 920px;
}

.legal-text h2 {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  margin-top: 28px;
}

.form-note {
  color: var(--muted);
  font-size: .9rem;
}

.form-note a,
.footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
    gap: 36px;
  }
  .hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    justify-self: start;
    width: min(100%, 420px);
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    width: 100%;
  }
}


/* Atualização v4 - imagens TQS de modelo e análise estrutural */
.tqs-highlight {
  background:
    radial-gradient(circle at 15% 20%, rgba(214, 179, 106, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.018);
}

.portfolio-card .gallery-btn img {
  object-position: center;
}

.portfolio-card .gallery-btn img[src*="tqs-modelo-espacial-3d"],
.portfolio-card .gallery-btn img[src*="tqs-analise-estrutural-deslocamentos"] {
  background: #050505;
  object-fit: contain;
  padding: 8px;
}

.project-image img[src*="tqs-modelo-espacial-3d"] {
  background: #050505;
  object-fit: contain;
  padding: 10px;
}


/* Atualização v5 - vista 3D arquitetônica Revit com cobertura transparente */
.revit-highlight {
  background:
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.018);
}

.portfolio-card .gallery-btn img[src*="revit-vista-3d-cobertura-transparente"],
.project-image img[src*="revit-vista-3d-cobertura-transparente"] {
  background: #f6f6f2;
  object-fit: contain;
  padding: 8px;
}


/* Atualização v6 - ajustes finais, Netlify Forms, acessibilidade e páginas auxiliares */
.hidden-field {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 18px;
  top: 18px;
  width: auto;
  height: auto;
  z-index: 1000;
  background: var(--gold);
  color: #111;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
}

.error-page,
.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 110px;
}

.utility-card {
  max-width: 860px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
}

.utility-card p {
  color: var(--muted);
  margin: 18px 0 26px;
}

.utility-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .utility-actions .btn { width: 100%; }
}


/* =========================================================
   Atualização v7 - Versão Desktop + Celular responsiva
   ========================================================= */

:root {
  --topbar-height: 78px;
  --mobile-dock-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base responsiva */
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-height) + 18px);
}

body {
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(214, 179, 106, 0.8);
  outline-offset: 4px;
}

.menu-btn strong {
  display: none;
}

/* Melhorias desktop */
@media (min-width: 1180px) {
  .container {
    width: min(1240px, calc(100% - 64px));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.55fr);
  }

  .hero-content h1 {
    max-width: 930px;
  }

  .hero-card {
    max-width: 380px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet horizontal */
@media (max-width: 1180px) {
  .menu {
    gap: 16px;
    font-size: 0.86rem;
  }

  .brand img {
    width: 135px;
  }

  .cards,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diff-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-actions {
    justify-content: flex-start;
  }
}

/* Menu mobile e layout tablet/celular */
@media (max-width: 960px) {
  :root {
    --topbar-height: 70px;
  }

  .topbar {
    background: rgba(7, 7, 7, 0.92);
  }

  .nav {
    height: var(--topbar-height);
  }

  .brand img {
    width: 118px;
  }

  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 76px;
    height: 46px;
    color: var(--text);
  }

  .menu-btn span {
    width: 22px;
    height: 2px;
    margin: 2px auto;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-btn strong {
    display: block;
    font-size: .68rem;
    line-height: 1;
    color: var(--muted);
  }

  .menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .menu {
    position: fixed;
    top: calc(var(--topbar-height) + 10px);
    left: 14px;
    right: 14px;
    max-height: calc(100dvh - var(--topbar-height) - 100px);
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background:
      radial-gradient(circle at top right, rgba(214, 179, 106, .13), transparent 35%),
      rgba(8, 8, 8, .97);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 30px 90px rgba(0,0,0,.65);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    color: var(--text);
  }

  .menu a:hover,
  .menu a.active {
    background: rgba(214, 179, 106, .15);
    border-color: rgba(214, 179, 106, .35);
  }

  .menu .btn-small {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #e6c374, #9d7a34);
    color: #111;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
    padding-bottom: 70px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(9, 9, 9, 0.86) 0%, rgba(9, 9, 9, 0.72) 40%, rgba(9, 9, 9, 0.98) 100%),
      url("../assets/edicula-render.jpg") center top / cover no-repeat;
  }

  .hero-grid,
  .two-cols,
  .project-grid,
  .contact-grid,
  .cta-box {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content h1,
  .subhero h1 {
    letter-spacing: -0.045em;
    max-width: 100%;
  }

  .hero-card {
    justify-self: stretch;
    width: min(100%, 460px);
  }

  .hero-photo-frame img,
  .hero-card > img {
    aspect-ratio: 4 / 3.4;
    object-position: center 22%;
  }

  .profile-card {
    border-radius: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .stats,
  .cards,
  .portfolio-grid,
  .diff-grid,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats div,
  .card,
  .diff,
  .process-step,
  .faq-item {
    min-height: auto;
  }

  .footer {
    padding-bottom: calc(34px + var(--mobile-dock-height) + var(--safe-bottom));
  }

  .whatsapp-float {
    display: none;
  }

  .mobile-dock {
    display: grid;
  }
}

/* Celular */
.mobile-dock {
  display: none;
}

@media (max-width: 700px) {
  :root {
    --topbar-height: 66px;
    --radius: 20px;
  }

  .container {
    width: min(100% - 26px, 1160px);
  }

  .section {
    padding: 58px 0;
  }

  .nav {
    height: var(--topbar-height);
  }

  .brand img {
    width: 106px;
  }

  .menu-btn {
    width: 70px;
    height: 42px;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 48px;
  }

  .hero-content h1,
  h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.25rem);
    letter-spacing: -0.055em;
  }

  h2 {
    font-size: clamp(1.72rem, 8vw, 2.45rem);
    letter-spacing: -0.04em;
  }

  h3 {
    font-size: 1.08rem;
  }

  .hero-text {
    font-size: 1rem;
    margin: 18px 0 22px;
  }

  .eyebrow {
    font-size: .68rem;
    letter-spacing: .12em;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn {
    min-height: 50px;
    padding: 13px 16px;
    width: 100%;
    text-align: center;
  }

  .hero-badges span,
  .checklist li {
    font-size: .78rem;
    padding: 8px 10px;
  }

  .stats,
  .cards,
  .portfolio-grid,
  .diff-grid,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .stats div,
  .card,
  .diff,
  .process-step,
  .faq-item,
  .contact-form,
  .utility-card {
    padding: 20px;
  }

  .card {
    min-height: auto;
  }

  .project-image,
  .portfolio-card,
  .gallery-btn {
    border-radius: 18px;
  }

  .portfolio-card img,
  .gallery-btn img,
  .project-image img {
    max-height: 320px;
    object-fit: contain;
  }

  .service-row {
    padding: 22px;
    border-radius: 20px;
  }

  .service-row h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .service-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .contact-list a,
  .contact-list span {
    padding: 14px;
    font-size: .95rem;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px; /* evita zoom automático no iPhone */
  }

  .footer-grid {
    gap: 18px;
  }

  .lightbox {
    width: calc(100% - 22px);
    max-width: none;
    max-height: calc(100dvh - 28px);
    padding: 12px;
  }

  .lightbox img {
    max-height: calc(100dvh - 92px);
    object-fit: contain;
  }
}

/* Celular pequeno */
@media (max-width: 430px) {
  .container {
    width: min(100% - 22px, 1160px);
  }

  .hero-content h1,
  h1 {
    font-size: clamp(2rem, 12vw, 2.82rem);
  }

  .hero-badges {
    gap: 7px;
  }

  .hero-badges span {
    font-size: .73rem;
  }

  .brand img {
    width: 96px;
  }

  .menu {
    left: 10px;
    right: 10px;
  }

  .mobile-dock {
    left: 8px;
    right: 8px;
  }

  .mobile-dock a {
    font-size: .72rem;
  }
}

/* Dock inferior para celular */
.mobile-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 80;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(9, 9, 9, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,.48);
}

.mobile-dock a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
  color: var(--metal);
  font-weight: 900;
  font-size: .78rem;
  text-align: center;
}

.mobile-dock a:last-child {
  color: #06150b;
  background: #1fbf61;
  border-color: rgba(31, 191, 97, .7);
}

/* Melhor leitura em telas touch e redução de movimento */
@media (hover: none) {
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Impressão simples para orçamentos ou apresentação ao cliente */
@media print {
  .topbar,
  .mobile-dock,
  .whatsapp-float,
  .menu-btn,
  .hero-actions,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .section,
  .hero {
    padding: 24px 0 !important;
  }

  .card,
  .diff,
  .portfolio-card,
  .project-image,
  .contact-form {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
}


/* Atualização OTF Obras - página pública de privacidade, termos e Play Store */
.page-otf-obras .app-subhero {
  min-height: 78vh;
  background:
    linear-gradient(115deg, rgba(9,9,9,.97), rgba(9,9,9,.78)),
    url("../assets/projects/public/tqs-modelo-espacial-3d.png") center / cover no-repeat;
}
.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 42px;
  align-items: center;
}
.app-info-card,
.legal-toc,
.app-publishing-box {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.app-info-card {
  padding: 28px;
}
.app-info-card img {
  width: 136px;
  margin-bottom: 22px;
}
.app-info-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.app-info-card p {
  color: var(--muted);
}
.app-store-link.disabled {
  opacity: .82;
  cursor: not-allowed;
}
.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.legal-summary .card {
  min-height: 160px;
}
.legal-toc {
  margin-top: 26px;
  padding: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.legal-toc a {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 999px;
  color: var(--metal);
  font-weight: 900;
  padding: 10px 14px;
}
.legal-section {
  padding-top: 52px;
}
.legal-text {
  max-width: 980px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
}
.legal-text h3 {
  margin-top: 28px;
  color: var(--text);
}
.legal-text ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: var(--muted);
  margin: 12px 0 18px;
}
.legal-text code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(0,0,0,.36);
  color: var(--gold);
}
.app-publishing-box {
  margin-top: 18px;
  padding: 22px;
}
@media (max-width: 960px) {
  .app-hero-grid,
  .legal-summary {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .legal-toc {
    display: grid;
  }
  .legal-text {
    padding: 22px;
  }
}


/* =========================================================
   Atualização v49.6.17.68 - Homepage OTF Obras + correção legal mobile
   ========================================================= */
.home-app-panel {
  background:
    radial-gradient(circle at 15% 18%, rgba(214, 179, 106, .13), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.app-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  gap: 28px;
  align-items: stretch;
}
.app-showcase-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.app-showcase-card .hero-actions { margin-bottom: 0; }
.app-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 26px;
  padding-left: 0;
  list-style: none;
}
.app-feature-list li {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--metal);
  font-weight: 800;
}
.app-mini-status {
  display: grid;
  gap: 14px;
}
.app-mini-status .status-item {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.24);
  border-radius: 18px;
  padding: 16px;
}
.app-mini-status strong {
  display: block;
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  margin-bottom: 6px;
}
.app-mini-status span { color: var(--muted); }

/* Corrige textos legais invisíveis no celular/WebView: conteúdo legal não depende de JS/IntersectionObserver */
.page-legal .reveal,
.page-legal .legal-text,
.page-legal .legal-summary,
.page-legal .legal-toc,
.page-legal .app-info-card,
.page-legal .cta-box {
  opacity: 1 !important;
  transform: none !important;
}
.legal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}
.legal-meta div {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.24);
  border-radius: 16px;
  padding: 12px 14px;
}
.legal-meta dt {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.legal-meta dd {
  color: var(--text);
  font-weight: 800;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.page-legal .legal-text p,
.page-legal .legal-text li,
.page-legal .legal-text a {
  overflow-wrap: anywhere;
  word-break: normal;
}
.page-legal .legal-section {
  scroll-margin-top: calc(var(--topbar-height) + 16px);
}

@media (max-width: 960px) {
  .app-showcase-grid { grid-template-columns: 1fr; }
  .app-feature-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .app-feature-list,
  .legal-meta { grid-template-columns: 1fr; }
  .page-legal .app-subhero { min-height: auto; padding-top: 106px; }
  .page-legal .legal-section { padding-top: 34px; }
  .page-legal .legal-text { padding: 18px; font-size: .96rem; line-height: 1.7; }
  .page-legal .legal-text h2 { font-size: clamp(1.45rem, 8vw, 2rem); }
  .page-legal .legal-text h3 { font-size: 1.08rem; line-height: 1.25; }
  .page-legal .legal-summary .card { min-height: auto; }
  .page-legal .legal-toc a { width: 100%; text-align: center; }
}
