@import url('/resources/css/home/resources/variables.css');
@import url('/resources/css/home/resources/footer.css');
@import url('/resources/css/home/resources/modals.css');
@import url('/resources/css/home/resources/header.css');
@import url('/resources/css/home/resources/buttons.css');

.section-container {
    max-width: 80vw;
    margin: 0 auto;
    padding: 0;
}

.section-title {
    margin-top: 2rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #1e293b;
}

/* Hero Section */
.hero {
    background: #f8f9fa;
    padding: 4rem 0;
}

.hero-container {
    max-width: 80vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero-image {
    background: #d1d5db;
    height: 300px;
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
    object-fit: cover;
}

/* Commitment Section */
.commitment {
    padding: 4rem 0;
    text-align: center;
}

.commitment-container {
    max-width: 80vw;
    margin: 0 auto;
    padding: 0 2rem;
}

.commitment h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.commitment .subtitle {
    color: var(--blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--blue);
}

.feature h3 {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
}

/* Services Section */
.services {
    background: #f8f9fa;
    padding: 4rem 0;
}

.services-container {
    max-width: 80vw;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.services h2 {
    text-align: center;
    font-size: 1.9rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

/* grid */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start; /* top-align so overlap amounts are uniform */
}

/* each card is centered so the bottom box can be narrower than the image */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* center the overlapping box */
    overflow: visible; /* allow overlap */
}

.service-image {
    width: 100%;
    height: 210px;
    border-radius: var(--radius);
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* sits below the content box (which has z-index:2) */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* the colored content box that should be same width for all cards */
.service-content {
    width: 280px; /* FIXED width -> ensures equal widths */
    max-width: calc(100% - 32px);
    background: #2E26D9; /* blue */
    color: #fff;
    padding: 1.6rem 1.25rem;
    border-radius: 12px;
    margin-top: -60px; /* overlap amount */
    box-shadow: 0 10px 30px rgba(15, 13, 83, 0.15);
    z-index: 2; /* ensure it sits on top of the image */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
    text-align: left;
}

/* badge/title inside the blue box */
.service-badge {
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

/* paragraph style in the blue box */
.service-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
}

/* button */
.service-btn {
    background: #fff;
    color: #2E26D9;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    align-self: center;
    min-width: 50%;
    text-align: center;
    text-decoration: none;
}

.service-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.dashboard-content {
    color: var(--text);
}

/* Dashboard Section */
.dashboard {
    padding-bottom: 4rem;
}

.dashboard-container {
    max-width: 80vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.dashboard h2 {
    font-size: 2rem;
    color: var(--text);;
}

.dashboard p {
    color: var(--text);
}

.dashboard-content .cta-button {
    position: fixed;
}

.dashboard-image {
    height: 300px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Coverage Section */
.coverage {
    background: #1f2937;
    color: white;
    padding: 4rem 0;
}

.coverage-container {
    max-width: 80vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.coverage h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.coverage p {
    margin-bottom: 1rem;
}

.coverage ul {
    list-style: none;
    margin-bottom: 2rem;
}

.coverage li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.coverage li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
}

.map-placeholder {
    background: #374151;
    height: 350px;
    border-radius: var(--radius);
    display: flex;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Contact Section */
.contact {
    background: #f8fafc;
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    width: 100%;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item a {
    text-decoration: none;
    margin-left: -10px;
}

.contact-item i {
    color: var(--blue);
}

.contact-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

@media (max-width: 1024px) {
    .services-container {
        max-width: 100vw;
    }

    .dashboard-container {
        max-width: 90vw;
    }
}

/* Responsive */
@media (max-width: 800px) {
    .services-container {
        max-width: 80vw;
        padding: 0;
    }

    .dashboard-image img {
        max-width: 100vw;
        max-height: 250px;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .service-image {
        width: auto !important;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-image {
        display: none;
    }

    .dashboard-container {
        display: flex;
        flex-direction: column;
    }

    .dashboard-content .cta-button {
        display: block;
        margin-top: 1.5rem;
        font-size: 0.8rem;
        text-align: center;
    }

    .dashboard-image {
        background: var(--glass);
        color: var(--glass);
    }

    .coverage-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .commitment-container {
        width: 100%;
        padding: 0; /* remove side padding on mobile */
    }

    .feature-scroll {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
    }

    .features {
        display: flex;
        gap: 0;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .feature {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin: 0;
        scroll-snap-align: center;
        text-align: center;
        box-sizing: border-box;
        padding: 0 1rem; /* small padding so text doesn’t touch edges */
    }

    .feature h3 {
        font-size: 1rem;
        word-break: break-word;
        padding: 0;
        margin: 0;
    }

    .feature-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0 0 0;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #d1d5db;
        transition: background 0.3s;
        display: inline-block;
    }

    .dot.active {
        background: var(--accent);
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .contact-content {
        display: block;
        width: 100%;
        padding: 0;
    }

    .contact-info {
        width: 100%;
        margin: 0 auto;
    }

    .contact-image {
        display: none;
    }
}