/* ==========================================
   LAQUA - Global Stylesheet
   Brand: White + #425177
   ========================================== */

:root {
  /* Brand navy scale (base #425177) */
  --primary: #3d4f76;        /* core — strong contrast on white for text/links/CTAs */
  --primary-dark: #2c3a58;   /* deeper — gradients & hover */
  --primary-darker: #1f2942; /* deepest — footer / overlays */
  --primary-light: #7e93b8;  /* muted accent — icon tints, borders */
  --primary-lighter: #aebdd6;
  --primary-tint: #eef2f8;   /* faint wash for hover/fills */

  --white: #ffffff;
  --light-bg: #f4f6fb;
  --border: #e4e8f1;
  --text-dark: #182034;
  --text-muted: #626b80;

  /* Aqua/teal accent — harmonizes with the blue & white theme */
  --accent: #2fa6c4;
  --accent-dark: #1f8aa3;

  --shadow-sm: 0 1px 3px rgba(31, 41, 66, 0.06), 0 1px 2px rgba(31, 41, 66, 0.04);
  --shadow: 0 4px 20px rgba(31, 41, 66, 0.08);
  --shadow-hover: 0 14px 40px rgba(31, 41, 66, 0.16);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessible keyboard focus */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

/* ── Typography ─────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Layout helpers ─────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 20px auto 52px;
  font-size: 1.08rem;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(31, 41, 66, 0.22);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31, 41, 66, 0.28);
}

/* Solid light button — strong CTA over dark/hero backgrounds */
.btn--light {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn--light:hover {
  background: var(--primary-tint);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  backdrop-filter: blur(2px);
}

.btn--outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Image placeholder ──────────────────── */
.img-placeholder {
  background: #dde3ef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  overflow: hidden;
}

.img-placeholder svg {
  opacity: 0.4;
  width: 48px;
  height: 48px;
}

/* ── Top bar ────────────────────────────── */
.topbar {
  /* Temporarily hidden — change to `flex`/remove this line to bring it back. */
  display: none;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 7px 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.topbar a {
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}

.topbar a:hover { color: var(--white); }

/* ── Header / Navbar ────────────────────── */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.logo__img-file {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo__tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}


/* ── Navigation ─────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: var(--light-bg);
}

/* The "Contato" button keeps its solid style on hover/active (don't fade to white) */
.nav__link.btn--primary,
.nav__link.btn--primary:hover,
.nav__link.btn--primary.active {
  background: var(--primary);
  color: #fff;
}

.nav__link.btn--primary:hover {
  background: var(--primary-dark);
}

.nav__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav__item:hover .nav__link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 320px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 200;
}

.nav__item:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown__link {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-dark);
  border-radius: 0;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.dropdown__link:last-child { border-bottom: none; }

.dropdown__link:hover {
  background: var(--light-bg);
  color: var(--primary);
  padding-left: 24px;
}

/* Invisible bridge so the dropdown doesn't close while the cursor
   crosses the gap between the nav link and the menu. */
.dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* ── Nested submenu (Análises de Água subtópicos) ── */
.dropdown__group { position: relative; }

.dropdown__link--parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dropdown__caret {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primary-light);
  transition: transform var(--transition);
}

.dropdown__group:hover .dropdown__caret {
  transform: translateX(3px);
  color: var(--primary);
}

.dropdown__sub {
  position: absolute;
  top: -1px;
  left: 100%;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: var(--transition);
  z-index: 210;
  overflow: hidden;
}

/* bridge for the sub-flyout gap */
.dropdown__sub::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
}

