/* ======================================================
   AMRescue – Clean, Professional & Trustworthy UI
   Phase: Free Tools + Professional Services
   ====================================================== */

:root {
    --primary: #0a58ca;
    --primary-dark: #0a58ca;
    --accent: #1e88e5;
    --success: #198754;
    --danger: #dc3545;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --soft-bg: #f4f8ff;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ------------------ Base ------------------ */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--soft-bg);
    color: #2c2c2c;
    line-height: 1.65;
    margin: 0;
    padding-top: 76px; /* For fixed navbar */
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ------------------ Professional Navbar ------------------ */
.navbar {
    background: #ffffff !important;
    box-shadow: var(--shadow-light);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-brand {
    padding: 0;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    margin: 0 5px;
    transition: var(--transition);
    border-radius: 4px;
    padding: 8px 15px !important;
}

.nav-link:hover, 
.nav-link.active {
    background-color: rgba(10, 88, 202, 0.1);
    color: var(--primary) !important;
}

.dropdown-item {
    padding: 10px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(10, 88, 202, 0.1);
    color: var(--primary);
}

/* ------------------ Hero Sections ------------------ */
.hero {
    background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 70%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 820px;
    margin: 0 auto 2.2rem;
    color: #555;
}

.hero-img {
    max-height: 420px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.hero-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ------------------ Buttons ------------------ */
.btn-start {
    padding: 1rem 2.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(13,110,253,0.3);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ------------------ Cards ------------------ */
.card-result {
    max-width: 980px;
    margin: 2.5rem auto;
    border: none;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.service-card, .tool-card, .process-card, .data-card, .stat-card, .flow-step {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    padding: 35px 30px;
    height: 100%;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.service-card::before, 
.tool-card::before, 
.process-card::before, 
.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary);
}

.service-card:hover, 
.tool-card:hover, 
.process-card:hover, 
.data-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

/* ------------------ Sections ------------------ */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ------------------ Stats Section ------------------ */
.stats-footer {
    background-color: var(--light);
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stat-footer-item {
    text-align: center;
    padding: 15px;
}

.stat-footer-number {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-footer-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ------------------ Form Sections ------------------ */
.form-section {
    background: linear-gradient(135deg, #212529 0%, #1a2c42 100%);
    color: #ffffff;
    padding: 100px 0;
}

.form-section h2 {
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--dark);
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.2);
    outline: none;
}

.form-control::placeholder, .form-select option:first-child {
    color: var(--gray);
}

/* ------------------ FAQ Section ------------------ */
.faq_sec {
    background: linear-gradient(180deg, #f7faff, #ffffff);
}

.red_h {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.globle_h {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
}

/* FAQ Card */
.faq_q {
    border: none;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(0,0,0,0.07);
    overflow: hidden;
}

.faq_h {
    display: block;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    background: #ffffff;
    position: relative;
}

.faq_h:hover {
    background: #f1f6ff;
}

/* FAQ Title */
.faq_title {
    font-size: 1.05rem;
    color: var(--dark);
}

/* Arrow Icon */
.faq_h::after {
    content: "❯";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.1rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq_h.collapsed::after {
    transform: translateY(-50%) rotate(0deg);
}

/* FAQ Body */
.faq_h_card {
    background: #ffffff;
    border-top: 1px solid #eef1f6;
}

.faq_h_card_title {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.7;
}

/* ------------------ Status Colors ------------------ */
.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

/* ------------------ Footer ------------------ */
footer {
    background: var(--dark);
    color: #eaeaea;
    padding: 3.5rem 0 2rem;
    margin-top: 5rem;
    font-size: 0.95rem;
}

footer a {
    color: #9fc1ff;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ------------------ Animations ------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ------------------ Utility Classes ------------------ */
.bg-light-custom {
    background-color: var(--light) !important;
}

.check-list li {
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 500;
}

.check-list li i {
    color: var(--success);
    margin-right: 10px;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .service-card, .tool-card, .process-card, .data-card {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-img {
        max-height: 300px;
        margin-top: 2rem;
    }
    
    .globle_h {
        font-size: 2rem;
    }
    
    .stat-footer-divider {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 12px 24px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stat-footer-item {
        margin-bottom: 20px;
    }
}

/* Enhanced download page styling */
.download-card {
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.download-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.file-info-box {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #28a745;
    margin: 20px 0;
}

.expiry-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-download {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}