/* ============================================= */
/*               HOME PAGE STYLES                */
/* ============================================= */

/* ==================== */
/*      HERO SECTION    */
/* ==================== */
.hero {
 background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
             url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1512&q=80');
 background-size: cover;
 background-position: center;
 height: 100vh;
 min-height: 600px;
 display: flex;
 align-items: center;
 color: white;
 text-align: center;
 padding-top: 80px;
}

.hero-content {
 max-width: 800px;
 margin: 0 auto;
 padding: 0 20px;
}

.hero h1 {
 font-size: 3rem;
 margin-bottom: 20px;
 color: white;
 text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
 font-size: 1.2rem;
 margin-bottom: 30px;
 opacity: 0.9;
}

.hero-buttons {
 display: flex;
 justify-content: center;
 gap: 20px;
 margin-top: 30px;
}

.hero .secondary-button {
 background-color: transparent;
 color: white;
 border: 2px solid white;
}

.hero .secondary-button:hover {
 background-color: rgba(255, 255, 255, 0.1);
}


/* ============================ */
/*      WHY CHOOSE US SECTION   */
/* ============================ */
.why-us {
 padding: 80px 0;
 background-color: var(--accent-color);
 text-align: center;
}

.section-title {
 max-width: 800px;
 margin: 0 auto 50px;
 text-align: center;
}

.section-title h2 {
 font-size: 2.5rem;
 margin-bottom: 15px;
}

.section-title p {
 color: var(--light-text);
}

.features {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
 margin-top: 50px;
 justify-items: center;
}

.feature-card {
 background: white;
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
 transition: transform 0.3s, box-shadow 0.3s;
 text-align: center;
 max-width: 350px;
 width: 100%;
}

.feature-card:hover {
 transform: translateY(-10px);
 box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
 font-size: 3rem;
 color: var(--primary-color);
 margin-bottom: 20px;
}

.feature-card h3 {
 margin-bottom: 15px;
 font-size: 1.5rem;
}


/* ============================ */
/*      SERVICES SECTION        */
/* ============================ */
.services {
 padding: 80px 0;
 text-align: center;
}

.services-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
 justify-items: center;
}

.service-card {
 border: 1px solid #eee;
 border-radius: 10px;
 overflow: hidden;
 transition: all 0.3s;
 max-width: 350px;
 width: 100%;
}

.service-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
 height: 200px;
 overflow: hidden;
}

.service-img img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.5s;
}

.service-card:hover .service-img img {
 transform: scale(1.1);
}

.service-content {
 padding: 25px;
 text-align: left;
}

.service-content h3 {
 margin-bottom: 15px;
 text-align: center;
}

.service-content ul {
 margin: 15px 0 20px;
 padding-left: 20px;
}

.service-content ul li {
 margin-bottom: 8px;
}


/* ============================ */
/* TESTIMONIALS SECTION    */
/* ============================ */
/* Change the container from a slider to a grid for 3 items */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Ensure the cards have equal height */
.testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin: 0; /* Reset the 20px margin from before */
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px;
    text-align: left; /* Better readability for long quotes */
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

/* Decorative Quotation Marks */
.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: -30px;
    left: -15px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns content to the left for a modern look */
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.author-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0; /* CRITICAL: Prevents oval shape on mobile */
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills circle without stretching */
    display: block;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ==================== */
/*      CTA SECTION     */
/* ==================== */
.cta-section {
 padding: 80px 0;
 background: linear-gradient(135deg, var(--primary-color), #c1121f);
 color: white;
 text-align: center;
}

.cta-section h2 {
 color: white;
 margin-bottom: 20px;
}

.cta-section p {
 max-width: 700px;
 margin: 0 auto 30px;
 opacity: 0.9;
}


/* ============================================= */
/*            RESPONSIVE ADJUSTMENTS             */
/* ============================================= */
@media (max-width: 992px) {
 .hero h1 {
     font-size: 2.5rem;
 }
 
 .section-title h2 {
     font-size: 2rem;
 }
}

@media (max-width: 768px) {
 .hero-buttons {
     flex-direction: column;
     align-items: center;
 }
 
 .hero h1 {
     font-size: 2rem;
 }
 
 .hero p {
     font-size: 1rem;
 }

 .testimonial {
        padding: 30px 20px;
    }
    .testimonial-content::before {
        font-size: 3rem;
        top: -20px;
    }
}

@media (max-width: 576px) {
 .hero {
     min-height: 500px;
 }
 
 .feature-card, .service-card {
     padding: 20px;
 }
}