/* ==========================================================================
   4. HERO SECTION STYLING (FIXED CROSS-PLATFORM PARALLAX)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    padding-top: 90px;
    /* Creates a local boundary viewport mask containing the pseudo element */
    clip-path: inset(0 0 0 0);
}

/* Replaces the buggy background-attachment: fixed parameter entirely */
.hero::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(27, 51, 34, 0.65), rgba(27, 51, 34, 0.5)), url('../../images/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2; /* Ensures typography content remains clearly layered on top */
}

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

.hero h2 {
    color: var(--bg-white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   8. TESTIMONIALS CAROUSEL SLIDER STYLING
   ========================================================================== */
.testimonials {
    background-color: var(--primary);
    color: var(--bg-white);
    text-align: center;
}

.testimonials .section-header h2 {
    color: var(--bg-white);
}

.testimonials-carousel {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px 45px;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.95;
}

.testimonial-author h4 {
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.testimonial-author span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 4px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.1rem;
    width: 42px;
    height: 42px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.carousel-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--accent);
}

/* ==========================================================================
   8B. HOMEPAGE PREMIUM SERVICES SECTION
   ========================================================================== */
.services-teaser {
    background-color: var(--bg-cream);
    padding: 100px 0;
}

.services-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-teaser-card {
    background-color: var(--bg-white);
    padding: 50px 40px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(27, 51, 34, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(181, 148, 91, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-teaser-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-teaser-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 51, 34, 0.08);
    border-color: var(--accent);
}

.service-teaser-card:hover::before {
    transform: scaleX(1);
}

.service-teaser-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: var(--font-serif);
    color: var(--primary);
}

.service-teaser-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-teaser-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: color 0.3s ease;
}

.service-teaser-link:hover {
    color: var(--primary);
}

.service-teaser-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-teaser-link:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (MOBILE ADAPTABILITY)
   ========================================================================== */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.8rem;
    }
    .services-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* HERO CONTAINER RESPONSIVE ADJUSTMENT */
    .hero {
        height: auto;
        padding: 140px 0 100px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .services-teaser-grid {
        grid-template-columns: 1fr;
    }
    .service-teaser-card {
        padding: 40px 30px;
    }
}
