/*
/*
 * Designed In Ink — Homepage Styles
 * File: child-theme/assets/css/homepage.css
 *
 * Built for Astra Free with Full Width container setting.
 * All Astra container overrides are in Section 1.
 * NO external font imports — fonts loaded via assets/css/fonts.css
 * NO external scripts — all icons are inline SVG
 */

/* ══════════════════════════════════════════════════════════════
   1. ASTRA FREE — FULL WIDTH OVERRIDES
   These rules break out of Astra's default narrow container.
   Required because Astra Free doesn't have "Full Width Stretched".
   Targets every known Astra wrapper class to ensure full width.
══════════════════════════════════════════════════════════════ */

/* Hide page title, header bar, breadcrumbs on homepage */
.home .ast-page-title-bar,
.home .entry-header,
.home .ast-breadcrumbs-wrapper,
.home .ast-above-header-bar {
    display: none !important;
}

/* Force all Astra wrappers to full width */
.home #page,
.home #content,
.home #primary,
.home .site-content,
.home .content-area,
.home .ast-container,
.home .ast-article-single,
.home article.page,
.home .entry-content,
.home .post-content,
.home .page-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Astra grid row */
.home .ast-row {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The main homepage wrapper */
#dii-homepage {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════
   2. CSS VARIABLES
   Edit here to change brand colors sitewide.
══════════════════════════════════════════════════════════════ */

:root {
    --dii-blue:        #5C8BA4;
    --dii-blue-dark:   #3d6a82;
    --dii-blue-light:  #e8f2f7;
    --dii-blue-xlight: #f4f9fb;
    --dii-dark:        #0e1e27;
    --overlay-opacity: 0.56;
    --radius:          6px;
    --section-pad:     2.5rem 1.5rem;
    --transition:      0.28s ease;
    --font-display:    'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:       'Barlow', system-ui, -apple-system, sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   3. SHARED UTILITIES
══════════════════════════════════════════════════════════════ */

.dii-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

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

.dii-section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dii-blue);
    margin-bottom: 4px;
}

.dii-section-h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.05;
    color: #1a2e38;
    margin-bottom: .75rem;
}

/* Buttons */
.dii-btn-primary,
.dii-btn-ghost,
.dii-btn-white,
.dii-btn-outline-white {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1;
    box-sizing: border-box;
}
.dii-btn-primary { background: var(--dii-blue); color: #fff; }
.dii-btn-primary:hover { background: var(--dii-blue-dark); color: #fff; text-decoration: none; }
.dii-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.dii-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.dii-btn-white { background: #fff; color: var(--dii-blue); }
.dii-btn-white:hover { background: var(--dii-blue-light); color: var(--dii-blue-dark); text-decoration: none; }
.dii-btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.dii-btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   4. HERO — full bleed, centered content, rotating background
══════════════════════════════════════════════════════════════ */

.dii-hero {
    position: relative;
    min-height: 520px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dii-dark);
    box-sizing: border-box;
}

/* Top accent stripe */
.dii-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--dii-blue);
    z-index: 5;
}

/* Rotating background slides */
.dii-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.dii-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-color: var(--dii-dark);
}

/* Gradient placeholders until real photos are added */
.dii-hero-slide:nth-child(1) { background-image: linear-gradient(160deg, #1a3a4a, #0e1e27); }
.dii-hero-slide:nth-child(2) { background-image: linear-gradient(160deg, #162d3a, #1a3a4a); }
.dii-hero-slide:nth-child(3) { background-image: linear-gradient(160deg, #0e1e27, #162d3a); }
.dii-hero-slide:nth-child(4) { background-image: linear-gradient(160deg, #1e3d50, #0e1e27); }
.dii-hero-slide.is-active { opacity: 1; }

/* Dark overlay — keeps text readable over any photo */
.dii-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 30, var(--overlay-opacity));
    z-index: 2;
}

/* Centered content block */
.dii-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 4rem 2rem 5rem;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.dii-hero-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7ec4dc;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dii-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #7ec4dc;
    display: inline-block;
    flex-shrink: 0;
}

.dii-hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 48px) !important;
    font-weight: 900;
    line-height: .92;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,.65), 0 4px 48px rgba(0,0,0,.4);
}
.dii-hero-h1 span { color: #8ec9e0; }

.dii-hero-sub {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,.84);
    line-height: 1.65;
    margin: 0 auto 24px;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.dii-hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* Stats row */
.dii-hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    padding-top: 20px;
    flex-wrap: wrap;
}

.dii-stat { padding: 0 20px; }
.dii-stat + .dii-stat { border-left: 1px solid rgba(255,255,255,.14); }

.dii-stat-num-wrap { display: flex; align-items: baseline; gap: 2px; }
.dii-stat-num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.dii-stat-sfx {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
}
.dii-stat-label {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: 4px;
}

/* Slide indicator dots */
.dii-hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 0;
    margin: 0;
    list-style: none;
    width: auto;
    height: auto;
    background: none;
}

.dii-hero-dot {
    /* Reset all Astra/WordPress button styles */
    all: unset;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .3s ease, transform .3s ease;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
    line-height: 1;
    font-size: 0;
}
.dii-hero-dot:focus { outline: none; }
.dii-hero-dot.is-active {
    background: #ffffff;
    transform: scale(1.35);
}

/* ══════════════════════════════════════════════════════════════
   5. LOGO SCROLL BAR
══════════════════════════════════════════════════════════════ */

.dii-logo-bar {
    background: #0a161f;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-sizing: border-box;
}

.dii-logo-bar-label {
    text-align: center;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.22);
    padding: 10px 0 4px;
}

