:root {
    --manila-bg: rgba(245, 244, 239, 0.75);
    --border-folder: #c8c3b5;
    --ink-black: #111418;
    --ink-navy: #1b263b;
    --ink-muted: #475569;
    --stamp-red: #b91c1c;
    --stamp-red-subtle: rgba(185, 28, 28, 0.08);
    --whatsapp-green: #25D366;
    --whatsapp-hover: #20bd5a;
    --font-mono: 'Courier Prime', monospace;
    --container-max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #edebe4;
    background-image: 
        radial-gradient(circle at 15px 15px, rgba(27, 38, 59, 0.04) 1px, transparent 0),
        linear-gradient(rgba(245, 244, 239, 0.88), rgba(245, 244, 239, 0.94)),
        url('deonsmit-webaite-background.png');
    background-size: 30px 30px, cover, cover;
    background-repeat: repeat, no-repeat, no-repeat;
    background-position: top left, center top, center top;
    background-attachment: fixed;
    color: var(--ink-black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 16px; }

/* Top Verification Bar */
.top-bar {
    background-color: rgba(229, 227, 218, 0.96);
    backdrop-filter: blur(8px);
    color: var(--ink-navy);
    padding: 6px 0;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-folder);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-bar-items { display: flex; gap: 12px; flex-wrap: wrap; }
.top-bar-item { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.top-bar-item i { color: var(--stamp-red); }

.btn-quick-exit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    color: var(--stamp-red);
    border: 1px solid var(--stamp-red);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}

/* Header & Dropdowns */
header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-folder);
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { max-height: 40px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
    text-decoration: none;
    color: var(--ink-navy);
    margin-left: 14px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--stamp-red); }

@media (min-width: 993px) and (max-width: 1250px) {
    .nav-links a {
        margin-left: 8px;
        font-size: 0.72rem;
        letter-spacing: 0.2px;
    }
    .header-action-group {
        gap: 6px;
        margin-left: 10px;
    }
    .nav-whatsapp-btn {
        padding: 6px 10px;
        font-size: 0.72rem !important;
    }
    .nav-cta {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 16px;
    background: #ffffff;
    border: 1px solid var(--border-folder);
    border-top: 3px solid var(--stamp-red);
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    list-style: none;
    min-width: 260px;
    display: none;
    padding: 8px 0;
    z-index: 1001;
}
.nav-dropdown-menu li { width: 100%; }
.nav-dropdown-menu a {
    margin: 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--ink-navy);
}
.nav-dropdown-menu a:hover { background: #fafaf8; color: var(--stamp-red); }
.nav-links > li:hover > .nav-dropdown-menu { display: block; }

.header-action-group { display: flex; align-items: center; gap: 8px; margin-left: 16px; }
.nav-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--whatsapp-green);
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    text-decoration: none;
}
.nav-cta {
    background: var(--ink-navy);
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 700 !important;
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: uppercase;
}

/* Mobile Drawer Only CTA Item (Hidden on Desktop to eliminate duplicate buttons in navigation bar) */
.nav-links li.mobile-cta-item,
.mobile-cta-item {
    display: none !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-folder);
    border-radius: 4px;
    font-size: 1.2rem;
    color: var(--ink-navy);
    cursor: pointer;
    padding: 6px 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 20, 28, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
}
.mobile-nav-backdrop.active { display: block; }

