/* ==========================================================================
   Hydria - Art e Consultoria
   1. Tokens
   2. Base e tipografia
   3. Marca e cabecalho
   4. Botoes
   5. Formas organicas e superficies
   6. Hero
   7. Componentes de conteudo
   8. Pagina de servico
   9. Rodape
   10. Chat
   11. Microinteracoes
   12. Breakpoints
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */

:root {
  --navy-900: #062033;
  --navy: #0a2a43;
  --navy-600: #123a5a;

  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --cyan-tint: #e0f7fb;

  --teal: #0d9488;
  --teal-text: #0f766e;
  --teal-light: #5eead4;

  --surface: #f6fafc;
  --body-text: #334a5b;
  --line: rgb(10 42 67 / 0.12);
  --line-strong: rgb(10 42 67 / 0.2);
  --line-light: rgb(255 255 255 / 0.16);

  --radius-card: 0.75rem;
  --radius-control: 0.625rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(6 32 51 / 0.06), 0 8px 24px rgb(6 32 51 / 0.06);
  --shadow-lg: 0 10px 20px rgb(6 32 51 / 0.08), 0 20px 48px rgb(6 32 51 / 0.12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 220ms;

  --header-height: 4.5rem;
}

/* 2. Base e tipografia --------------------------------------------------- */

html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  background: #fff;
  color: var(--body-text);
  font-family: Inter, system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Rede de seguranca para telas estreitas: termos longos como
   "sustentabilidade" ou "hidrossanitario" nao podem furar o layout. */
h1,
h2,
h3,
h4,
p,
li,
dd,
strong {
  overflow-wrap: break-word;
}

::selection {
  background: var(--cyan-tint);
  color: var(--navy-900);
}

.skip-link {
  background: var(--cyan);
  border-radius: 0 0 var(--radius-control) 0;
  color: var(--navy-900);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  left: 0;
  padding: 0.75rem 1.25rem;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform var(--speed) var(--ease-out);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.eyebrow {
  color: var(--teal-text);
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--teal-light);
}

.section-title {
  color: var(--navy);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-title-light {
  color: #fff;
}

.lead {
  color: var(--body-text);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.lead-light {
  color: rgb(255 255 255 / 0.82);
}

.bio-copy p {
  line-height: 1.8;
}

.bio-copy p + p {
  margin-top: 1.25rem;
}

.bio-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.bio-trail span {
  background: var(--cyan-tint);
  border-radius: var(--radius-control);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.45rem 0.7rem;
}

/* 3. Marca e cabecalho --------------------------------------------------- */

.site-header {
  background: rgb(6 32 51 / 0.18);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  inset: 0 0 auto;
  position: fixed;
  transition: background-color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out),
    backdrop-filter var(--speed) var(--ease-out);
  z-index: 50;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgb(255 255 255 / 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgb(6 32 51 / 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  height: var(--header-height);
  justify-content: space-between;
}

.brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  gap: 0.7rem;
  transition: color var(--speed) var(--ease-out);
}

.is-scrolled .brand,
.is-solid .brand {
  color: var(--navy);
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  height: 2.75rem;
  object-fit: contain;
  transition: transform var(--speed) var(--ease-out);
  width: auto;
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
}

.brand-name {
  display: block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-tagline {
  display: block;
  font-size: 0.5625rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.4;
  margin-top: 0.15rem;
  opacity: 0.78;
  text-transform: uppercase;
}

.nav-link {
  color: rgb(255 255 255 / 0.86);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--speed) var(--ease-out);
}

.nav-link::after {
  background: var(--teal-light);
  border-radius: var(--radius-pill);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease-out);
  width: 100%;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.is-scrolled .nav-link,
.is-solid .nav-link {
  color: var(--navy-600);
}

.is-scrolled .nav-link:hover,
.is-solid .nav-link:hover {
  color: var(--teal-text);
}

.is-scrolled .nav-link::after,
.is-solid .nav-link::after {
  background: var(--teal);
}

.menu-toggle {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: var(--radius-control);
  color: #fff;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  transition: background-color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
  width: 2.75rem;
}

.menu-toggle:hover {
  background: rgb(255 255 255 / 0.12);
}

.is-scrolled .menu-toggle,
.is-solid .menu-toggle {
  border-color: var(--line-strong);
  color: var(--navy);
}

.is-scrolled .menu-toggle:hover,
.is-solid .menu-toggle:hover {
  background: var(--cyan-tint);
}

.mobile-menu {
  background: var(--navy);
  border-top: 1px solid var(--line-light);
  overflow: hidden;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-link {
  border-radius: var(--radius-control);
  color: rgb(255 255 255 / 0.9);
  font-size: 1rem;
  font-weight: 500;
  min-height: 2.75rem;
  padding: 0.75rem 0.875rem;
  transition: background-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}

.mobile-link:hover {
  background: rgb(255 255 255 / 0.1);
  color: var(--teal-light);
}

/* 4. Botoes -------------------------------------------------------------- */

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  display: inline-flex;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  line-height: 1.2;
  min-height: 2.875rem;
  padding: 0.8rem 1.4rem;
  text-align: center;
  transition: background-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.875rem;
  min-height: 2.5rem;
  padding: 0.6rem 1.1rem;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy-900);
}

.btn-primary:hover {
  background: var(--teal-light);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--teal-text);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--cyan-tint);
  border-color: var(--cyan);
  color: var(--navy-900);
}

