/* ============================================
   SA TENDER DECODER - FORENSIC AUTHORITY THEME
   Dark Navy + Sharp Emerald Green
   ============================================ */

:root {
    --navy: #0a1628;
    --navy-mid: #0d1f3c;
    --navy-light: #162847;
    --emerald: #00c853;
    --emerald-dark: #00a040;
    --emerald-glow: rgba(0, 200, 83, 0.15);
    --gold: #ffd600;
    --text-light: #e8edf5;
    --text-muted: #7a8fa6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--navy);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 80px;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: var(--navy);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.navbar-brand img {
    height: 44px;
    width: auto;
}

.navbar-brand {
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--emerald);
}

.navbar-nav .nav-link.active {
    color: var(--emerald);
    border-bottom: 2px solid var(--emerald);
}

.navbar-toggler {
    border-color: var(--emerald);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300c853' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */

#home {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 60%, #0a2010 100%);
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--emerald);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-subtitle strong {
    color: var(--emerald);
    font-weight: 700;
}

.stats-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.counter-number {
    color: var(--emerald);
    font-size: 3rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.counter-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.stat-item {
    margin-bottom: 1.5rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.badge-turnaround {
    background: var(--emerald);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.alert-emerald {
    background: var(--emerald-glow);
    border: 1px solid var(--emerald);
    color: var(--emerald);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-emerald {
    background: var(--emerald);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-emerald:hover {
    background: var(--emerald-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.3);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-email {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-email:hover {
    background: #1557b0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.btn-call {
    background: var(--emerald);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-call:hover {
    background: var(--emerald-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

/* ============================================
   FATAL FIVE SECTION
   ============================================ */

#fatal-five {
    background: var(--navy-mid);
    padding: 5rem 0;
}

.section-heading {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subheading {
    color: var(--text-muted);
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 3rem;
}

.fatal-five-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.fatal-card {
    background: var(--navy-light);
    border-left: 4px solid var(--emerald);
    border-radius: 8px;
    padding: 1.5rem;
    flex: 1 1 calc(20% - 1.5rem);
    min-width: 220px;
    transition: all 0.3s ease;
}

.fatal-card:hover {
    border-left-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.2);
}

.fatal-icon {
    width: 60px;
    height: 60px;
    background: var(--emerald-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.fatal-icon i {
    color: var(--emerald);
    font-size: 1.5rem;
}

.fatal-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.fatal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   ENGINE SECTION
   ============================================ */

#engine {
    padding: 5rem 0;
    background: var(--navy);
}

.engine-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 200, 83, 0.1);
}

.step-card:nth-child(even) {
    background: rgba(22, 40, 71, 0.5);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.15);
    border-color: var(--emerald);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--emerald);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   SERVICE TIERS
   ============================================ */

#services {
    padding: 5rem 0;
    background: var(--navy-mid);
}

.tier-card {
    background: var(--navy-light);
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 200, 83, 0.2);
}

.tier-card.featured {
    border: 2px solid var(--emerald);
    transform: scale(1.02);
}

.tier-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
}

.tier-header {
    background: var(--navy-mid);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.tier-card.featured .tier-header {
    background: var(--emerald);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tier-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-price {
    color: var(--emerald);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-card.featured .tier-price {
    color: white;
}

.tier-turnaround {
    display: inline-block;
    background: var(--emerald-glow);
    color: var(--emerald);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-card.featured .tier-turnaround {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tier-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tier-features li {
    color: var(--text-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li i {
    color: var(--emerald);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.tier-cta {
    width: 100%;
}

/* ============================================
   ROADMAP SECTION
   ============================================ */

#roadmap {
    padding: 5rem 0;
    background: var(--navy);
}

.roadmap-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.phase-card {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 200, 83, 0.1);
}

.phase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.2);
    border-color: var(--emerald);
}

.phase-number {
    width: 50px;
    height: 50px;
    background: var(--emerald);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.phase-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.phase-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   WHY PARTNER SECTION
   ============================================ */

#why-partner {
    padding: 5rem 0;
    background: var(--navy-mid);
}

.benefit-item {
    margin-bottom: 2rem;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--emerald-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-icon i {
    color: var(--emerald);
    font-size: 1.5rem;
}

.benefit-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefit-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 200, 83, 0.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.15);
}

.stat-value {
    color: var(--emerald);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card:nth-child(even) .stat-value {
    color: var(--gold);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
    padding: 5rem 0;
    background: var(--navy);
}

.founder-card {
    background: var(--navy-light);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 200, 83, 0.15);
    margin-top: 2rem;
}

.founder-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.founder-title {
    color: var(--emerald);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.founder-contact {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.founder-contact i {
    color: var(--emerald);
    margin-right: 0.5rem;
    width: 20px;
}

.founder-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.founder-contact a:hover {
    color: var(--emerald);
}

.compliance-meter {
    background: var(--navy-light);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    border: 2px solid var(--emerald);
}

.meter-value {
    color: var(--emerald);
    font-size: 5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.meter-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

#contact {
    padding: 5rem 0;
    background: var(--navy-mid);
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-channel {
    background: var(--navy-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 200, 83, 0.15);
    transition: all 0.3s ease;
}

.contact-channel:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.2);
    border-color: var(--emerald);
}

.channel-icon {
    width: 70px;
    height: 70px;
    background: var(--emerald-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.channel-icon i {
    color: var(--emerald);
    font-size: 2rem;
}

.channel-label {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.channel-value {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.contact-form-wrapper {
    background: var(--navy-light);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(0, 200, 83, 0.15);
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: var(--navy-light);
    border: 1px solid rgba(0, 200, 83, 0.2);
    color: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--navy-light);
    border-color: var(--emerald);
    color: white;
    box-shadow: 0 0 0 0.2rem var(--emerald-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select option {
    background: var(--navy-light);
    color: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-disclaimer {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--navy-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #060e1a;
    border-top: 1px solid rgba(0, 200, 83, 0.1);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--emerald);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: right;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 2rem 0 1rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ============================================
   ALERTS
   ============================================ */

.alert-fixed {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9998;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .engine-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-channels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-badge {
        display: block;
        text-align: center;
    }
    
    #home {
        text-align: center;
    }
    
    .fatal-five-cards {
        flex-direction: column;
    }
    
    .fatal-card {
        flex: 1 1 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .roadmap-phases {
        grid-template-columns: 1fr;
    }
    
    .footer-copyright {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .section-subheading {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
