/* ============================================================
   Concretize Engenharia — Estilos da Landing Page de Obra
   Mobile First | Premium Design
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variáveis ───────────────────────────────────────────── */
:root {
  --azul:        #0B1C26;
  --azul-dark:   #060f15;
  --azul-sec:    #132A3A;
  --laranja:     #F25835;
  --laranja-dark:#d44520;
  --cinza:       #F2F2F2;
  --branco:      #FFFFFF;
  --texto-muted: #8a9aaa;
  --borda:       rgba(255,255,255,0.07);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-soft: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.18);
  --shadow-btn:  0 6px 20px rgba(242,88,53,0.38);

  --trans:       all 0.3s cubic-bezier(0.4,0,0.2,1);
  --trans-fast:  all 0.15s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--azul);
  color: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track  { background: var(--azul-dark); }
::-webkit-scrollbar-thumb  { background: var(--laranja); border-radius: 3px; }

/* ── Loader de Página ────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--azul-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 56px; height: 56px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--laranja);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, var(--azul-dark) 0%, var(--azul) 100%);
  padding: 28px 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(242,88,53,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease both;
}

.logo-icon {
  width: 48px; height: 48px;
  background: var(--laranja);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(242,88,53,0.4);
}

.logo-text { text-align: left; }
.logo-text .company-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.logo-text .company-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--texto-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero da obra */
.obra-hero {
  animation: fadeInUp 0.7s ease 0.1s both;
}

.obra-imagem-wrap {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin: 0 -20px;
  width: calc(100% + 40px);
  position: relative;
}

.obra-imagem-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.obra-imagem-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(11,28,38,0.85) 100%);
}

.obra-sem-imagem {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--azul-sec), var(--azul));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -20px;
  width: calc(100% + 40px);
  color: rgba(255,255,255,0.15);
  font-size: 5rem;
}

.obra-info {
  padding: 24px 0 32px;
}

.obra-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.status-em_execucao { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-em_projeto  { background: rgba(251,191,36,0.15); color: #fbbf24; }
.status-finalizada  { background: rgba(99,102,241,0.15); color: #818cf8; }

.obra-nome {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.obra-local {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--texto-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.obra-local i { color: var(--laranja); font-size: 0.85rem; }

.obra-descricao {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Seção de Serviços ───────────────────────────────────── */
.section-servicos {
  padding: 36px 20px;
  background: var(--azul-sec);
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laranja);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--borda);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.servico-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--borda);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--trans);
  animation: fadeInUp 0.5s ease both;
}
.servico-card:hover {
  background: rgba(242,88,53,0.08);
  border-color: rgba(242,88,53,0.3);
  transform: translateY(-2px);
}

.servico-icon {
  width: 38px; height: 38px;
  background: rgba(242,88,53,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laranja);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.servico-nome {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255,255,255,0.9);
}

/* ── Seção de Botões CTA ─────────────────────────────────── */
.section-cta {
  padding: 36px 20px;
}

.cta-intro {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-intro::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--borda);
}

/* Botão BIM — destaque máximo */
.btn-bim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--laranja) 0%, #ff7043 100%);
  color: var(--branco);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  box-shadow: var(--shadow-btn);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  animation: fadeInUp 0.5s ease 0.1s both;
}
.btn-bim::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-bim:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(242,88,53,0.5); }
.btn-bim:hover::before { opacity: 1; }
.btn-bim:active { transform: translateY(-1px); }

.btn-bim .btn-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.btn-bim .btn-text { text-align: left; }
.btn-bim .btn-label { display: block; font-size: 0.65rem; font-weight: 500; opacity: 0.85; margin-bottom: 2px; }
.btn-bim .btn-main  { display: block; font-size: 0.95rem; font-weight: 800; line-height: 1.2; }

/* Botões secundários */
.btns-secundarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--borda);
  border-radius: var(--radius-md);
  color: var(--branco);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--trans);
  cursor: pointer;
  text-decoration: none;
  animation: fadeInUp 0.5s ease 0.15s both;
}
.btn-sec:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-sec i { font-size: 1.1rem; }

