/* Site-wide styles for header, footer, sticky CTA, and cookie banner */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

/* CSS Variables */
:root {
    --navy: #0f1f33;
    --blue: #2563eb;
    --gold: #d69e2e;
    --green: #38a169;
    --red: #dc2626;
    --text: #1a202c;
    --text-light: #4a5568;
    --bg: #ffffff;
    --bg-subtle: #f7fafc;
}

/* Typography - Site-wide consistent styles */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--navy);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin: 2rem 0 1rem;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--navy);
    line-height: 1.3;
    margin: 1.5rem 0 0.75rem;
}

p, li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Container - consistent layout across all pages */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15,31,51,0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.site-header.scrolled nav {
    padding: 0.75rem 0;
}

/* Header alternate styles (from main style block) */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    z-index: 100;
    border-bottom: 1px solid rgba(15, 31, 51, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

header.scrolled nav {
    padding: 0.75rem 0;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #0f1f33;
}

.lever-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lever-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-twisthand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--navy);
    line-height: 1;
}

.logo-intelligence {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: var(--navy);
    line-height: 1;
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

/* Navigation Links */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--navy);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Navigation dropdown styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(15, 31, 51, 0.1);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    border-bottom: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    background-color: var(--bg-subtle);
    color: var(--navy);
}

/* Directors CTA Button */
.directors-only {
    color: var(--bg);
    background: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.directors-only:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 31, 51, 0.2);
}

/* Pulsing CTA animation */
@keyframes ctaPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse-cta {
    animation: ctaPulse 2s ease-in-out infinite;
}

/* Status Signal */
.status-signal {
    font-size: 0.75rem;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

body.has-sticky-header {
    padding-top: 80px;
}

/* Sticky CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: white;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-cta.show {
    transform: translateY(0);
}

.sticky-cta-button {
    display: inline-block;
    background: white;
    color: var(--navy);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
}

.sticky-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: var(--bg);
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-buttons {
    display: inline-flex;
    gap: 1rem;
    margin-left: 1rem;
}

.cookie-button {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.cookie-accept {
    background: white;
    color: var(--navy);
}

.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.cookie-settings {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-link {
    color: white;
    text-decoration: underline;
    margin: 0 0.5rem;
    font-size: 0.875rem;
}

.cookie-link:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--bg-subtle);
    border-top: 1px solid rgba(15, 31, 51, 0.1);
    margin-top: 8rem;
}

.footer-content {
    padding: 4rem 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--navy);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(15, 31, 51, 0.1);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-legal {
    margin-top: 1rem;
    font-size: 0.75rem;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: underline;
    margin: 0 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(15, 31, 51, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--navy);
}

.social-links a:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Typography responsive adjustments */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-right.mobile-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: flex-start;
    }

    .nav-links a {
        font-size: 1.125rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
        background: transparent;
    }

    .directors-only {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }

    .status-signal {
        display: none;
    }

    .lever-icon {
        width: 30px;
        height: 30px;
    }
    
    body.has-sticky-header {
        padding-top: 70px;
    }
    
    .logo-twisthand {
        font-size: 1.125rem;
    }
    
    .logo-intelligence {
        font-size: 0.75rem;
    }
    
    .cookie-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        margin-left: 0;
    }
    
    .cookie-button {
        width: 100%;
        min-height: 48px;
    }
    
    .sticky-cta {
        padding: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Whisper Animation - Global animation used across multiple pages */
.whisper {
    opacity: 0;
}
.whisper.visible {
    animation: whisperIn 2.5s ease forwards;
}
@keyframes whisperIn {
    0% {
        opacity: 0;
        filter: blur(4px);
        transform: translateY(10px);
    }
    50% {
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}