/* =====================================================================
   DG Enterprise - Modern design system (2026 rebrand)
   ---------------------------------------------------------------------
   This layer loads AFTER style.css and modernises the legacy "Digency"
   theme site-wide without rewriting the content fragments. It introduces
   design tokens, refined typography, a restructured header, modern
   buttons, cards, sections and footer, plus responsive behaviour.
   Product sub-brands (e.g. SafeKeep) opt into their own accent via a
   `data-brand` attribute on <body> or a `.brand-*` wrapper class.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
    /* Brand palette */
    --dg-primary: #8a0a08;
    --dg-primary-strong: #6d0605;
    --dg-primary-soft: #fdeceb;
    --dg-ink: #14141f;
    --dg-ink-2: #1f2130;
    --dg-navy: #14142a;

    /* Neutrals */
    --dg-bg: #ffffff;
    --dg-surface: #ffffff;
    --dg-surface-2: #f7f7fb;
    --dg-surface-3: #eef0f6;
    --dg-line: #e6e8f0;
    --dg-text: #383a4a;
    --dg-text-muted: #6a6d80;
    --dg-heading: #14141f;
    --dg-white: #ffffff;

    /* Accent gradients */
    --dg-grad: linear-gradient(120deg, #8a0a08 0%, #b31b17 55%, #d94a2f 100%);
    --dg-grad-ink: linear-gradient(135deg, #14142a 0%, #241b3a 100%);

    /* Type */
    --dg-font-body: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --dg-font-display: "Sora", "Unna", "Segoe UI", sans-serif;

    /* Radii + shadows */
    --dg-radius-sm: 10px;
    --dg-radius: 16px;
    --dg-radius-lg: 24px;
    --dg-radius-pill: 999px;
    --dg-shadow-sm: 0 2px 8px rgba(20, 20, 31, 0.06);
    --dg-shadow: 0 12px 32px -12px rgba(20, 20, 31, 0.18);
    --dg-shadow-lg: 0 30px 60px -24px rgba(20, 20, 31, 0.28);

    /* Spacing rhythm */
    --dg-section-y: 96px;

    /* Active accent (overridden per sub-brand) */
    --dg-accent: var(--dg-primary);
    --dg-accent-strong: var(--dg-primary-strong);
    --dg-accent-soft: var(--dg-primary-soft);
    --dg-accent-grad: var(--dg-grad);
}

/* SafeKeep sub-brand: calm teal identity */
[data-brand="safekeep"],
.brand-safekeep {
    --dg-accent: #0f8a72;
    --dg-accent-strong: #0b6a58;
    --dg-accent-soft: #e6f6f1;
    --dg-accent-grad: linear-gradient(120deg, #0b6a58 0%, #0f8a72 55%, #23b391 100%);
}

/* ------------------------------------------------------------------ */
/* 2. Base + typography                                                */
/* ------------------------------------------------------------------ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: var(--dg-font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--dg-text);
    background: var(--dg-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dg-font-display);
    color: var(--dg-heading);
    line-height: 1.18;
    letter-spacing: -0.01em;
    font-weight: 700;
}

p {
    font-family: var(--dg-font-body);
    color: var(--dg-text);
}

a {
    color: var(--dg-accent);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--dg-accent-strong);
}

::selection {
    background: var(--dg-accent);
    color: #fff;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1180px;
}

/* ------------------------------------------------------------------ */
/* 3. Buttons                                                          */
/* ------------------------------------------------------------------ */
.btn-style-one,
.theme-btn {
    font-family: var(--dg-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #fff !important;
    line-height: 1.2;
    padding: 15px 30px;
    border: none;
    border-radius: var(--dg-radius-pill);
    background: var(--dg-accent);
    background-image: var(--dg-accent-grad);
    box-shadow: 0 10px 24px -10px rgba(138, 10, 8, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-style-one:hover,
.theme-btn:hover {
    color: #fff !important;
    background: var(--dg-accent-strong);
    background-image: var(--dg-accent-grad);
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(138, 10, 8, 0.65);
    border: none;
}

/* Ghost / outline variant - detect the common inline "transparent" usage */
.btn-style-one[style*="transparent"] {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
}
.btn-style-one[style*="transparent"]:hover {
    background: #fff !important;
    color: var(--dg-ink) !important;
    border-color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* 4. Header + navigation                                              */
/* ------------------------------------------------------------------ */
.main-header {
    padding: 0;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--dg-line);
    position: sticky;
    top: 0;
}

.main-header .container-fluid {
    max-width: 1180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 20px;
}

.main-header .logo {
    position: static;
}

.main-header .logo figure {
    margin: 0;
    display: flex;
    align-items: center;
}

.main-header .logo-img {
    width: 54px;
    height: auto;
}

.main-header .main-menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.main-menu .navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.main-menu .navigation > li {
    margin: 0;
    padding: 0;
}

.main-menu .navigation > li > a {
    font-family: var(--dg-font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--dg-ink-2);
    padding: 22px 14px;
    border-radius: 10px;
    text-transform: none;
}

.main-menu .navigation > li > a:hover,
.main-menu .navigation > li.current > a {
    color: var(--dg-accent);
}

.main-menu .navigation > li.current > a {
    position: relative;
}

.main-menu .navigation > li.current > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--dg-accent-grad);
}

/* Dropdown menu */
.main-menu .navigation > li > ul {
    background: #fff;
    border-top: 3px solid var(--dg-accent);
    border-radius: 0 0 var(--dg-radius-sm) var(--dg-radius-sm);
    box-shadow: var(--dg-shadow);
    padding: 8px;
    width: 250px;
    overflow: hidden;
}

.main-menu .navigation > li > ul > li {
    border-bottom: none;
}

.main-menu .navigation > li > ul > li > a {
    background: transparent;
    color: var(--dg-ink-2);
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 8px;
    text-transform: none;
}

.main-menu .navigation > li > ul > li > a:hover {
    background: var(--dg-accent-soft);
    color: var(--dg-accent-strong);
}

.main-header .link-button {
    position: static;
    top: auto;
    right: auto;
    display: flex;
    align-items: center;
}

.link-button .social-links li a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dg-ink-2);
    background: var(--dg-surface-2);
    margin-left: 6px;
    font-size: 14px;
}

.link-button .social-links li a:hover {
    background: var(--dg-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile menu toggle */
.main-header .navbar-toggle {
    border: 1px solid var(--dg-line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}
.main-header .navbar-toggle .icon-bar {
    background: var(--dg-ink);
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 2px;
}
.main-header .navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}

/* ------------------------------------------------------------------ */
/* 5. Section rhythm + titles                                          */
/* ------------------------------------------------------------------ */
.wellcome-section,
.how-we-work,
.portfolio-showcase,
.blog-section,
.nextgen-callout,
.stats-strip,
.departments-strip {
    padding-top: var(--dg-section-y);
    padding-bottom: var(--dg-section-y);
}

.section-title {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 54px;
}

.section-title::before {
    display: none;
}

.section-title h2 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--dg-heading);
    padding-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--dg-text-muted);
}

