/* ==========================================================================
   DOMOSAFE — ENTERPRISE BLUE STEEL UI
   Scope: Public & user-facing site (home, services, blog, auth)
   Design: CDD-Grade — calm, corporate, precise.
========================================================================== */

/* ==========================================================================
   🌈 CORE PALETTE & BASE TYPOGRAPHY
========================================================================== */
:root {
    --ds-primary: #0a3d7e;
    --ds-primary-hover: #08366d;
    --ds-dark: #0a1525;
    --ds-text: #162438;
    --ds-muted: #6b7a8c;
    --ds-bg: #eef2f7;
    --ds-border: #d6dee8;
    --ds-transition: 0.3s ease;
}

body {
    font-family: "Inter", sans-serif !important;
    background: var(--ds-bg);
    color: var(--ds-text);
    line-height: 1.6;
}

/* ==========================================================================
   🧭 NAVBAR — DOMOSAFE BLUE STEEL ENTERPRISE
========================================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--ds-border);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    z-index: 1030;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* BRAND / LOGO */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
}
.navbar-brand .brand-logo {
    height: clamp(64px, 9vw, 120px);
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.15) contrast(1.1)
        drop-shadow(0 0.5px 0 rgba(10, 61, 126, 0.18))
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.04));
    transition: transform 0.35s ease, filter 0.4s ease, box-shadow 0.4s ease;
    animation: logoFadeIn 0.8s ease-out both;
}
.navbar-brand:hover .brand-logo {
    transform: translateY(-1px);
    filter: brightness(1.3) contrast(1.08)
        drop-shadow(0 0.8px 1.2px rgba(10, 61, 126, 0.25))
        drop-shadow(0 1.8px 2.2px rgba(0, 0, 0, 0.06));
    box-shadow: 0 0 12px rgba(10, 80, 170, 0.22);
}
.navbar.scrolled .brand-logo {
    filter: brightness(1.25) contrast(1.1)
        drop-shadow(0 0.5px 0 rgba(10, 61, 126, 0.2))
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}
.navbar.bg-dark .brand-logo,
.navbar.navbar-dark .brand-logo {
    filter: none;
}
.navbar-brand .brand-logo--compact {
    height: clamp(44px, 7vw, 86px);
    max-height: 86px;
}

/* NAV LINKS */
.nav-link {
    position: relative;
    font-weight: 600;
    color: var(--ds-text) !important;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: color 0.3s ease, background 0.3s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ds-primary);
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
    left: 0;
}
.nav-link:hover {
    color: var(--ds-primary) !important;
    background: rgba(10, 61, 126, 0.04);
}
.nav-link.active,
.nav-link[aria-current="page"] {
    color: var(--ds-primary) !important;
    font-weight: 700;
}

/* TOGGLER + DROPDOWN */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    transition: background 0.3s ease;
}
.navbar-toggler:hover {
    background: rgba(10, 61, 126, 0.08);
    border-radius: 6px;
}
.dropdown-menu {
    border: 1px solid var(--ds-border);
    border-radius: 0.75rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.dropdown-item {
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease;
}
.dropdown-item:hover {
    background: rgba(10, 61, 126, 0.08);
    color: var(--ds-primary);
}

/* Logo animation */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================================
   🏙️ DOMOSAFE HERO — IMAGE RIGHT (CDD-GRADE BLUE STEEL)
   Calm, corporate, precise — hero image fully visible, not cropped.
=================================================================== */

.ds-hero-right {
    position: relative;
    background: #0a1525 url("/images/brand/hero.png") no-repeat right center;
    background-size: contain; /* ✅ shows full image without stretching */
    color: #fff;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 110px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gradient overlay — focused on left side for text clarity */
.ds-hero-right::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(10, 61, 126, 0.9) 0%,
        rgba(10, 61, 126, 0.6) 40%,
        rgba(10, 21, 37, 0.25) 70%,
        rgba(10, 21, 37, 0) 100%
    );
    transition: background 0.6s ease;
}

.ds-hero-right:hover::before {
    background: linear-gradient(
        to right,
        rgba(20, 85, 160, 0.9) 0%,
        rgba(10, 61, 126, 0.65) 40%,
        rgba(10, 21, 37, 0.2) 70%,
        rgba(10, 21, 37, 0) 100%
    );
}

.ds-hero-right .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.ds-hero-right h1 {
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ds-hero-right .text-accent {
    color: #3a8eff;
}

.ds-hero-right p {
    color: rgba(230, 240, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ============================================================
   CTA Buttons — corporate tone with subtle highlight
============================================================ */
.btn-cta-explore {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #0a3d7e, #0a84ff);
    color: #fff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 0 14px rgba(10, 61, 126, 0.3);
    transition: all 0.4s ease;
}
.btn-cta-explore::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 200, 90, 0.45),
        transparent
    );
    transition: all 0.8s ease;
}
.btn-cta-explore:hover::before {
    left: 120%;
}
.btn-cta-explore:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, #0a4d9a, #ffb84a);
    box-shadow: 0 0 28px rgba(255, 210, 90, 0.4);
}

