/* 
   Hexagona FII - Main Stylesheet
   Theme: Blue Gradient + Platinum Grey
*/

:root {
    /* Colors */
    --primary-blue: #0D6EFD;
    --deep-blue: #0A0F1F;
    --secondary-blue: #2563EB;
    
    --platinum: #E5E7EB;
    --light-gray: #F3F4F6;
    --medium-gray: #6B7280;
    
    --text-main: #0B1320;
    --white: #FFFFFF;
    
    --cta-color: #FFC107; /* Gold */
    --cta-hover: #E0A800;
    
    --success: #22C55E;
    --error: #DC3545;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --container-padding: 1.5rem;
    --max-width: 1200px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--cta-color);
    color: var(--deep-blue);
}

.btn-primary:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-text {
    color: var(--primary-blue);
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

.section-padding {
    padding: 4rem 0;
}

.section-bg-platinum {
    background-color: var(--platinum);
}

.section-bg-light {
    background-color: var(--light-gray);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    background: linear-gradient(90deg, var(--deep-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--platinum);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.nav-link:hover, .nav-link.active {
    color: var(--cta-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--deep-blue);
        width: 100%;
        height: calc(100vh - 80px); /* Adjust height */
        text-align: center;
        transition: 0.3s;
        padding-top: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto; /* Enable scroll if menu is long */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Features/Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* Compliance / Risk Warning Box */
.risk-warning {
    background-color: #FEF2F2;
    border-left: 5px solid var(--error);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.risk-warning h4 {
    color: #991B1B;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-warning p {
    color: #7F1D1D;
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--deep-blue);
    color: var(--platinum);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a:hover {
    color: var(--cta-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--deep-blue);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Tables (Documents) */
.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
}

.custom-table th, .custom-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.custom-table th {
    background-color: var(--light-gray);
    color: var(--deep-blue);
    font-weight: 600;
}

.custom-table tr:hover {
    background-color: #F9FAFB;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    border: 1px solid var(--platinum);
}

#cookie-banner p {
    flex: 1;
    min-width: 250px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* 404 Page */
.page-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-404 h1 {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Responsive Headings */
@media (max-width: 768px) {
    .header .btn {
        display: none; /* Hide header CTA on mobile if needed, or adjust */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}