.dii-logo-track {
    display: flex;
    width: max-content;
    animation: dii-marquee 32s linear infinite;
    padding: 8px 0 12px;
}
.dii-logo-track:hover { animation-play-state: paused; }

@keyframes dii-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.dii-logo-set { display: flex; align-items: center; }

.logo-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    margin: 0 6px;
    background: rgba(255,255,255,.04);
    border: .5px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #555;
    white-space: nowrap;
    min-width: 110px;
    filter: grayscale(100%) opacity(.5);
    transition: all .35s ease;
    cursor: default;
}
.logo-tile img { max-height: 36px; width: auto; display: block; }
.logo-tile:hover {
    filter: grayscale(0%) opacity(1);
    color: var(--dii-blue);
    background: rgba(92,139,164,.12);
    border-color: rgba(92,139,164,.4);
}

/* ══════════════════════════════════════════════════════════════
   6. TRUST BAR — 4 columns horizontal
══════════════════════════════════════════════════════════════ */

.dii-trust-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    background: #fff;
    border-bottom: 1px solid #e4edf1;
    width: 100%;
    box-sizing: border-box;
}

.dii-trust-item {
    flex: 1;
    min-width: 0;
    padding: .875rem .5rem;
    text-align: center;
    border-right: 1px solid #e4edf1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-sizing: border-box;
}
.dii-trust-item:last-child { border-right: none; }
.dii-trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--dii-blue);
    letter-spacing: .02em;
    line-height: 1.1;
}
.dii-trust-item span {
    font-size: 11px;
    color: #8aacba;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ══════════════════════════════════════════════════════════════
   7. SERVICES STRIP — 4 columns horizontal
══════════════════════════════════════════════════════════════ */

.dii-svc-section {
    padding: var(--section-pad);
    background: #f7f9fa;
    border-bottom: 1px solid #e4edf1;
    width: 100%;
    box-sizing: border-box;
}

.dii-svc-head { margin-bottom: 1.5rem; text-align: center; }

.dii-svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.dii-svc-item {
    padding: 0 1.25rem;
    border-right: 1px solid #dde8ed;
    text-align: center;
    box-sizing: border-box;
}
.dii-svc-item:first-child { padding-left: 0; }
.dii-svc-item:last-child { border-right: none; padding-right: 0; }

.dii-svc-icon {
    width: 44px; height: 44px;
    background: var(--dii-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #fff;
}

.dii-svc-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a2e38;
    margin-bottom: 3px;
    letter-spacing: .02em;
}
.dii-svc-tag { font-size: 11px; color: #8aacba; letter-spacing: .04em; margin-bottom: 8px; }
.dii-svc-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--dii-blue);
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
}
.dii-svc-link:hover { color: var(--dii-blue-dark); }

/* ══════════════════════════════════════════════════════════════
   8. WOOCOMMERCE CATEGORY GRID
══════════════════════════════════════════════════════════════ */

.dii-cat-section {
    padding: var(--section-pad);
    width: 100%;
    box-sizing: border-box;
}

.dii-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 1.5rem;
    width: 100%;
}

.dii-cat-tile {
    display: block;
    text-decoration: none;
    background: #f0f5f7;
    border: 1px solid #dde8ed;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.dii-cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(92,139,164,.14);
    text-decoration: none;
}

.dii-cat-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--dii-blue-light);
}
.dii-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.dii-cat-tile:hover .dii-cat-img img { transform: scale(1.04); }

.dii-cat-info {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef3f5;
}
.dii-cat-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a2e38;
    letter-spacing: .02em;
}
.dii-cat-arrow { font-size: 14px; color: var(--dii-blue); }

/* ══════════════════════════════════════════════════════════════
   9. TESTIMONIAL STRIP — scrolling single line
══════════════════════════════════════════════════════════════ */

.dii-testi-section {
    background: var(--dii-dark);
    padding: 1.25rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.06);
    width: 100%;
    box-sizing: border-box;
}