/* Small eyebrow label helper (usable in content) */
.dg-eyebrow {
    display: inline-block;
    font-family: var(--dg-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dg-accent);
    background: var(--dg-accent-soft);
    padding: 6px 14px;
    border-radius: var(--dg-radius-pill);
    margin-bottom: 18px;
}

/* ------------------------------------------------------------------ */
/* 6. Hero                                                             */
/* ------------------------------------------------------------------ */
.hero-section {
    position: relative;
    padding: 150px 0 !important;
    min-height: 600px !important;
    overflow: hidden;
}

.hero-section h1 {
    font-family: var(--dg-font-display) !important;
    font-size: clamp(34px, 5vw, 60px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.08 !important;
    margin-bottom: 22px !important;
}

.hero-section p {
    font-size: 19px !important;
    line-height: 1.75 !important;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86) !important;
}

.hero-section .btn-style-one {
    margin-top: 6px;
}

/* ------------------------------------------------------------------ */
/* 7. Feature / service cards (.item-holder)                           */
/* ------------------------------------------------------------------ */
.wellcome-section .item-holder {
    background: var(--dg-surface);
    border: 1px solid var(--dg-line);
    border-radius: var(--dg-radius);
    padding: 38px 30px;
    height: 100%;
    box-shadow: var(--dg-shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.wellcome-section .item-holder:hover {
    transform: translateY(-6px);
    box-shadow: var(--dg-shadow);
    border-color: transparent;
}

.wellcome-section .icon-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dg-accent-soft);
    color: var(--dg-accent);
    font-size: 30px;
}

