/* ==========================================================================
   DMGEO — Geologia, Geotecnia e Engenharia
   Site institucional de página única
   ========================================================================== */

:root {
  --color-ink: #171512;
  --color-ink-dark: #0d0c0a;
  --color-maroon: #7c1420;
  --color-maroon-dark: #5c0f18;

  --color-bg: #ffffff;
  --color-bg-soft: #f8f6f2;
  --color-bg-soft-2: #f1ece2;
  --color-text: #201d1a;
  --color-text-muted: #5c574f;
  --color-border: #e7e1d6;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(23, 21, 18, 0.07);
  --shadow-md: 0 10px 30px rgba(23, 21, 18, 0.14);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-ink-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }
a { color: var(--color-maroon); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-maroon-dark); }
img, svg { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section { padding: 100px 0; position: relative; overflow: hidden; }
.section-soft { background: var(--color-bg-soft); }
.section-dark {
  background: linear-gradient(135deg, var(--color-ink-dark), var(--color-ink));
  color: #ece9e4;
}
.section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark p { color: rgba(236, 233, 228, 0.82); }

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }
.reveal-delay-5.is-visible { transition-delay: 0.4s; }
.reveal-delay-6.is-visible { transition-delay: 0.48s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-maroon);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--color-maroon); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-maroon);
  display: inline-block;
}

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------------- Wave dividers ---------------- */
.wave { display: block; width: 100%; height: auto; margin-bottom: -1px; }
.wave-top { transform: translateY(1px); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-maroon); color: #fff; box-shadow: 0 10px 24px rgba(124, 20, 32, 0.35); }
.btn-primary:hover { background: var(--color-maroon-dark); color: #fff; }
.btn-outline { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; border-color: var(--color-maroon); color: var(--color-maroon); }
.btn-ghost:hover { background: var(--color-maroon); color: #fff; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--color-border); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 88px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-maroon);
  transition: right var(--transition);
}
.nav-links a:hover::after { right: 0; }
.nav-links .nav-cta {
  background: var(--color-ink-dark);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--color-maroon); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--color-ink-dark); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--color-ink-dark); }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,12,10,0.55) 0%, rgba(13,12,10,0.72) 60%, rgba(13,12,10,0.9) 100%),
    linear-gradient(90deg, rgba(13,12,10,0.55), rgba(13,12,10,0.15) 55%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 120px; }
.hero-content .container { max-width: 760px; }
.hero-content h1 { color: #ffffff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero-content .eyebrow { color: var(--color-maroon); }
.hero-content .eyebrow::before { background: var(--color-maroon); }
.hero-content .lede { font-size: 1.18rem; color: rgba(255,255,255,0.88); max-width: 56ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition);
}
.hero-dots button.is-active { background: var(--color-maroon); border-color: var(--color-maroon); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }

