/**
 * ENAV - Styles for Services Page Rows (Type 1 and Type 2)
 */

:root {
    --enav-primary: #2598d7;
    --enav-primary-dark: #1a74a5;
    --enav-dark: #232b34;
    --enav-font-family: Trueno, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Row Block Wrapper */
.enav-service-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: var(--enav-font-family);
    box-sizing: border-box;
    padding: 3rem 0;
}

@media (min-width: 769px) {
    .enav-service-row {
        padding: 4.5rem 0;
    }
}

@media (min-width: 1200px) {
    .enav-service-row {
        padding: 5.5rem 0;
    }
}

.enav-service-row *,
.enav-service-row *::before,
.enav-service-row *::after {
    box-sizing: border-box;
}

/* Outer Container */
.enav-service-container {
    max-width: 1856px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .enav-service-container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1200px) {
    .enav-service-container {
        padding: 0 4rem;
    }
}

/* Decorative Triangle Shapes */
.enav-service-shape-wrap {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    width: 7.5vw;
    max-width: 140px;
    min-width: 60px;
    line-height: 0;
}

.enav-service-shape-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

.enav-service-shape-top-left {
    top: 0;
    left: 0;
}

.enav-service-shape-bottom-right {
    bottom: 0;
    right: 0;
}

@media (max-width: 768px) {
    .enav-service-shape-wrap {
        display: none;
    }
}

/* 2-Column Grid Layout */
.enav-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.enav-service-col-image,
.enav-service-col-content {
    align-self: start;
}

.enav-service-content-inner {
    margin: 0;
    padding: 0;
}

.enav-service-content-inner > :first-child {
    margin-top: 0 !important;
}

@media (min-width: 769px) {
    .enav-service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        align-items: start;
    }
}

@media (min-width: 1200px) {
    .enav-service-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 5rem;
        align-items: start;
    }
    .enav-service-grid.enav-service-grid-reversed {
        grid-template-columns: 1fr 1.05fr;
        gap: 5rem;
        align-items: start;
    }
}

/* Row 2: Text column on the left - ensure blue corner triangle does NOT touch the text */
@media (min-width: 769px) {
    .enav-service-row-2 .enav-service-col-content {
        padding-left: clamp(2.5rem, 6vw, 5.5rem);
    }
}

@media (min-width: 1200px) {
    .enav-service-row-2 .enav-service-col-content {
        padding-left: clamp(3.5rem, 7vw, 7rem);
    }
}

/* Row 1: Right text column - safe breathing room from bottom-right triangle */
@media (min-width: 769px) {
    .enav-service-row-1 .enav-service-col-content {
        padding-right: clamp(1.5rem, 4vw, 3.5rem);
    }
}

/* Image Shapes */
.enav-service-picture {
    display: block;
    line-height: 0;
    overflow: hidden;
}

.enav-service-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 655 / 840;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.enav-service-col-image:hover .enav-service-img {
    transform: scale(1.03);
}

/* Type 1: Left Image Angle (angled on the right with blue border) */
.enav-service-shape-wrap-left {
    background-color: var(--enav-primary);
    -webkit-clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(1px, 0, 0);
    line-height: 0;
}

.enav-service-shape-left {
    background-color: transparent;
    -webkit-clip-path: polygon(0 0, 96.5% 0, 78% 100%, 0 100%);
    clip-path: polygon(0 0, 96.5% 0, 78% 100%, 0 100%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    line-height: 0;
}

/* Type 2: Right Image Angle Mirrored (angled on the left with blue border) */
.enav-service-shape-wrap-right {
    background-color: var(--enav-primary);
    -webkit-clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(1px, 0, 0);
    line-height: 0;
}

.enav-service-shape-right {
    background-color: transparent;
    -webkit-clip-path: polygon(21.6% 0, 100% 0, 100% 100%, 3.6% 100%);
    clip-path: polygon(21.6% 0, 100% 0, 100% 100%, 3.6% 100%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    line-height: 0;
}

@media (max-width: 768px) {
    .enav-service-shape-wrap-left,
    .enav-service-shape-left,
    .enav-service-shape-wrap-right,
    .enav-service-shape-right {
        -webkit-clip-path: unset !important;
        clip-path: unset !important;
        background-color: transparent !important;
    }
}

/* Text Content Column */
.enav-service-intro {
    font-size: 1.125rem;
    color: var(--enav-primary);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
}

.enav-service-title {
    color: var(--enav-dark);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.25rem 0;
}

@media (max-width: 768px) {
    .enav-service-title {
        font-size: 1.75rem;
    }
}

.enav-service-subtitle {
    color: var(--enav-dark);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 1.25rem 0;
}

@media (max-width: 768px) {
    .enav-service-subtitle {
        font-size: 1.25rem;
    }
}

.enav-service-content {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #363636;
}

.enav-service-content p {
    margin-bottom: 1.25rem;
}

.enav-service-content strong {
    color: inherit;
    font-weight: 700;
}

/* Custom Checkmark Bullet Points */
.enav-service-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.enav-service-content ul li {
    position: relative;
    padding: 0.45rem 0 0.45rem 2rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.enav-service-content ul li::before {
    content: "";
    position: absolute;
    top: 0.65rem;
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C4.5 0 0 4.5 0 10s4.5 10 10 10 10-4.5 10-10S15.5 0 10 0zm3.1 10.7l-2.6 2.9c-.5.4-1.1.4-1.5.1-.2-.2-.3-.5-.3-.7V7.1c0-.6.4-1 1-1 .3 0 .6.1.7.3L13 9.3c.4.4.4 1 .1 1.4z' fill='%232598D7'/%3E%3Cpath d='M10.4 6.4c-.2-.2-.4-.3-.7-.3-.6 0-1 .4-1 1v5.8c0 .3.1.6.3.7.4.4 1 .3 1.4-.1l2.6-2.9c.3-.4.3-1 0-1.3l-2.6-2.9z' fill='%23fff'/%3E%3C/svg%3E");
}

/* Button CTA */
.enav-service-btn-wrap {
    margin-top: 2rem;
}

.enav-service-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem 1rem 1.75rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    cursor: pointer;
}

.enav-service-btn .icon--right {
    margin-left: 0.75rem;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enav-service-btn .icon--right svg {
    width: 100%;
    height: 100%;
}

.enav-service-btn.is-primary {
    background-color: var(--enav-primary);
    border: 2px solid var(--enav-primary);
    color: #ffffff;
}

.enav-service-btn.is-primary:hover {
    background-color: #ffffff;
    border-color: var(--enav-primary);
    color: var(--enav-primary);
}

.enav-service-btn.is-outlined {
    background-color: transparent;
    border: 2px solid var(--enav-primary);
    color: var(--enav-primary);
}

.enav-service-btn.is-outlined:hover {
    background-color: var(--enav-primary);
    color: #ffffff;
}
