/* ============================================
   10x Equity - CSS Stylesheet
   Design: Refined Financial Minimalism
   ============================================ */

:root {
    /* Color Palette - Extracted from logo.png */
    --navy: #213c59;
    --navy-dark: #1a2f47;
    --navy-light: #2a4a6b;
    --slate-teal: #5D7173;
    --light-gray: #B4BEBF;
    --gold: #d3a64a;
    --gold-light: #e4b85f;
    --gold-dark: #b8943d;
    --off-white: #F2F2F2;
    --pure-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Animation */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--navy);
    color: var(--pure-white);
    padding: 12px 24px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy);
    background: var(--pure-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(33, 60, 89, 0.08);
    transition: var(--transition-smooth);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    height: auto;
}

.logo img {
    display: block;
    transition: var(--transition-smooth);
    width: auto;
    height: 90px;
    object-fit: contain;
}

.logo:hover img {
    opacity: 0.8;
    transform: scale(1.02);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition-smooth);
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--navy-dark);
    outline: none;
}

.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    width: 100%;
    background: var(--gold);
}

.nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--navy);
    border-radius: 4px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--navy);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 60, 89, 0.2);
}

/* Navigation Progress Bar */
.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(33, 60, 89, 0.1);
    z-index: 1001;
}

.nav-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    transition: width 0.2s ease-out;
    box-shadow: 0 0 10px rgba(211, 166, 74, 0.5);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    color: var(--off-white);
    overflow: hidden;
    margin-top: 88px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(33, 60, 89, 0.95) 0%, rgba(26, 47, 71, 1) 50%, rgba(33, 60, 89, 0.98) 100%);
}

/* Neural Network */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

.neural-network line {
    stroke: url(#connectionGradient);
    stroke-width: 2;
    fill: none;
    filter: url(#glow);
    opacity: 0;
    animation: connectionGrow 2s ease-out forwards;
}

.neural-network circle {
    fill: url(#nodeGradient);
    filter: url(#glow);
    opacity: 0;
    animation: nodePulse 1.5s ease-out forwards;
}

@keyframes connectionGrow {
    0% {
        stroke-dasharray: 0, 1000;
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        stroke-dasharray: 1000, 0;
        opacity: 0.6;
    }
}

@keyframes nodePulse {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.9;
        transform: scale(1);
    }
}

.neural-network circle {
    animation: nodePulse 1.5s ease-out forwards, nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {
    0%, 100% {
        opacity: 0.7;
        filter: url(#glow);
    }
    50% {
        opacity: 1;
        filter: url(#glow);
    }
}

/* Hero Overlay - Adds depth and brand color tint */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(211, 166, 74, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(211, 166, 74, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(93, 113, 115, 0.05) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Subtle gradient at bottom for smooth transition */
.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(33, 60, 89, 0.4) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 0;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    margin-bottom: 40px;
    box-shadow: 0 0 10px rgba(211, 166, 74, 0.5);
}

.hero-narrative {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.7;
    font-weight: 300;
    color: var(--light-gray);
    max-width: 700px;
    margin-bottom: 50px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-light);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 166, 74, 0.3);
    border-color: var(--gold-light);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:focus {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--off-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--light-gray);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

.scroll-indicator svg {
    animation: scrollDown 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* ============================================
   Section: Honor the Past
   ============================================ */

.section-honor {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.content-wrapper {
    max-width: 800px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    margin-bottom: 40px;
    transition: var(--transition-smooth);
}

.section-divider:hover {
    width: 80px;
    box-shadow: 0 0 8px rgba(211, 166, 74, 0.4);
}

.section-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--slate-teal);
    margin-bottom: 50px;
    font-weight: 300;
}

.btn-outline {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--navy);
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--navy);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--pure-white);
}

.btn-outline:hover::before {
    left: 0;
}

/* ============================================
   Section: Specialized Expertise
   ============================================ */

.section-expertise {
    padding: var(--section-padding) 0;
    background: var(--navy);
    color: var(--off-white);
}

.expertise-header {
    margin-bottom: 80px;
    max-width: 800px;
}

.section-title-light {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--off-white);
    letter-spacing: -0.01em;
}

.section-divider-light {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    margin-bottom: 40px;
    box-shadow: 0 0 10px rgba(211, 166, 74, 0.5);
    transition: var(--transition-smooth);
}

.section-divider-light:hover {
    width: 80px;
}

.section-description-light {
    font-size: 18px;
    line-height: 1.8;
    color: var(--light-gray);
    font-weight: 300;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.pillar {
    padding: 40px 0;
    border-top: 1px solid rgba(93, 113, 115, 0.3);
    transition: var(--transition-smooth);
}

.pillar:hover {
    border-top-color: var(--gold);
    transform: translateY(-8px);
    padding-left: 10px;
}

.pillar:hover .pillar-number {
    color: var(--gold-light);
    transform: scale(1.1);
}

.pillar-number {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.pillar-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--off-white);
    line-height: 1.3;
}

.pillar-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--light-gray);
    font-weight: 300;
}

/* ============================================
   Section: Precision Transitions
   ============================================ */

.section-transitions {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--navy);
    color: var(--off-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(93, 113, 115, 0.3);
    margin-bottom: 30px;
    align-items: start;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--slate-teal);
    font-weight: 300;
    font-style: italic;
    max-width: 400px;
}

.footer-email {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.footer-email:hover {
    color: var(--gold);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--slate-teal);
    font-weight: 300;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger:nth-child(1) { transition-delay: 0.1s; }
.fade-in-stagger:nth-child(2) { transition-delay: 0.2s; }
.fade-in-stagger:nth-child(3) { transition-delay: 0.3s; }
.fade-in-stagger:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 18px;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(33, 60, 89, 0.1);
    }
    
    .nav-link.active {
        color: var(--gold);
        font-weight: 600;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 20px;
        border: 2px solid var(--navy);
    }
    
    .nav-cta:hover {
        background: var(--navy);
        color: var(--pure-white);
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .btn-outline {
        padding: 14px 32px;
        font-size: 13px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .section-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-title,
    .section-title-light {
        font-size: 32px;
    }
    
    .section-description,
    .section-description-light {
        font-size: 16px;
    }
    
    .pillar-title {
        font-size: 24px;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

/* ============================================
   Section Navigation Indicator
   ============================================ */

.section-indicator {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.section-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.section-dot {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--slate-teal);
    transition: var(--transition-smooth);
    position: relative;
}

.section-dot .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--slate-teal);
    border: 2px solid var(--pure-white);
    transition: var(--transition-smooth);
    position: relative;
}

.section-dot .label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.section-dot:hover .label,
.section-dot.active .label {
    opacity: 1;
    transform: translateX(0);
}

.section-dot:hover .dot,
.section-dot.active .dot {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(211, 166, 74, 0.5);
}

.section-dot.active {
    color: var(--gold);
}

.section-dot:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(211, 166, 74, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(211, 166, 74, 0.4);
}

.scroll-to-top:focus {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Enhanced Focus States
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

a:focus-visible,
button:focus-visible {
    outline-offset: 4px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .nav {
        position: static;
    }
    
    .hero-background {
        display: none;
    }
    
    .btn-outline,
    .btn-primary,
    .btn-secondary {
        border: 1px solid #000;
    }
    
    .scroll-to-top,
    .scroll-indicator,
    .mobile-menu-toggle {
        display: none;
    }
}