.dropdown__group:hover .dropdown__sub {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

/* ── Hero ───────────────────────────────── */
/* ── Hero Carousel ─────────────────────────────────────────── */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero--slide {
  min-width: 100%;
  flex-shrink: 0;
}

.hero-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.hero-carousel__btn:hover {
  background: rgba(255,255,255,0.32);
}

.hero-carousel__btn--prev { left: 18px; }
.hero-carousel__btn--next { right: 18px; }

.hero-carousel__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.hero-carousel__dot.active {
  background: #fff;
  border-color: #fff;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  color: var(--white);
  padding: 80px 0 64px;
  overflow: hidden;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* dark overlay so text is always readable over photos */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 12% 20%, rgba(61, 79, 118, 0.35) 0%, transparent 55%),
    linear-gradient(
      100deg,
      rgba(24, 33, 56, 0.86) 0%,
      rgba(31, 41, 66, 0.55) 55%,
      rgba(31, 41, 66, 0.22) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
  margin-left: 40px;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* slide bg images — swap src here or via inline style when photos are ready */
.hero--slide-1 { background-image: url('../images/banner-laqua.jpg'); background-position: top right; }
.hero--slide-2 { background-image: url('../images/hero-2.png'); background-position: center right; }
.hero--slide-3 { background-image: url('../images/hero-3.png'); background-position: center right; }
.hero--slide-4 { background-image: url('../images/mato-grosso-do-sul-paisagem.png'); }

/* ── Services grid ──────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

/* Compact icon+title cards (base Serviços page) */
.services-grid--mini {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.service-card.service-card--mini {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}

.service-card.service-card--mini .service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.service-card.service-card--mini .service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card.service-card--mini h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

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

.service-card__icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(140deg, rgba(61, 79, 118, 0.10), rgba(61, 79, 118, 0.04));
  border: 1px solid rgba(61, 79, 118, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.service-card__icon svg {
  width: 23px;
  height: 23px;
}

.cert-card__logo {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.cert-card__logo img {
  max-height: 80px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.service-card p {
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.service-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.service-card a:hover { gap: 8px; }

/* Accordion variant for service cards */
.service-card--accordion {
  padding: 0;
  overflow: hidden;
}

.service-card--accordion:hover {
  transform: none;
}

.service-card__trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 32px 28px;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: inherit;
  color: inherit;
}

.service-card__trigger-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__trigger-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.service-card__trigger-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.service-card__trigger-link:hover {
  color: var(--primary-dark);
}

.service-card__trigger-arrow {
  display: inline-block;
  color: var(--primary);
  font-size: 1rem;
  transition: transform var(--transition);
}

.service-card--accordion.open .service-card__trigger-arrow {
  transform: rotate(180deg);
}

.service-card__sublinks {
  display: none;
  padding: 0 28px 24px;
  padding-left: calc(28px + 54px + 14px);
}

.service-card--accordion.open .service-card__sublinks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__sublinks a {
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

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

.service-card__sublinks a:hover {
  color: var(--primary-dark);
  padding-left: 8px;
}

/* ── About strip ────────────────────────── */
.about-strip {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 72px 0;
  overflow: hidden;
}

.about-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 100% at 100% 0%, rgba(47, 166, 196, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.about-strip .container { position: relative; z-index: 1; }

.about-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-strip h2 { color: var(--white); }
.about-strip p { color: rgba(255,255,255,0.82); }

.about-strip__image {
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-strip__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 75% center;
}

/* ── Stats bar ──────────────────────────── */
.stats-bar {
  background: var(--light-bg);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat__number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ── Clients ────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  min-height: 110px;
  text-align: center;
  transition: var(--transition);
}

.client-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.client-card img {
  max-height: 70px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(25%);
  transition: filter 0.2s ease;
}

.client-card:hover img {
  filter: grayscale(0%);
}

.client-card span {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.client-card:hover span {
  color: var(--primary);
}

/* Styled tooltip with the client's name on hover */
.client-card[data-name] { position: relative; }

.client-card[data-name]::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  width: max-content;
  max-width: 220px;
  transform: translateX(-50%) translateY(6px);
  background: var(--primary-darker);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  padding: 8px 13px;
  border-radius: 9px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 30;
}

.client-card[data-name]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  border: 6px solid transparent;
  border-top-color: var(--primary-darker);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 30;
}

.client-card[data-name]:hover::after,
.client-card[data-name]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Quality / Certifications ───────────── */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.quality-text h2 { margin-bottom: 16px; }

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(66,81,119,0.08);
  border: 1px solid rgba(66,81,119,0.2);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 4px;
}

.quality-image {
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── CTA Banner ─────────────────────────── */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 15% 10%, rgba(47, 166, 196, 0.18) 0%, transparent 50%),
    radial-gradient(50% 120% at 90% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.cta-banner .btn {
  padding: 9px 16px;
  font-size: 0.84rem;
  border-radius: 7px;
}

/* ── Page hero (inner pages) ────────────── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
  padding: 64px 0;
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 130% at 90% 0%, rgba(47, 166, 196, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.page-hero p { color: rgba(255,255,255,0.78); margin-top: 10px; max-width: 600px; }

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }

/* ── Content page layout ────────────────── */
.content-page {
  padding: 72px 0;
}

.content-page__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar__menu {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar__title {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.88rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.sidebar__link:last-child { border-bottom: none; }

.sidebar__link:hover,
.sidebar__link.active {
  background: var(--light-bg);
  color: var(--primary);
  padding-left: 26px;
}

.sidebar__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--primary-light);
}

/* Expandable "Análises de Água" group inside the Serviços sidebar */
.sidebar__link--parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar__caret {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary-light);
  border-radius: 4px;
  transition: transform var(--transition), color var(--transition);
}

.sidebar__caret:hover { color: var(--primary); }

.sidebar__link--parent.open .sidebar__caret {
  transform: rotate(90deg);
  color: var(--primary);
}

.sidebar__sub {
  display: none;
  background: rgba(61, 79, 118, 0.02);
  border-bottom: 1px solid var(--border);
}

.sidebar__sub.open { display: block; }

.sidebar__sub .sidebar__link--sub {
  padding-left: 40px;
  position: relative;
  font-size: 0.85rem;
  border-bottom: none;
}

.sidebar__sub .sidebar__link--sub::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.sidebar__sub .sidebar__link--sub:last-child::before { bottom: 50%; }

.sidebar__sub .sidebar__link--sub::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 9px;
  height: 2px;
  background: var(--border);
}

.sidebar__sub .sidebar__link--sub:hover,
.sidebar__sub .sidebar__link--sub.active {
  padding-left: 44px;
}

.sidebar__sub .sidebar__link--sub.active {
  background: var(--light-bg);
  color: var(--primary);
  font-weight: 600;
}

.sidebar__sub .sidebar__link--sub.active::before,
.sidebar__sub .sidebar__link--sub.active::after,
.sidebar__sub .sidebar__link--sub:hover::before,
.sidebar__sub .sidebar__link--sub:hover::after {
  background: var(--primary);
}

/* Content body */
.content-body h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: var(--primary);
}

.content-body h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.content-body h2:first-child { margin-top: 0; }

.content-body ul, .content-body ol {
  margin: 12px 0 16px 20px;
}

.content-body li {
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.65;
}

.content-body .references {
  list-style: none;
  margin-left: 0;
}

.content-body .references li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 18px;
  text-indent: -18px;
  margin-bottom: 10px;
}

.content-body .references em {
  color: var(--text-dark);
  font-style: italic;
}

.content-body .lead {
  font-size: 1.08rem;
  color: var(--text-dark);
  line-height: 1.75;
  border-left: 4px solid var(--primary);
  padding-left: 18px;
  margin-bottom: 28px;
}

/* Compact overview list (leaner alternative to a card grid) */
.overview-list {
  list-style: none;
  margin: 16px 0 0;
  display: grid;
  gap: 2px;
}

.overview-list li {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--transition);
}

.overview-list li:hover {
  background: var(--light-bg);
  border-color: var(--border);
}

.overview-list a {
  color: var(--primary);
  font-weight: 600;
}

.overview-list a:hover { text-decoration: underline; }

.overview-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.content-image {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  margin: 28px 0;
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Anchor the crop to the bottom (keeps the lower part of the image visible) */
.content-image--bottom img { object-position: center bottom; }

/* Preserve the image's natural proportion (no cropping) */
.content-image--natural {
  height: auto;
  background: var(--light-bg);
  border: 1px solid var(--border);
}

.content-image--natural img {
  height: auto;
  object-fit: contain;
  max-height: 460px;
  margin: 0 auto;
}

/* ── Contact page ───────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  background: rgba(66,81,119,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.contact-info__value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.contact-form {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66,81,119,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* Simplified contact actions (no form) */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.contact-actions .btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  font-size: 1rem;
}

.contact-actions__wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.30);
}

