/*
 HDAdmin Theme Engine V1
 Theme: Halstead Modern
 Safe bridge mode: reuse the proven live Halstead design layer.
*/
@import url("/css/hd-site.css");
@import url("/layout/css/hd-managed-navigation.css");

:root{
  --hd-theme-primary: var(--blue, #1689ee);
  --hd-theme-primary-dark: var(--blue-dark, #0876d3);
  --hd-theme-navy: var(--navy, #09243d);
  --hd-theme-dark: var(--dark, #061b2d);
  --hd-theme-text: var(--text, #122b42);
  --hd-theme-muted: var(--muted, #627386);
  --hd-theme-border: var(--border, #dce5ec);
  --hd-theme-max-width: var(--max-width, 1600px);
  --hd-theme-radius: 8px;
  --hd-theme-section-space: 120px;
}

/* Theme-section hooks. Existing Halstead classes remain the visual source in V1. */
.hd-theme-section{position:relative}
.hd-theme-section--services .service-card{transition:transform .25s ease,box-shadow .25s ease}
.hd-theme-section--services .service-card:hover{transform:translateY(-6px)}
.hd-theme-section--cta{overflow:hidden}

/*
HDAdmin / Halstead Modern
Services Cards — Theme Section Style V1
------------------------------------------------------------
Paste this at the BOTTOM of:
/themes/halstead-modern/theme.css
*/

.hd-theme-section--services {
    position: relative;
    padding: 100px 30px;
    background: #f7f9fb;
    overflow: hidden;
}

.hd-theme-section--services::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -180px;
    top: -180px;
    border-radius: 50%;
    background: rgba(22,137,238,.07);
    pointer-events: none;
}

.hd-theme-section--services .section-heading {
    max-width: 900px;
    margin: 0 auto 55px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hd-theme-section--services .section-heading .eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
    color: #597086;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hd-theme-section--services .section-heading .eyebrow::before,
.hd-theme-section--services .section-heading .eyebrow::after {
    content: "";
    width: 34px;
    height: 2px;
    background: #1689ee;
}

.hd-theme-section--services .section-heading h2 {
    margin: 0;
    color: #122b42;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -2px;
}

.hd-theme-section--services .service-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e1e8ee;
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(9,36,61,.09);
    overflow: hidden;
}

.hd-theme-section--services .service-card {
    position: relative;
    min-width: 0;
    padding: 48px 30px 44px;
    text-align: center;
    background: #fff;
    border-right: 1px solid #e1e8ee;
    transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}

.hd-theme-section--services .service-card:last-child {
    border-right: 0;
}

.hd-theme-section--services .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: #1689ee;
    transform: translateX(-50%);
    transition: width .28s ease;
}

.hd-theme-section--services .service-card:hover {
    z-index: 2;
    background: #fbfdff;
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(9,36,61,.12);
}

.hd-theme-section--services .service-card:hover::before {
    width: 100%;
}

.hd-theme-section--services .service-card img {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin: 0 auto 25px;
}

.hd-theme-section--services .service-card h2,
.hd-theme-section--services .service-card h3,
.hd-theme-section--services .service-card h4 {
    margin: 0 0 14px;
    color: #122b42;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.hd-theme-section--services .service-card p {
    margin: 0 auto 22px;
    max-width: 245px;
    color: #627386;
    font-size: 15px;
    line-height: 1.65;
}

.hd-theme-section--services .service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1689ee;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hd-theme-section--services .service-card a::after {
    content: "\2192";
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease;
}

.hd-theme-section--services .service-card a:hover::after {
    transform: translateX(5px);
}

@media (max-width: 1100px) {
    .hd-theme-section--services .service-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .hd-theme-section--services .service-card {
        border-bottom: 1px solid #e1e8ee;
    }

    .hd-theme-section--services .service-card:nth-child(2n) {
        border-right: 0;
    }

    .hd-theme-section--services .service-card:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
    }
}

@media (max-width: 650px) {
    .hd-theme-section--services {
        padding: 70px 18px;
    }

    .hd-theme-section--services .section-heading {
        margin-bottom: 35px;
    }

    .hd-theme-section--services .section-heading h2 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hd-theme-section--services .service-grid {
        display: block;
        border-radius: 10px;
    }

    .hd-theme-section--services .service-card {
        border-right: 0;
        border-bottom: 1px solid #e1e8ee;
        padding: 38px 24px;
    }

    .hd-theme-section--services .service-card:last-child {
        border-bottom: 0;
    }
}

/* ============================================================
   HDADMIN FINAL FIX — SERVICES CTA + SPLIT CONTENT
   2026-09-17
   ============================================================ */

/* SERVICES: the widget renderer already outputs a Font Awesome arrow.
   Hide the old icon and let the theme create exactly ONE arrow. */
.hd-theme-section--services .service-link i,
.hd-theme-section--services .service-link .fa-arrow-right {
    display: none !important;
}

.hd-theme-section--services .service-card a::after {
    content: "\2192" !important;
    display: inline-block !important;
    position: static !important;
    margin-left: 8px !important;
    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    transform: none !important;
}

.hd-theme-section--services .service-card a:hover::after {
    transform: translateX(5px) !important;
}


/* SPLIT CONTENT: force a true two-column layout in the builder/preview.
   Image Left  = media left / copy right
   Image Right = copy left / media right */
.hd-theme-section--split {
    position: relative !important;
    padding: 90px 30px !important;
    overflow: hidden !important;
}

.hd-theme-section--split .hd-builder-inner {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hd-theme-section--split .hd-builder-copy {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hd-theme-section--split .split-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.hd-theme-section--split .split-grid.split-align-top {
    align-items: start !important;
}

.hd-theme-section--split .split-media,
.hd-theme-section--split .split-copy {
    min-width: 0 !important;
    width: 100% !important;
}

/* Default / Image Left */
.hd-theme-section--split .split-image-left .split-media {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: initial !important;
}

.hd-theme-section--split .split-image-left .split-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: initial !important;
}

/* Image Right */
.hd-theme-section--split .split-image-right .split-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: initial !important;
}

.hd-theme-section--split .split-image-right .split-media {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: initial !important;
}

/* Keep the selected image inside its column */
.hd-theme-section--split .split-media {
    overflow: hidden !important;
}

.hd-theme-section--split .split-media img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.hd-theme-section--split .split-media-rounded img {
    border-radius: 18px !important;
}

.hd-theme-section--split .split-media-soft img {
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(9,36,61,.16) !important;
}

/* Keep all text/button together in the copy column */
.hd-theme-section--split .split-copy {
    padding: 10px 0 !important;
    text-align: left !important;
}

.hd-theme-section--split .eyebrow {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 0 0 18px !important;
    color: #597086 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
}

.hd-theme-section--split .eyebrow::before {
    content: "" !important;
    width: 34px !important;
    height: 2px !important;
    flex: 0 0 34px !important;
    background: var(--hd-theme-primary,#1689ee) !important;
}

.hd-theme-section--split .eyebrow::after {
    content: none !important;
}

.hd-theme-section--split h2 {
    margin: 0 0 24px !important;
    color: var(--hd-theme-navy,#09243d) !important;
    font-size: clamp(38px,4vw,58px) !important;
    line-height: 1.04 !important;
    font-weight: 900 !important;
    letter-spacing: -2px !important;
    text-align: left !important;
}

.hd-theme-section--split .split-content {
    color: var(--hd-theme-muted,#627386) !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
    text-align: left !important;
}

.hd-theme-section--split .split-content p {
    margin: 0 0 18px !important;
}

.hd-theme-section--split .split-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 14px !important;
    padding: 15px 24px !important;
    border-radius: 8px !important;
    background: var(--hd-theme-primary,#1689ee) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .5px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

@media (max-width: 800px) {
    .hd-theme-section--split {
        padding: 65px 18px !important;
    }

    .hd-theme-section--split .split-grid {
        grid-template-columns: 1fr !important;
        gap: 34px !important;
    }

    .hd-theme-section--split .split-image-left .split-media,
    .hd-theme-section--split .split-image-right .split-media {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .hd-theme-section--split .split-image-left .split-copy,
    .hd-theme-section--split .split-image-right .split-copy {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .hd-theme-section--split h2 {
        font-size: 38px !important;
        letter-spacing: -1px !important;
    }
}


/* ============================================================
   HDADMIN THEME FEATURED PROJECTS — LIVE HALSTEAD LAYOUT
   Image first, project copy below. No image-overlay text.
   ============================================================ */

.hd-theme-section--featured {
    position: relative !important;
    padding: 100px 30px !important;
    background: #092f4f !important;
    color: #fff !important;
    overflow: hidden !important;
}

.hd-theme-section--featured > .hd-builder-inner,
.hd-theme-section--featured .hd-builder-copy {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hd-theme-section--featured .featured-heading {
    width: 100% !important;
    margin: 0 0 48px !important;
    text-align: left !important;
}

.hd-theme-section--featured .featured-heading .eyebrow {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    margin: 0 0 14px !important;
    color: #b9d6ed !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
}

.hd-theme-section--featured .featured-heading .eyebrow::before {
    content: "" !important;
    width: 34px !important;
    height: 2px !important;
    flex: 0 0 34px !important;
    background: #1689ee !important;
}
.hd-theme-section--featured .featured-heading .eyebrow::after { content:none !important; display:none !important; }

.hd-theme-section--featured .featured-heading h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(48px,5.4vw,72px) !important;
    line-height: .92 !important;
    font-weight: 900 !important;
    letter-spacing: -2px !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

.hd-theme-section--featured .featured-project-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--featured-cols,3), minmax(0,1fr)) !important;
    gap: var(--featured-gap,28px) !important;
    width: 100% !important;
    margin: 0 !important;
}

.hd-theme-section--featured .featured-project-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

.hd-theme-section--featured .featured-project-media {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
    width: 100% !important;
    height: 320px !important;
    margin: 0 0 18px !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    background: #061f35 !important;
}
.hd-theme-section--featured .featured-project-media::after { content:none !important; display:none !important; }

.hd-theme-section--featured .featured-project-media img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: transform .35s ease !important;
}
.hd-theme-section--featured .featured-project-card:hover .featured-project-media img { transform:scale(1.025) !important; }

.hd-theme-section--featured .featured-project-content {
    position: static !important;
    z-index: auto !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    color: #fff !important;
}

.hd-theme-section--featured .featured-project-content::before {
    content: "WEBSITE PROJECT" !important;
    display: block !important;
    margin: 0 0 10px !important;
    color: #a9c9e2 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: .8px !important;
    text-transform: uppercase !important;
}

.hd-theme-section--featured .featured-project-content h3 {
    margin: 0 0 12px !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    letter-spacing: -.25px !important;
}

.hd-theme-section--featured .featured-project-content p {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.hd-theme-section--featured .featured-project-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: .35px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}
.hd-theme-section--featured .featured-project-link::after {
    content: "\2192" !important;
    color: #1689ee !important;
    font-family: Arial,sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

@media (max-width:1050px) {
    .hd-theme-section--featured .featured-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:700px) {
    .hd-theme-section--featured { padding:70px 18px !important; }
    .hd-theme-section--featured .featured-heading { margin-bottom:35px !important; }
    .hd-theme-section--featured .featured-heading h2 { font-size:42px !important; letter-spacing:-1px !important; }
    .hd-theme-section--featured .featured-project-grid { grid-template-columns:1fr !important; }
    .hd-theme-section--featured .featured-project-media { height:260px !important; }
}

/* ============================================================
   HDADMIN FINAL FIX — FEATURED PROJECT CARDS
   Transparent cards + spacing + preserve project-card hover
   ============================================================ */

.hd-theme-section--featured .featured-project-grid {
    gap: var(--featured-gap, 28px) !important;
    background: transparent !important;
}

.hd-theme-section--featured .featured-project-card,
.hd-theme-section--featured .featured-project-card:hover,
.hd-theme-section--featured .featured-project-card:focus-within {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Preserve the existing project-card image hover behavior */
.hd-theme-section--featured .featured-project-card .featured-project-media {
    background: transparent !important;
}

.hd-theme-section--featured .featured-project-card:hover .featured-project-media img {
    transform: scale(1.025) !important;
}

/* Keep the single blue arrow on View Project */
.hd-theme-section--featured .featured-project-link::after {
    content: "\2192" !important;
    display: inline-block !important;
    margin-left: 2px !important;
    color: #1689ee !important;
    transition: transform .2s ease !important;
}

.hd-theme-section--featured .featured-project-link:hover::after {
    transform: translateX(5px) !important;
}

