/* lockdesk CSS Styles */

:root {
    --brand-red: #C01818;
    --brand-red-light: #E31837;
    --crisp-white: #FFFFFF;
    --secure-green: #00D084;
    --secure-green-dark: #00A669;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #F6F9FC;
    --border-color: #E2E8F0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CRITICAL: Zero Horizontal Overflow */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    /* Extra padding to prevent floating widget overlap */
    padding-bottom: 80px; 
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-white { color: var(--crisp-white); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--crisp-white);
}

.btn-primary:hover {
    background-color: var(--brand-red-light);
}

.btn-success {
    background-color: var(--secure-green);
    color: var(--crisp-white);
}

.btn-success:hover {
    background-color: var(--secure-green-dark);
}

/* Top Bar */
.top-bar {
    background-color: var(--brand-red-light);
    color: var(--crisp-white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-text a {
    color: var(--crisp-white);
    text-decoration: none;
    font-weight: bold;
}

/* Main Header (Sticky) */
.main-header {
    background-color: var(--crisp-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-red);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secure-green);
}

.header-call {
    margin-left: 10px;
    padding: 10px 20px;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--crisp-white);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--brand-red);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hamburger Menu (Hidden by default) */
.menu-toggle-checkbox {
    display: none;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--brand-red);
    border-radius: 3px;
}

/* Floating Chat */
.floating-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999; /* Ensure it stays on top */
}

.chat-btn {
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 1.1rem;
    padding: 15px 25px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-light) 100%);
    color: var(--crisp-white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .btn {
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* Main Content Area */
.main-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* Forms & Tables */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.table th {
    background-color: #f1f5f9;
    font-weight: 600;
}

/* Footer */
.main-footer {
    background-color: var(--brand-red);
    color: var(--crisp-white);
    padding: 60px 0 0 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--secure-green);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--crisp-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    background-color: #06182a;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Products Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--crisp-white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    color: var(--tech-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}

.product-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.product-features li::before {
    content: '✓';
    color: var(--secure-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Page Headers */
.page-header {
    background-color: var(--tech-blue);
    color: var(--crisp-white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* Legal Pages */
.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--tech-blue);
}

.legal-content p {
    margin-bottom: 15px;
}


/* ========================================================================= */
/* MEDIA QUERIES (Mobile Responsiveness)                                       */
/* ========================================================================= */

@media (max-width: 992px) {
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: var(--crisp-white);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        gap: 15px;
    }

    .main-nav a {
        padding: 10px 20px;
        width: 100%;
        text-align: left;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: var(--bg-light);
        display: none;
        padding-left: 20px;
    }

    .menu-toggle-checkbox:checked ~ .main-nav {
        display: flex;
    }

    .menu-toggle-checkbox:checked ~ .main-nav .dropdown-content {
        display: block;
    }

    .hamburger-menu {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* Stack top bar nicely */
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Ensure Hero Buttons don't overlap with floating chat */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Ensure there's space for chat widget at the bottom */
    body {
        padding-bottom: 90px;
    }
}

@media (max-width: 480px) {
    .top-text {
        font-size: 0.8rem;
    }
    
    /* Hide non-essential text on very small screens */
    .top-bar .top-text:first-child {
        display: none;
    }

    .header-content {
        /* Keep logo and hamburger visible and aligned */
        justify-content: space-between;
    }
    
    .header-call {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .floating-chat {
        bottom: 15px;
        right: 15px;
    }

    .chat-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Optimize legal text spacing for mobile */
    .legal-content {
        padding: 0 10px;
    }
}
