/* 
 * Clinical Design System for nursingcare.in
 * Professional healthcare website styles
 */

/* ========================================
   CSS VARIABLES (Clinical Color Palette)
======================================== */
:root {
    /* Primary Colors */
    --primary-blue: #2C5B8B;
    --primary-teal: #4ECDC4;
    --primary-white: #FFFFFF;
    --light-grey: #F0F4F8;
    --text-dark: #333333;
    --text-light: #666666;
    
    /* Accent Colors */
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;
    
    /* Typography */
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 15px;
    
    /* Shadows */
    --card-shadow: 0 4px 20px rgba(44, 91, 139, 0.1);
    --button-shadow: 0 2px 10px rgba(44, 91, 139, 0.2);
}

/* ========================================
   GLOBAL STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-white);
}

/* Clean focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-teal);
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.navbar-brand {
    text-decoration: none;
}

.brand-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    padding: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    padding: 8px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.brand-text-container {
    display: flex;
    flex-direction: column;
}

.navbar-brand:hover {
    text-decoration: none;
}

/* ========================================
   RESPONSIVE LOGO SIZING
======================================== */
/* Large screens - Full size logos */
@media (min-width: 1200px) {
    .brand-logo {
        height: 90px; /* Even larger on big screens */
    }
    
    .footer-logo {
        height: 150px; /* Even larger footer logo on big screens */
    }
}

/* Medium screens - Standard size */
@media (max-width: 991.98px) {
    .brand-logo {
        height: 75px; /* Slightly smaller on tablets */
    }
    
    .footer-logo {
        height: 125px; /* Proportionally smaller footer logo */
    }
}

/* Small screens - Mobile optimized */
@media (max-width: 768px) {
    .brand-logo {
        height: 65px; /* Mobile-friendly size */
        padding: 4px; /* Less padding on mobile */
        border-radius: 6px; /* Smaller border radius */
    }
    
    .footer-logo {
        height: 110px; /* Mobile-friendly footer logo */
        padding: 6px; /* Less padding on mobile */
        border-radius: 8px; /* Smaller border radius */
    }
    
    .brand-text {
        font-size: 1.5rem !important; /* Slightly smaller on mobile */
    }
    
    .brand-tagline {
        font-size: 0.65rem; /* Even smaller tagline on mobile */
        margin-top: -3px;
    }
    
    .footer-brand-text {
        font-size: 1.25rem !important; /* Smaller footer brand text on mobile */
    }
}

/* Extra small screens - Compact logos */
@media (max-width: 576px) {
    .brand-logo {
        height: 60px; /* Compact size for very small screens */
    }
    
    .footer-logo {
        height: 100px; /* Compact footer logo */
    }
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--light-grey) 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.trust-indicator h3 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

/* Hero section call-to-action buttons */
.hero-buttons .btn {
    margin-bottom: 1rem;
    min-width: 200px; /* Consistent button widths */
    text-decoration: none !important;
}

/* Mobile responsive hero buttons */
@media (max-width: 768px) {
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        margin-right: 0 !important; /* Remove right margin on mobile */
    }
}

/* ========================================
   FOOTER STYLING
======================================== */
.footer-brand {
    align-items: center;
}

.footer-address {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-blue);
}

.contact-info a:hover {
    color: var(--primary-blue) !important;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-blue) !important;
    transition: color 0.3s ease;
}

/* Professional icon styling */
.bi {
    font-family: 'bootstrap-icons' !important;
    display: inline-block;
    vertical-align: middle;
}

/* General icon color consistency */
.text-success .bi,
.bi.text-success {
    color: var(--success-green) !important;
}

/* Ensure Bootstrap bg-opacity classes work properly */
.bg-primary.bg-opacity-10 {
    background-color: rgba(44, 91, 139, 0.1) !important;
}

.bg-primary.bg-opacity-15 {
    background-color: rgba(44, 91, 139, 0.15) !important;
}
.contact-info i {
    font-size: 1.1em;
    min-width: 20px;
}

.bi-whatsapp {
    color: #25D366 !important; /* WhatsApp green */
}

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-clock-fill {
    color: var(--primary-blue) !important;
}

/* Email copy button styling */
#copyEmailBtn {
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
}

