/* Basic custom styles for Resue24 site */
:root {
  --brand: #d62828;
  --brand-dark: #b01e1e;
  --brand-light: #ff4d4d;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #212529;
}
.navbar-toggler {
    padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: #d62828 !important;
    background-color: #0c3a6e !important;
    border: 1px solid #145DA1 !important;
    transition: var(--bs-navbar-toggler-transition);
}

/* Navbar */
.navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: #d62828;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #1a1a1a !important;
}

.nav-link.active {
  color: #1a1a1a !important;
  font-weight: 600;
}

/* Cards */
.card {
  border: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Header */
header {
  background: linear-gradient(135deg, #2b2b2b 0%, #111 100%);
  padding-bottom: 3rem;
}

/* Hero Section with Background Image */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/rescue-ambulace-service.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  margin: 2rem 0;
  padding: 3rem 2rem;
}

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(214, 40, 40, 0.1);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(214, 40, 40, 0.2);
  border-color: var(--brand);
}

.stat-icon {
  font-size: 3rem;
  line-height: 1;
}

.stat-card h2 {
  color: var(--brand);
  transition: all 0.3s ease;
}

.stat-card:hover h2 {
  transform: scale(1.1);
}

/* Why Choose Us Section */
.why-choose-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/rescue-ambulace-service.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  color: white;
}

.why-choose-section h2 {
  color: white;
}

.why-choose-section .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.why-choose-section .text-danger {
  color: #ff6b6b !important;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/rescue-ambulace-service.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  color: white;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer Section */
.footer-section {
  background: linear-gradient(135deg, #145DA1 0%, #0c3a6e 100%);
}

/* Impact Section */
.impact-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/rescue-ambulace-service.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
}

.footer-section h4,
.footer-section h5 {
  color: white;
  font-weight: 600;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: white;
  padding-left: 5px;
}

.footer-section .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.footer-section .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.footer-section .btn-danger {
  background-color: var(--brand);
  border-color: var(--brand);
}

.footer-section .btn-danger:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.footer-section .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.footer-section .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-section .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--brand);
  color: white;
}

.footer-section hr {
  border-color: rgba(255, 255, 255, 0.2);
}

.lead {
  color: #d62828;
  font-weight: bold;
}

/* Footer */
footer {
  font-size: 0.9rem;
}

/* Buttons */
.btn-danger {
  background-color: var(--brand);
  border-color: var(--brand);
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-danger {
  color: var(--brand);
  border-color: var(--brand);
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background-color: var(--brand);
  border-color: var(--brand);
}

/* Team members */
.team-member img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Timeline */
.timeline {
  padding-left: 1rem;
}

.timeline li {
  margin-bottom: 0.5rem;
}

/* Fleet cards */
.fleet .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Forms */
.card p small {
  color: #6c757d;
}

/* Form enhancements */
.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(214, 40, 40, 0.25);
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: var(--brand);
  color: white;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(214, 40, 40, 0.25);
}

/* Section spacing */
section {
  scroll-margin-top: 80px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Image enhancements */
img {
  max-width: 100%;
  height: auto;
}

/* Text utilities */
.text-danger-custom {
  color: var(--brand) !important;
}

.bg-danger-custom {
  background-color: var(--brand) !important;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  header .display-5 {
    font-size: 1.2rem;
  }

  header .display-4 {
    font-size: 1.5rem;
  }

  .card-img-top {
    height: 150px;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .no-print {
    display: none !important;
  }

  .card {
    break-inside: avoid;
  }
}

/* Floating Buttons */
.floating-buttons{
    position:fixed;
    right:25px;
    bottom:25px;
    display:flex;
    flex-direction:column;
    gap:15px;
    z-index:9999;
}

.floating-btn{
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    color:#fff;
    font-size:26px;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    transition:.3s;
    animation:pulse 2s infinite;
}

.call-btn{
    background:#e63946;
}

.call-btn:hover{
    background:#c1121f;
    transform:scale(1.12);
    color:#fff;
}

.whatsapp-btn{
    background:#25D366;
}

.whatsapp-btn:hover{
    background:#128C7E;
    transform:scale(1.12);
    color:#fff;
}

/* Pulse Animation */
@keyframes pulse{

    0%{
        box-shadow:0 0 0 0 rgba(37,211,102,.6);
    }

    70%{
        box-shadow:0 0 0 18px rgba(37,211,102,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }

}

/* Mobile */
@media(max-width:768px){

    .floating-btn{
        width:55px;
        height:55px;
        font-size:22px;
    }

    .floating-buttons{
        right:15px;
        bottom:15px;
        gap:12px;
    }

}
@media(max-width:423px){

  .self-margin{
    margin-bottom: 20px;
  }


}
