/* 
   Protect My House In One Call - Main Stylesheet
   Modern design for 2025
*/

/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #ff6b35;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --body-font: 'Nunito Sans', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px; /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

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

a:hover {
    color: var(--secondary-color);
}

.btn {
    transition: var(--transition);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

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

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

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

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

.section-header {
    margin-bottom: 3rem;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand span {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

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

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(0, 86, 179, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    color: white;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero-btns .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.trust-badges .badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    background-color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Why Choose Us Section */
.why-choose-section {
    background-color: #f8f9fa;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition);
    background-color: white;
    box-shadow: var(--box-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonial-card {
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    background-color: white;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin: 1.5rem 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--primary-color), #0077cc);
    color: white;
    padding: 4rem 0;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer address p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Enhanced Responsive Styles */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .service-hero h1,
    .about-hero h1,
    .contact-hero h1,
    .subscribe-hero h1,
    .legal-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        height: auto;
        padding: 5rem 0;
        text-align: center;
    }
    
    .service-hero,
    .about-hero,
    .contact-hero,
    .subscribe-hero,
    .legal-hero {
        padding: 5rem 0;
        text-align: center;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: var(--box-shadow);
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .trust-badges {
        justify-content: center;
        margin-top: 2rem;
    }
    
    .trust-badge {
        margin: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .service-hero,
    .about-hero,
    .contact-hero,
    .subscribe-hero,
    .legal-hero {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .service-hero h1,
    .about-hero h1,
    .contact-hero h1,
    .subscribe-hero h1,
    .legal-hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .feature-card,
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .cta-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .cta-section .text-lg-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
    
    .footer {
        text-align: center;
        padding: 3rem 0 2rem;
    }
    
    .footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .contact-form,
    .subscribe-form,
    .legal-content {
        padding: 1.5rem;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .navbar-brand span {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .service-hero,
    .about-hero,
    .contact-hero,
    .subscribe-hero,
    .legal-hero {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .service-hero h1,
    .about-hero h1,
    .contact-hero h1,
    .subscribe-hero h1,
    .legal-hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card,
    .feature-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .trust-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Enhanced Animations and Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.2);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Typography */
.hero-section h1,
.service-hero h1,
.about-hero h1,
.contact-hero h1,
.subscribe-hero h1,
.legal-hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header h2 {
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Improved Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Subscribe Page Styles */
.subscribe-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.newsletter-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.newsletter-form .form-control,
.newsletter-form .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus,
.newsletter-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.privacy-badges .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .hero-section,
    .service-hero,
    .about-hero,
    .contact-hero,
    .subscribe-hero,
    .legal-hero {
        background: none !important;
        color: black !important;
        padding: 2rem 0 !important;
    }
}

/* Service Pages Specific Styles */
.service-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/service-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
}

.service-features {
    margin-top: 3rem;
}

.service-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-feature-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* About Page Specific Styles */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid white;
    box-shadow: var(--box-shadow);
}

/* Contact Page Specific Styles */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
}

.contact-info-card {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    background-color: white;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    background-color: white;
}

.form-control {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Subscribe Page Specific Styles */
.subscribe-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/subscribe-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
}

.subscribe-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    background-color: white;
}

/* Privacy Policy & Terms Pages Specific Styles */
.legal-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/legal-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
}

.legal-content {
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    background-color: white;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}