/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    --primary: #0d47a1; /* Deep Blue */
    --primary-light: #5472d3;
    --primary-dark: #002171;
    --accent: #f57c00; /* Orange for contrast/CTAs */
    --accent-hover: #ef6c00;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --success: #10b981;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.highlight { color: var(--primary); }
.text-success { color: var(--success); }
.small-text { font-size: 0.875rem; color: var(--text-muted); }

/* =========================================
   2. Typography & Buttons
   ========================================= */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; color: var(--text-main); }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
p { color: var(--text-muted); margin-bottom: 1.5rem; }

.badge {
    display: inline-block;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary { background: white; color: var(--primary); border: 2px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-full { width: 100%; }

.btn-whatsapp { background: #25D366; color: white; border-radius: 50px; padding: 1rem 2rem; font-size: 1.1rem; }
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* =========================================
   3. Header & Navigation (Glassmorphism)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.site-header.scrolled { padding: 0.5rem 0; box-shadow: var(--shadow-sm); }

.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--text-main); font-weight: 300; }
.logo-icon { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--text-main); transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: white !important; padding: 0.5rem 1.25rem; border-radius: var(--radius-sm); }
.btn-nav:hover { background: var(--primary-dark); }

.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at top right, rgba(13, 71, 161, 0.05) 0%, rgba(255,255,255,0) 50%),
                radial-gradient(circle at bottom left, rgba(245, 124, 0, 0.05) 0%, rgba(255,255,255,0) 50%);
}

.hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================
   5. Services & How it Works (Grid Cards)
   ========================================= */
.services-grid, .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card, .step {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover, .step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 8px rgba(13, 71, 161, 0.1);
}

/* =========================================
   6. Procurement Section
   ========================================= */
.procurement-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.procurement-image-placeholder {
    background: var(--bg-light);
    height: 400px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--border-color);
    border: 2px dashed var(--border-color);
}

/* =========================================
   7. Calculator Section
   ========================================= */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.calc-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.form-group select, .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.form-group select:focus, .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    background-color: white;
}

.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    text-align: center;
}

.result-box.hidden { display: none; }
.text-highlight { color: var(--success); font-size: 2rem; font-weight: 800; display: block; margin: 0.5rem 0; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; background: white; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { background: var(--bg-light); font-weight: 600; color: var(--text-main); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: var(--bg-light); }

/* =========================================
   8. Footer
   ========================================= */
.site-footer { background: #0f172a; color: white; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.site-footer .logo { color: white; margin-bottom: 1rem; }
.site-footer .logo span { color: var(--text-muted); }
.site-footer p { color: #94a3b8; }
.footer-links h4, .footer-contact h4 { margin-bottom: 1.5rem; font-size: 1.25rem; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a { color: #94a3b8; transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact ul li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 1.5rem 0; text-align: center; color: #64748b; font-size: 0.875rem; }

/* =========================================
   9. Scroll Animations (Triggered by JS)
   ========================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   10. Media Queries
   ========================================= */
@media (max-width: 992px) {
    .procurement-layout, .calc-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
        background: white; flex-direction: column; padding: 2rem; gap: 1.5rem;
        transition: 0.4s ease-in-out; box-shadow: var(--shadow-md);
    }
    .nav-links.active { left: 0; }
    .mobile-menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 8rem 0 5rem; }
}