/* =========================================
   ALLBORO CARPET CUSTOM STYLES
   ========================================= */

:root {
    --primary-dark: #0D8BCE;
    --primary-light: #039BE5;
    --bg-light: #DCF3FF;
    --white: #ffffff;
    --black: #000000;
    --text-body: #4a4a4a;
    --border-color: #E5E9F0;
}

.abc-page-wrapper {
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.abc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.abc-section {
    padding: 80px 0;
}

/* Typography Utilities */
.text-light {
    color: var(--primary-light);
}

.text-center {
    text-align: center;
}

h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: var(--black);
    line-height: 1.2;
}

.abc-subtitle {
    color: var(--primary-light);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

/* Buttons */
.abc-btn-primary {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--white);
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.abc-btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(13, 139, 206, 0.3);
}

.abc-btn-black {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.abc-btn-black:hover {
    background-color: #333;
}

.abc-btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-light);
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* --- 1. Hero Section --- */
.abc-hero {
    /* Using a dark gradient overlay on top of the background image */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/img/main-service-page/main-service-image.webp') center/cover no-repeat;
    height: 50vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.abc-hero-content h1 {
    color: var(--white);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9),
        0px 0px 20px rgba(0, 0, 0, 0.6);
}

/* --- 2. Services Section --- */
.abc-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Changed from 3 to 4 */
    gap: 30px;
    margin-top: 50px;
}

/* Hidden state */
.extra-service.hidden {
    display: none;
}

.abc-service-card {
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.abc-s-img {
    height: 240px;
    width: 100%;
}

.abc-s-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abc-s-banner-wrap {
    position: relative;
}

.abc-s-banner {
    background-color: var(--primary-light);
    color: var(--white);
    text-align: center;
    padding: 25px 15px 15px;
    font-size: 16px;
    font-weight: 600;
    /* This creates the exact angled cut seen in the design */
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
    margin-top: -30px;
}

.abc-s-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 24px;
    height: 24px;
    background-color: var(--primary-light);
    border: 2px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abc-s-icon .arrow {
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
}

/* --- 3. CTA Split Section --- */
.abc-cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.abc-cta-content {
    background-color: var(--primary-light);
    color: var(--white);
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.abc-cta-discount {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.abc-cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.abc-cta-content p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

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

.abc-cta-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.abc-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 4. About Section --- */
.abc-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.abc-about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.abc-about-text p {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* --- 5. Contact Section --- */
.abc-contact-box {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.02);
}

.abc-contact-info {
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
}

.abc-contact-info h2 {
    margin-bottom: 40px;
}

.abc-info-item {
    margin-bottom: 30px;
}

.abc-info-item h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--black);
}

.abc-info-item p,
.abc-info-item a {
    color: var(--primary-light);
    font-size: 15px;
    text-decoration: none;
    line-height: 1.5;
}

.abc-info-item p.text-light {
    color: var(--primary-light);
}

.abc-contact-form {
    padding-left: 10px;
}

.abc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.abc-form-group {
    margin-bottom: 25px;
}

.abc-contact-form input,
.abc-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: var(--black);
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.abc-contact-form input:focus,
.abc-contact-form textarea:focus {
    border-color: var(--primary-light);
}

.abc-form-actions {
    display: flex;
    gap: 15px;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Laptops / Smaller Desktops */
@media (max-width: 1200px) {
    .abc-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets / Laptops */
@media (max-width: 1024px) { 
    .abc-services-grid {
          padding-left: 10px;
        padding-right: 10px;
        grid-template-columns: repeat(2, 1fr);
    }

    .abc-about-grid {
        gap: 40px;
    }

    .abc-contact-box {
        gap: 30px;
        padding: 40px;
    }

    .abc-contact-info {
        padding-right: 20px;
    }
}

/* Tablets (Portrait) */
@media (max-width: 991px) {
    .abc-cta-split {
        grid-template-columns: 1fr;
    }

    .abc-about-grid {
        grid-template-columns: 1fr;
    }

    .abc-about-image {
        order: 2;
        margin-top: 30px;
    }

    .abc-about-text {
        order: 1;
    }

    .abc-contact-box {
        grid-template-columns: 1fr;
        border-right: none;
    }

    .abc-contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 30px;
    }

    .abc-contact-form {
        padding-left: 0;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .abc-hero-content h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .abc-section {
        padding: 50px 0;
    }

    .abc-services-grid {
        padding-left: 10px;
        padding-right: 10px;
        grid-template-columns: 1fr;
    }

    .abc-cta-content {
        padding: 50px 20px;
    }

    .abc-cta-buttons {
        flex-direction: column;
    }

    .abc-btn-black {
        text-align: center;
    }

    .abc-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 0;
    }

    .abc-contact-form input {
        margin-bottom: 20px;
    }

    .abc-form-actions {
        flex-direction: column;
    }

    .abc-btn-primary,
    .abc-btn-outline {
        width: 100%;
        text-align: center;
    }

    .abc-contact-box {
        padding: 25px;
    }
}