/* =========================================================
   DUTECH - TEXAS DIR ITSAC
   Uses Dutech global Services design system
   ========================================================= */


/* =========================================================
   HERO
   Global .dutech-service-hero controls typography/dimensions
   ========================================================= */

.dir-modern-hero {
    position: relative;
    background-image: url('../img/dir/dutech-dir-itsac.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.dir-modern-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(7,31,70,.91) 0%,
            rgba(10,48,101,.80) 36%,
            rgba(12,65,125,.30) 62%,
            rgba(12,65,125,.03) 100%
        );
}

.dir-modern-hero-content {
    position: relative;
    z-index: 2;
}

.dir-modern-hero .row {
    align-items: center;
}

.dir-modern-hero .col-lg-7 {
    position: relative;
}

.dir-modern-hero-logo {
    position: absolute;
    left: 15px;
    top: -62px;
    margin: 0;
}

.dir-modern-hero-logo img {
    display: block;
    width: 100px;
    height: auto;
}

.dir-modern-hero .dutech-service-hero-lead strong {
    color: #ffffff !important;
    font-weight: 700;
}

.dir-modern-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 28px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.dir-modern-breadcrumb {
    min-height: 48px;
    display: flex;
    align-items: center;
    background: #f7f9fc;
    border-bottom: 1px solid #edf1f5;
}

.dir-modern-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    font-size: 12px;
}

.dir-modern-breadcrumb a {
    color: #29398b;
    text-decoration: none;
}

.dir-modern-breadcrumb span {
    color: #a5afbd;
}

.dir-modern-breadcrumb strong {
    color: #526175;
    font-weight: 700;
}


/* =========================================================
   CONTRACT NOTICE
   ========================================================= */

.dir-contract-notice {
    background: #ffffff;
}

.dir-contract-notice-inner {
    padding: 12px 0 0;
    color: #68778b;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   SHARED DIR SECTIONS
   ========================================================= */

.dir-overview-section,
.dir-services-section,
.dir-order-section,
.dir-resources-section,
.dir-rate-section,
.dir-contact-section {
    padding: 76px 0;
}

.dir-overview-section,
.dir-order-section,
.dir-rate-section {
    background: #ffffff;
}

.dir-services-section,
.dir-resources-section,
.dir-contact-section {
    background: #f5f8fc;
}

.dir-overview-section .dutech-section-title,
.dir-services-section .dutech-section-title,
.dir-order-section .dutech-section-title,
.dir-resources-section .dutech-section-title,
.dir-rate-section .dutech-section-title,
.dir-contact-section .dutech-section-title {
    margin-bottom: 36px;
}

.dir-overview-section .dutech-section-title h3,
.dir-services-section .dutech-section-title h3,
.dir-order-section .dutech-section-title h3,
.dir-resources-section .dutech-section-title h3,
.dir-rate-section .dutech-section-title h3,
.dir-contact-section .dutech-section-title h3 {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   CONTRACT OVERVIEW
   ========================================================= */

.dir-overview-row {
    display: flex;
    align-items: stretch;
}

.dir-overview-row > .col-lg-7,
.dir-overview-row > .col-lg-5 {
    display: flex;
    flex-direction: column;
}

.dir-overview-card {
    width: 100%;
    height: 100%;
    padding: 34px;
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(31,52,89,.05);
}

.dir-overview-main-card h3 {
    margin: 0 0 20px;
    color: #29398b;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.dir-overview-main-card > p {
    margin: 0 0 26px;
    color: #68778b;
    font-size: 16px;
    line-height: 1.72;
}

.dir-overview-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dir-overview-list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 25px;
    color: #3f5067;
    font-size: 15px;
    line-height: 1.55;
}

.dir-overview-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #27aae2;
    font-size: 14px;
}

.dir-overview-note {
    margin-top: 18px;
    padding: 17px 19px;
    border-left: 4px solid #27aae2;
    background: #eef7fb;
    color: #5d6b7e;
    font-size: 15px;
    line-height: 1.65;
}

.dir-overview-key-grid {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    margin: -10px;
}

.dir-overview-key-grid > .col-sm-6 {
    display: flex;
    height: 50%;
    padding: 10px;
}

.dir-key-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
}

.dir-key-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin-bottom: 17px;
    border-radius: 10px;
    background: #e9f7fd;
    color: #27aae2;
    font-size: 21px;
}

.dir-key-label {
    margin-bottom: 8px;
    color: #7f8ba1;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.dir-key-card h4 {
    margin: 0;
    color: #182344;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    overflow-wrap: anywhere;
}


/* =========================================================
   SERVICE OFFERINGS
   ========================================================= */