.btn-ghost {
  border-color: rgb(255 255 255 / 0.5);
  color: #fff;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: var(--teal-light);
  color: var(--navy-900);
}

:where(a, button, input, summary, [tabindex]):focus-visible {
  border-radius: var(--radius-control);
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.site-header.is-scrolled :where(a, button):focus-visible,
.site-header.is-solid :where(a, button):focus-visible {
  outline-color: var(--teal);
}

/* 5. Formas organicas e superficies -------------------------------------- */

.surface-soft {
  background: var(--surface);
}

.surface-mineral {
  background: linear-gradient(160deg, #fff 0%, var(--surface) 52%, var(--cyan-tint) 100%);
}

.surface-navy {
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy) 58%, #0e4a5f 100%);
  color: #fff;
}

.wave-divider {
  display: block;
  line-height: 0;
  pointer-events: none;
  width: 100%;
}

.wave-divider svg {
  display: block;
  height: 2.5rem;
  width: 100%;
}

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

/* Mesma onda espelhada, para a faixa clara descer sobre a superficie escura. */
.wave-top {
  left: 0;
  position: absolute;
  right: 0;
  top: -1px;
  z-index: 2;
}

.wave-top svg {
  transform: scaleY(-1);
}

.glass-panel {
  background: rgb(255 255 255 / 0.9);
  border: 1px solid rgb(255 255 255 / 0.65);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.glass-strip {
  background: rgb(255 255 255 / 0.1);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
}

/* 6. Hero ---------------------------------------------------------------- */

/* Altura minima garante presenca do hero mesmo com pouco conteudo. */
.hero {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  justify-content: center;
  min-height: 76vh;
  min-height: 76svh;
  overflow: hidden;
  position: relative;
}

.hero > .hero-content {
  width: 100%;
}

.hero-media {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.28;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.hero-glow {
  background:
    radial-gradient(60% 55% at 82% 22%, rgb(94 234 212 / 0.24), transparent 70%),
    radial-gradient(70% 60% at 8% 88%, rgb(6 182 212 / 0.22), transparent 72%);
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-content {
  padding-bottom: 5rem;
  padding-top: calc(var(--header-height) + 3rem);
}

.hero-title {
  color: #fff;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-highlight {
  color: var(--teal-light);
}

.credential-strip {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.credential-strip > div {
  border-top: 1px solid var(--line-light);
  padding: 1rem 1.25rem;
}

.credential-strip > div:first-child {
  border-top: 0;
}

.credential-strip strong {
  color: var(--teal-light);
  display: block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
}

.credential-strip span {
  color: rgb(255 255 255 / 0.76);
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.4rem;
}

/* 7. Componentes de conteudo --------------------------------------------- */

.icon-badge {
  align-items: center;
  background: var(--cyan-tint);
  border-radius: var(--radius-card);
  color: var(--teal-text);
  display: inline-flex;
  flex: 0 0 auto;
  height: 3rem;
  justify-content: center;
  transition: background-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
  width: 3rem;
}

.icon-badge svg {
  height: 1.5rem;
  width: 1.5rem;
}

.icon-badge-light {
  background: rgb(255 255 255 / 0.12);
  border: 1px solid var(--line-light);
  color: var(--teal-light);
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.value-card:hover {
  border-color: rgb(13 148 136 / 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card:hover .icon-badge {
  background: var(--teal);
  color: #fff;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
}

.value-card p {
  line-height: 1.7;
  margin-top: 0.65rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.75rem;
  position: relative;
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.service-card::after {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}

.service-card:hover {
  border-color: rgb(6 182 212 / 0.45);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover .icon-badge {
  background: var(--cyan);
  color: var(--navy-900);
}

.service-card h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  margin-top: 1.25rem;
}

.service-card p {
  flex: 1;
  line-height: 1.7;
  margin-top: 0.65rem;
}

.service-tag {
  color: var(--teal-text);
  display: block;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  margin-top: 0.75rem;
  text-transform: uppercase;
}

.service-cta {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.4rem;
  margin-top: 1.25rem;
  transition: color var(--speed) var(--ease-out), gap var(--speed) var(--ease-out);
}

.service-card:hover .service-cta {
  color: var(--teal-text);
  gap: 0.75rem;
}

.service-cta svg {
  height: 1rem;
  width: 1rem;
}

.method-line {
  display: grid;
  gap: 0;
}

.method-item {
  border-left: 2px solid var(--line);
  padding: 0 0 2rem 2rem;
  position: relative;
}

.method-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.method-item .method-icon {
  height: 2.75rem;
  left: -1.375rem;
  position: absolute;
  top: 0;
  width: 2.75rem;
}

.method-item h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  padding-top: 0.45rem;
}

.method-item p {
  line-height: 1.7;
  margin-top: 0.6rem;
}

.profile-frame {
  isolation: isolate;
  position: relative;
}

.profile-frame::before {
  background: linear-gradient(140deg, var(--cyan), var(--teal));
  border-radius: var(--radius-card);
  content: "";
  inset: 1.25rem -1rem -1rem 1.25rem;
  opacity: 0.18;
  position: absolute;
  z-index: -1;
}

.profile-frame img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.credential-card {
  bottom: 1rem;
  left: 1rem;
  max-width: calc(100% - 2rem);
  padding: 1rem 1.125rem;
  position: absolute;
}

.credential-card strong {
  color: var(--navy);
  display: block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  position: relative;
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.price-card:hover {
  border-color: rgb(6 182 212 / 0.45);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.price-card.featured {
  border-color: var(--cyan);
  box-shadow: var(--shadow-sm);
}

.price-badge {
  background: var(--cyan);
  border-radius: var(--radius-pill);
  color: var(--navy-900);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  left: 1.75rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
  position: absolute;
  text-transform: uppercase;
  top: -0.85rem;
}

.price-card h3 {
  font-size: 1.25rem;
}

.price-card p:not(.price-value) {
  flex: 1;
  line-height: 1.7;
  margin-top: 0.65rem;
}

.price-value {
  align-items: baseline;
  color: var(--navy);
  display: flex;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  gap: 0.35rem;
  margin: 1.25rem 0;
}

.price-value small {
  color: var(--body-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
}

.blog-card {
  border-radius: var(--radius-card);
  border-top: 2px solid var(--line-light);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 0;
  transition: border-color var(--speed) var(--ease-out);
}

.blog-card:hover {
  border-top-color: var(--teal-light);
}

.blog-card h3 {
  color: #fff;
  font-size: 1.1875rem;
  line-height: 1.35;
  margin-top: 0.75rem;
  transition: color var(--speed) var(--ease-out);
}

.blog-card:hover h3 {
  color: var(--teal-light);
}

.blog-card p:not(.eyebrow) {
  color: rgb(255 255 255 / 0.7);
  line-height: 1.7;
  margin-top: 0.65rem;
}

.cta-band {
  align-items: center;
  background: linear-gradient(140deg, var(--navy-900), var(--navy) 55%, #0e4a5f);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  overflow: hidden;
  padding: 2.25rem 1.75rem;
  position: relative;
  text-align: center;
}

/* Camadas: 0 video, 1 veu escuro (garante o contraste do texto), 2 brilho, 3 conteudo. */
/* brightness derruba os reflexos estourados da agua, que senao zeram o
   contraste do texto branco e do eyebrow em teal. */
.cta-band__video {
  filter: brightness(0.6) saturate(1.1);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.cta-band::after {
  background: linear-gradient(140deg, rgb(6 32 51 / 0.84), rgb(10 42 67 / 0.76) 55%, rgb(14 74 95 / 0.7));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.cta-band::before {
  background: radial-gradient(60% 80% at 85% 20%, rgb(94 234 212 / 0.24), transparent 70%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 2;
}

.cta-band > *:not(.cta-band__video) {
  position: relative;
  z-index: 3;
}

.cta-band h2,
.cta-band h3 {
  color: #fff;
  font-size: clamp(1.375rem, 4vw, 1.875rem);
  line-height: 1.2;
  margin-top: 0.75rem;
}

.cta-band p:not(.eyebrow) {
  color: rgb(255 255 255 / 0.78);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.technical-list {
  border-top: 1px solid var(--line);
}

.technical-list li,
.technical-list .technical-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
  padding: 1.125rem 0;
}

.technical-list strong {
  color: var(--navy);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.technical-list span,
.technical-list p {
  color: var(--body-text);
  line-height: 1.7;
}

/* 8. Pagina de servico ---------------------------------------------------- */

.service-shell {
  background: var(--surface);
}

.service-hero {
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 4rem;
  padding-top: calc(var(--header-height) + 3rem);
  position: relative;
}

.service-hero::before {
  background:
    radial-gradient(58% 55% at 84% 20%, var(--service-accent, rgb(6 182 212 / 0.28)), transparent 70%),
    linear-gradient(150deg, var(--navy-900), var(--navy) 58%, #0e4a5f);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.service-mode-filtros-reuso-agua {
  --service-accent: rgb(94 234 212 / 0.24);
}

.service-mode-art-responsabilidade-tecnica {
  --service-accent: rgb(255 255 255 / 0.2);
}

.service-mode-controle-hidrossanitario-piscinas {
  --service-accent: rgb(6 182 212 / 0.42);
}

.back-link {
  align-items: center;
  color: rgb(255 255 255 / 0.78);
  display: inline-flex;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.5rem;
  transition: color var(--speed) var(--ease-out), gap var(--speed) var(--ease-out);
}

.back-link:hover {
  color: var(--teal-light);
  gap: 0.75rem;
}

.service-brief {
  padding: 1.5rem;
}

.service-brief dl {
  display: grid;
  gap: 1.125rem;
}

.service-brief div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.125rem;
}

.service-brief div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.service-brief dt {
  color: var(--teal-text);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-brief dd {
  color: var(--navy);
  font-weight: 500;
  line-height: 1.6;
  margin-top: 0.4rem;
}

.diagnostic-grid {
  display: grid;
  gap: 1.25rem;
}

.diagnostic-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: box-shadow var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}

.diagnostic-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.diagnostic-item h3 {
  font-size: 1.125rem;
}

.diagnostic-item p {
  line-height: 1.7;
  margin-top: 0.6rem;
}

.benefit-list {
  counter-reset: benefit;
  display: grid;
  gap: 0;
}

.benefit-list li {
  border-top: 1px solid var(--line);
  counter-increment: benefit;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 2rem 1fr;
  line-height: 1.7;
  padding: 1.125rem 0;
}

.benefit-list li::before {
  color: var(--cyan-dark);
  content: counter(benefit, decimal-leading-zero);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
}

.filter-product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: grid;
  overflow: hidden;
}

.filter-product-media {
  align-items: center;
  background: linear-gradient(140deg, #fff, var(--cyan-tint));
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.filter-product-media img {
  height: auto;
  max-height: 18rem;
  object-fit: contain;
  width: auto;
}

.spec-table {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
}

.spec-table li {
  border-bottom: 1px solid var(--line);
  color: var(--body-text);
  line-height: 1.6;
  padding: 0.75rem 0;
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.media-tags span {
  background: var(--cyan-tint);
  border-radius: var(--radius-pill);
  color: var(--teal-text);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.related-strip {
  border-top: 1px solid var(--line);
}

.related-line {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  padding: 1.125rem 0;
  transition: color var(--speed) var(--ease-out), padding-left var(--speed) var(--ease-out);
}

.related-line:hover {
  color: var(--teal-text);
  padding-left: 0.5rem;
}

.related-line strong {
  display: block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
}

.related-line span span {
  color: var(--body-text);
  display: block;
  line-height: 1.6;
  margin-top: 0.3rem;
}

.related-line svg {
  height: 1.25rem;
  width: 1.25rem;
}

/* 9. Rodape --------------------------------------------------------------- */

.site-footer {
  background: linear-gradient(150deg, var(--navy-900), var(--navy) 60%, #0e4a5f);
  color: rgb(255 255 255 / 0.76);
  overflow: hidden;
  padding-top: 2.5rem;
  position: relative;
}

/* Luz difusa igual a do hero, para o rodape nao ficar um bloco chapado. */
.site-footer::before {
  background: radial-gradient(55% 60% at 88% 12%, rgb(94 234 212 / 0.16), transparent 70%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.site-footer > *:not(.wave-divider) {
  position: relative;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.footer-link {
  color: rgb(255 255 255 / 0.76);
  transition: color var(--speed) var(--ease-out);
}

.footer-link:hover {
  color: var(--teal-light);
}

.social-link {
  align-items: center;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-control);
  color: #fff;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  transition: background-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
  width: 2.75rem;
}

.social-link:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--navy-900);
  transform: translateY(-2px);
}

/* 10. Chat ---------------------------------------------------------------- */

.chat-launcher {
  align-items: center;
  background: var(--cyan);
  border-radius: var(--radius-pill);
  bottom: 1rem;
  box-shadow: var(--shadow-lg);
  color: var(--navy-900);
  display: flex;
  height: 3.5rem;
  justify-content: center;
  position: fixed;
  right: 1rem;
  transition: background-color var(--speed) var(--ease-out), transform var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out);
  width: 3.5rem;
  z-index: 60;
}

.chat-launcher:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.chat-launcher.is-open {
  background: var(--navy);
  color: #fff;
}

.chat-launcher__icon {
  height: 1.65rem;
  position: relative;
  width: 1.65rem;
  z-index: 1;
}

.chat-launcher__pulse {
  animation: chat-pulse 2.6s var(--ease-out) infinite;
  border: 2px solid var(--cyan);
  border-radius: var(--radius-pill);
  inset: 0;
  position: absolute;
}

.chat-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  bottom: 5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: min(38rem, calc(100svh - 7rem));
  overflow: hidden;
  position: fixed;
  right: 1rem;
  width: min(23rem, calc(100vw - 2rem));
  z-index: 60;
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel__header {
  background: linear-gradient(140deg, var(--navy-900), var(--navy) 60%, #0e4a5f);
  color: #fff;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  padding: 1.25rem;
}

.chat-panel__kicker {
  color: var(--teal-light);
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chat-panel__header h2 {
  color: #fff;
  font-size: 1.25rem;
  margin-top: 0.35rem;
}

.chat-panel__header p:last-child {
  color: rgb(255 255 255 / 0.74);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 0.35rem;
}

.chat-panel__close {
  align-items: center;
  align-self: start;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-control);
  color: #fff;
  display: flex;
  height: 2.25rem;
  justify-content: center;
  transition: background-color var(--speed) var(--ease-out);
  width: 2.25rem;
}

.chat-panel__close:hover {
  background: rgb(255 255 255 / 0.14);
}

.chat-panel__close svg,
.chat-panel__form button svg,
.chat-message__avatar svg {
  height: 1.1rem;
  width: 1.1rem;
}

.chat-panel__messages {
  background: var(--surface);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 13rem;
  overflow-y: auto;
  padding: 1rem;
}

.chat-message {
  align-items: flex-end;
  display: flex;
  gap: 0.6rem;
}

.chat-message--user {
  flex-direction: row-reverse;
}

.chat-message__avatar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--teal-text);
  display: flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.chat-message--user .chat-message__avatar {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.chat-message__bubble {
  border-radius: var(--radius-card);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 16rem;
  padding: 0.75rem 0.9rem;
}

.chat-message--bot .chat-message__bubble {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--body-text);
}

.chat-message--user .chat-message__bubble {
  background: var(--navy);
  color: #fff;
}

.chat-typing {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  gap: 0.35rem;
  margin-left: 2.6rem;
  padding: 0.8rem 0.9rem;
  width: fit-content;
}

.chat-typing span {
  animation: typing-dot 900ms ease-in-out infinite;
  background: var(--cyan);
  border-radius: var(--radius-pill);
  display: block;
  height: 0.4rem;
  opacity: 0.4;
  width: 0.4rem;
}

.chat-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.chat-typing span:nth-child(3) {
  animation-delay: 240ms;
}

.chat-panel__shortcuts {
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.75rem 1rem;
}

.chat-panel__shortcuts button {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--navy);
  flex: 0 0 auto;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  transition: background-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out);
}

.chat-panel__shortcuts button:hover {
  background: var(--cyan-tint);
  border-color: var(--cyan);
  color: var(--teal-text);
}

.chat-panel__form {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 2.75rem;
  padding: 0.85rem 1rem 1rem;
}

.chat-panel__form input {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--navy);
  font-size: 0.9375rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  width: 100%;
}

.chat-panel__form input::placeholder {
  color: rgb(51 74 91 / 0.6);
}

.chat-panel__form button {
  align-items: center;
  background: var(--cyan);
  border-radius: var(--radius-control);
  color: var(--navy-900);
  display: flex;
  height: 2.75rem;
  justify-content: center;
  transition: background-color var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
  width: 2.75rem;
}

.chat-panel__form button:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

/* 11. Microinteracoes ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes typing-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes chat-pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .chat-typing span,
  .chat-launcher__pulse {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .value-card:hover,
  .service-card:hover,
  .price-card:hover,
  .diagnostic-item:hover,
  .social-link:hover,
  .chat-launcher:hover,
  .chat-panel__form button:hover {
    transform: none;
  }
}

/* 12. Breakpoints --------------------------------------------------------- */

@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }

  .section-sm {
    padding: 4rem 0;
  }

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

  .credential-strip > div {
    border-left: 1px solid var(--line-light);
    border-top: 0;
  }

  .credential-strip > div:first-child {
    border-left: 0;
  }

  .cta-band {
    align-items: center;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    padding: 2.5rem;
    text-align: left;
  }

  .technical-list li,
  .technical-list .technical-row {
    gap: 1.25rem;
    grid-template-columns: minmax(8rem, 0.32fr) 1fr;
  }

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

  .benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .wave-divider svg {
    height: 4rem;
  }

  .site-footer {
    padding-top: 4rem;
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 5rem;
  }

  .hero {
    min-height: 84vh;
    min-height: 84svh;
  }

  .hero-content {
    padding-bottom: 7rem;
    padding-top: calc(var(--header-height) + 5rem);
  }

  .service-brief {
    padding: 1.75rem;
  }

  .filter-product {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6.5rem 0;
  }

  .hero {
    min-height: 90vh;
    min-height: 90svh;
  }

  .section-sm {
    padding: 4.5rem 0;
  }

  .sticky-copy {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }

  .diagnostic-grid {
    gap: 1.5rem;
  }

  .value-card,
  .service-card,
  .price-card {
    padding: 2rem;
  }

  .chat-launcher {
    bottom: 1.5rem;
    height: 4rem;
    right: 1.5rem;
    width: 4rem;
  }

  .chat-panel {
    bottom: 6rem;
    right: 1.5rem;
    width: 25rem;
  }
}
