/* Estilos principais para homepage moderna */
:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2733;
  background: #f4f9f7;
}


body {
  margin: 0;
  background: linear-gradient(180deg, #f3faf6 0%, #ffffff 100%);
}

.hero-section {
  background: linear-gradient(150deg, #0a4f42 0%, #1d7a67 45%, #2d9f7d 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.hero-section::before {
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.18);
  top: -60px;
  right: 10%;
}

.hero-section::after {
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.12);
  bottom: -50px;
  left: 8%;
}

.navbar-brand.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff !important;
}

.nav-logo {
  max-height: 42px;
  width: auto;
}

.hero-heading {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 1.05;
}

.hero-subtitle {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #e7f7ee;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.hero-card {
  border-radius: 30px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  color: #ffffff;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.hero-card:hover {
  transform: translateY(-8px);
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.stat-box {
  min-width: 120px;
  background: rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.section-label {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1f7f60;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.08;
  color: #12222d;
}

.feature-card {
  border-radius: 24px;
  background: #ffffff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(20, 70, 70, 0.08);
}

.gallery-section {
  background: #f8fcf8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(20, 70, 70, 0.08);
  min-height: 260px;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.logo-strip-section {
  background: transparent;
}

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: #ffffff;
  padding: 1.5rem 1.25rem;
  border-radius: 24px;
}

.logo-strip img {
  max-height: 72px;
  width: auto;
  display: block;
}

.logo-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9f7f1;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-section {
  overflow: hidden;
}

.feature-media {
  min-height: 360px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(43, 138, 62, 0.82) 0%, rgba(98, 193, 143, 0.78) 100%),
    url('../img/folha-timbrada.png') center/cover no-repeat;
  position: relative;
}

.feature-media::before,
.feature-media::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.38;
  pointer-events: none;
}

.feature-media::before {
  width: 140px;
  height: 140px;
  top: 20px;
  right: 15px;
  background: rgba(255,255,255,0.18);
}

.feature-media::after {
  width: 220px;
  height: 220px;
  bottom: -40px;
  left: -30px;
  background: rgba(255,255,255,0.12);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  color: #4b5d67;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #1f7f60;
  font-size: 1.3rem;
  line-height: 1;
}

.cta-section {
  background: linear-gradient(135deg, #26614b 0%, #1f7f60 100%);
}

.cta-section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.footer {
  background: #ffffff;
}

.footer p {
  color: #66707b;
}

.animate-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.animate-float {
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 991.98px) {
  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .hero-card {
    margin-top: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .logo-strip {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-heading {
    font-size: 2.4rem;
  }

  .feature-media {
    min-height: 260px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Chat styles */
.chat-window { background: #ffffff; border-radius: 12px; padding: 12px; }
.chat-window .msg-admin, .chat-window .msg-me { background: linear-gradient(90deg,#e6ffed,#dff9e8); display: inline-block; max-width: 85%; }
.chat-window .msg-client, .chat-window .msg-sup { background: #f7f7f9; display: inline-block; max-width: 85%; }
.chat-window .msg-admin, .chat-window .msg-client, .chat-window .msg-me, .chat-window .msg-sup { padding: 8px 12px; border-radius: 12px; margin: 6px 0; }
.chat-window .msg-admin { margin-left: auto; text-align: right; }
.chat-window .msg-me { margin-left: auto; text-align: right; }
.chat-window .msg-client, .chat-window .msg-sup { margin-right: auto; text-align: left; }
.chat-window .small { color: #66707b; font-size: 0.72rem; }

.chat-list .list-group-item { cursor: pointer; }
.chat-list .badge { min-width: 26px; }

/* responsive chat inputs */
@media (max-width: 576px) {
  .chat-window { max-height: 55vh; }
}

/* avatar */
.chat-window .avatar { width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:600; color:#fff; }
.chat-window .avatar.admin { background:#0d6efd; }
.chat-window .avatar.client { background:#6c757d; }

/* Client dashboard responsive and modern styles */
#clientArea .card { border-radius: 14px; box-shadow: 0 10px 30px rgba(31,50,45,0.06); }
#clientArea .card p { margin-bottom: 0.6rem; color: #233034; }
#clientArea .card h6 { margin-bottom: 0.75rem; }
#clientArea .img-fluid { border-radius: 10px; }

/* Layout adjustments */
#clientArea .row + .row { margin-top: 1rem; }

/* Chat panel styling */
#clientArea .chat-window { background: #fff; border-radius: 12px; padding: 12px; box-shadow: inset 0 1px 0 rgba(0,0,0,0.02); }
#clientArea .chat-window .msg-me { background: linear-gradient(90deg,#dff7ee,#cfefe0); margin-left:auto; }
#clientArea .chat-window .msg-sup { background: #f7f7fb; margin-right:auto; }
#clientArea .chat-window .avatar { width:36px; height:36px; font-size:0.9rem; }

/* Buttons and controls */
#clientArea .btn { border-radius: 10px; padding: 0.45rem 0.8rem; }
#clientArea .btn-primary { background: linear-gradient(180deg,#178a63,#0f7a55); border: none; box-shadow: 0 8px 18px rgba(15,122,85,0.12); }
#clientArea .btn-outline-info { border-radius: 10px; }

/* Responsive: stack columns on small screens and expand controls */
@media (max-width: 767.98px) {
  #clientArea .col-md-8, #clientArea .col-md-4 { flex: 0 0 100%; max-width: 100%; }
  #clientArea .d-flex.gap-2 { flex-direction: column-reverse; }
  #clientArea .d-flex.gap-2 textarea.form-control { width: 100%; }
  #clientArea .d-flex.gap-2 .btn { width: 100%; }
  #clientArea .card.p-3.text-center img { max-width: 140px; margin: 0 auto; }
  #clientArea .chat-window { max-height: 45vh; }
  /* hide inline chat on small screens (use modal) */
  #clientChatRow { display: none !important; }
}

/* Message animation helpers */
.animate-target {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.animate-target.visible {
  opacity: 1;
  transform: none;
}

/* File input small styling inside chat */
input[type="file"] {
  border-radius: 8px;
}

.btn-floating {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* subtle card elevation */
.chat-card { border-radius: 14px; box-shadow: 0 12px 30px rgba(31,50,45,0.06); }


@media (max-width: 420px) {
  #clientArea .hero-heading { font-size: 1.6rem; }
  #clientArea .chat-window { padding: 10px; }
  #clientArea .avatar { width:32px; height:32px; font-size:0.85rem; }
}

/* Modern small UI tweaks */
#clientArea .card .small { color: #6b7a73; }
#clientArea .badge { font-weight:600; }
