﻿/* ==========================================================================
   ECOSEG - CSS Moderno e Responsivo (Bootstrap 5.3.3 & Bootstrap Icons v1.13.1)
   ========================================================================== */

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

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --eco-primary: #00695c;
  --eco-primary-hover: #004d40;
  --eco-primary-light: #e0f2f1;
  --eco-secondary: #00897b;
  --eco-accent: #26a69a;
  --eco-whatsapp: #25d366;
  --eco-whatsapp-hover: #1ebd5a;
  --eco-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --eco-card-radius: 1rem;
  --eco-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --eco-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --eco-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="light"] {
  --eco-bg-subtle: #f4fbf8;
  --eco-border-color: #e2e8f0;
  --eco-text-main: #132a24;
  --eco-text-muted: #59736b;
  --eco-card-bg: #ffffff;
  --eco-navbar-bg: rgba(255, 255, 255, 0.94);
  --eco-topbar-bg: #f8fafc;
  --bs-primary: #00695c;
  --bs-primary-rgb: 0, 105, 92;
  --bs-link-color: #00695c;
  --bs-link-hover-color: #004d40;
  --bs-body-bg: #ffffff;
  --bs-body-color: #1e293b;
}

[data-bs-theme="dark"] {
  --eco-bg-subtle: #0f1c19;
  --eco-border-color: #1e332c;
  --eco-text-main: #e2f1ec;
  --eco-text-muted: #94aca3;
  --eco-card-bg: #142420;
  --eco-navbar-bg: rgba(15, 28, 25, 0.94);
  --eco-topbar-bg: #0b1412;
  --bs-primary: #26a69a;
  --bs-primary-rgb: 38, 166, 154;
  --bs-link-color: #4db6ac;
  --bs-link-hover-color: #80cbc4;
  --bs-body-bg: #0b1412;
  --bs-body-color: #e2f1ec;
}

body {
  font-family: var(--font-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.eco-topbar {
  background-color: var(--eco-topbar-bg);
  border-bottom: 1px solid var(--eco-border-color);
  font-size: 0.875rem;
  padding: 0.4rem 0;
}

.eco-topbar a {
  color: var(--eco-text-muted);
  text-decoration: none;
  transition: var(--eco-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.eco-navbar {
  background-color: var(--eco-navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--eco-border-color);
  box-shadow: var(--eco-shadow-sm);
  padding: 0.75rem 0;
  transition: var(--eco-transition);
}

.eco-navbar .navbar-brand img {
  height: 48px;
  width: auto;
  transition: var(--eco-transition);
}

.eco-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  color: var(--bs-body-color);
  border-radius: 0.5rem;
  transition: var(--eco-transition);
}

.eco-navbar .nav-link:hover,
.eco-navbar .nav-link.active {
  color: var(--eco-primary) !important;
  background-color: rgba(0, 105, 92, 0.08);
}

.dropdown-menu {
  border-radius: 0.75rem;
  border: 1px solid var(--eco-border-color);
  box-shadow: var(--eco-shadow-md);
  padding: 0.5rem;
  animation: fadeInDown 0.2s ease-out;
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  transition: var(--eco-transition);
}

.dropdown-item:hover {
  background-color: rgba(0, 105, 92, 0.1);
  color: var(--eco-primary);
}

/* ==========================================================================
   Hero & Cards
   ========================================================================== */
.hero-carousel {
  border-radius: var(--eco-card-radius);
  overflow: hidden;
  box-shadow: var(--eco-shadow-md);
}

.hero-carousel img {
  border-radius: var(--eco-card-radius);
  object-fit: cover;
}

.home-hero-slide {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: #ffffff;
  text-decoration: none;
  background-color: #173a33;
}

.home-hero-slide > img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.home-hero-slide:hover > img {
  transform: scale(1.025);
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 29, 25, 0.92) 0%, rgba(7, 29, 25, 0.72) 42%, rgba(7, 29, 25, 0.08) 78%);
}

.home-hero-overlay-soft {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 20%, rgba(255, 255, 255, 0.08) 40%);
}

.home-hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(2rem, 6vw, 5.5rem);
  width: min(620px, 55%);
  transform: translateY(-50%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.home-hero-content-dark {
  color: #173a33;
  text-shadow: none;
}

.home-hero-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #173a33;
  background-color: #aed65c;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-hero-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-hero-content p {
  max-width: 570px;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
}

