/* =====================================================
   CRC CONSTANTINO — STYLE.CSS PREMIUM
   Cores: azul escuro, preto, cinza e branco
===================================================== */

/* VARIÁVEIS GERAIS */
:root {
  --preto: #04070c;
  --preto-suave: #080d14;
  --azul-noite: #0d1b2a;
  --azul: #132f4c;
  --azul-claro: #245f8f;
  --cinza: #6f7b8a;
  --cinza-claro: #eef2f6;
  --branco: #ffffff;
  --vidro: rgba(255, 255, 255, 0.08);
  --linha-clara: rgba(255, 255, 255, 0.12);
  --linha-escura: rgba(0, 0, 0, 0.08);
  --sombra: 0 30px 90px rgba(0, 0, 0, 0.22);
  --sombra-suave: 0 18px 50px rgba(0, 0, 0, 0.10);
  --raio: 28px;
  --max: 1240px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--branco);
  color: #101820;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* CONTAINER */
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* =====================================================
   CABEÇALHO
===================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(4, 7, 12, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--linha-clara);
  transition: 0.3s ease;
}

.header.scrolled {
  background: rgba(4, 7, 12, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.header-content {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* LOGOTIPO */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--branco);
}

.brand img {
  height: 66px;
  width: auto;
  border-radius: 14px;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  margin-top: -2px;
}

/* MENU */
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav a:hover {
  color: var(--branco);
}

.nav-button {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--branco);
  color: var(--preto) !important;
}

/* BOTÃO MOBILE */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--linha-clara);
  border-radius: 14px;
  background: transparent;
  color: var(--branco);
  font-size: 22px;
  cursor: pointer;
}

/* =====================================================
   HERO
===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(4, 7, 12, 0.94), rgba(19, 47, 76, 0.82)),
    url("imagens/hero-obra.jpg") center/cover no-repeat;
  overflow: hidden;
}

/* LOGO SOMBREADA NO FUNDO */
.hero-watermark {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: min(760px, 60vw);
  opacity: 0.045;
  filter: grayscale(1);
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(36, 95, 143, 0.24), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.06), transparent 30%);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
  padding: 80px 0 96px;
}

.hero-content {
  color: var(--branco);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: #b9d7ef;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 900;
}

.eyebrow.dark {
  color: var(--azul-claro);
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.01;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

.hero p {
  max-width: 720px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--branco);
  color: var(--preto);
  box-shadow: 0 22px 60px rgba(255, 255, 255, 0.15);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  color: var(--branco);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--branco);
}

.btn-submit {
  width: 100%;
  background: var(--azul-noite);
  color: var(--branco);
}

/* ESTATÍSTICAS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-stats div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* IMAGEM HERO */
.hero-visual {
  position: relative;
}

.image-frame {
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--sombra);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.image-frame {
  width: 100%;
  height: 650px;
  overflow: hidden;
  border-radius: 36px;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}

.floating-card {
  position: absolute;
  left: -36px;
  bottom: 34px;
  width: min(430px, 95%);
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--preto);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--sombra);
}

.floating-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--azul-noite);
  color: var(--branco);
  font-size: 26px;
}

.floating-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.floating-card span {
  color: var(--cinza);
  font-size: 14px;
}

/* =====================================================
   BARRA DE CONFIANÇA
===================================================== */

.trust-strip {
  background: var(--preto);
  color: var(--branco);
  border-top: 1px solid var(--linha-clara);
  border-bottom: 1px solid var(--linha-clara);
}

.trust-grid {
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
  text-align: center;
}

