/* ============================================================
   style.css – Sentinel Due Diligence Global Styles
   ============================================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- HEADER (dark) ----- */
header {
    background: #0f172a;
    color: #f1f5f9;
    padding: 20px 0;
    border-bottom: 4px solid #6d28d9;
}

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

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

header h1 a {
    color: #f1f5f9;
    text-decoration: none;
}

header .tagline {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ----- NAVIGATION ----- */
header nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

header nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

header nav a:hover {
    color: #f1f5f9;
}

header nav a.active {
    color: #f1f5f9;
    font-weight: 600;
}

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

.dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

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

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #ffffff;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ----- TOOLTIP ----- */
header nav a[data-tooltip] {
    position: relative;
}

header nav a[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid #6d28d9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

header nav a[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
}

header nav a[data-tooltip]:hover::after,
header nav a[data-tooltip]:hover::before {
    opacity: 1;
}

/* ----- FOOTER ----- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
    border-top: 1px solid #1e293b;
}

footer a {
    color: #94a3b8;
    text-decoration: underline;
}

footer .footer-nav {
    margin-top: 5px;
    font-size: 0.8rem;
}

footer .footer-nav a {
    margin: 0 10px;
}

/* ----- GENERAL ELEMENTS ----- */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.sub {
    color: #475569;
    margin-bottom: 20px;
}

/* ----- BUTTONS ----- */
.btn {
    background: #6d28d9;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    cursor: pointer;
}

.btn:hover {
    background: #5b21b6;
}

.btn-primary {
    background: #0f172a;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #1e293b;
}

/* ----- CARDS ----- */
.card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #6d28d9;
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.card p {
    color: #475569;
    margin-bottom: 10px;
}

.card ul {
    padding-left: 20px;
    color: #475569;
}

.card ul li {
    margin-bottom: 4px;
}

/* ----- HIGHLIGHT BOX ----- */
.highlight-box {
    background: #faf5ff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #8b5cf6;
    margin: 20px 0;
}

.highlight-box strong {
    color: #6d28d9;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    header h1 {
        font-size: 1.2rem;
    }
    header nav {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
    .dropdown-menu {
        left: 0;
        transform: translateX(0);
        min-width: 160px;
    }
    .dropdown-menu::after {
        left: 20px;
    }
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -12px;
        left: 0;
        width: 100%;
        height: 12px;
        background: transparent;
    }
    header nav a[data-tooltip]::after {
        white-space: normal;
        max-width: 200px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}