.btn-cta-talk {
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #eaf3ff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    transition: all 0.4s ease;
}
.btn-cta-talk:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-cta-quote {
    color: #ffd45e;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-cta-quote:hover {
    color: #ffe48f;
    text-shadow: 0 0 10px rgba(255, 212, 94, 0.45);
}

/* ============================================================
   Responsive — keeps right image visible and proportionate
============================================================ */
@media (max-width: 992px) {
    .ds-hero-right {
        background: #0a1525 url("/images/brand/hero.png") no-repeat center top /
            cover;
        min-height: auto;
        padding: 7rem 0 4rem;
    }
    .ds-hero-right::before {
        background: linear-gradient(
            to bottom,
            rgba(10, 61, 126, 0.9) 0%,
            rgba(10, 61, 126, 0.45) 60%,
            rgba(10, 61, 126, 0) 100%
        );
    }
    .ds-hero-right h1 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   🎛️ BUTTON SYSTEM — Defaults + CTA
========================================================================== */
.btn {
    font-weight: 600;
    border-radius: 30px;
    transition: var(--ds-transition);
}
.btn-primary {
    background: var(--ds-primary);
    border-color: var(--ds-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--ds-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* ========================================================================
   💬 DOMOSAFE — QUOTE SECTION (Final CTA)
   ------------------------------------------------------------------------
   - Clean white background with faint blue radial accent
   - Warm gold highlight animation for button
   ======================================================================== */

.ds-quote-section {
    position: relative;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
    padding: 6rem 0;
    overflow: hidden;
    border-top: 1px solid var(--ds-border);
    border-bottom: 1px solid rgba(10, 61, 126, 0.08);
}

/* Decorative background pulse */
.ds-quote-section::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle at center,
        rgba(10, 61, 126, 0.1) 0%,
        transparent 70%
    );
    transform: translateX(-50%);
    z-index: 0;
}

.ds-quote-section .container {
    position: relative;
    z-index: 2;
}

/* Typography refinements */
.ds-quote-section h2 {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--ds-primary);
}
.ds-quote-section p {
    color: var(--ds-text);
}

/* ============================================================
   ✨ CTA BUTTON — “Request a Quote”
   ------------------------------------------------------------
   - Golden gradient reflection (consistent with hero button)
   - Soft hover glow and smooth animation
============================================================ */
.btn-cta-quote-lg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #0a3d7e, #0a4d9a);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 14px 48px;
    border-radius: 40px;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 14px rgba(10, 61, 126, 0.15);
}

/* Animated light sweep */
.btn-cta-quote-lg::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 210, 90, 0.6),
        transparent
    );
    transition: all 0.7s ease;
}

.btn-cta-quote-lg:hover::before {
    left: 120%;
}

.btn-cta-quote-lg:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, #0a4d9a, #ffb84a);
    box-shadow: 0 0 28px rgba(255, 210, 90, 0.45);
}