/* ---------------- Trust strip ---------------- */
.trust-strip { background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 40px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-item .icon-badge { margin-bottom: 0; }
.trust-item span { font-weight: 600; color: var(--color-ink-dark); font-size: 0.98rem; max-width: 24ch; }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-maroon), var(--color-maroon-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--color-bg-soft-2), #ffffff);
  border: 1px solid var(--color-border);
  color: var(--color-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-badge svg { width: 24px; height: 24px; }

/* Photo-topped service cards */
.photo-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.photo-card .photo-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.photo-card .photo-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-card:hover .photo-card-media img { transform: scale(1.06); }
.photo-card .photo-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,12,10,0.35) 100%);
}
.photo-card-body { padding: 22px 22px 26px; }
.photo-card-body h3 { margin-bottom: 10px; }
.photo-card-body .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.photo-card-body .tag-row span {
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--color-bg-soft-2);
  color: var(--color-ink-dark);
  padding: 5px 11px;
  border-radius: 999px;
}
.photo-card-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--color-maroon), var(--color-maroon-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.photo-card:hover .photo-card-bar { transform: scaleX(1); }

/* Checklist (bullet list with check icon) */
.checklist { display: grid; gap: 18px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--color-text);
}
.checklist li .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-soft-2);
  color: var(--color-maroon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.checklist li .check svg { width: 13px; height: 13px; }
.section-dark .checklist li { color: #ece9e4; }
.section-dark .checklist li .check { background: rgba(124, 20, 32, 0.18); color: var(--color-maroon); }

/* Nossa Estrutura */
#estrutura-head h2 { color: var(--color-maroon); }
#estrutura-head p { color: var(--color-maroon-dark); opacity: 0.8; }

.structure-grid { margin-top: 8px; margin-bottom: 28px; }
.structure-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.structure-card .pill {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.structure-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.structure-card > p { margin-bottom: 22px; }
.structure-card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.structure-card-media img { width: 100%; height: 100%; object-fit: cover; }
.structure-card .photo-credit {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  opacity: 0.75;
  margin-top: 8px;
}

.structure-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-dark));
  border-radius: var(--radius);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  color: #fff;
  overflow: hidden;
}
.structure-banner::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.structure-banner-text { position: relative; display: flex; align-items: flex-start; gap: 20px; }
.structure-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  color: var(--color-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.structure-banner-icon svg { width: 26px; height: 26px; }
.structure-banner-text h3 { color: #fff; margin-bottom: 6px; }
.structure-banner-text p { color: rgba(255,255,255,0.82); margin-bottom: 0; max-width: 46ch; }

.structure-banner-facts {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 40px;
  border-left: 1px solid rgba(255,255,255,0.22);
}
.structure-banner-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.structure-banner-facts .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.structure-banner-facts .check svg { width: 13px; height: 13px; }

/* Service group */
.service-group { margin-bottom: 52px; }
.service-group:last-child { margin-bottom: 0; }
.service-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}
.service-group-head .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--color-maroon);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-group-head h3 { margin: 0; font-size: 1.25rem; }
.service-group-head .tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg-soft-2);
  padding: 5px 12px;
  border-radius: 999px;
}
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-grid span {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-ink-dark);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.pill-grid span:hover {
  border-color: var(--color-maroon);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* Contato */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info-list { display: grid; gap: 26px; margin-top: 32px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-info-item .icon-badge {
  margin-bottom: 0;
  width: 44px;
  height: 44px;
  background: var(--color-bg-soft-2);
}
.contact-info-item .icon-badge svg { width: 20px; height: 20px; }
.contact-info-item .label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-ink-dark);
  margin-bottom: 2px;
}
.contact-info-item a,
.contact-info-item .value {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.contact-info-item a:hover { color: var(--color-maroon); }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink-dark);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--color-bg-soft);
  color: var(--color-text);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-maroon);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.76rem; color: var(--color-text-muted); margin-top: 10px; margin-bottom: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  background: var(--color-ink-dark);
  color: rgba(236, 233, 228, 0.8);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}
.footer-inner .footer-meta { font-size: 0.82rem; color: rgba(236, 233, 228, 0.6); line-height: 1.7; }
.footer-inner .footer-meta a { color: rgba(236, 233, 228, 0.85); }

/* ---------------- WhatsApp float button ---------------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float img { width: 100%; height: 100%; border-radius: 50%; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(23, 21, 18, 0.28); }

@media (max-width: 760px) {
  .whatsapp-float { right: 18px; bottom: 18px; width: 54px; height: 54px; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .structure-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .structure-banner { grid-template-columns: 1fr; }
  .structure-banner-facts {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.22);
    padding-left: 0;
    padding-top: 22px;
  }
}

@media (max-width: 760px) {
  .brand-logo { height: 58px; }
  .structure-banner { grid-template-columns: 1fr; padding: 32px 28px; }
  .structure-banner-facts {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.22);
    padding-left: 0;
    padding-top: 22px;
  }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 18px;
  }
  .main-nav.open .nav-links .nav-cta { align-self: flex-start; }
  .section { padding: 64px 0; }
  .hero { min-height: 100vh; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