.dii-testi-label {
    text-align: center;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    padding: 0 0 8px;
}

.dii-testi-wrap { overflow: hidden; width: 100%; }

.dii-testi-track {
    display: flex;
    width: max-content;
    animation: dii-testi-scroll 44s linear infinite;
}
.dii-testi-track:hover { animation-play-state: paused; }

@keyframes dii-testi-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.dii-testi-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    border-right: 1px solid rgba(255,255,255,.07);
    white-space: nowrap;
    flex-shrink: 0;
}

.dii-testi-stars { display: flex; gap: 1px; flex-shrink: 0; }
.dii-testi-quote { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.76); font-style: italic; }
.dii-testi-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.2); flex-shrink: 0; }
.dii-testi-name { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   10. WHO WE SERVE — pill grid
══════════════════════════════════════════════════════════════ */

.dii-serve-section {
    padding: var(--section-pad);
    background: #fff;
    border-top: 1px solid #e4edf1;
    width: 100%;
    box-sizing: border-box;
}

.dii-serve-intro {
    font-family: var(--font-body);
    font-size: 15px;
    color: #5a7a88;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 640px;
}

.dii-serve-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dii-serve-pill {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid #dde8ed;
    color: #3a5a68;
    background: #fff;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.dii-serve-pill:hover { background: var(--dii-blue); border-color: var(--dii-blue); color: #fff; text-decoration: none; }
.dii-serve-pill--trades { border-color: #c5dbe6; background: #f4f9fb; }

/* ══════════════════════════════════════════════════════════════
   11. FINAL CTA
══════════════════════════════════════════════════════════════ */

.dii-cta-section {
    background: var(--dii-blue);
    padding: 3rem 1.5rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.dii-cta-heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.0;
}
.dii-cta-sub { font-family: var(--font-body); font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 22px; line-height: 1.6; }
.dii-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   12. RELATED LINKS
══════════════════════════════════════════════════════════════ */

.dii-related-links {
    background: #f7f9fa;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e4edf1;
    width: 100%;
    box-sizing: border-box;
}

.dii-related-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8aacba;
    margin-bottom: 10px;
}

.dii-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dii-related-grid a {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--dii-blue);
    background: #fff;
    border: 1px solid #c5dbe6;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition);
}
.dii-related-grid a:hover { background: var(--dii-blue-light); border-color: var(--dii-blue); text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   13. MOBILE MENU FIX
══════════════════════════════════════════════════════════════ */

#ast-mobile-header,
.ast-mobile-header-wrap,
.ast-header-break-point .main-header-bar-navigation,
.ast-header-break-point .main-header-bar-navigation .menu-item a {
    background-color: #3d6a82 !important;
    color: #ffffff !important;
}
.ast-header-break-point .main-header-bar-navigation .menu-item a,
.ast-header-break-point .main-header-bar-navigation .menu-item a:hover {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,.1) !important;
}
.ast-mobile-menu-buttons svg,
.menu-toggle svg { fill: #ffffff !important; }

/* ══════════════════════════════════════════════════════════════
   14. RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
    :root { --section-pad: 2rem 1.25rem; }

    .dii-svc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .dii-svc-item { border-right: none; border-bottom: 1px solid #dde8ed; padding: 0 0 16px; }
    .dii-svc-item:nth-child(2n) { padding-left: 1rem; border-left: 1px solid #dde8ed; }
    .dii-svc-item:last-child { border-bottom: none; }

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

    .dii-trust-bar { flex-wrap: nowrap; }
    .dii-trust-item strong { font-size: 14px; }
    .dii-trust-item span { font-size: 10px; }
}

/* Mobile */
@media (max-width: 600px) {
    :root { --section-pad: 2rem 1rem; --overlay-opacity: 0.62; }

    .dii-hero { min-height: 480px; }
    .dii-hero-h1 { font-size: 44px; }
    .dii-hero-content { padding: 3rem 1.25rem 4.5rem; }

    .dii-hero-stats { flex-direction: column; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
    .dii-stat { padding: 0; border-left: none !important; }
    .dii-stat-num { font-size: 24px; }

    .dii-trust-bar { flex-wrap: wrap; }
    .dii-trust-item { flex: 1 0 50%; border-bottom: 1px solid #e4edf1; }

    .dii-svc-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
    .dii-svc-item { border: none !important; padding: 12px 8px !important; text-align: center !important; }
	.dii-svc-item:last-child { border: none !important; }

    .dii-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    .dii-cta-btns { flex-direction: column; align-items: center; }

    .dii-hero-dots { gap: 6px; bottom: 14px; }
    .dii-hero-dot { width: 7px; height: 7px; }
}
.dii-faq-section {
    padding: var(--section-pad);
    background: #f7f9fa;
    border-top: 1px solid #e4edf1;
    width: 100%;
    box-sizing: border-box;
}