/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

/*=============== DESIGN TOKENS (SEMANTIC) ===============*/
:root {
  /* Base Colors (Premium Light Theme) */
  --surface-page: #f8fafc;
  --surface-card: #ffffff;
  --surface-elevated: #ffffff;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* The Single Accent Color */
  --accent-primary: #3B8CC7;
  /* Brand Blue */
  --accent-hover: #5BA3D9;
  --accent-subtle: rgba(59, 140, 199, 0.1);

  /* Secondary Accent */
  --accent-secondary: #34A853;
  --accent-secondary-subtle: rgba(52, 168, 83, 0.1);

  /* Status Colors */
  --status-success: #22c55e;
  --status-error: #ef4444;
  --status-warning: #eab308;

  /* Borders & Shadows */
  --border-default: #d1d5db;
  --border-subtle: #e2e8f0;

  --radius-card: 16px;
  --radius-button: 8px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --header-height: 4rem;
  --container-max-width: 1200px;
}

/*=============== BASE STYLES ===============*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/*=============== TEXTURE & ATMOSPHERE ===============*/
/* Subtle background texture overlay (Monochromatic wireframe grid) */
.ambient-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/*=============== LAYOUT UTILITIES ===============*/
.container {
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 2.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
}

/*=============== COMPONENTS ===============*/
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-subtle);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 140, 199, 0.25);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header__credential {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background-color: var(--surface-card);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-badge);
  border: 1px solid var(--border-default);
}

.header__credential i {
  color: var(--accent-secondary);
}

/* Hero Section */
.hero {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  display: flex;
  align-items: center;
  overflow: clip;
  /* Prevent isometric house from causing horizontal scroll */
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.hero__data {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}


@keyframes pulse-success {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero__title {
  font-size: clamp(1.75rem, 8vw, 4rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero__description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero__claim {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero__claim i {
  color: var(--accent-secondary);
}

/* Hero Media (Video - right column on desktop) */
.hero__media {
  width: 100%;
}

.hero__media .video-wrapper {
  margin-bottom: 0;
}

/* Visual Concept: Background Wireframe */
.hero__visual {
  position: absolute;
  top: 10%;
  right: -5%;
  /* Reduced from -15% to be safer */
  width: min(350px, 80vw);
  /* Ensure it's not wider than the phone */
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.isometric-home {
  width: 100%;
  height: 100%;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.isometric-home .active-pipe {
  stroke: var(--accent-primary);
  stroke-width: 3;
  stroke-dasharray: 10;
  animation: flow 20s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -1000;
  }
}



/* Section Subtitle */
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: center;
}

/* Inspect Showcase — "O Que Fazemos" */
.inspect-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.inspect-showcase__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.inspect-showcase__circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), rgba(59, 140, 199, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(59, 140, 199, 0.2);
}

.inspect-showcase__circle i {
  font-size: 2rem;
  color: white;
}

.inspect-showcase__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}

.inspect-showcase__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.inspect-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.inspect-tag i {
  color: var(--accent-primary);
  font-size: 1rem;
}

.inspect-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--accent-secondary-subtle);
  border: 1px solid rgba(52, 168, 83, 0.15);
  border-radius: 100px;
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--accent-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.inspect-badge:hover {
  background-color: rgba(52, 168, 83, 0.2);
  transform: translateY(-2px);
}

/* Service Menu Card */
.service-menu {
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.service-menu__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background-color: var(--surface-elevated);
  border-bottom: 1px solid var(--border-default);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.service-menu__header i {
  color: var(--accent-primary);
  font-size: 1rem;
}

.service-menu__item {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-default);
  border-left: 3px solid transparent;
  font-size: 0.938rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.service-menu__item:last-child {
  border-bottom: none;
}

.service-menu__item:hover {
  border-left-color: var(--accent-primary);
  background-color: var(--surface-elevated);
}

.service-menu__item--highlight {
  border-left-color: var(--accent-secondary);
  background-color: rgba(52, 168, 83, 0.05);
  color: var(--accent-secondary);
}

.service-menu__item--highlight i {
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* Credibility / Sobre Nós Section */
.credibility-section {
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.credibility__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.credibility__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.credibility__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.credibility__list li i {
  color: var(--accent-primary);
  font-size: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.credibility__list li div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.credibility__list li strong {
  color: var(--text-primary);
}

.credibility__doc {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-default);
  transition: all 0.3s ease;
}

.credibility__doc:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.credibility__doc img {
  width: 100%;
  display: block;
}

.credibility__doc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: 0.813rem;
  font-weight: 500;
}

.credibility__doc-label i {
  color: var(--accent-primary);
}

/* Risk Section */
.risk-section {
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  text-align: center;
}

.risk__consequences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto 2rem;
}

.risk__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background-color: var(--surface-elevated);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-card);
}

.risk__card i {
  font-size: 1.75rem;
  color: var(--status-error);
}

.risk__card span {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--text-primary);
}

.risk__text-block {
  max-width: 600px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.risk__action {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CTA Final */
.cta-final {
  border-top: 1px solid rgba(239, 68, 68, 0.15);
}

.cta-final__icon {
  margin-bottom: 1.5rem;
}

.cta-final__icon i {
  font-size: 2.5rem;
  color: var(--status-error);
  opacity: 0.8;
}

.btn-primary--lg {
  font-size: 1.125rem;
  padding: 1.125rem 2.5rem;
}

/* Video Placeholder */
.video-wrapper {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.video-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(59, 140, 199, 0.1), transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 10, 10, 0.4);
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-overlay .btn-unmute {
  box-shadow: 0 10px 25px rgba(59, 140, 199, 0.3);
  transform: scale(1);
  animation: pulse-success 2s infinite;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
  pointer-events: auto;
  /* Ensure clicks go through when overlay is hidden */
}

/* Footer */
.footer {
  background-color: var(--surface-card);
  padding-block: 3rem;
  border-top: 1px solid var(--border-default);
  text-align: center;
}

.footer .header__logo {
  justify-content: center;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Media Queries */
@media screen and (max-width: 767px) {
  .header__container {
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .header__credential {
    display: flex;
  }

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

@media screen and (min-width: 1024px) {
  .hero__data {
    text-align: left;
    margin: 0;
  }


  .hero__claim {
    justify-content: flex-start;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section {
    padding-block: 4rem;
  }

  .credibility__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

/*=============== IMAGE MODAL ===============*/
.modal {
  display: flex;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

.modal.is-active {
  visibility: visible;
  opacity: 1;
}

.modal__content {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  cursor: default;
  /* Allow the browser's native touch gestures (pinch to zoom) */
  touch-action: pinch-zoom;
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 2001;
}

.modal__close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Prevent scroll when modal is active */
body.modal-active {
  overflow: hidden;
}