/* ==========================================
   ROTARY CRISTALINA - ESTILOS MODERNOS
   Atualizado: 2026-04-06
   ========================================== */

/* Paleta de Cores Rotary Moderna */
:root {
  --rotary-blue: #0C3C84;
  --rotary-blue-light: #17458f;
  --rotary-blue-dark: #072b5a;
  --rotary-gold: #F7A81B;
  --rotary-gold-light: #ffc94d;
  --rotary-gold-dark: #d48f0b;
  --rotary-deep: #051e3d;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* ==========================================
   CLASSES UTILITÁRIAS DE COR
   ========================================== */
.bg-rotary-blue { 
  background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-blue-dark) 100%) !important;
}
.bg-rotary-gold { 
  background: linear-gradient(135deg, var(--rotary-gold) 0%, var(--rotary-gold-dark) 100%) !important;
}
.bg-rotary-deep { 
  background: linear-gradient(180deg, var(--rotary-blue-dark) 0%, var(--rotary-deep) 100%) !important;
}

.btn-rotary-blue { 
  background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-blue-light) 100%);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.btn-rotary-blue:hover { 
  background: linear-gradient(135deg, var(--rotary-blue-light) 0%, var(--rotary-blue) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-rotary-gold { 
  background: linear-gradient(135deg, var(--rotary-gold) 0%, var(--rotary-gold-dark) 100%);
  color: var(--text-dark);
  border: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.btn-rotary-gold:hover { 
  background: linear-gradient(135deg, var(--rotary-gold-light) 0%, var(--rotary-gold) 100%);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-rotary {
  border: 2px solid var(--rotary-blue);
  color: var(--rotary-blue);
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-rotary:hover {
  background: var(--rotary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==========================================
   NAVBAR MODERNA
   ========================================== */
.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.navbar-brand img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05) rotate(-5deg);
}

.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rotary-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 80%;
}

.navbar .nav-link:hover {
  background: rgba(255,255,255,0.1);
}

.navbar .nav-link.active {
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.3);
  padding: 0.5rem;
  border-radius: var(--radius);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(247, 168, 27, 0.3);
}

/* Botões da navbar */
.navbar .btn {
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar .btn:hover {
  transform: translateY(-2px);
}

/* ==========================================
   HERO SECTION MODERNA
   ========================================== */
.hero {
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transform: scale(1.1);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1.2); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 43, 90, 0.85) 0%,
    rgba(12, 60, 132, 0.7) 50%,
    rgba(7, 43, 90, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero .lead {
  font-size: 1.35rem;
  font-weight: 400;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* ==========================================
   CARDS MODERNOS
   ========================================== */
.card {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

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

.card-body {
  padding: 1.75rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

/* ==========================================
   SEÇÕES
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--rotary-blue), var(--rotary-gold));
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ==========================================
   FOOTER MODERNO
   ========================================== */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rotary-blue), var(--rotary-gold), var(--rotary-blue));
}

footer h5,
footer h6 {
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--white);
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

footer a:hover {
  color: var(--rotary-gold);
  transform: translateX(4px);
}

footer ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

/* ==========================================
   TABELAS
   ========================================== */
.table-rotary {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-rotary thead {
  background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-blue-dark) 100%);
  color: var(--white);
}

.table-rotary th {
  font-weight: 600;
  padding: 1rem;
  border: none;
}

.table-rotary td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table-rotary tbody tr:hover {
  background: rgba(12, 60, 132, 0.03);
}

/* ==========================================
   FORMULÁRIOS MODERNOS
   ========================================== */
.form-control {
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--rotary-blue);
  box-shadow: 0 0 0 4px rgba(12, 60, 132, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-floating > .form-control {
  border-radius: var(--radius-lg);
}

/* ==========================================
   ALERTAS E BADGES
   ========================================== */
.alert {
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.badge {
  padding: 0.5em 1em;
  font-weight: 600;
  border-radius: 50px;
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

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

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

/* ==========================================
   SCROLLBAR PERSONALIZADA
   ========================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rotary-blue), var(--rotary-blue-dark));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--rotary-blue-light), var(--rotary-blue));
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  .navbar-collapse {
    background: rgba(7, 43, 90, 0.98);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar .btn {
    margin-top: 0.5rem;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 60vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* ==========================================
   UTILITÁRIOS
   ========================================== */
.content-wrapper {
  min-height: 50vh;
}

.text-gradient {
  background: linear-gradient(135deg, var(--rotary-blue) 0%, var(--rotary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(12, 60, 132, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(247, 168, 27, 0.03) 0%, transparent 50%);
}

.shadow-rotary {
  box-shadow: 0 10px 40px -10px rgba(12, 60, 132, 0.2);
}

/* Hover effects para imagens */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.05);
}