.wellcome-section .icon-box i::before {
    color: var(--dg-accent);
    font-size: 30px;
    margin: 0;
}

.wellcome-section .item-holder h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dg-heading);
}

.wellcome-section .item-holder .text p {
    color: var(--dg-text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.wellcome-section .item-holder a h5 {
    transition: color 0.2s ease;
}
.wellcome-section .item-holder:hover a h5 {
    color: var(--dg-accent);
}

/* add breathing room between the two rows of cards */
.wellcome-section .row + .row {
    margin-top: 28px;
}

/* ------------------------------------------------------------------ */
/* 8. "How we work" numbered steps                                     */
/* ------------------------------------------------------------------ */
.how-we-work {
    background: var(--dg-surface-2) !important;
}

.how-we-work .text-center > div[style*="border-radius:50%"],
.how-we-work .text-center > div[style*="border-radius: 50%"] {
    background: var(--dg-accent-grad) !important;
    box-shadow: 0 12px 24px -10px rgba(138, 10, 8, 0.5);
}

.how-we-work h5 {
    font-size: 19px;
    margin-bottom: 8px;
}

/* ------------------------------------------------------------------ */
/* 9. Stats strip                                                      */
/* ------------------------------------------------------------------ */
.stats-strip {
    background: var(--dg-grad-ink) !important;
    color: #fff;
}

.stats-strip .stat-item {
    text-align: center;
    padding: 12px;
}

.stats-strip .stat-number {
    font-family: var(--dg-font-display);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, #ff8a6b, #ffd1a1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stats-strip .stat-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* 10. Department / tech tags                                          */
/* ------------------------------------------------------------------ */
.dept-tag {
    display: inline-block;
    margin: 6px;
    padding: 9px 18px;
    border-radius: var(--dg-radius-pill);
    background: var(--dg-surface-2);
    border: 1px solid var(--dg-line);
    color: var(--dg-ink-2);
    font-size: 14px;
    font-weight: 600;
}

.dept-tag:hover {
    background: var(--dg-accent);
    border-color: var(--dg-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/* 11. Portfolio showcase cards                                        */
/* ------------------------------------------------------------------ */
.portfolio-showcase .item-holder {
    border: 1px solid var(--dg-line) !important;
    border-radius: var(--dg-radius) !important;
    box-shadow: var(--dg-shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    text-align: left !important;
}

.portfolio-showcase .item-holder:hover {
    transform: translateY(-6px);
    box-shadow: var(--dg-shadow);
}

.portfolio-showcase .item-holder img {
    height: 200px !important;
    transition: transform 0.4s ease;
}

.portfolio-showcase .item-holder:hover img {
    transform: scale(1.05);
}

.portfolio-showcase .item-holder h5 {
    font-size: 19px;
    margin-bottom: 10px;
}

/* ------------------------------------------------------------------ */
/* 12. NextGen callout                                                 */
/* ------------------------------------------------------------------ */
.nextgen-callout {
    background: var(--dg-grad-ink) !important;
    position: relative;
    overflow: hidden;
}

.nextgen-callout::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(217, 74, 47, 0.35), transparent 70%);
    pointer-events: none;
}

.nextgen-callout h2 {
    font-size: 34px;
}

/* ------------------------------------------------------------------ */
/* 13. Blog cards                                                      */
/* ------------------------------------------------------------------ */
.blog-section .item-holder {
    border-radius: var(--dg-radius);
    overflow: hidden;
    box-shadow: var(--dg-shadow-sm);
    border: 1px solid var(--dg-line);
    background: #fff;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.blog-section .item-holder:hover {
    transform: translateY(-6px);
    box-shadow: var(--dg-shadow);
}

.blog-section .item-holder .date-box span {
    background: var(--dg-accent);
    border-radius: var(--dg-radius-pill);
    font-family: var(--dg-font-body);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.blog-section .item-holder h3 a {
    color: var(--dg-heading);
    font-family: var(--dg-font-display);
    transition: color 0.2s ease;
}

.blog-section .item-holder h3 a:hover {
    color: var(--dg-accent);
}

/* ------------------------------------------------------------------ */
/* 14. Page title (interior hero)                                      */
/* ------------------------------------------------------------------ */
.page-title {
    padding: 120px 0 !important;
    position: relative;
}

.page-title .title h4 {
    font-family: var(--dg-font-display);
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.page-title .title-manu li,
.page-title .title-manu li a {
    color: rgba(255, 255, 255, 0.85);
}

/* ------------------------------------------------------------------ */
/* 15. Footer                                                          */
/* ------------------------------------------------------------------ */
.site-footer {
    background: var(--dg-navy);
    color: rgba(255, 255, 255, 0.72);
    padding-top: 72px;
}

.site-footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-links li,
.site-footer .footer-contact li {
    padding: 5px 0;
    font-size: 15px;
}

.site-footer .footer-contact li i {
    color: var(--dg-accent);
    width: 22px;
}

.site-footer .footer-bottom-bar {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.site-footer .footer-bottom-bar p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ------------------------------------------------------------------ */
/* 16. Scroll-to-top                                                   */
/* ------------------------------------------------------------------ */
.scroll-to-top {
    background: var(--dg-accent) !important;
    border-radius: 14px !important;
    box-shadow: var(--dg-shadow);
    width: 46px;
    height: 46px;
    line-height: 46px !important;
}

/* ------------------------------------------------------------------ */
/* 17. Reveal animation (works with site.js .wow observer)             */
/* ------------------------------------------------------------------ */
.wow {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.wow.animated {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .wow {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ */
/* 18. Responsive                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 991px) {
    :root { --dg-section-y: 68px; }

    .main-header .container-fluid {
        flex-wrap: wrap;
    }

    .main-header .main-menu {
        order: 3;
        flex: 1 1 100%;
    }

    .main-menu .navbar-collapse {
        display: none;
        width: 100%;
    }
    .main-menu .navbar-collapse.in {
        display: block;
    }

    .main-menu .navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 14px;
    }

    .main-menu .navigation > li {
        width: 100%;
        border-bottom: 1px solid var(--dg-line);
    }

    .main-menu .navigation > li > a {
        padding: 14px 6px;
        display: block;
    }

    .main-menu .navigation > li.current > a::after {
        display: none;
    }

    .main-menu .navigation > li > ul {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        border-top: none;
        padding: 0 0 8px 12px;
    }

    .main-header .link-button {
        display: none;
    }

    .section-title h2 { font-size: 30px; }
    .hero-section { padding: 110px 0 !important; min-height: auto !important; }
    .nextgen-callout .col-lg-4 { margin-top: 24px; }
}

@media (max-width: 575px) {
    .section-title h2 { font-size: 26px; }
    .stats-strip .stat-number { font-size: 36px; }
    .page-title .title h4 { font-size: 32px; }
}

/* ------------------------------------------------------------------ */
/* 19. SafeKeep product sub-brand                                      */
/* ------------------------------------------------------------------ */
.brand-safekeep .main-menu .navigation > li.current > a { color: var(--dg-accent); }

/* Product hero */
.sk-hero {
    position: relative;
    overflow: hidden;
    padding: 130px 0 120px;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(35, 179, 145, 0.18), transparent 60%),
        var(--dg-grad-ink);
    color: #fff;
}

.sk-hero .dg-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #d6fff2;
}

.sk-hero h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
}

.sk-hero p.lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 30px;
}

.sk-hero .sk-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.sk-badges {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14.5px;
}
.sk-badges span i { color: #35d6ac; margin-right: 7px; }

/* Phone mockup */
.sk-phone {
    position: relative;
    width: 260px;
    margin: 0 auto;
    border-radius: 40px;
    padding: 14px;
    background: linear-gradient(160deg, #1c2740, #0e1526);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sk-phone .sk-screen {
    border-radius: 28px;
    overflow: hidden;
    background: #0f8a72;
    background-image: var(--dg-accent-grad);
    aspect-ratio: 9 / 19;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    text-align: center;
    color: #fff;
}
.sk-phone .sk-screen .sk-lock {
    width: 74px; height: 74px; border-radius: 22px;
    background: rgba(255,255,255,0.16);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin-bottom: 18px;
}
.sk-phone .sk-screen h6 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.sk-phone .sk-screen small { color: rgba(255,255,255,0.85); font-size: 12.5px; }

/* Feature cards inherit the accent through --dg-accent */
.brand-safekeep .wellcome-section .icon-box {
    background: var(--dg-accent-soft);
}
.brand-safekeep .wellcome-section .icon-box i::before,
.brand-safekeep .wellcome-section .icon-box { color: var(--dg-accent); }

/* Privacy band */
.sk-privacy {
    background: var(--dg-accent-soft) !important;
}
.sk-privacy h2 { color: var(--dg-accent-strong) !important; }

/* FAQ / support cards */
.sk-faq-item {
    background: #fff;
    border: 1px solid var(--dg-line);
    border-radius: var(--dg-radius);
    padding: 22px 24px;
    margin-bottom: 14px;
    box-shadow: var(--dg-shadow-sm);
}
.sk-faq-item h5 { color: var(--dg-heading); font-size: 17px; margin-bottom: 8px; }
.sk-faq-item p { color: var(--dg-text-muted); font-size: 15px; margin: 0; }

@media (max-width: 991px) {
    .sk-hero { padding: 96px 0 80px; text-align: center; }
    .sk-hero .sk-cta, .sk-badges { justify-content: center; }
    .sk-hero p.lead { margin-left: auto; margin-right: auto; }
    .sk-phone { margin-top: 44px; }
}

/* ==================================================================== */
/* 20. Corporate section system (applies to ALL interior pages)         */
/* -------------------------------------------------------------------- */
/* These rules modernise the recurring legacy section types used across */
/* about, service, blog, careers, contact, team, and portfolio pages so */
/* every page matches one cohesive corporate standard.                  */
/* ==================================================================== */

/* Consistent vertical rhythm for interior sections */
.mission-vision-section,
.team-section,
.cta-section,
.subscribe-section,
.contact-section,
.gallery-section {
    padding-top: var(--dg-section-y);
    padding-bottom: var(--dg-section-y);
}

/* --- Page title / interior hero (unify the look everywhere) --------- */
.page-title {
    background:
        radial-gradient(1100px 480px at 82% -20%, rgba(217, 74, 47, 0.30), transparent 60%),
        var(--dg-grad-ink) !important;
    position: relative;
}
/* SafeKeep pages set their own teal page-title inline; leave those. */
.page-title .container { position: relative; z-index: 2; }

.page-title .title h4 {
    font-family: var(--dg-font-display);
    font-size: clamp(32px, 4.5vw, 50px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-title .title-manu {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.page-title .title-manu li,
.page-title .title-manu li a {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--dg-font-body);
    font-size: 14px;
    text-transform: capitalize;
}
.page-title .title-manu li a:hover { color: #fff; }

/* --- CTA band ------------------------------------------------------- */
.cta-section {
    background:
        linear-gradient(120deg, rgba(20,20,42,0.92), rgba(112,6,5,0.82)),
        url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1600&q=80') center/cover no-repeat !important;
    text-align: center;
    color: #fff;
}
.cta-section p {
    color: var(--dg-accent-soft);
    font-family: var(--dg-font-body);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 10px;
}
.cta-section h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 28px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Subscribe / follow us ------------------------------------------ */
.subscribe-section {
    background: var(--dg-surface-2);
    text-align: center;
}
.subscribe-section .social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.subscribe-section .social-links li { display: inline-block; }
.subscribe-section .social-links li a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--dg-line);
    color: var(--dg-ink-2);
    font-size: 17px;
    box-shadow: var(--dg-shadow-sm);
}
.subscribe-section .social-links li a:hover {
    background: var(--dg-accent);
    border-color: var(--dg-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Mission / vision ---------------------------------------------- */
.mission-vision-section .mission-section,
.mission-vision-section .vision-section {
    background: var(--dg-surface);
    border: 1px solid var(--dg-line);
    border-radius: var(--dg-radius-lg);
    box-shadow: var(--dg-shadow-sm);
    padding: 20px;
    margin-bottom: 30px;
    overflow: hidden;
}
.mission-vision-section img {
    border-radius: var(--dg-radius) !important;
}
.mission-vision-section .section-title {
    text-align: left;
    margin: 0;
    max-width: none;
    padding: 20px;
}
.mission-vision-section .section-title h2 { font-size: 30px; padding-bottom: 12px; }
.mission-vision-section .section-title::before { display: none; }

/* --- Team cards ----------------------------------------------------- */
.team-section { background: var(--dg-surface-2); }
.team-section .item-holder,
.team-section .text-center > div {
    background: #fff;
    border: 1px solid var(--dg-line);
    border-radius: var(--dg-radius);
    box-shadow: var(--dg-shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.team-section .item-holder:hover,
.team-section .text-center > div:hover {
    transform: translateY(-6px);
    box-shadow: var(--dg-shadow);
}
.team-section img[style*="border-radius:50%"],
.team-section img[style*="border-radius: 50%"] {
    border: 4px solid var(--dg-surface-2);
    box-shadow: var(--dg-shadow-sm);
}

/* --- Contact page --------------------------------------------------- */
.contact-section { text-align: center; }
.map-section .google-map { border-radius: 0; overflow: hidden; }
.map-section iframe { display: block; filter: grayscale(0.15) contrast(1.02); }

/* WhatsApp action buttons keep their green brand color but get modern shape */
.btn-style-one[style*="#25D366"],
.btn-style-one[style*="25D366"] {
    background: #1faf52 !important;
    background-image: linear-gradient(120deg, #1faf52, #25d366) !important;
    box-shadow: 0 10px 24px -10px rgba(31, 175, 82, 0.6) !important;
    border: none !important;
}

/* --- Gallery / portfolio grid -------------------------------------- */
.gallery-section .image-box,
.gallery-section .item-holder {
    border-radius: var(--dg-radius);
    overflow: hidden;
    box-shadow: var(--dg-shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.gallery-section .image-box:hover,
.gallery-section .item-holder:hover {
    transform: translateY(-6px);
    box-shadow: var(--dg-shadow);
}
.gallery-section img { transition: transform 0.4s ease; }
.gallery-section .image-box:hover img { transform: scale(1.05); }

/* --- Service page detail blocks ------------------------------------ */
/* numbered service section headings ("1. Web Development") */
.wellcome-section .section-title h2[style*="32px"] {
    font-size: 30px !important;
    position: relative;
    padding-left: 0;
}
/* "What You Get" info boxes */
.wellcome-section .col-xs-12[style*="background:#f8f9fa"],
.wellcome-section .col-xs-12[style*="background: #f8f9fa"] {
    background: var(--dg-surface-2) !important;
    border: 1px solid var(--dg-line);
    border-radius: var(--dg-radius) !important;
    padding: 26px 30px !important;
}
.wellcome-section .col-xs-12[style*="f8f9fa"] h5 {
    color: var(--dg-heading);
    font-size: 17px;
}
.wellcome-section .col-xs-12[style*="f8f9fa"] ul li {
    position: relative;
    list-style: none;
    padding-left: 26px;
    margin-bottom: 8px;
    color: var(--dg-text);
    font-size: 14.5px !important;
    line-height: 1.6;
}
.wellcome-section .col-xs-12[style*="f8f9fa"] ul {
    padding-left: 0 !important;
}
.wellcome-section .col-xs-12[style*="f8f9fa"] ul li::before {
    content: "\f00c"; /* fa-check */
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--dg-accent);
    font-size: 13px;
}

/* --- Careers: numbered timeline + FAQ cards ------------------------ */
/* step circles used on careers + home "how we work" */
div[style*="border-radius:50%"][style*="#700605"],
div[style*="border-radius: 50%"][style*="#700605"] {
    background: var(--dg-accent-grad) !important;
    box-shadow: 0 10px 22px -10px rgba(138, 10, 8, 0.5);
}

/* Founding-story / plain gray content bands -> soft surface */
section[style*="background:#f8f9fa"],
section[style*="background: #f8f9fa"] {
    background: var(--dg-surface-2) !important;
}

/* Generic FAQ / info cards on gray bands */
section[style*="f8f9fa"] div[style*="background:#fff"],
section[style*="f8f9fa"] div[style*="background: #fff"] {
    border: 1px solid var(--dg-line) !important;
    border-radius: var(--dg-radius) !important;
    box-shadow: var(--dg-shadow-sm);
}

/* --- Single blog sidebar widgets ----------------------------------- */
.blog-section.style-three .sidebar .sidebar-widget {
    background: var(--dg-surface);
    border: 1px solid var(--dg-line);
    border-radius: var(--dg-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--dg-shadow-sm);
}

/* --- Testimonial quote (careers) ----------------------------------- */
section p[style*="font-style:italic"],
section p[style*="font-style: italic"] {
    font-size: 20px !important;
    line-height: 1.6 !important;
    color: var(--dg-heading) !important;
    font-family: var(--dg-font-display);
    font-weight: 600;
}

/* --- Footer: quick-links list + social row ------------------------- */
.site-footer .social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.site-footer .social-links li a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}
.site-footer .social-links li a:hover {
    background: var(--dg-accent);
    color: #fff;
}
.site-footer .footer-links li a::before {
    content: "\f105"; /* fa-angle-right */
    font-family: FontAwesome;
    margin-right: 8px;
    color: var(--dg-accent);
    font-size: 12px;
}

@media (max-width: 991px) {
    .mission-vision-section .section-title { padding: 20px 6px; }
}

/* ------------------------------------------------------------------ */
/* Contact form (static, posts to Web3Forms via fetch in site.js)      */
/* ------------------------------------------------------------------ */
.dg-contact-form {
    background: var(--dg-surface);
    border: 1px solid var(--dg-line);
    border-radius: var(--dg-radius);
    box-shadow: var(--dg-shadow-sm);
    padding: 32px 30px;
}
.dg-field {
    margin-bottom: 18px;
    text-align: left;
}
.dg-field label {
    display: block;
    font-family: var(--dg-font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dg-heading);
    margin-bottom: 7px;
}
.dg-field input,
.dg-field select,
.dg-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--dg-font-body);
    font-size: 15px;
    color: var(--dg-text);
    background: var(--dg-surface-2);
    border: 1px solid var(--dg-line);
    border-radius: var(--dg-radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dg-field textarea { resize: vertical; min-height: 120px; }
.dg-field input:focus,
.dg-field select:focus,
.dg-field textarea:focus {
    outline: none;
    border-color: var(--dg-accent);
    box-shadow: 0 0 0 3px var(--dg-accent-soft);
    background: var(--dg-surface);
}
.dg-form-submit {
    border: none;
    cursor: pointer;
    margin-top: 4px;
}
.dg-form-submit:disabled { opacity: 0.6; cursor: default; }

/* Honeypot: hidden from humans, present for bots. */
.dg-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.dg-form-status {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.5;
    min-height: 1em;
}
.dg-form-status--pending { color: var(--dg-text-muted); }
.dg-form-status--success { color: #12805c; font-weight: 600; }
.dg-form-status--error { color: #b3261e; font-weight: 600; }

.dg-form-note {
    margin-top: 16px;
    font-size: 13.5px;
    color: var(--dg-text-muted);
}
.dg-form-note a { color: var(--dg-accent); font-weight: 600; }

/* Direct-contact rail beside the form */
.dg-contact-rail {
    background: var(--dg-grad-ink);
    color: #fff;
    border-radius: var(--dg-radius);
    padding: 32px 28px;
    height: 100%;
}
.dg-contact-rail h4 {
    color: #fff;
    margin-bottom: 22px;
    font-family: var(--dg-font-display);
}
.dg-contact-line {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14.5px;
    line-height: 1.5;
}
.dg-contact-line:last-child { border-bottom: none; }
.dg-contact-line:hover { color: #fff; }
.dg-contact-ic {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dg-accent);
    color: #fff;
    font-size: 17px;
}
@media (max-width: 991px) {
    .dg-contact-rail { margin-top: 24px; }
}

/* ------------------------------------------------------------------ */
/* Portfolio / blog filter tabs + fade-in on filter                    */
/* ------------------------------------------------------------------ */
.post-filter { text-align: center; padding: 0; margin: 0 0 40px; }
.post-filter li {
    display: inline-block;
    cursor: pointer;
    padding: 9px 20px;
    margin: 4px;
    border-radius: var(--dg-radius-pill);
    border: 1px solid var(--dg-line);
    background: var(--dg-surface);
    color: var(--dg-text);
    font-family: var(--dg-font-body);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
    -webkit-user-select: none;
    user-select: none;
}
.post-filter li:hover { border-color: var(--dg-accent); color: var(--dg-accent); }
.post-filter li.active {
    background: var(--dg-accent);
    border-color: var(--dg-accent);
    color: #fff;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
