/* --- style.css: Global Framework (Header & Footer) --- */

/* 1. Reset & Root Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --font-main: 'Inter', sans-serif;
    --font-tech: 'JetBrains Mono', monospace;
    
    /* Indigo Brand Colours */
    --pure-indigo: #4B0082; 
    --indigo-bright: #818cf8; /* Synchronised Indigo-Blue */
    --indigo-glow: rgba(129, 140, 248, 0.2);
    
    --bg-dark: #050508;
    --text-main: #d1d1d6;
    --text-dim: #8e8e93;
    --white: #ffffff;
    --silver-text: #a1a1a1;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}

/* Base Accessibility */
a:focus {
    outline: 2px dashed var(--indigo-bright);
    outline-offset: 4px;
}

/* --- Global Brand Identity (Shared by Header & Footer) --- */
.footer-brand-name {
    font-family: var(--font-main); /* Forces Sans-Serif */
    font-weight: 800;
    letter-spacing: -0.05em;
    font-size: 2.2rem;
    text-decoration: none;
    color: var(--white) !important;
    display: inline-block;
    line-height: 0.9;
    text-transform: lowercase;
}

.footer-brand-name span { 
    color: var(--indigo-bright);
    text-shadow: 0 0 15px var(--indigo-glow);
}

/* --- Navigation (navbar.html) --- */
#navbar-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensures it stays above all other content */
    width: 100%;
}

.site-header {
    /* Use a semi-transparent background for the blur effect */
    background-color: rgba(5, 5, 8, 0.8); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Subtle bottom border to define the edge against content */
    border-bottom: 1px solid var(--indigo-glow);
    
    padding: 1rem 0; /* Reduced from 2rem for a sleeker sticky profile */
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-brand-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-label {
    color: var(--indigo-bright) !important;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-strapline {
    font-family: var(--font-main);
    color: var(--text-dim);
    font-size: 0.95rem; 
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none; /* Sentence case to match footer image */
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-item:hover {
    color: var(--indigo-bright);
}

.audit-button {
    color: var(--indigo-bright);
    font-weight: 600;
    font-family: var(--font-tech);
    text-decoration: none;
    border: 1px solid var(--indigo-bright);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.audit-button:hover {
    background: var(--indigo-bright);
    color: var(--white);
}

/* --- Global Footer (footer.html) --- */
.site-footer {
    font-family: var(--font-main);
    color: var(--white);
    background: var(--bg-dark); 
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-subheading {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--indigo-bright);
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.agentic-list { list-style: none; padding: 0; margin: 0; }
.agentic-list li { margin-bottom: 12px; }
.agentic-list a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.agentic-list a::before {
    content: '::';
    font-family: var(--font-tech);
    color: var(--indigo-bright);
    margin-right: 12px;
    opacity: 0.5;
}

.agentic-list a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-legal-container {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-legal-links a {
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: color 0.3s ease;
    text-decoration: none;
    margin-right: 25px;
    font-family: var(--font-tech);
    text-transform: uppercase;
}

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

.corporate-details {
    color: var(--white);
    font-size: 0.75rem;
    line-height: 1.6;
    text-align: left;
}

.corporate-details p { margin: 0; }

/* Responsive Adjustments */
@media (max-width: 900px) {
    .footer-main-row { flex-direction: column; }
    .footer-legal-container { flex-direction: column; gap: 20px; }
    .corporate-details { text-align: left; }
    .nav-links, .audit-button { display: none; }
}

/* Enhanced Mobile Footer Centering */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 30px;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-main-row {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-col-left,
    .footer-col-right {
        text-align: center;
    }

    .footer-col-right {
        margin-top: 1rem;
    }

    .agentic-list {
        text-align: center;
    }

    .agentic-list li {
        justify-content: center;
    }

    .footer-legal-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-legal-links a {
        margin-right: 0;
        font-size: 0.7rem;
    }

    .corporate-details {
        text-align: center;
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .corporate-details p {
        margin-bottom: 0.5rem;
    }
}

/* Hide separators as requested */
.nav-divider {
    display: none;
}

/* Cookie Popup Styles */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background-color: var(--bg-dark);
    border: 1px solid var(--indigo-bright);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 1000;
    display: none;
    font-family: var(--font-main);
}

.cookie-content h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.cookie-content p {
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cookie-buttons .btn-primary,
.cookie-buttons .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cookie-buttons .btn-primary {
    background-color: var(--indigo-bright);
    color: var(--bg-dark);
}

.cookie-buttons .btn-primary:hover {
    background-color: var(--pure-indigo);
}

.cookie-buttons .btn-secondary {
    background-color: var(--text-dim);
    color: var(--white);
}

.cookie-buttons .btn-secondary:hover {
    background-color: var(--silver-text);
}

.cookie-link {
    color: var(--indigo-bright);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Base styles for the container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
}

/* Hide hamburger by default (Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px; /* Slightly thinner for a technical look */
    background-color: var(--indigo-bright); /* Use your brand indigo */
    transition: 0.3s;
    display: block;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 20px;
}

/* Mobile Styling */
@media (max-width: 900px) { /* Synchronized with your footer breakpoint */
    .menu-toggle {
        display: flex;
        z-index: 1000;
        padding: 10px;
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        gap: 1.5rem;
        
        /* Positioning */
        position: fixed;
        top: 100%; /* Sits right under the header */
        left: 0;
        width: 100%;
        
        /* Themed Background */
        background-color: var(--bg-dark);
        border-bottom: 1px solid var(--indigo-glow);
        padding: 2rem;
        overflow-y: auto; /* Allow scrolling within the menu if items are many */
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }

    /* Optional: Hamburger transform into an 'X' when active */
    .nav-links.active ~ .menu-toggle .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-links.active ~ .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-links.active ~ .menu-toggle .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}