/* =======================================================
   TRUE BLUE PROFESSIONAL THEME - SECURELIFE
   Designed for Trust, Clarity, and Human Connection
   ======================================================= */

:root {
    --primary: #1e3a8a; /* Professional Navy */
    --secondary: #2563eb; /* Royal Blue */
    --accent: #ea580c; /* Trustworthy Orange */
    --white: #ffffff;
    --bg-light: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-900: #0f172a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 1. Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }

p { color: var(--gray-600); margin-bottom: 1.25rem; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

ul { list-style: none; }

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

.section-padding {
    padding: 6rem 0;
}

/* 2. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

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

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.custom-btn-pop {
    /* Maintained for index.html compatibility but simplified */
    box-shadow: var(--shadow-md);
}

/* 3. Navigation */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i { color: var(--secondary); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a.link {
    font-weight: 500;
    color: var(--gray-600);
}

.nav-links a.link:hover, 
.nav-links a.link.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* 4. Hero Section - The Personal Pivot */
.hero-advanced {
    background: var(--bg-light);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* 5. Feature & Trust Cards */
.services-grid, .trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card, .glass-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover, .glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

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

/* 6. Testimonials */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.testi-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.testi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary);
}

/* 7. Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 5rem 0 2rem;
}

footer .logo { color: var(--white) !important; }
footer a:hover { color: var(--white); }

/* 8. Mobile Navigation Rewrite */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 310px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s ease;
        align-items: flex-start;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links a.link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1.2rem;
    }
}

/* 9. Animations */
[data-aos] {
    transition-duration: 600ms !important;
}

/* Global Fixes to override inline styles from index.html if needed */
.hero-gradient-dark, .bg-mesh-light {
    background: var(--bg-light) !important;
}
.glow-accent {
    display: none !important; /* Hide old neon glows */
}
.hero-wave-divider .shape-fill {
    fill: var(--white) !important;
}

/* 10. Forms */
.contact-form-area {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Special utility to handle owner image masking */
.owner-img-container {
    position: relative;
    display: inline-block;
}
.owner-img-container img {
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 100%;
}
