@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 75px; /* altura do header fixo */
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #faf9f6;
  overflow-x: hidden;
  padding-top: 65px; /* altura real do header fixo */
  opacity: 0;
  animation: pageFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.portal-landing-page {
  padding-top: 0 !important;
}

/* Primeiro elemento de qualquer página: padding-top reduzido */
main > :first-child {
  padding-top: 2.5rem !important;
}

/* CSS Variables */
:root {
  /* Globals */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --box-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
  --box-shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.08);

  /* Division: Meio Ambiente (Organic/Natural) */
  --bg-ambient: #FAF9F6;
  --bg-card-ambient: #ffffff;
  --primary-ambient: #1E3F20;     /* Deep forest green */
  --secondary-ambient: #4A5D4E;   /* Muted olive green */
  --accent-ambient: #2A5C36;      /* Active foliage green */
  --accent-light-ambient: #E8EFEA;
  --text-ambient: #2E3A2F;
  --border-ambient: #E5E8E5;

  /* Division: Construção Civil (Technical/Robust) */
  --bg-construction: #F4F6F6;
  --bg-card-construction: #ffffff;
  --primary-construction: #2C3A3B;    /* Deep slate/teal */
  --secondary-construction: #5C6B73;  /* Steel gray */
  --accent-construction: #C89D3C;     /* Warm ochre gold */
  --accent-light-construction: #F4EEDC;
  --text-construction: #232C2D;
  --border-construction: #E0E4E4;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- SPLIT SCREEN PORTAL (index.html) --- */
.portal-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

.portal-side {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  transition: var(--transition-smooth);
  z-index: 1;
}

.portal-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
  z-index: -2;
}

/* Left side background (Ambiental) */
.portal-side.ambiental::before {
  background-image: url('assets/ambient_bg.jpg');
}

/* Right side background (Construção) */
.portal-side.construcao::before {
  background-image: url('assets/construction_bg.jpg');
}

.portal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: var(--transition-smooth);
  z-index: -1;
}

.portal-side.ambiental .portal-overlay {
  background: linear-gradient(185deg, rgba(30, 63, 32, 0.7) 0%, rgba(10, 25, 11, 0.95) 100%);
}

.portal-side.construcao .portal-overlay {
  background: linear-gradient(185deg, rgba(44, 58, 59, 0.75) 0%, rgba(20, 28, 29, 0.97) 100%);
}

/* Hover Expand Behaviour */
@media (min-width: 769px) {
  .portal-side:hover {
    flex: 1.6;
  }
  .portal-side:hover::before {
    transform: scale(1.08);
  }
  .portal-side.ambiental:hover .portal-overlay {
    background: linear-gradient(185deg, rgba(30, 63, 32, 0.5) 0%, rgba(10, 25, 11, 0.85) 100%);
  }
  .portal-side.construcao:hover .portal-overlay {
    background: linear-gradient(185deg, rgba(44, 58, 59, 0.5) 0%, rgba(20, 28, 29, 0.85) 100%);
  }
}