.dir-services-section .row > div {
    display: flex;
    margin-bottom: 24px;
}

.dir-service-card {
    width: 100%;
    min-height: 210px;
    padding: 27px 25px;
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    transition: all .22s ease;
}

.dir-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 30px rgba(26,58,97,.08);
}

.dir-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #e9f7fd;
    color: #27aae2;
    font-size: 21px;
}

.dir-service-card h3 {
    margin: 0 0 11px;
    color: #252b33;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.dir-service-card p {
    margin: 0;
    color: #68778b;
    font-size: 15px;
    line-height: 1.65;
}

.dir-section-link {
    margin-top: 10px;
}

.dir-section-link a {
    color: #27aae2;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.dir-section-link i {
    margin-left: 7px;
}


/* =========================================================
   HOW TO ENGAGE
   ========================================================= */

.dir-order-section .row > div {
    display: flex;
    margin-bottom: 24px;
}

.dir-step-card {
    width: 100%;
    min-height: 225px;
    padding: 30px 28px;
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
}

.dir-step-number {
    margin-bottom: 22px;
    color: #27aae2;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
}

.dir-step-card h3 {
    margin: 0 0 14px;
    color: #252b33;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.dir-step-card p {
    margin: 0;
    color: #68778b;
    font-size: 15px;
    line-height: 1.68;
}


/* =========================================================
   CONTRACT RESOURCES
   ========================================================= */

.dir-resources-section .row > div {
    display: flex;
    margin-bottom: 24px;
}

.dir-resource-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    min-height: 118px;
    padding: 23px;
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    color: inherit;
    text-decoration: none !important;
    transition: all .22s ease;
}

.dir-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 30px rgba(26,58,97,.08);
}

.dir-resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 10px;
    background: #e9f7fd;
    color: #27aae2;
    font-size: 21px;
}

.dir-resource-card > div:last-child {
    min-width: 0;
}

.dir-resource-card h3 {
    margin: 1px 0 5px;
    color: #252b33;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.dir-resource-card p {
    margin: 0;
    color: #68778b;
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   CONTRACT PRICING
   ========================================================= */

.dir-rate-toggle {
    margin-top: -4px;
}

.dir-rate-panel {
    max-width: 920px;
    margin: 32px auto 0;
    padding: 34px;
    background: #f7f9fc;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
}

.dir-rate-form {
    margin: 0;
}

.dir-rate-field {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.dir-rate-field label {
    margin: 0;
    color: #252b33;
    font-size: 14px;
    font-weight: 700;
}

.dir-rate-field .form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d6e0eb;
    border-radius: 6px;
    background: #ffffff;
}

.dir-rate-submit {
    margin-top: 26px;
    text-align: center;
}


/* Fix legacy partial layout inside modern pricing panel */

.dir-rate-panel #title > div > .row {
    display: flex;
    align-items: center;
    margin: 0 0 20px !important;
}

.dir-rate-panel #title .col-md-1 {
    display: none;
}

.dir-rate-panel #title .col-md-2 {
    flex: 0 0 25%;
    max-width: 25%;
}

.dir-rate-panel #title .col-md-6 {
    flex: 0 0 75%;
    max-width: 75%;
}

.dir-rate-panel #title .input-group {
    margin: 0 !important;
}

.dir-rate-panel #title label {
    color: #252b33;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   CONTACTS
   ========================================================= */

.dir-contact-section .row {
    justify-content: center;
}

.dir-contact-section .row > div {
    display: flex;
    margin-bottom: 24px;
}

.dir-contact-card {
    width: 100%;
    min-height: 285px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
}

.dir-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #e9f7fd;
    color: #27aae2;
    font-size: 21px;
}

.dir-contact-label {
    margin-bottom: 9px;
    color: #7f8ba1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.dir-contact-card h3 {
    margin: 0 0 20px;
    color: #252b33;
    font-size: 21px;
    font-weight: 700;
}

.dir-contact-card p {
    margin: 0 0 9px;
    color: #68778b;
    font-size: 15px;
    line-height: 1.6;
}

.dir-contact-card a {
    color: #29398b;
    overflow-wrap: anywhere;
}


/* =========================================================
   FINAL CTA
   Same light-blue Services CTA treatment
   ========================================================= */

.dir-final-cta {
    padding: 76px 0;
    background: #eef7fb;
}

.dir-final-cta .dutech-section-title {
    margin-bottom: 28px;
}