/* ==========================================================================
   🌟 WHY DOMOSAFE — Enterprise Trust Cards
========================================================================== */
#why-domosafe {
    background: linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
    border-top: 1px solid var(--ds-border);
    border-bottom: 1px solid var(--ds-border);
    padding: 5rem 0;
}
#why-domosafe h2 {
    font-weight: 700;
    color: var(--ds-dark);
}
#why-domosafe p.text-muted {
    font-size: 1rem;
    color: var(--ds-muted) !important;
}
.ds-feature-card {
    background: #fff;
    border: 1px solid rgba(214, 222, 232, 0.6);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.ds-feature-card i {
    color: var(--ds-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}
.ds-feature-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(10, 61, 126, 0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}
.ds-feature-card:hover::before {
    opacity: 1;
}
.ds-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(10, 61, 126, 0.12);
    border-color: rgba(10, 61, 126, 0.2);
}
.ds-feature-card:hover i {
    transform: scale(1.1);
    color: #0a4d9a;
}
.ds-feature-card h5 {
    color: var(--ds-dark);
    font-weight: 600;
}
.ds-feature-card p {
    color: var(--ds-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   🦶 DOMOSAFE — FOOTER (Blue Steel CDD-Grade)
   --------------------------------------------------------------------------
   - Deep technical blue gradient background
   - Harmonized glow accents (brand blue)
   - Integrated newsletter, social links, and copyright
   - Subtle radial light for dimensional depth
   ========================================================================== */

footer.bg-dark {
    position: relative;
    background: linear-gradient(180deg, #0a1525 0%, #081a32 100%) !important;
    color: #dfe4ea !important;
    padding-top: 4rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Radial accent glow */
footer.bg-dark::before {
    content: "";
    position: absolute;
    bottom: -180px;
    left: 50%;
    width: 950px;
    height: 950px;
    transform: translateX(-50%);
    background: radial-gradient(
        circle at center,
        rgba(10, 61, 126, 0.22) 0%,
        transparent 70%
    );
    opacity: 0.45;
    pointer-events: none;
}

/* Titles */
footer h5,
footer h6 {
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Text & paragraphs */
footer p,
footer small,
footer .text-secondary {
    color: #a8b4c5 !important;
    line-height: 1.6;
}

/* Links */
footer a {
    color: #cfd6e1 !important;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}
footer a:hover {
    color: #ffffff !important;
    transform: translateX(2px);
}

/* List spacing */
footer ul li {
    margin-bottom: 0.4rem;
}

/* ============================================================
   🔗 SOCIAL BUTTONS — Corporate Hover Glow
============================================================ */
footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transition: all 0.35s ease;
    background: rgba(255, 255, 255, 0.05);
}
footer .btn-outline-light:hover {
    background: var(--ds-primary);
    border-color: var(--ds-primary);
    box-shadow: 0 0 14px rgba(10, 61, 126, 0.55);
    transform: translateY(-2px);
}

/* Divider */
footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   📨 NEWSLETTER (Integrated Blue Steel Form)
============================================================ */
footer h6 {
    color: #fff;
    letter-spacing: 0.4px;
    font-weight: 700;
}

footer .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
footer .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 126, 0.35);
    color: #fff;
}

/* Subscribe button — warm light sweep */
footer .btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #0a3d7e, #0a4d9a);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    padding: 8px 14px;
    transition: all 0.4s ease;
}
footer .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 210, 90, 0.55),
        transparent
    );
    transition: all 0.7s ease;
}
footer .btn-primary:hover::before {
    left: 120%;
}
footer .btn-primary:hover {
    background: linear-gradient(90deg, #0a4d9a, #ffb84a);
    box-shadow: 0 0 22px rgba(255, 210, 90, 0.45);
    transform: translateY(-2px);
}

/* Alerts (success/info/error) */
footer .alert {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e6ebf1;
    border-radius: 10px;
}
footer .alert-success {
    border-left: 3px solid #28a745;
}
footer .alert-danger {
    border-left: 3px solid #dc3545;
}
footer .alert-info {
    border-left: 3px solid #0dcaf0;
}

/* Turnstile alignment */
footer .cf-turnstile {
    margin: 0.25rem 0;
}

/* ============================================================
   📜 COPYRIGHT BAR
============================================================ */
footer .text-center {
    color: #9aa5b8;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ============================================================
   📱 MOBILE RESPONSIVENESS
============================================================ */
@media (max-width: 768px) {
    footer.bg-dark {
        text-align: center;
    }
    footer .btn-outline-light {
        margin: 0.25rem;
    }
    footer .form-control,
    footer .btn-primary {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   🧊 DOMOSAFE SERVICES — Enterprise Smart Solutions Grid
   --------------------------------------------------------------------------
   - Consistent CDD-Grade design with subtle hover light
   - Adaptive cards for home + business automation services
   - Harmonized with ds-feature-card (Why Domosafe)
========================================================================== */

#services {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-top: 1px solid var(--ds-border);
    padding: 5rem 0;
}

#services h2 {
    font-weight: 700;
    color: var(--ds-primary);
    letter-spacing: 0.5px;
}

#services p.text-muted {
    color: var(--ds-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================================
   🔹 SERVICE CARD — Interactive Overlay (AI-grade polish)
============================================================ */
.ds-solution-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(214, 222, 232, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    height: 320px;
}

.ds-solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(10, 61, 126, 0.12);
    border-color: rgba(10, 61, 126, 0.2);
}

/* ============================================================
   🔹 SERVICE CARD IMAGE — Full Visibility Mode
   ------------------------------------------------------------
   - Shows the full image inside each card without cropping
   - Keeps padding for clean framing and balanced proportions
============================================================ */
.ds-solution-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ shows the entire image */
    background-color: #f8fafc; /* neutral background for non-square images */
    padding: 18px; /* adds visual breathing room */
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.97);
}
.ds-solution-card:hover .ds-solution-img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* ============================================================
   🔹 OVERLAY — Appears on Hover
============================================================ */
.ds-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    background: linear-gradient(
        to top,
        rgba(10, 15, 30, 0.85),
        rgba(10, 15, 30, 0.1)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ds-solution-card:hover .ds-overlay {
    opacity: 1;
}

/* Overlay typography */
.ds-overlay h5 {
    color: #fff;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.ds-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Learn More button inside overlay */
.ds-overlay .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 6px 18px;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.3s ease;
}
.ds-overlay .btn:hover {
    background: linear-gradient(90deg, #0a4d9a, #ff9f43);
    transform: translateY(-2px);
}

/* ============================================================
   🔹 RESPONSIVE GRID
============================================================ */
@media (max-width: 992px) {
    #services {
        padding: 4rem 0;
    }
    .ds-solution-card {
        height: 280px;
    }
}
@media (max-width: 576px) {
    .ds-overlay {
        padding: 1.25rem;
    }
    .ds-overlay h5 {
        font-size: 1rem;
    }
    .ds-overlay p {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ✉️ UTILITIES
========================================================================== */
section {
    padding: 5rem 0;
    scroll-margin-top: 80px;
}
section + section {
    margin-top: 0;
    padding-top: 5rem;
}
.alert {
    font-size: 0.95rem;
}