#copyEmailBtn:hover {
    background: rgba(44, 91, 139, 0.1);
    color: var(--primary-blue);
    border: none;
    box-shadow: none;
}

#copyEmailBtn:focus {
    outline: none;
    box-shadow: none;
}

/* ========================================
   ICON STYLING
======================================== */
/* Base icon circle - ensures perfect circles */
.icon-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    position: relative;
    overflow: hidden;
    background-color: rgba(44, 91, 139, 0.08) !important;
    border: 2px solid rgba(44, 91, 139, 0.1) !important;
    transition: all 0.3s ease;
    
    /* Ensure perfect circles for small icons (default) */
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

/* Large icon circles (with inline style width: 80px) */
.icon-circle[style*="width: 80px"] {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
}

/* Icon centering for all circles */
.icon-circle .bi {
    display: block !important;
    line-height: 1 !important;
    font-size: 1.5rem !important;
    color: var(--primary-blue) !important;
    text-align: center;
    vertical-align: middle;
}

/* Large circles get larger icons */
.icon-circle[style*="width: 80px"] .bi {
    font-size: 2rem !important;
}

/* Hover effects for all icon circles */
.icon-circle:hover {
    background-color: rgba(44, 91, 139, 0.12) !important;
    border-color: rgba(44, 91, 139, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 91, 139, 0.15);
}

/* Feature and plan icons for other sections */
.feature-icon,
.plan-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    background-color: rgba(44, 91, 139, 0.08) !important;
    border: 2px solid rgba(44, 91, 139, 0.1) !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease;
}

.feature-icon .bi,
.plan-icon .bi {
    font-size: 1.25rem !important;
    color: var(--primary-blue) !important;
    line-height: 1 !important;
}

.feature-icon:hover,
.plan-icon:hover {
    background-color: rgba(44, 91, 139, 0.12) !important;
    border-color: rgba(44, 91, 139, 0.2) !important;
    transform: translateY(-1px);
}

/* Override Bootstrap padding that might interfere */
.icon-circle.p-3 {
    padding: 0 !important;
}

.icon-circle.p-4 {
    padding: 0 !important;
}

/* Ensure Bootstrap bg-opacity classes work properly */
.bg-primary.bg-opacity-10 {
    background-color: rgba(44, 91, 139, 0.08) !important;
}

.bg-primary.bg-opacity-15 {
    background-color: rgba(44, 91, 139, 0.12) !important;
}

/* Mobile responsive adjustments for perfect circles */
@media (max-width: 768px) {
    .icon-circle {
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
        min-height: 55px !important;
    }
    
    .icon-circle[style*="width: 80px"] {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
    }
    
    .icon-circle .bi {
        font-size: 1.25rem !important;
    }
    
    .icon-circle[style*="width: 80px"] .bi {
        font-size: 1.75rem !important;
    }
    
    .feature-icon,
    .plan-icon {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }
    
    .feature-icon .bi,
    .plan-icon .bi {
        font-size: 1.1rem !important;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-primary { color: var(--primary-blue) !important; }
.text-teal { color: var(--primary-teal) !important; }

/* Brand name text styling */
.brand-text {
    color: var(--primary-teal) !important;
    font-weight: 700;
    transition: color 0.3s ease;
}

.brand-text:hover {
    color: var(--primary-blue) !important;
}

.brand-tagline {
    color: var(--primary-blue) !important;
    font-size: 0.7rem;
    margin-top: -5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Footer brand text styling */
.footer-brand-text {
    color: var(--primary-teal) !important;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-brand-text:hover {
    color: var(--primary-blue) !important;
}
.bg-light-grey { background-color: var(--light-grey) !important; }

/* Override Bootstrap's bg-primary to use custom primary blue color */
.bg-primary { background-color: var(--primary-blue) !important; }

/* Override Bootstrap's bg-primary to use custom primary blue color */
.bg-primary { background-color: var(--primary-blue) !important; }
.clinical-shadow { box-shadow: var(--card-shadow); }

/* Section spacing */
.section {
    padding: var(--section-padding);
}

.section-light {
    background-color: var(--light-grey);
}

/* Container improvements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}


/* ================================
   CONTACT FORM STYLES
   ================================ */

/* Contact form specific styles */
.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control, 
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form .form-control:focus, 
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 91, 139, 0.1);
}

.contact-form .text-danger {
    color: #dc3545 !important;
}

.contact-form .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Coming soon page styles */
.coming-soon-section {
    background: linear-gradient(135deg, rgba(44, 91, 139, 0.05) 0%, rgba(73, 160, 120, 0.05) 100%);
}

/* Enhanced alert styles for contact form */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(78, 205, 196, 0.1);
    color: var(--secondary-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Contact information cards */
.contact-info .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ================================
   NAVIGATION ENHANCEMENTS
   ================================ */

/* ================================
   NAVIGATION ENHANCEMENTS
   ================================ */

/* Navigation spacing and mobile improvements */
.navbar-nav .nav-item:last-child {
    margin-left: 0.5rem;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item .btn {
        margin-top: 0.5rem;
        display: inline-block !important;
        text-align: center;
        width: auto;
    }
}

/* ================================
   SERVICE SECTIONS & CARDS
   ================================ */

/* Service card styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

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

.card-body {
    padding: 1.5rem;
}

/* Feature list styling */
.feature-list .feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-list .feature-item:last-child {
    border-bottom: none;
}

/* Service section spacing */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--light-grey);
}

/* Call-to-action section */
.cta-buttons {
    margin-bottom: 1rem;
}

.cta-buttons .btn {
    margin: 0.25rem;
    min-width: 180px;
}

/* Mobile CTA buttons */
@media (max-width: 768px) {
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        min-width: auto;
    }
}

