/* Section Typography Headers */
.section-header {
    margin-bottom: 40px;
}

.section-subtitle {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1080;
    background-color: var(--navy);
}

.hero img,
.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

#hero-video {
    display: none;
    z-index: 1;
    cursor: pointer;
}

#hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 36, 30, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-btn-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
}

.play-btn-wrapper:hover {
    transform: scale(1.05);
}

.play-btn-wrapper img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* Stats Bar */
.stats-bar {
    background-color: var(--navy);
    padding: 40px 0;
    border-bottom: 1px solid #1f2937;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.stat-item {
    flex: 1;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.05); /* Softer divider */
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #9CA3AF; /* Muted stat color from image */
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px; /* Larger label size */
    font-weight: 500;
    color: #6B7280; /* Muted label color */
    text-transform: none; /* Changed to Title Case */
    letter-spacing: 0.2px;
}

/* Our Story Section */
.our-story {
    padding: 100px 0;
    background-color: #F9FAFB; /* Light grey background from image */
    border-bottom: 1px solid var(--border-light);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

img.story-image {
    width: 100%;
    height: auto;
}

.story-image-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-image-play:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background-color: rgba(255, 255, 255, 0.35);
}

.story-image-play i {
    color: var(--white);
    font-size: 28px;
    margin-left: 5px; /* visually center play icon */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.story-content p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 35px;
    line-height: 1.7;
    max-width: 95%;
}

.story-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray); /* Grey text like in image */
}

.story-check {
    color: var(--navy);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.view-more-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px; /* align visually */
}

.view-more-link i {
    font-size: 12px;
}

.view-more-link:hover {
    color: var(--gold);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testi-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.testi-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.testi-video-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    cursor: pointer;
}

.testi-video-thumb img.thumb-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testi-card:hover .testi-video-thumb img.thumb-bg {
    transform: scale(1.05);
}

.testi-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.testi-video-thumb:hover .testi-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.testi-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.google-logo {
    width: 20px;
    height: 20px;
}

.rating-number {
    font-size: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

.stars {
    color: #FBBF24;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.testi-text {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    min-height: 48px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.author-details p {
    font-size: 13px;
    color: #9CA3AF;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 10px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    min-height: 72px;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.service-link i {
    font-size: 12px;
}

.service-link:hover {
    color: var(--gold);
}

/* Estimator Section */
.estimator {
    background-color: var(--navy);
    padding: 100px 0;
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.estimator-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--gold);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.input-wrapper::after {
    content: '\f107'; /* FontAwesome angle-down */
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
}

.input-wrapper.no-icon::after {
    display: none;
}

.estimator-card .btn-gold {
    width: 100%;
    padding: 18px;
    font-size: 15px;
    margin-top: 8px;
}

.estimator-content .section-title {
    color: var(--white);
    font-size: 44px;
    margin-bottom: 20px;
}

.estimator-content p {
    font-size: 16px;
    color: #9CA3AF;
    margin-bottom: 40px;
    max-width: 90%;
}

.estimator-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
}

.feature-item i {
    color: var(--gold);
    font-size: 16px;
}

/* Brands Section */
.brands {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.brands h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.brands-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.brand-logo {
    font-size: 18px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-light);
}

/* CTA Banner Section */
.cta {
    padding: 0 0 100px 0;
    background-color: var(--white);
}

.cta-banner {
    background-color: var(--navy);
    border-radius: 24px;
    padding: 120px 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cta-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('../../assets/img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 15px;
    color: #9CA3AF;
    margin-bottom: 35px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

@media (max-width: 1024px) {
    .story-grid, .estimator-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .stats-grid {
        flex-wrap: wrap;
        gap: 40px;
    }
    .stat-item {
        flex: 0 0 45%;
    }
    .stat-item::after {
        display: none;
    }
    .testi-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testi-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }
    .stat-item {
        flex: 0 0 100%;
    }
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .brands-container {
        flex-direction: column;
        gap: 30px;
    }
    .brand-divider {
        display: none;
    }
    .cta-banner {
        padding: 40px 30px;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .hero {
        min-height: 400px;
        height: 50vh;
    }
}