/* ============================================
   PRIME SHIELD HOMES - MAIN STYLESHEET
   Design: Modern Trust-Driven Professional
   Color Scheme: Deep Blue + Orange + Slate Gray
   ============================================ */

/* ========== ROOT VARIABLES & DESIGN TOKENS ========== */
:root {
    /* Primary Colors */
    --primary-blue: #0f3a7d;
    --primary-blue-dark: #082456;
    --primary-blue-light: #1a5fa8;
    
    /* Secondary Colors */
    --secondary-slate: #3d4e5c;
    --secondary-slate-light: #5a6b7a;
    
    /* Accent Colors */
    --accent-orange: #ff6b35;
    --accent-orange-dark: #e55a24;
    --accent-orange-light: #ff8c5a;
    --accent-blue: #4a90e2;
    
    /* Neutral Colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-light: #e0e0e0;
    --border-gray: #d0d0d0;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 15px 48px rgba(0, 0, 0, 0.18);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-md);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-light));
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.35rem;
    font-weight: 600;
}

h5 {
    font-size: 1.15rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.8;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-orange-dark);
    text-decoration: underline;
}

/* ========== BUTTONS ========== */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
}

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

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--accent-orange);
    font-size: 1.8rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark) !important;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-orange) !important;
}

.nav-link.active {
    color: var(--accent-orange) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.dropdown-item {
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--accent-orange);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="400" height="400" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== SECTIONS ========== */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-orange);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.8rem;
    color: white;
}

.service-card h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.service-card p {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

/* ========== FEATURE ITEMS ========== */
.feature-item {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
}

.feature-item i {
    color: var(--accent-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-item h5 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

/* ========== PROCESS STEPS ========== */
.process-step {
    text-align: center;
    position: relative;
    padding: var(--spacing-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.process-step h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.process-step p {
    color: var(--text-light);
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-orange);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.testimonial-title {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stars {
    color: var(--accent-orange);
    margin-bottom: var(--spacing-sm);
}

/* ========== FAQ SECTION ========== */
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    font-weight: 600;
    color: var(--primary-blue);
}

.faq-question:hover {
    background: var(--primary-blue);
    color: white;
}

.faq-question i {
    transition: var(--transition-fast);
}

.faq-item.active .faq-question {
    background: var(--primary-blue);
    color: white;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: var(--spacing-lg);
    color: var(--text-light);
    display: none;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.cta-section h2::after {
    background: var(--accent-orange);
    left: 50%;
    transform: translateX(-50%);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary-blue);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-item {
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========== UTILITY CLASSES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.py-5 {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

.text-muted {
    color: var(--text-light);
}

.text-primary {
    color: var(--primary-blue);
}

.text-accent {
    color: var(--accent-orange);
}

.bg-light {
    background: var(--bg-light);
}

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

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    margin: var(--spacing-2xl) 0;
}