/* Service section responsive styling handled in icon styling section above */

/* ================================
   GLOBAL BUTTON CONSISTENCY
   ================================ */

/* Override Bootstrap's btn-primary globally for brand consistency */
.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background-color: var(--primary-teal) !important;
    border-color: var(--primary-teal) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 91, 139, 0.3);
}

.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(44, 91, 139, 0.25);
}

/* Outline primary button consistency */
.btn-outline-primary {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
    transform: translateY(-1px);
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
}

/* Fallback colors for button consistency (in case CSS variables fail) */
.btn-primary {
    background-color: #2C5B8B !important;
    border-color: #2C5B8B !important;
}

.btn-primary:hover {
    background-color: #4ECDC4 !important;
    border-color: #4ECDC4 !important;
}

.btn-outline-primary {
    border-color: #2C5B8B !important;
    color: #2C5B8B !important;
}

.btn-outline-primary:hover {
    background-color: #2C5B8B !important;
    border-color: #2C5B8B !important;
}

/* ========================================
   MEDICAL DISCLAIMER MODAL
======================================== */
#medicalDisclaimerModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#medicalDisclaimerModal .modal-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    border-bottom: 3px solid var(--warning-orange);
}

#medicalDisclaimerModal .modal-header h5 {
    color: #856404 !important;
    font-size: 1.25rem;
    margin: 0;
}

#medicalDisclaimerModal .modal-body {
    background-color: #fefefe;
}

#medicalDisclaimerModal .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%) !important;
    border: 2px solid #ffeaa7 !important;
    border-radius: 8px;
    color: #856404 !important;
}

#medicalDisclaimerModal .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    border: 2px solid #f5c6cb !important;
    border-radius: 6px;
    color: #721c24 !important;
}

#medicalDisclaimerModal .modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 1.5rem 2rem;
    border-top: 1px solid #dee2e6;
}

#medicalDisclaimerModal .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-teal) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: var(--button-shadow);
    transition: all 0.3s ease;
}

#medicalDisclaimerModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 91, 139, 0.3);
}

/* Terms agreement section styling */
#medicalDisclaimerModal .modal-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 1rem 0;
}

#medicalDisclaimerModal .modal-body a {
    transition: all 0.2s ease;
}

#medicalDisclaimerModal .modal-body a:hover {
    color: var(--primary-teal) !important;
    text-decoration: underline !important;
}

/* Modal backdrop for professional appearance */
.modal-backdrop.show {
    opacity: 0.7 !important;
    background-color: #000 !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #medicalDisclaimerModal .modal-header,
    #medicalDisclaimerModal .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    #medicalDisclaimerModal .modal-body {
        padding: 1.5rem;
    }
    
    #medicalDisclaimerModal .modal-header h5 {
        font-size: 1.1rem;
    }
}
