/* Front Page Custom Styles */

/* Nav alignment fix */
.nav__menu > .menu-item {
    vertical-align: middle !important;
}

/* Nav dropdown chevron spacing */
.nav__menu .menu-item a fa-icon,
.nav__menu .menu-item a > i {
    margin-left: 3px;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.hero-section__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-section__gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
}

.hero-section__orange-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d94429 0%, #f25d3d 100%);
    clip-path: polygon(0 0, 55% 0, 42% 100%, 0 100%);
    z-index: 1;
}

.hero-section__dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: left center;
    opacity: 0.4;
    z-index: 2;
    clip-path: polygon(0 0, 55% 0, 42% 100%, 0 100%);
}

.hero-section__wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 520px;
}

.hero-section__image {
    flex: 0 0 58%;
    position: relative;
    z-index: 2;
}

.hero-section__image img {
    max-width: 100%;
    height: auto;
    margin-left: -40px;
}

.hero-section__content {
    flex: 0 0 42%;
    padding-left: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-section__title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 35px;
    color: #1a1a1a;
}

.hero-section__title--blue {
    color: #2563eb;
}

.hero-section__cta-button {
    display: block !important;
    width: 250px !important;
    max-width: 250px !important;
    background: #f25d3d !important;
    color: #fff !important;
    padding: 20px 0 !important;
    border-radius: 50px !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.9rem !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 3px solid #fff !important;
    letter-spacing: 1px !important;
    transform: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.hero-section__cta-button:hover {
    background: #e04a2a !important;
    transform: none !important;
    padding: 20px 0 !important;
    border: 3px solid #fff !important;
    width: 250px !important;
}

.hero-section__phone {
    display: flex;
    align-items: center;
    background: #000;
    color: #fff !important;
    padding: 20px 45px 20px 50px;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    width: fit-content;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-section__phone-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.hero-section__phone-icon-wrap svg {
    fill: #000;
}

.hero-section__phone-number {
    letter-spacing: 2px;
}

/* Services Section Styles */
.services-section {
    position: relative;
    padding: 50px 20px 120px;
    background: linear-gradient(135deg, #d94429 0%, #f25d3d 100%);
/* 
    border-top: 8px solid #fff;
 */
    overflow: hidden;
}

/* Services Section CTA */
.services-section__cta {
    text-align: center;
    padding: 50px 20px 30px;
    position: relative;
    z-index: 2;
}

.services-section__cta-text {
    font-size: 2rem;
    color: #fff;
    font-style: italic;
    margin-bottom: 25px;
}

.services-section__cta-text span {
    font-weight: 700;
}

.services-section__cta .hypercore-button {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
}

.services-section__angle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.services-section__header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.services-section__dots {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center top;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.services-section__title-image,
.services-section__heading {
    position: relative;
}

.services-section__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.services-section__title-image {
    max-width: 380px;
    height: auto;
    margin-bottom: 12px;
}

.services-section__heading {
    font-size: 2.4rem;
    color: #fff;
    font-weight: 600;
}

.services-section__card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    padding: 25px 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border-left: 4px solid #f25d3d;
}

.services-section__card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.services-section__card-title {
    font-size: 2.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.services-section__card-text {
    font-size: 1.6rem;
    color: #4b5563;
    line-height: 1.5;
    flex-grow: 1;
}

.services-section__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-section__card-icon fa-icon,
.services-section__card-icon svg {
    width: 55px;
    height: 55px;
    color: #f25d3d;
    fill: #f25d3d;
}

.services-section__card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.services-section__card-arrow {
    display: flex;
    align-items: center;
    margin-top: 15px;
    color: #f25d3d;
    transition: transform 0.3s ease;
}

.services-section__card-arrow fa-icon,
.services-section__card-arrow svg {
    width: 18px;
    height: 18px;
    fill: #f25d3d;
}

.services-section__card:hover .services-section__card-arrow {
    transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-section__wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-section__image {
        flex: 0 0 auto;
        margin-bottom: 30px;
    }

    .hero-section__image img {
        margin-left: 0;
    }

    .hero-section__content {
        flex: 0 0 auto;
        padding-left: 0;
        text-align: center;
        align-items: center;
    }

    .hero-section__phone {
        margin: 0 auto;
    }

    .services-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-section__dots {
        width: 400px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }

    .hero-section__wrapper {
        min-height: auto;
        padding: 30px 20px;
        flex-direction: column;
    }

    .hero-section__image {
        order: 1;
        margin-bottom: 0;
    }

    .hero-section__content {
        order: 2;
        background: #fff;
        padding: 30px 20px;
        margin: 0 -20px -30px;
        width: calc(100% + 40px);
        clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    }

    .hero-section__title {
        font-size: 2.2rem;
        margin-bottom: 25px;
        margin-top: 20px;
    }

    .hero-section__orange-diagonal {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }

    .hero-section__dots {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }

    .hero-section__gradient {
        display: none;
    }

    .hero-section__cta-button {
        padding: 20px 50px;
        font-size: 1.3rem;
    }

    .hero-section__phone {
        font-size: 1.4rem;
        padding: 15px 30px;
        clip-path: none;
        border-radius: 8px;
    }
}

@media (max-width: 640px) {
    .hero-section__title {
        font-size: 1.8rem;
    }

    .hero-section__cta-button {
        padding: 18px 40px;
        font-size: 1.1rem;
    }

    .hero-section__phone {
        font-size: 1.2rem;
        padding: 12px 25px;
    }

    .services-section {
        padding: 40px 15px 100px;
    }

    .services-section__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .services-section__card {
        padding: 20px 15px;
    }

    .services-section__card-title {
        font-size: 1.5rem;
    }

    .services-section__card-text {
        font-size: 1.1rem;
    }

    .services-section__card-icon fa-icon,
    .services-section__card-icon svg {
        width: 40px;
        height: 40px;
    }

    .services-section__card-arrow {
        margin-top: 12px;
    }

    .services-section__heading {
        font-size: 1.4rem;
    }

    .services-section__cta-text {
        font-size: 1.4rem;
    }

    .services-section__dots {
        width: 300px;
        height: 150px;
        top: -30px;
    }

    .services-section__angle {
        height: 50px;
    }
}