/* Buttons & Cards */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}
.btn-primary { background-color: var(--stamp-red); color: #ffffff; }
.btn-primary:hover { background-color: #991b1b; }
.btn-whatsapp { background-color: var(--whatsapp-green); color: #ffffff; }
.btn-whatsapp:hover { background-color: var(--whatsapp-hover); }
.btn-block { width: 100%; }

/* Hero Section */
.hero { padding: 40px 0 50px; }
.hero-content {
    background-color: var(--manila-bg);
    border: 1px solid var(--border-folder);
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.hero-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ffffff;
    border: 2px solid var(--stamp-red);
    color: var(--stamp-red);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero h1 { font-size: 2.2rem; color: var(--ink-navy); line-height: 1.2; margin-bottom: 12px; font-weight: 900; }
.hero h1 span { color: var(--stamp-red); }
.hero p.lead { font-size: 1.05rem; color: var(--ink-muted); margin-bottom: 24px; }
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.trust-badge {
    background: #ffffff;
    border: 1px dashed var(--border-folder);
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Service Dossier Grid */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.8rem; color: var(--ink-navy); font-weight: 900; text-transform: uppercase; }
.section-header p { color: var(--ink-muted); font-size: 0.95rem; margin-top: 6px; }
.section-header .line { width: 60px; height: 3px; background: var(--stamp-red); margin: 10px auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card {
    background: #ffffff;
    border: 1px solid var(--border-folder);
    border-top: 4px solid var(--ink-navy);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.service-card.priority { border-top-color: var(--stamp-red); }
.service-card .icon { font-size: 2rem; color: var(--stamp-red); margin-bottom: 14px; }
.service-card h3 { font-size: 1.15rem; color: var(--ink-navy); margin-bottom: 8px; font-weight: 800; }
.service-card p { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 16px; line-height: 1.5; }
.service-card .read-more {
    text-decoration: none;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--stamp-red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Common Content Box / Article Styles */
.content-box {
    background: #ffffff;
    border: 1px solid var(--border-folder);
    border-top: 4px solid var(--stamp-red);
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.content-box h2 { font-size: 1.4rem; color: var(--ink-navy); margin-bottom: 16px; font-weight: 800; }
.content-box h3 { font-size: 1.15rem; color: var(--ink-navy); margin: 20px 0 10px; font-weight: 700; }
.content-box p { font-size: 0.95rem; color: var(--ink-muted); margin-bottom: 16px; line-height: 1.6; }
.content-box ul { margin: 0 0 20px 20px; color: var(--ink-muted); font-size: 0.92rem; }
.content-box ul li { margin-bottom: 8px; }

/* Breadcrumb Navigation */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--ink-navy); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { color: var(--stamp-red); }

/* Contact Section & Form */
.contact-section { padding: 40px 0 60px; }
.contact-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    border: 1px solid var(--border-folder);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.contact-sidebar {
    background-color: #1b263b;
    color: #ffffff;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.contact-sidebar h2 { font-size: 1.5rem; margin-bottom: 12px; font-weight: 900; text-transform: uppercase; }
.contact-sidebar h2 span { color: #f87171; }
.contact-sidebar p { font-size: 0.85rem; color: #cbd5e1; margin-bottom: 24px; line-height: 1.5; }
.contact-details-list { list-style: none; margin-bottom: 24px; }
.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    color: #e2e8f0;
}
.contact-details-list li i { color: #f87171; font-size: 1rem; width: 18px; }
.contact-details-list a { color: #ffffff; text-decoration: none; font-weight: 700; }
.contact-guarantee {
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.2);
    padding: 12px;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

.contact-form-area { padding: 36px 32px; background: #ffffff; }
.contact-form-area form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: span 2; }
.form-group label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--ink-navy);
}
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-folder);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.88rem;
    background: #fafaf8;
    color: var(--ink-black);
    width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--ink-navy);
    background: #ffffff;
}

/* Footer */
footer {
    background: #0b0f19;
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
    color: #cbd5e1;
    padding: 48px 0 24px;
    font-size: 0.82rem;
    border-top: 4px solid var(--stamp-red);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 32px; 
    margin-bottom: 36px; 
}
.footer-about h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}
.footer-about h3 span {
    color: #f87171;
}
.footer-about p {
    color: #94a3b8;
    line-height: 1.65;
    font-size: 0.85rem;
    margin: 0;
}
.footer-links h4,
.footer-col h4 { 
    color: #ffffff; 
    font-size: 0.9rem; 
    margin-bottom: 16px; 
    text-transform: uppercase; 
    font-weight: 800; 
    letter-spacing: 0.6px;
    position: relative;
    padding-bottom: 8px;
}
.footer-links h4::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--stamp-red);
    border-radius: 2px;
}
.footer-links ul,
.footer-col ul { 
    list-style: none; 
    padding: 0;
    margin: 0;
}
.footer-links ul li,
.footer-col ul li { 
    margin-bottom: 10px; 
}
.footer-links a,
.footer-col a { 
    color: #e2e8f0; 
    text-decoration: none; 
    font-weight: 600;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    padding: 2px 0;
}
.footer-links a::before,
.footer-col a::before {
    content: '\203A';
    color: #f87171;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 0.9;
    transition: transform 0.2s ease, color 0.2s ease;
}
.footer-links a:hover,
.footer-col a:hover { 
    color: #ffffff; 
    transform: translateX(4px);
    text-shadow: 0 0 12px rgba(248, 113, 113, 0.4);
}
.footer-links a:hover::before,
.footer-col a:hover::before {
    color: #ef4444;
    transform: translateX(2px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.74rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}
.footer-bottom a {
    color: #e2e8f0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.footer-bottom a:hover {
    color: #f87171;
}

/* Fixed Mobile Bottom Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #ffffff;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.12);
    z-index: 9999;
    border-top: 1px solid var(--border-folder);
    padding: 6px 12px;
    gap: 8px;
}
.mobile-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    font-weight: 800;
    font-size: 0.75rem;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    min-height: 44px;
    white-space: nowrap;
}
.action-call { background-color: var(--stamp-red); color: #ffffff; }
.action-whatsapp { background-color: var(--whatsapp-green); color: #ffffff; }
.action-consult { background-color: var(--ink-navy); color: #ffffff; }

/* Responsive Mobile Rules */
@media (max-width: 992px) {
    .contact-card-wrapper { grid-template-columns: 1fr; }
    .header-action-group { display: none !important; }
    .mobile-toggle { display: flex; }
    
    /* Active Mobile Drawer Menu CTA */
    .nav-links li.mobile-cta-item,
    .mobile-cta-item {
        display: block !important;
        width: 100% !important;
        padding: 8px 16px 0 !important;
        box-sizing: border-box !important;
    }
    .mobile-cta-item a.nav-cta,
    .nav-links li.mobile-cta-item a.nav-cta {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
    }
    
    /* Active Mobile Drawer Menu */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0 60px;
        display: none;
        border-bottom: 2px solid var(--border-folder);
        overflow-y: auto;
        z-index: 999;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
    .nav-links.active { display: flex !important; }
    .nav-links > li { width: 100%; }
    .nav-links a {
        margin: 0;
        padding: 14px 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1eee7;
        font-size: 0.88rem;
    }
    
    /* Accordion Sub-menus inside Mobile Drawer */
    .nav-dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: #fafaf8 !important;
        border-left: 3px solid var(--stamp-red) !important;
        padding: 0 !important;
        margin: 0 !important;
        display: none !important;
        width: 100% !important;
    }
    .nav-dropdown.active .nav-dropdown-menu { display: block !important; }
    .nav-dropdown-menu a {
        padding: 12px 18px 12px 32px !important;
        font-size: 0.8rem !important;
        border-bottom: 1px solid #ede8df !important;
        color: var(--ink-navy) !important;
    }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    body { padding-bottom: 70px; background-attachment: scroll; }
    .mobile-action-bar { display: flex; }
    .contact-sidebar { padding: 22px 16px; }
    .contact-form-area { padding: 20px 14px; }
    .contact-form-area form { grid-template-columns: 1fr; }
    .card-dossier, .content-box, .guide-article { padding: 18px 14px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Interactive AJAX Enquiry Success Modal */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}
.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.success-modal-card {
    background: #ffffff;
    border: 2px solid var(--border-folder, #d6d3d1);
    border-top: 5px solid var(--stamp-red, #dc2626);
    border-radius: 8px;
    max-width: 480px;
    width: 100%;
    padding: 32px 26px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.25s ease;
}
.success-modal-overlay.active .success-modal-card {
    transform: translateY(0);
}
.success-modal-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.success-modal-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink-navy, #0f172a);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.success-modal-lead {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 8px;
}
.success-modal-lead strong {
    color: var(--stamp-red, #dc2626);
    font-family: var(--font-mono, 'Courier Prime', monospace);
}
.success-modal-sub {
    font-size: 0.85rem;
    color: var(--ink-muted, #64748b);
    line-height: 1.45;
    margin-bottom: 24px;
}
.success-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.success-modal-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-outline-close {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.btn-outline-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.btn-whatsapp-modal {
    background: #25d366;
    color: #ffffff;
    border: 1px solid #22c55e;
}
.btn-whatsapp-modal:hover {
    background: #16a34a;
    color: #ffffff;
}

/* Full-Screen Encryption Modal Overlay (Hidden by default, active during case dispatch) */
.encryption-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.encryption-modal {
    background: #ffffff;
    border: 2px solid var(--border-folder, #c8c3b5);
    border-top: 5px solid var(--stamp-red, #b91c1c);
    border-radius: 8px;
    max-width: 440px;
    width: 100%;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 14px 0;
}
.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--stamp-red, #b91c1c);
    transition: width 0.2s ease;
}