.btn-whatsapp { grid-column: span 2; }
.btn-whatsapp { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.25); }
.btn-whatsapp:hover { background: rgba(37,211,102,0.20); border-color: rgba(37,211,102,0.45); }
.btn-whatsapp i { color: #25d366; }

.btn-instagram i { color: #f77737; }
.btn-portfolio  i { color: var(--laranja); }
.btn-site       i { color: #60a5fa; }

/* ── Galeria / Carrossel ─────────────────────────────────── */
.section-galeria {
  padding: 28px 20px 0;
}

.carousel-legenda-topo {
  color: var(--laranja);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  min-height: 1.5em;
  line-height: 1.4;
}

/* Foto principal */
.car-main-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-main-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--borda);
  background: var(--azul-sec);
  height: 260px;        /* altura fixa — todas as fotos ficam nessa caixa */
  touch-action: pan-y;
}

@media (min-width: 480px) {
  .car-main-viewport { height: 320px; }
}

.car-main-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.car-main-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* A imagem preenche o slot sem distorcer */
.car-main-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
}

/* Setas */
.car-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--borda);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.car-arrow:hover { background: var(--laranja); border-color: var(--laranja); }

/* Miniaturas */
.car-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.car-thumbs::-webkit-scrollbar { display: none; }

.car-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--azul-sec);
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
}
.car-thumb.active {
  border-color: var(--laranja);
  opacity: 1;
}
.car-thumb:hover { opacity: 0.85; }

.car-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ── Responsáveis / CREA ─────────────────────────────────── */
.section-responsaveis {
  padding: 28px 20px 0;
}

.responsaveis-list { display: flex; flex-direction: column; gap: 10px; }

.responsavel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--borda);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.responsavel-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--laranja), #ff7043);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.responsavel-foto {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0;
  border: 2px solid var(--laranja);
  display: block;
}

.responsavel-info { flex: 1; min-width: 0; }
.responsavel-nome { font-size: 0.88rem; font-weight: 600; }
.responsavel-crea {
  font-size: 0.72rem;
  color: var(--texto-muted);
  font-weight: 500;
  margin-top: 1px;
}
.responsavel-cargo {
  font-size: 0.7rem;
  color: var(--laranja);
  font-weight: 500;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--borda);
  margin: 0 20px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  padding: 32px 20px;
  text-align: center;
  background: var(--azul-dark);
  margin-top: 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-company {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.footer-tagline {
  font-size: 0.68rem;
  color: var(--texto-muted);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--trans-fast);
  color: rgba(255,255,255,0.7);
}
.footer-social a:hover {
  background: var(--laranja);
  color: var(--branco);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--texto-muted);
  line-height: 1.8;
}

/* ── Animações ───────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Toast / Notificação ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--azul-sec);
  border: 1px solid var(--borda);
  border-left: 3px solid var(--laranja);
  color: var(--branco);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Responsivo: Tablet ──────────────────────────────────── */
@media (min-width: 600px) {
  .obra-nome { font-size: 2.2rem; }
  .obra-imagem-wrap { height: 320px; }
  .servicos-grid { grid-template-columns: repeat(3, 1fr); }
  .btns-secundarios { grid-template-columns: repeat(3, 1fr); }
  .btn-whatsapp { grid-column: span 1; }

  .btn-bim { padding: 26px 32px; }
  .btn-bim .btn-main { font-size: 1.05rem; }
}

/* ── Responsivo: Desktop ─────────────────────────────────── */
@media (min-width: 900px) {
  .container { max-width: 720px; margin: 0 auto; }

  .site-header { padding: 36px 40px 0; }
  .obra-imagem-wrap {
    height: 400px;
    margin: 0 -40px;
    width: calc(100% + 80px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .obra-sem-imagem {
    margin: 0 -40px;
    width: calc(100% + 80px);
  }

  .obra-nome { font-size: 2.6rem; }
  .servicos-grid { grid-template-columns: repeat(3, 1fr); }
  .btns-secundarios { grid-template-columns: repeat(4, 1fr); }
  .btn-whatsapp { grid-column: span 1; }

  .section-servicos,
  .section-cta,
  .section-responsaveis { padding-left: 40px; padding-right: 40px; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .section-cta, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}