.trust-grid div {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.trust-grid i {
  color: #7fc4ff;
  margin-right: 8px;
}

/* =====================================================
   SECÇÕES GERAIS
===================================================== */

.section {
  padding: 115px 0;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2,
.company-text h2,
.contact-info h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.section-heading p,
.company-text p,
.contact-info p {
  color: var(--cinza);
  font-size: 17px;
}

.section-heading.light h2,
.section-heading.light p {
  color: var(--branco);
}

/* =====================================================
   SERVIÇOS
===================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--raio);
  background: var(--branco);
  border: 1px solid var(--linha-escura);
  box-shadow: var(--sombra-suave);
  transition: 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 47, 76, 0.09), transparent);
  opacity: 0;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--azul-claro);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-card i {
  display: block;
  font-size: 36px;
  color: var(--azul);
  margin-bottom: 22px;
}

.service-card h3 {
  position: relative;
  font-size: 24px;
  margin-bottom: 10px;
}

.service-card p {
  position: relative;
  color: var(--cinza);
}

/* =====================================================
   PROCESSO
===================================================== */

.section-dark {
  background:
    radial-gradient(circle at top right, rgba(36, 95, 143, 0.18), transparent 30%),
    linear-gradient(180deg, var(--azul-noite), var(--preto));
  color: var(--branco);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process-card {
  padding: 32px;
  border-radius: var(--raio);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.process-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--branco);
  color: var(--preto);
  font-weight: 900;
  margin-bottom: 20px;
}

.process-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.process-card p {
  color: rgba(255, 255, 255, 0.72);
}

/* =====================================================
   PROJETOS
===================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--preto);
  box-shadow: var(--sombra);
}

.project-large {
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  transition: 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.07);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.86));
}

.project-content {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
  color: var(--branco);
}

.project-content span {
  display: inline-block;
  color: #b9d7ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-content h3 {
  font-size: 28px;
  margin-bottom: 6px;
}

.project-content p {
  color: rgba(255, 255, 255, 0.78);
}

/* =====================================================
   EMPRESA
===================================================== */

.company-section {
  background: var(--cinza-claro);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.company-text p {
  margin-bottom: 14px;
}

.company-panel {
  padding: 36px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(36, 95, 143, 0.24), transparent 38%),
    linear-gradient(180deg, var(--azul-noite), var(--azul));
  color: var(--branco);
  box-shadow: var(--sombra);
}

.company-panel div + div {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.company-panel strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.company-panel span {
  color: rgba(255, 255, 255, 0.78);
}

/* =====================================================
   FAQ
===================================================== */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 22px;
  margin-bottom: 16px;
  background: var(--branco);
  border: 1px solid var(--linha-escura);
  box-shadow: var(--sombra-suave);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  cursor: pointer;
  color: var(--preto);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--cinza);
}

.faq-item.active .faq-answer {
  max-height: 160px;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

/* =====================================================
   CONTACTO
===================================================== */

.contact-section {
  background: var(--branco);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 42px;
  align-items: start;
}

.contact-list {
  margin: 24px 0;
}

.contact-list p {
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--preto);
}

.contact-list i {
  color: var(--azul-claro);
  margin-right: 8px;
}

.contact-form {
  padding: 36px;
  border-radius: 34px;
  background: var(--cinza-claro);
  box-shadow: var(--sombra);
  border: 1px solid var(--linha-escura);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #d6dde7;
  background: var(--branco);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 4px rgba(36, 95, 143, 0.16);
}

.success-message {
  display: none;
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 16px;
  background: #d1e7dd;
  color: #0f5132;
  font-weight: 900;
}

/* =====================================================
   RODAPÉ
===================================================== */

.footer {
  background: var(--preto);
  color: rgba(255, 255, 255, 0.78);
  padding: 34px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.footer strong {
  color: var(--branco);
  display: block;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

/* =====================================================
   BOTÕES FIXOS
===================================================== */

.whatsapp-fixed,
.back-top {
  position: fixed;
  z-index: 999;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--sombra);
}

.whatsapp-fixed {
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--branco);
  font-size: 28px;
}

.back-top {
  right: 22px;
  bottom: 94px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--azul-noite);
  color: var(--branco);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   ANIMAÇÕES
===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVIDADE
===================================================== */

@media (max-width: 1100px) {
  .hero-grid,
  .company-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .process-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-large {
    grid-row: auto;
  }

  .image-frame img {
    height: 520px;
  }

  .floating-card {
    left: 22px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px 30px;
    background: rgba(4, 7, 12, 0.98);
    border-top: 1px solid var(--linha-clara);
  }

  .nav.active {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 60px 0 82px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 60px);
  }

  .hero-stats,
  .trust-grid,
  .services-grid,
  .process-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .image-frame img {
    height: 420px;
  }

  .floating-card {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 18px;
    width: 100%;
  }

  .section {
    padding: 82px 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}