/* polaar - Custom Styles */

:root {
  /* Colors based on the React design system */
  --color-primary: #507993;
  --color-primary-dark: #2e4a5e;
  --color-primary-light: #a4c4d4;
  --color-background: #f7f9fb;
  --color-foreground: #1a2332;
  --color-accent: #a4c4d4;
  --color-muted: #e8f0f5;
  --color-muted-foreground: #2e4a5e;
  --color-text-dark: #1a2332;
  --color-text-medium: #1a2332;
  --color-text-light: #97b1cc;
  --color-text-gray: #c7daff;
  
  /* Shadows */
  --shadow-elegant: 0 8px 30px -10px rgba(80, 121, 147, 0.15);
  --shadow-hover: 0 12px 40px -10px rgba(80, 121, 147, 0.25);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  /* background-color: var(--color-background); */
  color: var(--color-foreground);
  line-height: 1.6;
  margin-top: 80px;
}

/* Quando a navbar administrativa estiver visível, aumente o espaçamento do topo
   para acomodar as duas barras fixas (principal + admin) sem sobrepor conteúdo */
body.admin-navbar-visible {
  margin-top: 130px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

p, li {
  color: var(--color-text-medium);
}

.lead {
  color: var(--color-text-light) !important;
}

.text-muted {
  color: var(--color-muted-foreground) !important;
}

Navbar Styles
.navbar-custom {
  transition: var(--transition-smooth);
  padding: 1rem 0;

  background-color: rgba(247, 249, 251, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-elegant);
}

.navbar-custom.scrolled {
 
  background-color: rgba(247, 249, 251, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-elegant);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-medium) !important;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary) !important;
}

.navbar-brand span {
  color: var(--color-text-dark) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Mobile navbar (menu sanduíche) - fundo branco ao expandir */
@media (max-width: 991.98px) {
  .navbar-custom {
    background-color: #ffffff !important;
    box-shadow: var(--shadow-elegant);
  }
  .navbar-custom .navbar-collapse {
    background-color: #ffffff;
    border-top: 1px solid #e8f0f5;
    padding: 0.75rem 0.5rem;
  }
  .navbar-custom .nav-link {
    color: #1a2332 !important;
    padding: 0.6rem 0.75rem !important;
  }
  .navbar-custom .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e8f0f5;
    box-shadow: var(--shadow-elegant);
  }
  .navbar-light .navbar-toggler {
    border-color: rgba(26, 35, 50, 0.2);
  }
}

/* Esconder completamente a navbar administrativa secundária no mobile */
@media (max-width: 991.98px) {
  #admin-navbar-secondary { display: none !important; }
  /* Quando a admin navbar estiver oculta no mobile, não precisamos do offset extra */
  body.admin-navbar-visible { margin-top: 80px; }
}

/* Buttons */
.btn-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-elegant);
}

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

.btn-outline-custom {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: var(--transition-smooth);
}

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

/* Gradient Backgrounds */
.gradient-hero {
  background: linear-gradient(180deg, #f7f9fb 0%, #e8f0f5 100%);
}

.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.gradient-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f5f8 100%);
}

/* Cards */
.card-custom {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
  overflow: hidden;
}

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

.card-custom .card-body h3,
.card-custom .card-body h4,
.card-custom .card-body h5 {
  color: var(--color-text-light) !important;
}

.card-custom .card-body p,
.card-custom .card-body li {
  color: var(--color-text-light) !important;
}

/* Badge */
.badge-custom {
  background-color: rgba(80, 121, 147, 0.1);
  color: var(--color-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* padding-top: 80px; */
}

.hero-bg-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
}

.hero-bg-1 {
  top: 25%;
  left: 25%;
  width: 16rem;
  height: 16rem;
  background-color: var(--color-primary);
  animation: pulse 4s ease-in-out infinite;
}

.hero-bg-2 {
  bottom: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background-color: var(--color-accent);
  animation: pulse 4s ease-in-out infinite 2s;
}

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator-box {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding: 4px;
}

.scroll-indicator-dot {
  width: 6px;
  height: 12px;
  background-color: var(--color-primary);
  border-radius: 3px;
}

/* Stats */
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.stat-number + p {
  color: var(--color-text-medium) !important;
}

