/* Custom CSS para Funerária Catiguá */

:root {
  --fc-red: #c40000;
  --fc-blue: #0046b3;
  --fc-yellow: #f9b233;
  --fc-yellow-light: #fde2a7;
  --fc-bg: #f9fafb;
  --fc-white: #ffffff;
  --fc-text: #212529;
  --fc-text-secondary: #6c757d;
  --fc-success: #198754;
}

/* Typography */
body {
  font-family: "Inter", sans-serif;
  color: var(--fc-text);
  background-color: var(--fc-bg);
  padding-top: 70px;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 80px;
  }

  .hero-section .hero-content {
    text-align: center;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn {
  font-family: "Poppins", sans-serif;
}

h1,
h2,
h3 {
  font-weight: 600;
}

h4,
h5,
h6 {
  font-weight: 500;
}

/* Custom Colors */
.text-primary {
  color: var(--fc-red) !important;
}

.bg-primary {
  background-color: var(--fc-red) !important;
}

.btn-primary {
  background-color: var(--fc-red);
  border-color: var(--fc-red);
  font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #a30000;
  border-color: #a30000;
}

.btn-outline-primary {
  color: var(--fc-red);
  border-color: var(--fc-red);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--fc-red);
  border-color: var(--fc-red);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(253, 226, 167, 0.15) 0%, rgba(249, 178, 51, 0.15) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

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

/* Card Hover Effects */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

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

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

/* Badges */
.badge.bg-warning {
  background-color: var(--fc-yellow) !important;
  color: var(--fc-text) !important;
  font-weight: 500;
}

/* Filter Buttons */
.filter-btn.active {
  background-color: var(--fc-red) !important;
  border-color: var(--fc-red) !important;
}

/* Forms */
.form-control:focus,
.form-select:focus {
  border-color: var(--fc-red);
  box-shadow: 0 0 0 0.2rem rgba(196, 0, 0, 0.25);
}

.form-check-input:checked {
  background-color: var(--fc-red);
  border-color: var(--fc-red);
}

/* Alerts */
.alert-info {
  background-color: #fff9e6;
  border-color: var(--fc-yellow);
  color: var(--fc-text);
}

.alert-warning {
  background-color: rgba(249, 178, 51, 0.1);
  border-color: var(--fc-yellow);
  color: var(--fc-text);
}

/* Success Messages */
.alert-success {
  background-color: rgba(25, 135, 84, 0.1);
  border-color: var(--fc-success);
  color: var(--fc-success);
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: rgba(196, 0, 0, 0.1);
  color: var(--fc-red);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(196, 0, 0, 0.25);
}

/* Table */
.table th {
  border-bottom: 2px solid var(--fc-red);
  color: var(--fc-red);
}

/* Footer */
footer {
  background-color: var(--fc-text) !important;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section .display-4 {
    font-size: 2rem;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--fc-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a30000;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success states */
.success-message {
  background-color: #fff9e6;
  border: 1px solid var(--fc-yellow);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.success-message .bi-check-circle {
  color: var(--fc-success);
}

/* Partner cards specific styling */
.parceiro-card .card {
  border-left: 4px solid var(--fc-red);
}

.parceiro-card .badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
}

/* Modal customizations */
.modal-header {
  border-bottom: 2px solid var(--fc-red);
}

.modal-title {
  color: var(--fc-red);
}

/* Utility classes */
.text-fc-red {
  color: var(--fc-red) !important;
}

.text-fc-blue {
  color: var(--fc-blue) !important;
}

.text-fc-yellow {
  color: var(--fc-yellow) !important;
}

.bg-fc-red {
  background-color: var(--fc-red) !important;
}

.bg-fc-blue {
  background-color: var(--fc-blue) !important;
}

.bg-fc-yellow {
  background-color: var(--fc-yellow) !important;
}

.border-fc-red {
  border-color: var(--fc-red) !important;
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  .container {
    max-width: none !important;
  }
}
