/* ====================================================
   Ranexa Tech – Essential Layout & Utilities
   (Visual styling handled by base.html)
   ==================================================== */

:root {
    --primary: #011b32;
    --primary-dark: #000c17;
    --primary-light: #0a2d4d;
    --primary-soft: #1a3c5f;
    --primary-gradient: linear-gradient(135deg, #011b32 0%, #0a2d4d 100%);
    --secondary: #2d9d92;
    --accent-gold: #d4af37;

    --gray-50: #f8f9fa;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;

    --white: #ffffff;
    --black: #000000;

    --shadow: 0 4px 6px -1px rgba(1,27,50,0.08);
    --shadow-lg: 0 20px 25px -5px rgba(1,27,50,0.1);
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base – backgrounds and colors come from base.html */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Background, color, padding-top are set in base.html */
}

/* Typography – base overrides heading colors with gradients */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; line-height: 1.7; }
.lead { font-size: 1.25rem; }

/* Container – same as before */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 4rem; } }

/* Buttons – minimal overrides; base adds gradient and hover */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Cards – base adds glass background and hover effects */
.card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    /* background, border, shadow come from base */
}
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.25rem; font-weight: 600; }
.card-text { font-size: 0.9375rem; }

/* Sections – backgrounds, borders, shadows handled by base */
.hero-section { padding: 6rem 0 5rem; position: relative; padding-top: 80px !important; }
.hero-title { font-size: 3.5rem; font-weight: 800; }
.hero-subtitle { font-size: 1.25rem; max-width: 600px; }
.hero-buttons { display: flex; gap: 1rem; margin-top: 2rem; }

.stats-section { padding: 4rem 0; position: relative; }
.stat-number { font-size: 3rem; font-weight: 800; }
.stat-label { font-size: 1.125rem; font-weight: 500; }

.stats-section{
    color:#fff;
}

.stats-section .stat-number{
    color:#fbbf24;
}

.stats-section .stat-label{
    color:rgba(255,255,255,.9);
}

.testimonials-section { padding: 5rem 0; }
.testimonial-card { border-radius: var(--radius-lg); padding: 2rem; border-left: 4px solid var(--primary); }
.testimonial-text { font-size: 1.0625rem; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.1); }
.author-info h5 { font-size: 1rem; margin-bottom: 0.25rem; }
.author-info p { font-size: 0.875rem; }

.services-section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; position: relative; display: inline-block; }
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
.section-subtitle { font-size: 1.125rem; max-width: 600px; margin: 2rem auto 0; }

.service-card { text-align: center; padding: 2rem; border-radius: var(--radius-lg); transition: all 0.2s; }
.service-icon {
    width: 70px; height: 70px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}
.service-title { font-size: 1.25rem; font-weight: 600; }

/* Newsletter – base already styles, keep minimal */
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-input { flex: 1; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9375rem; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #e8edf5; }
.newsletter-input:focus { outline: none; border-color: var(--accent-gold); }
.newsletter-button { background: var(--accent-gold); color: var(--primary); border: none; border-radius: var(--radius); padding: 0.75rem 1.5rem; font-weight: 600; cursor: pointer; }

/* Social links – base has them, keep minimal */
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%; text-decoration: none;
    transition: background 0.2s, color 0.2s;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
}
.social-link:hover { background: var(--accent-gold); color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-section { padding: 4rem 0 3rem; }
    .hero-buttons { flex-direction: column; }
    .section-title h2 { font-size: 2rem; }
    .stat-number { font-size: 2.5rem; }
}
@media (max-width: 576px) {
    .container { padding: 0 1rem; }
}

/* Utility classes – keep minimal and unchanged */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 2rem; padding-bottom: 2rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.w-100 { width: 100%; }
.position-relative { position: relative; }