/* 
   Luvya Ambulance Services - Main Stylesheet
   Clean, Professional, and Responsive Design
*/

:root {
    /* New palette: Calmer blue primary, soft background */
    --primary-color: #2e2f7a; /* Bootstrap blue */
    --primary-dark: #2e2f7a;
    --secondary-color: #6c757d;
    --success-color: #20c997;
    --danger-color: #dc3545; /* keep for alerts only */
    --light-bg: #f4f7fb; /* soft page background */
    --dark-bg: #343a40;
    --white: #ffffff;
    --text-primary:#2e2f7a;
    --text-dark: #1f2937; /* slightly darker text for contrast */
    --text-muted: #ffffff;
    --border-color: #e6edf3;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.12);
}

/* Softer primary gradient for large background sections */
.bg-primary-gradient {
    background: linear-gradient(135deg, #2e2f7a 0%, rgb(246 144 72) 100%);
}

.text-primary{
    color: var(--text-primary)!important;;
}

/* Slightly muted solid primary */
.bg-primary-solid {
    background-color: rgba(13,110,253,0.98);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color) !important;
}

p {
    margin-bottom: 1rem;
}

/* Navigation Bar */
.navbar {
    padding: 1rem 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand {
    color: var(--primary-color) !important;
}

/* Logo sizing: desktop 70px, mobile 40px */
.brand-logo {
    height: 70px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .brand-logo {
        height: 40px;
        margin-right: 8px;
    }
}

.navbar-nav .nav-link {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="rgba(255,255,255,0.05)" width="1200" height="600"/></svg>');
    pointer-events: none;
}

/* Cards & Sections */
.card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.service-card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Stat Card */
.stat-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 94, 215, 0.25);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--white);
    color: var(--text-dark);
    border-top: 3px solid var(--primary-color);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-dark);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><rect fill="rgba(255,255,255,0.03)" width="1200" height="300"/></svg>');
    pointer-events: none;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Hover Links */
.hover-link {
    position: relative;
}

.hover-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.hover-link:hover::after {
    width: 100%;
}

/* Sections Padding */
section {
    padding: 5rem 0;
}

section.py-3 {
    padding: 1rem 0;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom Backgrounds */
.bg-light-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Scroll Smooth */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Badge Styling */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Text Utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-uppercase {
    letter-spacing: 0.5px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
}

/* Gallery image uniform sizing */
.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

@media (max-width: 576px) {
    .gallery-img {
        height: 140px;
    }
}

.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  width: 130px;
  padding: 12px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.float-btn:hover {
  transform: scale(1.05);
}

.whatsapp {
  background-color: #25D366;
}

.call {
  background-color: #007BFF;
}

@media (max-width: 600px) {
  .float-btn {
    width: 110px;
    font-size: 14px;
    padding: 10px;
  }
}