/* Icon Boxes */
.icon-box {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: rgba(80, 121, 147, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.card-custom:hover .icon-box {
  background-color: rgba(80, 121, 147, 0.2);
}

/* Footer */
.footer-custom {
  background-color: var(--color-primary-dark);
  color: white;
}

.footer-custom h5 {
  color: white !important;
  font-weight: 700;
}

.footer-custom p {
  color: var(--color-text-light) !important;
}

.footer-custom .text-light {
  color: var(--color-text-light) !important;
}

.footer-custom ul.list-unstyled li {
  color: var(--color-text-light) !important;
}

.footer-link {
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: white;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background-color: rgba(80, 121, 147, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: white;
  text-decoration: none;
}

.social-icon:hover {
  background-color: rgba(80, 121, 147, 0.3);
  color: white;
}

/* Testimonials */
.testimonial-card {
  background-color: rgba(80, 121, 147, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
}

.testimonial-card p,
.testimonial-card li {
  color: var(--color-text-light) !important;
}

.testimonial-quote {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 3rem;
  color: rgba(164, 196, 212, 0.2);
}

/* Mobile Menu */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Forms */
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(80, 121, 147, 0.25);
}

/* Portfolio Filter */
.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  border: none;
  background-color: var(--color-muted);
  color: var(--color-text-gray);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-elegant);
}

/* Process Steps */
.process-step {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: rgba(80, 121, 147, 0.1);
  color: var(--color-primary);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--color-primary);
}

.accordion-item[style*="rgba(80, 121, 147"] p,
.accordion-item[style*="rgba(80, 121, 147"] li,
.accordion-body p,
.accordion-body li {
  color: var(--color-text-light) !important;
}

/* Trust Signals */
.trust-signal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

/* Additional Text Styling for Better Readability */
ul.list-unstyled li {
  color: var(--color-text-medium);
}

.small {
  color: var(--color-text-light) !important;
}

.fw-medium,
.fw-bold {
  color: var(--color-text-light);
}

/* Ensure all paragraph texts are readable */
section p {
  color: var(--color-text-medium);
}

section h1, section h2, section h3, section h4 {
  color: var(--color-text-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0 3rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  /* Footer Mobile Improvements */
  .footer-custom {
    padding: 3rem 0 2rem !important;
  }
  
  .footer-custom .col-lg-4,
  .footer-custom .col-lg-2,
  .footer-custom .col-lg-3 {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .footer-custom .col-lg-4 {
    margin-bottom: 3rem;
  }
  
  /* Brand section centered on mobile */
  .footer-custom .col-lg-4 a {
    justify-content: center;
  }
  
  .footer-custom .col-lg-4 p {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 1rem;
  }
  
  /* Social icons centered with better spacing */
  .footer-custom .d-flex.gap-2 {
    justify-content: center;
    gap: 1rem !important;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  /* Footer headings */
  .footer-custom h5 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem !important;
    font-weight: 700;
  }
  
  /* Footer lists */
  .footer-custom ul.list-unstyled li {
    margin-bottom: 0.75rem !important;
    font-size: 0.95rem;
  }
  
  .footer-link {
    font-size: 0.95rem;
  }
  
  /* Copyright section */
  .footer-custom .row.align-items-center .col-md-6 {
    text-align: center !important;
  }
  
  .footer-custom .row.align-items-center p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem !important;
  }
  
  /* Divider */
  .footer-custom hr {
    margin: 2.5rem 0 2rem !important;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .footer-custom {
    padding: 2.5rem 0 1.5rem !important;
  }
  
  .footer-custom .col-lg-4 {
    margin-bottom: 2.5rem;
  }
  
  .footer-custom h5 {
    font-size: 1rem;
  }
  
  .footer-custom .col-lg-4 p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  
  .social-icon {
    width: 42px;
    height: 42px;
  }
  
  .footer-custom ul.list-unstyled li {
    font-size: 0.9rem;
  }
  
  .footer-custom .row.align-items-center p {
    font-size: 0.8rem;
  }
  
  /* Logo size adjustment */
  .footer-custom .col-lg-4 img {
    height: 35px !important;
  }
  
  .footer-custom .col-lg-4 span.fs-4 {
    font-size: 1.4rem !important;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #2e4a5e;
    --color-foreground: #ffffff;
    --color-muted: #3d5a6f;
  }
}

