/*
 *  AES Crypt site-specific styles
 *  Copyright (C) 2026 Terrapane Corporation
 *  All Rights Reserved
 */

/* Override primary color for this site */
:root,
[data-bs-theme=light]
{
    --terrapane-primary-color: #0066cc;
    --terrapane-rule-color: #808080;
}

/* Force logo visible on all screen sizes. Overrides terrapane.css */
.navbar-brand,
.navbar-brand.d-none,
.navbar .navbar-brand
{
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-brand img
{
    max-height: 40px;
    width: auto;
    display: block;
}

/* Buttons: outline by default, fill on hover. No underline. */
.btn-primary,
.btn-outline-primary,
.navbar .btn
{
    text-decoration: none !important;
    background-color: transparent !important;
    color: var(--terrapane-primary-color) !important;
    border-color: var(--terrapane-primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.navbar .btn:hover,
.navbar .btn:focus
{
    background-color: var(--terrapane-primary-color) !important;
    border-color: var(--terrapane-primary-color) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Hero: soft background, high-contrast text */
.hero-section
{
    background: linear-gradient(180deg, #fbfaf45c 0%, #ffffff 100%) !important;
    border: 1px solid #e9ecef;
}

.hero-section h1,
.hero-section .display-4
{
    color: #cdae6c !important;
}

.hero-section .lead
{
    color: #495057 !important;
}

.hero-section .small
{
    color: #6c757d !important;
}

/* Dark mode hero */
[data-bs-theme="dark"] .hero-section
{
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border-color: #3a3a3a;
}

[data-bs-theme="dark"] .hero-section h1,
[data-bs-theme="dark"] .hero-section .display-4
{
    color: #cdae6c !important;
}

[data-bs-theme="dark"] .hero-section .lead
{
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-outline-primary,
[data-bs-theme="dark"] .navbar .btn
{
    color: var(--terrapane-primary-color) !important;
    border-color: var(--terrapane-primary-color) !important;
}

[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .navbar .btn:hover,
[data-bs-theme="dark"] .btn-primary:focus,
[data-bs-theme="dark"] .btn-outline-primary:focus,
[data-bs-theme="dark"] .navbar .btn:focus
{
    background-color: var(--terrapane-primary-color) !important;
    color: #fff !important;
}

/* Accent cards with light background (home page only) */
.feature-card
{
    border-top: 3px solid var(--terrapane-primary-color) !important;
    background-color: var(--terrapane-bg-secondary-color, #f8f9fa) !important;
}

.feature-card:hover
{
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Footer link hover */
footer a:hover
{
    text-decoration: underline;
}

footer .btn:hover
{
    text-decoration: none !important;
}

/* Card icons in primary blue */
.feature-card .bi
{
    color: var(--terrapane-primary-color);
    flex-shrink: 0;
}

/* Uniform card heights (home page feature cards only) */
.feature-card .card-body
{
    min-height: 8.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
