/* 
 * Arctic Owl Cybersecurity - Main Stylesheet
 * Based on the provided color scheme
 */

 :root {
    /* Core Brand Colors */
    --dark-blue: #2e3440;
    --shade-blue: #5e81ac;
    --golden-eye: #f6ce93;
    --white: #ffffff;
    
    /* Secondary Colors */
    --frost-gray: #d8dee9;
    --ice-blue: #81a1c1;
    --signal-green: #a3be8c;
    --warning-coral: #d08770;
    
    /* Utility Colors */
    --dark-blue-lighter: #3b4252;
    --dark-blue-lightest: #434c5e;
    --shade-blue-darker: #4c566a;
    --golden-eye-darker: #ebcb8b;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-blue);
    background-color: var(--white);
    line-height: 1.6;
}
/*
h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', serif;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', serif;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    scroll-margin-top: 8ex;
}

a {
    color: var(--shade-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ice-blue);
    text-decoration: none;
}

/* Button Styles */
.btn-primary {
    background-color: var(--shade-blue);
    border-color: var(--shade-blue);
    color: var(--white);
}
.btn-test {
    background: linear-gradient(170deg, var(--dark-blue) 0%, var(--ice-blue) 100%);
    border-color: var(--golden-eye);
    color: var(--dark-blue);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--ice-blue);
    border-color: var(--ice-blue);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--shade-blue);
    border-color: var(--shade-blue);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--shade-blue);
    border-color: var(--shade-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--golden-eye);
    border-color: var(--golden-eye);
    color: var(--dark-blue);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--golden-eye-darker);
    border-color: var(--golden-eye-darker);
    color: var(--dark-blue);
}

.btn-success {
    background-color: var(--signal-green);
    border-color: var(--signal-green);
}

.btn-warning {
    background-color: var(--warning-coral);
    border-color: var(--warning-coral);
}

/* Background Colors */
.bg-primary, .bg-primary-dark {
    background-color: var(--dark-blue) !important;
}

.bg-secondary {
    background-color: var(--shade-blue) !important;
}

.bg-light {
    background-color: var(--frost-gray) !important;
}

.bg-light-2 {
    background-color: var(--white) !important;
}

.bg-light-3 {
    background-color: var(--frost-gray) !important;
}

.bg-success {
    background-color: var(--signal-green) !important;
}

.bg-warning {
    background-color: var(--warning-coral) !important;
}

.bg-accent {
    background-color: var(--golden-eye) !important;
}

/* Text Colors */
.text-primary {
    color: var(--shade-blue) !important;
}

.text-secondary {
    color: var(--ice-blue) !important;
}

.text-dark {
    color: var(--dark-blue) !important;
}

.text-success {
    color: var(--signal-green) !important;
}

.text-warning {
    color: var(--warning-coral) !important;
}

.text-accent {
    color: var(--golden-eye) !important;
}

/* Header Styles */
.site-header {
    transition: all 0.3s ease;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-link {
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, 
.nav-link:focus,
.nav-link.active {
    color: var(--shade-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--shade-blue);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Page Headers */
/* Page Headers */
.page-header {
    position: relative;
    padding: 6rem 0;
    margin-bottom: 2rem;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--shade-blue) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.page-header .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.page-header-content {
    display: flex;
    align-items: center;
    min-height: 280px;
}
/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--dark-blue);
    color: var(--white);
}

.hero-background {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--shade-blue) 100%);
    opacity: 0.9;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:not(.immobile):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.frost-shadow {
    box-shadow: 0 4px 15px rgba(46, 52, 64, 0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0;
}

.site-footer a {
    color: var(--frost-gray);
}

.site-footer a:hover {
    color: var(--white);
}

.site-footer h5 {
    color: var(--golden-eye);
    font-weight: 600;
}

/* Service Icons */
.service-icon {
    color: var(--shade-blue);
}

/* CTA Sections */
.cta-section {
    background-color: var(--shade-blue);
    color: var(--white);
}
/* Comparison table styling using Arctic Owl brand colors */
.comparison-table .table {
    box-shadow: 0 0.125rem 0.25rem rgba(46, 52, 64, 0.08);
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    border-color: var(--frost-gray);
    /* Firefox fix for rounded corners */
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table .table thead th {
    background-color: var(--shade-blue);
    color: var(--white);
    border-color: var(--ice-blue);
    vertical-align: middle;
    text-align: center;
    padding: 1rem 0.75rem;
    font-weight: 600;
}

.comparison-table .table thead th:first-child {
    text-align: left;
    background-color: var(--dark-blue);
}

.comparison-table .table tbody tr td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: var(--frost-gray);
    color: var(--dark-blue);
}

.comparison-table .table tbody tr td:first-child {
    font-weight: 600;
    background-color: rgba(94, 129, 172, 0.08);
    color: var(--shade-blue-darker);
}

.comparison-table .table tbody tr:hover {
    background-color: rgba(216, 222, 233, 0.2); /* Light frost-gray */
}

/* Alternating row colors for better readability */
.comparison-table .table tbody tr:nth-child(even) {
    background-color: rgba(216, 222, 233, 0.1); /* Very light frost-gray */
}

.comparison-table .table tbody tr:nth-child(even):hover {
    background-color: rgba(216, 222, 233, 0.3); /* Slightly darker on hover */
}

/* Add soft transitions */
.comparison-table .table tbody tr {
    transition: background-color 0.2s ease;
}

/* Style for "Best For" row to highlight recommendations */
.comparison-table .table tbody tr:last-child {
    border-top: 2px solid rgba(94, 129, 172, 0.2);
}

.comparison-table .table tbody tr:last-child td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Firefox fix: apply border-radius to table cells for rounded corners */
.comparison-table .table thead th:first-child {
    border-top-left-radius: 8px;
}
.comparison-table .table thead th:last-child {
    border-top-right-radius: 8px;
}
.comparison-table .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}
.comparison-table .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .comparison-table .table {
        font-size: 0.9rem;
    }
    
    .comparison-table .table th,
    .comparison-table .table td {
        padding: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .comparison-table .table {
        font-size: 0.8rem;
    }
}
/* Process Steps */
.step-number {
    background-color: var(--shade-blue);
    color: var(--white);
}