.contact-actions__wa:hover {
  background: #1eb356;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.38);
}

/* ── Responsible tech table ─────────────── */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(66,81,119,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 16px;
}

.team-card__name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.team-card__role { font-size: 0.85rem; color: var(--text-muted); }
.team-card__reg { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-top: 8px; }

.team-profiles {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.team-profile {
  background: linear-gradient(180deg, rgba(66,81,119,0.03) 0%, rgba(66,81,119,0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}

.team-profile__media {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  overflow: hidden;
}

.team-profile__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-profile__label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(66,81,119,0.1);
  color: var(--primary);
  font-size: 0.74rem;
  letter-spacing: 0.4px;
  font-weight: 600;
  text-transform: uppercase;
}

.team-profile__content h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.team-profile__role {
  margin-top: 6px;
  font-weight: 600;
  color: var(--text-dark);
}

.team-profile__reg {
  margin-top: 4px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
}

.team-profile__content p {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .team-profile {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .team-profile__content {
    text-align: left;
    width: 100%;
  }
}

/* ── Floating WhatsApp button ───────────── */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 480px) {
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand .logo__name { color: var(--white); }
.footer__brand .logo__tagline { color: rgba(255,255,255,0.4); }

.footer__about {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__links a:hover { color: var(--white); padding-left: 4px; }

.footer__contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer__contact-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__inner {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    margin-left: 0;
    margin-right: 0;
    align-items: stretch;
  }
  .hero__inner > * { min-width: 0; }
  .hero h1,
  .hero p { width: 100%; max-width: 100%; }
  .hero h1 { font-size: clamp(1.75rem, 7.5vw, 3.15rem); }
  .hero p { font-size: 1rem; line-height: 1.55; }
  .hero__image { height: 260px; }
  .hero { padding: 72px 0 56px; }

  .about-strip__inner { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .content-page__inner { grid-template-columns: 1fr; }

  .sidebar { position: static; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow-hover);
    gap: 2px;
  }

  .dropdown {
    display: none;
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    min-width: unset;
    border-radius: 0;
  }

  .nav__item--open > .dropdown { display: block; }

  /* Nested submenu becomes an inline indented list on mobile */
  .dropdown__sub {
    display: none;
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: unset;
  }

  .dropdown__group--open > .dropdown__sub { display: block; }
  .dropdown__group--open > .dropdown__link .dropdown__caret {
    transform: rotate(90deg);
  }

  .dropdown__sub .dropdown__link { padding-left: 34px; }
  .dropdown__caret { transform: none; }

  .menu-toggle { display: flex; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

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

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

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; }
}
