/* 
   Home Enhancement Zone - Main Stylesheet
   Modern Design for 2025
   Author: AI Developer
   Version: 1.0
*/

/* ===== GLOBAL STYLES ===== */
:root {
    /* Color Palette */
    --primary-color: #4a6d8c;      /* Deep blue */
    --secondary-color: #d4b483;   /* Warm gold */
    --accent-color: #8cb369;      /* Sage green */
    --light-color: #f5f5f5;       /* Off-white */
    --dark-color: #333333;        /* Charcoal */
    --text-color: #4a4a4a;        /* Dark gray for text */
    --light-text: #f9f9f9;        /* Light text */
    --border-color: #e0e0e0;      /* Light gray for borders */
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn {
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

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

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

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

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

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

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

section {
    padding: 7rem 0;
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

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

.navbar-brand .brand-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    position: relative;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(74, 109, 140, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 109, 140, 0.3);
}

.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 0;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

/* ===== SERVICE HERO SECTION ===== */
.service-hero-section {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 109, 140, 0.8), rgba(212, 180, 131, 0.6));
    z-index: 1;
}

.service-hero-section .container {
    position: relative;
    z-index: 2;
}

.services-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* ===== FEATURED SERVICES SECTION ===== */
.service-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* ===== ABOUT SECTION ===== */
.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.placeholder-image {
    border-radius: 5px;
    overflow: hidden;
}

/* ===== IMAGE STYLES ===== */
.hero-image,
.service-image,
.about-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-image:hover,
.service-image:hover,
.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* Fix for SVG images */
svg {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

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

.testimonial-content {
    position: relative;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-content:before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: var(--heading-font);
}

.testimonial-author h5 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--primary-color);
    color: white;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer p {
    margin-bottom: 1rem;
}

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

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

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

.footer-links a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer address p {
    margin-bottom: 0.5rem;
}

.footer hr {
    margin: 2rem 0;
    border-color: rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.875rem;
    color: #999;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: auto;
        padding: 100px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}