/* Logo central divider icon */
.portal-center-logo {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portal-content {
  max-width: 500px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portal-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.portal-side.ambiental .portal-tag {
  color: #a4f5b2;
}

.portal-side.construcao .portal-tag {
  color: #ffd47d;
}

.portal-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.portal-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(0);
}

.portal-side.ambiental .portal-btn {
  background-color: var(--accent-ambient);
  color: #fff;
}

.portal-side.ambiental .portal-btn:hover {
  background-color: #3b7d48;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(42, 92, 54, 0.4);
}

.portal-side.construcao .portal-btn {
  background-color: var(--accent-construction);
  color: #232c2d;
}

.portal-side.construcao .portal-btn:hover {
  background-color: #e5b64e;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(200, 157, 60, 0.4);
}

/* Responsiveness for Portal */
@media (max-width: 768px) {
  .portal-container {
    flex-direction: column;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  .portal-side {
    flex: 1 1 50% !important;
    height: 50dvh !important;
    max-height: 50dvh !important;
    width: 100% !important;
    padding: 0.75rem 1.25rem 1.25rem 1.25rem !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !alignment;
  }
  .portal-side.ambiental {
    padding-top: 3rem !important; /* Evita que o conteúdo da metade superior fique sob a logo central */
  }
  .portal-center-logo {
    top: 0.6rem !important;
    padding: 0.35rem 1rem !important;
    border-radius: 12px !important;
    z-index: 25 !important;
  }
  .portal-center-logo img {
    height: 36px !important;
    width: auto !important;
  }
  .portal-content {
    max-width: 100% !important;
  }
  .portal-tag {
    font-size: 0.68rem !important;
    margin-bottom: 0.35rem !important;
    padding: 0.2rem 0.75rem !important;
    letter-spacing: 0.1em !important;
  }
  .portal-title {
    font-size: 1.45rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.15 !important;
  }
  .portal-desc {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.75rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .portal-btn {
    padding: 0.55rem 1.25rem !important;
    font-size: 0.82rem !important;
    gap: 0.5rem !important;
  }
  .portal-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
}


/* --- GLOBAL SUBPAGES LAYOUT (Ambiental & Construtora) --- */

/* Page Headers (Glassmorphism Navbar) */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-ambiental .logo-text { color: var(--primary-ambient); }
.logo-ambiental .logo-sub { color: var(--secondary-ambient); }

.logo-construcao .logo-text { color: var(--primary-construction); }
.logo-construcao .logo-sub { color: var(--accent-construction); }

/* Navigation Links */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  transition: var(--transition-smooth);
}

.ambiental-theme .nav-link { color: var(--text-ambient); }
.ambiental-theme .nav-link::after { background-color: var(--accent-ambient); }
.ambiental-theme .nav-link:hover, .ambiental-theme .nav-link.active { color: var(--accent-ambient); }
.ambiental-theme .nav-link:hover::after, .ambiental-theme .nav-link.active::after { width: 100%; }

.construcao-theme .nav-link { color: var(--text-construction); }
.construcao-theme .nav-link::after { background-color: var(--accent-construction); }
.construcao-theme .nav-link:hover, .construcao-theme .nav-link.active { color: var(--accent-construction); }
.construcao-theme .nav-link:hover::after, .construcao-theme .nav-link.active::after { width: 100%; }

.cta-nav-btn {
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.ambiental-theme .cta-nav-btn {
  background-color: var(--primary-ambient);
  color: #fff;
}
.ambiental-theme .cta-nav-btn:hover {
  background-color: var(--accent-ambient);
  box-shadow: 0 8px 20px rgba(42, 92, 54, 0.2);
}

.construcao-theme .cta-nav-btn {
  background-color: var(--primary-construction);
  color: #fff;
}
.construcao-theme .cta-nav-btn:hover {
  background-color: var(--accent-construction);
  color: #232c2d;
  box-shadow: 0 8px 20px rgba(200, 157, 60, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.ambiental-theme .mobile-menu-toggle span { background-color: var(--primary-ambient); }
.construcao-theme .mobile-menu-toggle span { background-color: var(--primary-construction); }

/* --- HERO SECTION --- */
.hero-section,
.landing-hero-section {
  position: relative;
  padding: 2.5rem 2rem 5rem 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.landing-hero-section {
  min-height: auto;
  padding-bottom: 4rem !important;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.ambiental-theme .hero-overlay {
  background: linear-gradient(135deg, rgba(250, 249, 246, 0.94) 0%, rgba(230, 237, 233, 0.85) 100%);
}

.construcao-theme .hero-overlay {
  background: linear-gradient(135deg, rgba(244, 246, 246, 0.94) 0%, rgba(220, 228, 228, 0.85) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.ambiental-theme .hero-badge {
  background-color: var(--accent-light-ambient);
  color: var(--accent-ambient);
}

.construcao-theme .hero-badge {
  background-color: var(--accent-light-construction);
  color: #a37922;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.ambiental-theme .hero-title { color: var(--primary-ambient); }
.construcao-theme .hero-title { color: var(--primary-construction); }

.hero-desc {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
}

.ambiental-theme .btn-primary {
  background-color: var(--accent-ambient);
  color: #fff;
}
.ambiental-theme .btn-primary:hover {
  background-color: var(--primary-ambient);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(42, 92, 54, 0.3);
}

.construcao-theme .btn-primary {
  background-color: var(--accent-construction);
  color: #232c2d;
}
.construcao-theme .btn-primary:hover {
  background-color: var(--primary-construction);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(200, 157, 60, 0.3);
}

.btn-secondary {
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: transparent;
  border: 2px solid;
  cursor: pointer;
}

.ambiental-theme .btn-secondary {
  border-color: var(--primary-ambient);
  color: var(--primary-ambient);
}
.ambiental-theme .btn-secondary:hover {
  background-color: var(--primary-ambient);
  color: #fff;
}

.construcao-theme .btn-secondary {
  border-color: var(--primary-construction);
  color: var(--primary-construction);
}
.construcao-theme .btn-secondary:hover {
  background-color: var(--primary-construction);
  color: #fff;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-card {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-medium);
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
  aspect-ratio: 4/3;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats-badge {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background-color: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-medium);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 5px solid;
}

.ambiental-theme .hero-stats-badge {
  border-color: var(--accent-ambient);
}

.construcao-theme .hero-stats-badge {
  border-color: var(--accent-construction);
}

.hero-stats-num {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.ambiental-theme .hero-stats-num { color: var(--primary-ambient); }
.construcao-theme .hero-stats-num { color: var(--primary-construction); }

.hero-stats-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
}

/* Responsiveness for Hero */
@media (max-width: 992px) {
  .hero-section {
    padding: 10rem 1.5rem 6rem 1.5rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-stats-badge {
    bottom: -15px;
    left: -15px;
    padding: 1rem 1.5rem;
  }
  .hero-stats-num {
    font-size: 1.75rem;
  }
}

/* --- SECTION GENERAL --- */
.section {
  padding: 7rem 2rem;
  scroll-margin-top: 75px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.ambiental-theme .section-tag { color: var(--accent-ambient); }
.construcao-theme .section-tag { color: var(--accent-construction); }

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.ambiental-theme .section-title { color: var(--primary-ambient); }
.construcao-theme .section-title { color: var(--primary-construction); }

.section-desc {
  color: #666;
  font-size: 1.05rem;
}

/* --- CARDS & GRID LAYOUTS --- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card-item {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--box-shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  transition: var(--transition-smooth);
}

.ambiental-theme .card-item::before { background-color: var(--accent-ambient); }
.construcao-theme .card-item::before { background-color: var(--accent-construction); }

.card-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
}

.card-item:hover::before {
  height: 100%;
}

.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.ambiental-theme .card-icon-wrapper {
  background-color: var(--accent-light-ambient);
  color: var(--accent-ambient);
}

.construcao-theme .card-icon-wrapper {
  background-color: var(--accent-light-construction);
  color: #a37922;
}

.card-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ambiental-theme .card-title { color: var(--primary-ambient); }
.construcao-theme .card-title { color: var(--primary-construction); }

.card-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
}

.ambiental-theme .card-link { color: var(--accent-ambient); }
.construcao-theme .card-link { color: var(--accent-construction); }

/* --- VIVEIRO PRODUCTS SECTION (CATALOG) --- */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid;
  background: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ambiental-theme .filter-btn {
  border-color: var(--border-ambient);
  color: var(--secondary-ambient);
}
.ambiental-theme .filter-btn.active, .ambiental-theme .filter-btn:hover {
  background-color: var(--accent-ambient);
  border-color: var(--accent-ambient);
  color: #fff;
}

.construcao-theme .filter-btn {
  border-color: var(--border-construction);
  color: var(--secondary-construction);
}
.construcao-theme .filter-btn.active, .construcao-theme .filter-btn:hover {
  background-color: var(--accent-construction);
  border-color: var(--accent-construction);
  color: #232c2d;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
  border: 1px solid rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
}

.ambiental-theme .product-badge { color: var(--accent-ambient); }
.construcao-theme .product-badge { color: #a37922; }

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ambiental-theme .product-title { color: var(--primary-ambient); }
.construcao-theme .product-title { color: var(--primary-construction); }

.product-scientific {
  font-size: 0.85rem;
  font-style: italic;
  color: #777;
  margin-bottom: 1rem;
}

.product-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}

.ambiental-theme .product-btn {
  background-color: var(--accent-light-ambient);
  color: var(--accent-ambient);
}
.ambiental-theme .product-btn:hover {
  background-color: var(--accent-ambient);
  color: #fff;
}

.construcao-theme .product-btn {
  background-color: var(--accent-light-construction);
  color: #a37922;
}
.construcao-theme .product-btn:hover {
  background-color: var(--accent-construction);
  color: #232c2d;
}

/* --- ABOUT SECTION & MEDIA BLOCK --- */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.media-content {
  display: flex;
  flex-direction: column;
}

.media-image-wrapper {
  position: relative;
}

.media-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-medium);
  aspect-ratio: 4/3;
}

.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-check svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ambiental-theme .feature-check svg { color: var(--accent-ambient); }
.construcao-theme .feature-check svg { color: var(--accent-construction); }

.feature-check-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.ambiental-theme .feature-check-title { color: var(--primary-ambient); }
.construcao-theme .feature-check-title { color: var(--primary-construction); }

.feature-check-desc {
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 992px) {
  .media-block {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--box-shadow-soft);
  border: 1px solid rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.ambiental-theme .testimonial-stars svg { color: #f59e0b; }
.construcao-theme .testimonial-stars svg { color: #f59e0b; }

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: #444;
  margin-bottom: 2rem;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #eee;
  font-family: var(--font-title);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ambiental-theme .testimonial-avatar { background-color: var(--accent-light-ambient); color: var(--primary-ambient); }
.construcao-theme .testimonial-avatar { background-color: var(--accent-light-construction); color: var(--primary-construction); }

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: #777;
}

/* --- BUDGET / CONTACT FORMS --- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.form-info {
  display: flex;
  flex-direction: column;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ambiental-theme .info-icon { background-color: var(--accent-light-ambient); color: var(--accent-ambient); }
.construcao-theme .info-icon { background-color: var(--accent-light-construction); color: #a37922; }

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  margin-bottom: 0.25rem;
}

.info-text {
  font-weight: 600;
  font-size: 1.05rem;
}

.ambiental-theme .info-text { color: var(--primary-ambient); }
.construcao-theme .info-text { color: var(--primary-construction); }

.form-card {
  background-color: #fff;
  padding: 3.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
  border: 1px solid rgba(0,0,0,0.02);
  overflow: hidden;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Registration address grids — contained within the form-card */
.reg-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.reg-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid #ddd;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  background-color: #fcfcfc;
}

.form-control:focus {
  outline: none;
  background-color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 3px;
}

.ambiental-theme .form-control:focus {
  box-shadow: 0 0 0 3px rgba(42, 92, 54, 0.25);
  border-color: var(--accent-ambient);
}

.construcao-theme .form-control:focus {
  box-shadow: 0 0 0 3px rgba(200, 157, 60, 0.25);
  border-color: var(--accent-construction);
}

.form-submit-btn {
  width: 100%;
  padding: 1.1rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: var(--transition-smooth);
}

.ambiental-theme .form-submit-btn {
  background-color: var(--accent-ambient);
  color: #fff;
}
.ambiental-theme .form-submit-btn:hover {
  background-color: var(--primary-ambient);
  box-shadow: 0 12px 30px rgba(42, 92, 54, 0.25);
}

.construcao-theme .form-submit-btn {
  background-color: var(--accent-construction);
  color: #232c2d;
}
.construcao-theme .form-submit-btn:hover {
  background-color: var(--primary-construction);
  color: #fff;
  box-shadow: 0 12px 30px rgba(200, 157, 60, 0.25);
}

@media (max-width: 992px) {
  .form-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .form-card {
    padding: 2rem 1.5rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .reg-grid-2-1,
  .reg-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* --- CLIENT AREA (PORTAL SIMULATION) --- */
.client-portal-wrapper {
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.03);
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 550px;
}

.client-sidebar {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-right: 1px solid #eee;
}

.ambiental-theme .client-sidebar { background-color: #f7faf8; }
.construcao-theme .client-sidebar { background-color: #f3f6f6; }

.client-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: #fff;
}

.client-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.client-role {
  font-size: 0.75rem;
  color: #777;
}

.client-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-menu-item {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.client-menu-item:focus,
.client-menu-item:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.ambiental-theme .client-menu-item.active {
  background-color: var(--accent-light-ambient);
  color: var(--accent-ambient);
}
.ambiental-theme .client-menu-item:hover:not(.active) {
  background-color: rgba(42, 92, 54, 0.05);
}

.construcao-theme .client-menu-item.active {
  background-color: var(--accent-light-construction);
  color: #a37922;
}
.construcao-theme .client-menu-item:hover:not(.active) {
  background-color: rgba(200, 157, 60, 0.05);
}

.client-content-pane {
  padding: 3rem;
  display: none;
}

.client-content-pane.active {
  display: block;
}

.client-pane-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid #eee;
  transition: var(--transition-smooth);
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.document-item:hover {
  border-color: #ccc;
  transform: translateX(4px);
}

.document-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.document-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e11d48;
}

.document-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.document-meta {
  font-size: 0.8rem;
  color: #888;
}

.client-portal-section {
  padding-top: 0;
  padding-bottom: 0;
  scroll-margin-top: 75px;
}


.document-download-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-title);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-sizing: border-box !important;
  max-width: 100% !important;
  text-align: center;
  display: inline-block;
}

.ambiental-theme .document-download-btn {
  background-color: var(--accent-ambient) !important;
  color: #ffffff !important;
}
.ambiental-theme .document-download-btn:hover {
  background-color: #1e5a2e !important;
  color: #ffffff !important;
}

.construcao-theme .document-download-btn {
  background-color: #a37922 !important;
  color: #ffffff !important;
}
.construcao-theme .document-download-btn:hover {
  background-color: #856119 !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .client-portal-wrapper {
    grid-template-columns: 1fr;
    margin: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
  }
  .client-sidebar {
    border-right: none;
    border-bottom: 1px solid #eef2f6;
    padding: 1.25rem 0.75rem !important;
    gap: 1rem !important;
  }
  .client-content-pane {
    padding: 1.5rem 0.75rem !important;
  }
}


/* --- PORTAL CLIENTE: FINANCIAL TABLES & NEW PANES --- */

/* Financial data table */
.fin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid #eee;
}

.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fin-table thead {
  background-color: #f8f9fa;
}

.fin-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.8rem;
  color: #555;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.fin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #333;
}

.fin-table tr:last-child td {
  border-bottom: none;
}

.fin-table tr:hover td {
  background-color: #fafafa;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-title);
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.8;
}

.badge-pago, .badge-paga, .badge-concluido {
  background-color: #d1fae5;
  color: #065f46;
}
.badge-pendente, .badge-em_andamento {
  background-color: #fef3c7;
  color: #92400e;
}
.badge-vencido, .badge-vencida, .badge-cancelado {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Action buttons in tables */
.tbl-action-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-title);
  border: 1px solid;
  background: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.ambiental-theme .tbl-action-btn { border-color: var(--accent-ambient); color: var(--accent-ambient); }
.ambiental-theme .tbl-action-btn:hover { background-color: var(--accent-ambient); color: #fff; }
.construcao-theme .tbl-action-btn { border-color: var(--accent-construction); color: #a37922; }
.construcao-theme .tbl-action-btn:hover { background-color: var(--accent-construction); color: #232c2d; }

/* Copy barcode button */
.copy-barcode-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.copy-barcode-btn:hover { color: #333; background-color: #f0f0f0; }
.barcode-wrap { font-size: 0.7rem; color: #666; max-width: 200px; }

/* "Em breve" empty state */
.portal-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1rem;
}

.portal-empty-state svg {
  opacity: 0.35;
}

.portal-empty-state h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.portal-empty-state p {
  font-size: 0.9rem;
  color: #888;
  max-width: 380px;
  line-height: 1.6;
}

/* Profile form inside dashboard */
.profile-section-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.profile-readonly-field {
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #555;
  cursor: not-allowed;
}

.profile-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-title);
  margin-right: 0.5rem;
}

.badge-type-cliente { background-color: #dbeafe; color: #1e40af; }
.badge-type-fornecedor { background-color: #ede9fe; color: #5b21b6; }

.profile-admin-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.5rem;
}

/* Document download modal overlay */
.doc-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.doc-modal-card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-modal-overlay.active .doc-modal-card {
  transform: translateY(0);
}

.doc-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.doc-modal-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a2e1b;
}

.doc-modal-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.doc-modal-close {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  background-color: #f1f1f1;
  color: #333;
  transition: background-color 0.2s;
}
.doc-modal-close:hover { background-color: #e0e0e0; }

/* Profile save/error banners inside pane */
.pane-banner {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
  display: none;
}
.pane-banner-success { background-color: #d1fae5; color: #065f46; border-color: #10b981; }
.pane-banner-error   { background-color: #fee2e2; color: #b91c1c; border-color: #ef4444; }

/* Loading spinner in tabs */
.pane-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: #aaa;
  font-size: 0.9rem;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #1e2627;
  color: #d1d5db;
  padding: 5rem 2rem 2rem 2rem;
  border-top: 5px solid;
}

.ambiental-theme .site-footer { border-color: var(--accent-ambient); }
.construcao-theme .site-footer { border-color: var(--accent-construction); }

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.75rem;
  color: #fff;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link-item a {
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-link-item a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #9ca3af;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #9ca3af;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

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

/* --- UTILS RESPONSIVOS ADICIONAIS --- */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

@media (max-width: 992px) {
  /* Forçar os cards de grid a usarem uma largura mínima de 280px para caberem em telas pequenas */
  .grid-cards, .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  /* Exibir o botão do menu hambúrguer no mobile */
  .mobile-menu-toggle {
    display: block !important;
    z-index: 1010;
  }

  /* Gaveta de navegação lateral (menu hambúrguer móvel) */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 6.5rem 1.75rem 2rem 1.75rem;
    gap: 1.25rem !important;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.08);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Ajustar links no menu lateral móvel */
  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    font-size: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .nav-menu .nav-link::after {
    display: none; /* remove barra inferior de hover no mobile */
  }

  .nav-menu .cta-nav-btn {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.85rem 1.5rem;
  }

  /* Rolagem horizontal para filtros do catálogo de mudas/cases */
  .catalog-filters {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding: 0.25rem 1rem 0.75rem 1rem;
    margin-bottom: 2rem;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
  }

  .client-portal-section {
    display: block !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    min-height: calc(100vh - 48px) !important;
    scroll-margin-top: 52px !important;
  }


  /* Área do Cliente: Grade de Abas Visíveis em 2 Colunas no Mobile */
  .client-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    padding: 0.4rem !important;
    border-bottom: none !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .client-menu::-webkit-scrollbar {
    display: none !important;
  }

  .client-menu > li {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .client-menu > li:last-child:nth-child(odd) {
    grid-column: span 2 !important;
  }

  .client-menu-item {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 0.6rem 0.4rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
  }

  .ambiental-theme .client-menu-item.active {
    background-color: var(--accent-ambient) !important;
    color: #ffffff !important;
    border-color: var(--accent-ambient) !important;
    box-shadow: 0 2px 6px rgba(42, 92, 54, 0.2) !important;
  }

  .construcao-theme .client-menu-item.active {
    background-color: #a37922 !important;
    color: #ffffff !important;
    border-color: #a37922 !important;
    box-shadow: 0 2px 6px rgba(163, 121, 34, 0.2) !important;
  }

  /* Área do Cliente: Documentos empilhados verticalmente no mobile */
  .document-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    padding: 1rem !important;
    border-radius: 8px !important;
  }

  .document-download-btn {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
  }

  /* Formulários e Grades do Perfil em 1 coluna no mobile */
  .reg-grid-2-1,
  .reg-grid-3,
  .reg-grid-2,
  .reg-grid-3-custom,
  .reg-grid-3-equal {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-card,
  #ambAuthContainer,
  #cnsAuthContainer,
  #ambVerifyCard,
  #cnsVerifyCard,
  #ambRegisterCard,
  #cnsRegisterCard,
  #ambLoginCard,
  #cnsLoginCard {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .client-portal-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .client-sidebar,
  .client-portal-wrapper > main,
  .client-content-pane {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 576px) {
  /* Sobre Nós: Colapsar grade de recursos */
  .media-features {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
}

/* --- SPA PAGE TRANSITIONS AND LOADER --- */
#page-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--accent-ambient);
  z-index: 9999;
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.15s ease;
}
.ambiental-theme #page-loading-bar {
  background-color: var(--accent-ambient);
}
.construcao-theme #page-loading-bar {
  background-color: var(--accent-construction);
}

main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
main.page-loading {
  opacity: 0;
  transform: translateY(8px);
}

/* ==========================================
   NATIVE MOBILE APP EXPERIENCE STYLES
   ========================================== */

/* 1. Splash Screen Overlay */
.app-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #ffffff;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
}
.ambiental-theme .app-splash-screen {
  background: linear-gradient(135deg, #102613 0%, #1E3F20 50%, #0A190B 100%);
}
.construcao-theme .app-splash-screen {
  background: linear-gradient(135deg, #1A2425 0%, #2C3A3B 50%, #111718 100%);
}
.app-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  animation: splashPulse 1.2s ease-in-out infinite alternate;
}
.splash-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}
.splash-spinner {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.splash-bar {
  width: 50%;
  height: 100%;
  background: #ffffff;
  border-radius: 4px;
  position: absolute;
  left: -50%;
  animation: splashProgress 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.ambiental-theme .splash-bar {
  background: #4ade80;
}
.construcao-theme .splash-bar {
  background: #facc15;
}
.splash-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-title);
  font-weight: 500;
}
@keyframes splashProgress {
  0% { left: -50%; width: 30%; }
  50% { width: 60%; }
  100% { left: 100%; width: 30%; }
}
@keyframes splashPulse {
  from { transform: scale(0.98); }
  to { transform: scale(1.02); }
}

/* 2. Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none; /* Oculto em desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  user-select: none;
  -webkit-user-select: none;
}
.mobile-bottom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 62px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-title);
  padding: 4px 2px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  font-size: 0.65rem;
  line-height: 1.1;
  color: #64748b;
}
.mob-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.2s ease;
  background: transparent;
}
.mob-icon {
  width: 20px;
  height: 20px;
  stroke: #64748b;
  fill: none;
  transition: all 0.2s ease;
}

/* Active states por portal */
.ambiental-theme .mob-nav-item.active {
  color: var(--primary-ambient);
}
.ambiental-theme .mob-nav-item.active .mob-icon {
  stroke: var(--primary-ambient) !important;
}
.ambiental-theme .mob-nav-item.active .mob-nav-label {
  color: var(--primary-ambient) !important;
  font-weight: 700;
}

.construcao-theme .mob-nav-item.active {
  color: #a37922;
}
.construcao-theme .mob-nav-item.active .mob-icon {
  stroke: #a37922 !important;
}
.construcao-theme .mob-nav-item.active .mob-nav-label {
  color: #a37922 !important;
  font-weight: 700;
}

.construcao-theme .mob-nav-item.mob-cta-item.active {
  color: #a37922 !important;
}

/* Form cards & controls strict box-sizing & width containment */
.form-card,
.form-group,
.form-group-row,
.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Reajustes Responsivos em Mobile (<768px) */
@media (max-width: 768px) {
  /* Oculta botão hambúrguer do topo no mobile */
  .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Top Header ultracompacto para mobile (estilo app) */
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 48px !important;
    z-index: 1000 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .site-header .header-container {
    padding: 0.25rem 0.75rem !important;
    height: 48px !important;
    justify-content: space-between !important;
    align-items: center !important;
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .site-header .logo-link img {
    height: 30px !important;
    width: auto !important;
  }
  .site-header .logo-svg-mask {
    height: 30px !important;
    width: 95px !important;
  }

  /* Aproveitamento máximo e folga de topo sob o cabeçalho fixo */
  .hero-section,
  .landing-hero-section,
  .blog-hero-header,
  .article-hero-header,
  main > .section:first-child,
  main > section:first-of-type {
    padding-top: 4.25rem !important;
    min-height: auto !important;
  }
  .hero-badge {
    display: inline-block !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
    padding: 0.3rem 0.75rem !important;
    font-size: 0.7rem !important;
    box-sizing: border-box !important;
  }
  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }
  .hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
  }
  .hero-ctas {
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .btn-primary, .btn-secondary {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.86rem !important;
  }

  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  .whatsapp-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 12px !important;
    z-index: 9995 !important;
  }

  /* Previne zoom automático no iOS Safari */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Ajuste do offset do header para mobile (header = 48px) */
  html {
    scroll-padding-top: 52px !important;
  }
  body {
    padding-top: 48px !important;
  }
  main > :first-child {
    padding-top: 1.5rem !important;
  }

  /* Seções e containers ultracompactos no mobile */
  .section {
    padding: 1.75rem 0.75rem !important;
    scroll-margin-top: 52px !important;
  }
  .section-container {
    padding: 0 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .section-header {
    margin-bottom: 1.25rem !important;
  }

  .hero-content, .hero-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-content strong {
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Cards de formulário e produtos com margens otimizadas */
  .landing-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    margin-bottom: 0.5rem !important;
  }
  .landing-form-card, .form-card {
    padding: 1rem 0.75rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-bottom: 1rem !important;
  }
  .card-title {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    font-size: 1.1rem !important;
  }
  .form-group {
    margin-bottom: 0.85rem !important;
  }
  .form-group-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .form-control,
  input.form-control,
  select.form-control,
  textarea.form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    padding: 0.75rem 0.9rem !important;
  }
  .form-submit-btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    margin-top: 1rem !important;
  }

  /* Portfólio e Catálogo */
  .product-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 1rem !important;
  }
  .product-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .product-info {
    padding: 1rem 0.85rem !important;
  }

  /* Otimizações do Blog no Mobile */
  .blog-hero-header {
    padding: 3.2rem 0.75rem 1.25rem 0.75rem !important;
  }
  .blog-hero-title {
    font-size: 1.55rem !important;
    line-height: 1.2 !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
  }
  .blog-hero-desc {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-top: 0.35rem !important;
  }
  .blog-featured-card {
    margin-bottom: 1.25rem !important;
    border-radius: 12px !important;
  }
  .blog-card-body {
    padding: 1rem 0.75rem !important;
  }
  .blog-card-title {
    font-size: 1.2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }
  .blog-card-desc {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.75rem !important;
  }
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Leitura de Artigo no Mobile */
  .article-hero-header {
    padding: 3.2rem 0.75rem 1.25rem 0.75rem !important;
  }
  .article-hero-title {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
    word-break: break-word !important;
  }
  .article-body-section {
    padding: 1.25rem 0.75rem !important;
  }
  .article-text-body {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }
  .header-audio-btn {
    padding: 0.22rem 0.6rem !important;
    font-size: 0.7rem !important;
  }

  /* Footer Ultracompacto no Mobile */
  .site-footer {
    padding: 1.25rem 0.75rem 3.6rem 0.75rem !important;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  .footer-brand {
    grid-column: 1 / -1;
    gap: 0.5rem !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.25rem !important;
  }
  .footer-info-col {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem !important;
    margin-top: 0.25rem !important;
  }
  .footer-logo img {
    height: 28px !important;
    width: auto !important;
  }
  .footer-desc {
    display: none !important;
  }
  .footer-socials {
    gap: 0.4rem !important;
  }
  .social-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .footer-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.35rem !important;
    font-weight: 700 !important;
  }
  .footer-links {
    gap: 0.3rem !important;
  }
  .footer-link-item a {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }
  .footer-link-item a[href*="construcao"],
  .footer-link-item a[href*="ambiental"] {
    white-space: nowrap !important;
    font-weight: 700 !important;
  }
  .footer-contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }
  .footer-contact-item {
    font-size: 0.8rem !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }
  .footer-contact-item svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
  }
  .footer-bottom {
    padding-top: 0.6rem !important;
    margin-top: 0.6rem !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    padding-right: 1.5rem !important;
  }
}

/* Botão discreto de áudio na barra superior fixa */
.header-audio-slot {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  position: relative !important;
  z-index: 1001 !important;
}

.header-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f1f5f9;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.ambiental-theme .header-audio-btn {
  background-color: rgba(42, 92, 54, 0.1);
  color: var(--primary-ambient);
  border-color: rgba(42, 92, 54, 0.2);
}

.construcao-theme .header-audio-btn {
  background-color: rgba(200, 157, 60, 0.15);
  color: #a37922;
  border-color: rgba(200, 157, 60, 0.3);
}

.header-audio-btn.speaking {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

/* ============================================================
   PORTAL CLIENTE: RESPONSIVE CARDS FOR FINANCIAL PANES
============================================================ */
.fin-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.fin-card {
  background: #fff;
  border: 1px solid #eef2f3;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.fin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.fin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.fin-card-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  word-break: break-word;
}

.fin-status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.fin-status-badge.paga,
.fin-status-badge.pago,
.fin-status-badge.concluido {
  background-color: #e2fbe8;
  color: #1b873f;
}

.fin-status-badge.pendente,
.fin-status-badge.em_andamento {
  background-color: #fff8e6;
  color: #b25e00;
}

.fin-status-badge.vencido {
  background-color: #ffebe9;
  color: #c53030;
}

.fin-card-body {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.fin-card-body p {
  margin: 0 0 0.35rem 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.fin-card-body p strong {
  color: #1e293b;
  font-weight: 600;
}

.fin-card-body p span {
  text-align: right;
  word-break: break-word;
}

.fin-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  width: 100%;
}

.fin-btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-family: var(--font-title);
  text-decoration: none;
  min-width: 0;
}

.ambiental-theme .fin-btn {
  border-color: var(--accent-ambient);
  color: var(--accent-ambient);
}
.ambiental-theme .fin-btn:hover {
  background-color: var(--accent-ambient);
  color: #fff;
}

.construcao-theme .fin-btn {
  border-color: var(--accent-construction);
  color: #a37922;
}
.construcao-theme .fin-btn:hover {
  background-color: var(--accent-construction);
  color: #232c2d;
}

.fin-btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-color: #cbd5e1;
  color: #475569;
  background-color: #f8fafc;
}

.fin-btn-copy:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

@media (max-width: 480px) {
  .fin-card-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MERCADO PAGO STYLE CLIENT PORTAL (APP UI)
============================================================ */
.mp-portal-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background-color: #f8fafc;
  min-height: 580px;
  display: flex !important;
  flex-direction: column !important;
}

.mp-header-banner {
  padding: 1.25rem 1rem 2.25rem 1rem;
  color: #ffffff;
  position: relative;
  box-sizing: border-box;
}

.ambiental-theme .mp-header-banner {
  background: linear-gradient(135deg, #1b4324 0%, #2a5c36 60%, #3b7d48 100%);
}

.construcao-theme .mp-header-banner {
  background: linear-gradient(135deg, #1e293b 0%, #334155 60%, #a37922 100%);
}

.mp-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  gap: 0.75rem;
}

.mp-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
}

.mp-user-greeting {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
}

.mp-user-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
  display: block;
}

.mp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mp-action-btn {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mp-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mp-action-btn.logout {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.mp-action-btn.logout:hover {
  background: rgba(239, 68, 68, 0.4);
}

/* Floating Overlapping Card */
.mp-floating-card {
  background: #ffffff;
  border-radius: 20px 20px 16px 16px;
  margin: -1.5rem 0.75rem 1.25rem 0.75rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Tab selector pills inside floating card */
.mp-tabs-nav {
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #f1f5f9;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mp-floating-card .client-content-pane {
  padding: 0.35rem 0 !important;
}
.mp-floating-card .client-content-pane[style*="display: block"] {
  display: flex !important;
  flex-direction: column;
  flex: 1;
}

.mp-tabs-nav::-webkit-scrollbar {
  display: none;
}

.mp-tab-btn {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ambiental-theme .mp-tab-btn.active {
  background: #1b4324;
  color: #ffffff;
  border-color: #1b4324;
  box-shadow: 0 3px 10px rgba(27, 67, 36, 0.25);
}

.construcao-theme .mp-tab-btn.active {
  background: #a37922;
  color: #ffffff;
  border-color: #a37922;
  box-shadow: 0 3px 10px rgba(163, 121, 34, 0.25);
}

.mp-action-btn.active {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4) !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .client-portal-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
  }

  .client-portal-section .section-container {
    padding: 0 4px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .mp-portal-container {
    border-radius: 12px;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
  }
  .mp-floating-card {
    margin: -1.25rem 0.15rem 0.5rem 0.15rem !important;
    padding: 0.75rem 0.4rem !important;
    border-radius: 14px !important;
  }
  .mp-header-banner {
    padding: 0.85rem 0.6rem 1.85rem 0.6rem !important;
  }
  .mp-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.3rem !important;
    overflow: visible !important;
    margin-bottom: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }
  .mp-floating-card .client-content-pane {
    padding: 0.25rem 0 !important;
  }
  .mp-tab-btn {
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0.25rem !important;
    font-size: 0.76rem !important;
  }
}

/* ============================================================
   ESTILO HARMONIOSO — BOTÃO CLIENTE NA BARRA INFERIOR MOBILE
============================================================ */
.mob-nav-item.mob-center-focus-item {
  transform: none !important;
  position: relative !important;
  z-index: 1 !important;
}

.mob-nav-item.mob-center-focus-item .mob-icon-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  width: 28px !important;
  height: 28px !important;
}

.mob-nav-item.mob-center-focus-item.active .mob-icon-wrapper {
  background: rgba(27, 67, 36, 0.08) !important;
}

.construcao-theme .mob-nav-item.mob-center-focus-item.active .mob-icon-wrapper {
  background: rgba(163, 121, 34, 0.08) !important;
}

.mob-nav-item.mob-center-focus-item .mob-icon {
  stroke: #64748b !important;
  width: 20px !important;
  height: 20px !important;
}

.ambiental-theme .mob-nav-item.mob-center-focus-item.active .mob-icon {
  stroke: var(--accent-ambient) !important;
}

.construcao-theme .mob-nav-item.mob-center-focus-item.active .mob-icon {
  stroke: #a37922 !important;
}

.mob-nav-item.mob-center-focus-item .mob-nav-label {
  font-weight: 600 !important;
  color: #64748b !important;
  margin-top: 0 !important;
  font-size: 0.65rem !important;
}

.ambiental-theme .mob-nav-item.mob-center-focus-item.active .mob-nav-label {
  color: var(--primary-ambient) !important;
  font-weight: 700 !important;
}

.construcao-theme .mob-nav-item.mob-center-focus-item.active .mob-nav-label {
  color: #a37922 !important;
  font-weight: 700 !important;
}

/* ============================================================
   ESTILO NATIVO DE PERFIL (INSPIRADO NO APP DO MERCADO PAGO)
============================================================ */
.profile-app-container {
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.profile-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 12px;
  background: #ffffff;
  transition: background-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.profile-row-item:last-child {
  border-bottom: none;
}
.profile-row-item:active, .profile-row-item:hover {
  background-color: #f8fafc;
}
.profile-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #334155;
  flex-shrink: 0;
}
.profile-row-icon svg {
  width: 20px;
  height: 20px;
  stroke: #475569;
}
.profile-row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.profile-row-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.3;
}
.profile-row-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}
.profile-row-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #22c55e;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
}

/* --- MICRO-INTERAÇÕES & FEEDBACKS VISUAIS --- */
.profile-form-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 12px !important;
  width: 100% !important;
}
.profile-form-actions button {
  margin: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.profile-btn-action {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
}
.profile-btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.profile-btn-action:active {
  transform: translateY(1px) scale(0.98) !important;
}

#appToastContainer {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.app-toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 90vw;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.app-toast.success {
  background: rgba(230, 244, 234, 0.96);
  color: #137333;
  border: 1px solid #cce8d6;
}
.app-toast.error {
  background: rgba(252, 232, 230, 0.96);
  color: #c5221f;
  border: 1px solid #fad2cf;
}
.app-toast.info {
  background: rgba(232, 240, 254, 0.96);
  color: #1a73e8;
  border: 1px solid #d2e3fc;
}
@keyframes toastSlideDown {
  0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-app-container input:focus {
  outline: none;
  border-color: #1b4324 !important;
  box-shadow: 0 0 0 3px rgba(27, 67, 36, 0.12) !important;
}
.construcao-theme .profile-app-container input:focus {
  border-color: #a37922 !important;
  box-shadow: 0 0 0 3px rgba(163, 121, 34, 0.12) !important;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.profile-chevron {
  width: 18px;
  height: 18px;
  stroke: #94a3b8;
  flex-shrink: 0;
}

/* --- INDICADOR DE STATUS ONLINE MODERNO --- */
.online-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 30px !important;
  background: rgba(34, 197, 94, 0.08) !important;
  border: 1px solid rgba(34, 197, 94, 0.22) !important;
  color: #15803d !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  margin-left: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.06) !important;
}
.online-status-badge:hover {
  background: rgba(34, 197, 94, 0.16) !important;
  border-color: rgba(34, 197, 94, 0.38) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15) !important;
}
.online-pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  display: inline-block;
  flex-shrink: 0;
}
.online-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.6);
  animation: statusPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes statusPulse {
  0% { transform: scale(0.9); opacity: 0.85; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}