.dir-final-cta .dutech-section-title h3 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .dir-overview-section,
    .dir-services-section,
    .dir-order-section,
    .dir-resources-section,
    .dir-rate-section,
    .dir-contact-section,
    .dir-final-cta {
        padding: 64px 0;
    }

    .dir-modern-hero {
        background-position: 62% center;
    }

    .dir-modern-hero-logo {
        top: -56px;
    }

    .dir-modern-hero-logo img {
        width: 92px;
    }

    .dir-overview-row {
        display: block;
    }

    .dir-overview-key-grid {
        height: auto;
        margin-top: 18px;
    }

    .dir-overview-key-grid > .col-sm-6 {
        height: auto;
    }

    .dir-key-card {
        min-height: 165px;
    }
}


@media (max-width: 767px) {

    .dir-overview-section,
    .dir-services-section,
    .dir-order-section,
    .dir-resources-section,
    .dir-rate-section,
    .dir-contact-section,
    .dir-final-cta {
        padding: 52px 0;
    }

    .dir-modern-hero {
        background-position: 67% center;
    }

    .dir-modern-hero-overlay {
        background: rgba(7,31,70,.80);
    }

    .dir-modern-hero-logo {
        position: static;
        margin-bottom: 10px;
    }

    .dir-modern-hero-logo img {
        width: 88px;
    }

    .dir-modern-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .dir-modern-hero-actions .dutech-btn-primary,
    .dir-modern-hero-actions .dutech-btn-outline-light {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .dir-overview-card {
        padding: 25px 22px;
    }

    .dir-overview-key-grid > .col-sm-6 {
        width: 100%;
    }

    .dir-key-card {
        min-height: 0;
    }

    .dir-service-card,
    .dir-step-card,
    .dir-contact-card {
        min-height: 0;
        padding: 24px 22px;
    }

    .dir-resource-card {
        min-height: 0;
    }

    .dir-rate-panel {
        padding: 24px 20px;
    }

    .dir-rate-field {
        display: block;
    }

    .dir-rate-field > div {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .dir-rate-field label {
        display: block;
        margin-bottom: 8px;
    }

    .dir-rate-panel #title > div > .row {
        display: block;
    }

    .dir-rate-panel #title .col-md-2,
    .dir-rate-panel #title .col-md-6 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .dir-rate-panel #title .col-md-2 {
        margin-bottom: 8px;
    }
}

/* DIR information notice - full width */
.dir-contract-notice {
    width: 100%;
    padding: 0;
    background: #fff4cf;
    border-top: 1px solid #f0d98a;
    border-bottom: 1px solid #f0d98a;
}

.dir-contract-notice .container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.dir-contract-notice-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8a6200;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
}

/* DIR overview - equal left and right height */
.dir-overview-row {
    display: flex;
    align-items: stretch;
}

.dir-overview-row > .col-lg-7,
.dir-overview-row > .col-lg-5 {
    display: flex;
    flex-direction: column;
}

.dir-overview-main-card {
    width: 100%;
    height: 100%;
}

.dir-overview-key-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    height: 100%;
    margin: 0;
}

.dir-overview-key-grid > .col-sm-6 {
    display: flex;
    width: auto;
    max-width: none;
    padding: 0;
}

.dir-overview-key-grid .dir-key-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

@media (max-width: 991px) {
    .dir-overview-row {
        display: block;
    }

    .dir-overview-key-grid {
        height: auto;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .dir-overview-key-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }
}

/* DIR overview grid cell height correction */
.dir-overview-key-grid > .col-sm-6 {
    height: 100%;
}

/* DIR CTA - Services standard */
.dir-final-cta {
    width: 100%;
    padding: 76px 0;
    background: #eef7fb;
}

.dir-final-cta .dutech-section-title {
    margin-bottom: 28px;
}

.dir-final-cta .dutech-title-divider {
    display: block;
    margin: 15px auto 22px;
}

/* DIR section eyebrow color - match Services */
.dir-overview-section .dutech-section-eyebrow,
.dir-services-section .dutech-section-eyebrow,
.dir-order-section .dutech-section-eyebrow,
.dir-resources-section .dutech-section-eyebrow,
.dir-rate-section .dutech-section-eyebrow,
.dir-contact-section .dutech-section-eyebrow,
.dir-final-cta .dutech-section-eyebrow {
    color: #27aae2 !important;
}

/* DIR section dividers - match Services */
.dir-overview-section .dutech-section-title::after,
.dir-services-section .dutech-section-title::after,
.dir-order-section .dutech-section-title::after,
.dir-resources-section .dutech-section-title::after,
.dir-rate-section .dutech-section-title::after,
.dir-contact-section .dutech-section-title::after {
    content: "";
    display: block;
    width: 92px;
    height: 3px;
    margin: 15px auto 0;
    background: #27aae2;
}