.home-hero-content .home-hero-detail {
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 767.98px) {
  .home-hero-slide {
    min-height: 520px;
    aspect-ratio: auto;
  }

  .home-hero-slide > img {
    object-position: center;
  }

  .home-hero-overlay,
  .home-hero-overlay-soft {
    background: linear-gradient(0deg, rgba(7, 29, 25, 0.96) 0%, rgba(7, 29, 25, 0.68) 56%, rgba(7, 29, 25, 0.08) 100%);
  }

  .home-hero-content,
  .home-hero-content-dark {
    top: auto;
    right: 1.5rem;
    bottom: 3.5rem;
    left: 1.5rem;
    width: auto;
    color: #ffffff;
    transform: none;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  }

  .home-hero-content h2 {
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

  .home-hero-content .home-hero-detail {
    display: none;
  }
}

.eco-card {
  background-color: var(--eco-card-bg);
  border: 1px solid var(--eco-border-color);
  border-radius: var(--eco-card-radius);
  box-shadow: var(--eco-shadow-sm);
  transition: var(--eco-transition);
  height: 100%;
}

.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eco-shadow-md);
  border-color: var(--eco-accent);
}

.service-icon-card {
  padding: 1.5rem 1rem;
  text-align: center;
  background-color: var(--eco-card-bg);
  border: 1px solid var(--eco-border-color);
  border-radius: var(--eco-card-radius);
  text-decoration: none;
  color: var(--bs-body-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: var(--eco-transition);
}

.service-icon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--eco-shadow-md);
  color: var(--eco-primary);
  border-color: var(--eco-accent);
}

.service-icon-card img,
.service-icon-card .service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 0.75rem;
  transition: var(--eco-transition);
}

[data-bs-theme="light"] .service-icon-card img {
  filter: invert(23%) sepia(20%) saturate(3000%) hue-rotate(130deg) brightness(90%) contrast(100%);
}

[data-bs-theme="dark"] .service-icon-card img {
  filter: invert(90%) sepia(10%) saturate(500%) hue-rotate(110deg) brightness(105%) contrast(100%);
}

.service-icon-card:hover img {
  transform: scale(1.12);
}

.service-icon-card p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* ==========================================================================
   Course / NR Badges & Tooltips
   ========================================================================== */
.course-card {
  border-radius: 0.85rem;
  overflow: hidden;
  transition: var(--eco-transition);
  border: 1px solid var(--eco-border-color);
  background: var(--eco-card-bg);
  cursor: pointer;
}

.course-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: var(--eco-transition);
}

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

.course-card:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   Form Styling & Feedback
   ========================================================================== */
.form-control, .form-select {
  border-radius: 0.65rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--eco-border-color);
  background-color: var(--eco-card-bg);
  color: var(--bs-body-color);
  font-size: 0.95rem;
  transition: var(--eco-transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--eco-primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 105, 92, 0.18);
  background-color: var(--eco-card-bg);
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--eco-text-main);
}

.btn-eco-primary {
  background-color: var(--eco-primary);
  border-color: var(--eco-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--eco-transition);
}

.btn-eco-primary:hover {
  background-color: var(--eco-primary-hover);
  border-color: var(--eco-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--eco-shadow-sm);
}

.btn-eco-primary:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ==========================================================================
   Floating Actions (WhatsApp, Theme Switcher, Back to top)
   ========================================================================== */
.eco-floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.btn-floating-whats {
  background-color: var(--eco-whatsapp);
  color: #ffffff;
  border-radius: 2rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  border: none;
  text-decoration: none;
  transition: var(--eco-transition);
  animation: pulse-whats 3s infinite;
}

.btn-floating-whats:hover {
  background-color: var(--eco-whatsapp-hover);
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

@keyframes pulse-whats {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-theme-toggle {
  background-color: var(--eco-card-bg);
  border: 1px solid var(--eco-border-color);
  color: var(--bs-body-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--eco-shadow-md);
  transition: var(--eco-transition);
}

.btn-theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--eco-primary);
  color: var(--eco-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.eco-footer {
  background-color: var(--eco-topbar-bg);
  border-top: 1px solid var(--eco-border-color);
  margin-top: auto;
  padding: 3rem 0 1.5rem;
}

.eco-footer h5 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--eco-primary);
}

.eco-footer a {
  color: var(--eco-text-muted);
  text-decoration: none;
  transition: var(--eco-transition);
}

.eco-footer a:hover {
  color: var(--eco-primary);
  padding-left: 3px;
}

.eco-footer-bottom {
  border-top: 1px solid var(--eco-border-color);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--eco-text-muted);
}

/* ==========================================================================
   Animations & Toast
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-container {
  z-index: 1090;
}

.eco-toast {
  border-radius: 0.75rem;
  border: none;
  box-shadow: var(--eco-shadow-lg);
}

/* Client logos slider item */
.client-logo-box {
  background: var(--eco-card-bg);
  border: 1px solid var(--eco-border-color);
  border-radius: 0.75rem;
  padding: 0.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--eco-transition);
}

.client-logo-box:hover {
  transform: scale(1.05);
  box-shadow: var(--eco-shadow-sm);
  border-color: var(--eco-primary);
}

.client-logo-box img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
}