.step.active .step-number {
    background-color: var(--golden-eye);
    color: var(--dark-blue);
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--frost-gray);
    color: var(--dark-blue);
}

.accordion-button:focus {
    border-color: var(--shade-blue);
    box-shadow: 0 0 0 0.25rem rgba(94, 129, 172, 0.25);
}

/* Forms */
.form-control:focus {
    border-color: var(--shade-blue);
    box-shadow: 0 0 0 0.25rem rgba(94, 129, 172, 0.25);
}

/* Utility classes */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--shade-blue);
}

/* Blog and Services */
.blog-post:hover, 
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Mega Menu Styles - Add to main.css */

/* Mega Menu Container */
.mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 500px !important;
    max-width: 90vw !important;
    background: var(--white) !important;
    border: 1px solid rgba(46, 52, 64, 0.1) !important;
    box-shadow: 0 10px 30px rgba(46, 52, 64, 0.15) !important;
    padding: 2rem !important;
    margin-top: -0.5rem !important;
}

/* Category Headers */
.mega-menu-category {
    padding: 0;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue) !important;
    margin-bottom: 0.75rem;
}

.category-icon img {
    filter: none;
    transition: all 0.2s ease;
}

/* Category Dividers */
.category-divider {
    border: none;
    height: 1px;
    background-color: var(--shade-blue);
    margin: 0 0 1rem 0;
    opacity: 0.3;
}

/* Service Items */
.mega-menu .dropdown-item {
    border: none !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    color: var(--dark-blue) !important;
}

.mega-menu .dropdown-item:hover,
.mega-menu .dropdown-item:focus {
    background: var(--frost-gray) !important;
    color: var(--dark-blue) !important;
    transform: translateX(5px) !important;
}

/* Service Titles with Underlines */
.mega-menu .dropdown-item .service-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-blue);
    transition: border-color 0.2s ease;
}

.mega-menu .dropdown-item:hover .service-title {
    border-bottom-color: var(--shade-blue);
}

.mega-menu .dropdown-item small {
    font-size: 0.75rem;
    color: var(--shade-blue-darker);
    line-height: 1.3;
}

/* Dropdown positioning for mega menu */
.dropdown.position-static .dropdown-menu {
    position: absolute !important;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        left: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 1rem !important;
        margin-top: 0 !important;
    }
}

/* Mobile dropdown headers */
.dropdown-header {
    color: var(--shade-blue) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
}

/* Mobile dropdown dividers */
.dropdown-divider {
    border-color: rgba(94, 129, 172, 0.1) !important;
    margin: 0.5rem 0 !important;
}
/* Dropdown menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--frost-gray);
    color: var(--dark-blue);
}

.dropdown-item.active, 
.dropdown-item:active {
    background-color: var(--shade-blue);
    color: var(--white);
}

/* Sticky Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px; /* Adjust based on your header height */
    overflow-y: auto;
    align-self: flex-start;
    transition: top 0.2s ease;
}

/* Ensure proper spacing at the bottom when scrolling */
.blog-sidebar > div:last-child {
    margin-bottom: 20px;
}

/* Disable sticky behavior on mobile */
@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
        overflow-y: visible;
    }
}

/* Sticky Sidebar CSS for Arctic Owl */
.service-content .col-lg-4 {
    position: sticky;
    top: 100px; /* Adjust this value based on your header height */
    overflow-y: auto; /* Adds scrolling to the sidebar itself if content is tall */
    align-self: flex-start; /* Ensures proper alignment in flex containers */
}

/* Optional: Add a smooth transition when scrolling */
.service-content .col-lg-4 {
    transition: top 0.2s ease;
}

/* Optional: Ensure proper spacing at the bottom when scrolling */
.service-content .col-lg-4 > div:last-child {
    margin-bottom: 20px;
}

/* 
 * Media query to disable sticky behavior on mobile devices
 * where it might not be as useful
 */
 @media (max-width: 991.98px) {
    .section-title:after {
        left: 0;
        transform: none;
    }
    .service-content .col-lg-4 {
        position: static; /* Disable sticky positioning on smaller screens */
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
}
