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

:root {
    --gold: #CD9833;
    --black: #000000;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --gray-900: #212529;
    --heading-font: 'Fraunces', serif;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    background-color: none;
    color: var(--gold);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo img {
    display: none; /* replaced by inline SVG */
}

.logo a { display: inline-flex; align-items: center; line-height: 0; }
.logo-svg {
    height: 32px;
    width: auto;
    display: block;
}
.logo-light { display: none; height: 32px; width: auto; }
.header.scrolled .logo-dark { display: none; }
.header.scrolled .logo-light { display: block; }

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-menu a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--white);
}
.header.scrolled .nav-menu a { color: var(--black); }
.header.scrolled .nav-menu a:hover { color: var(--gold); }

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

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

/* Active nav item */
.nav-menu a.active {
    color: var(--white);
}
.header.scrolled .nav-menu a.active {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-selector select {
    background-color: rgba(255,255,255,0.06);
    color: var(--gold);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
    border-color: var(--gold);
    color: var(--gold);
}

.header.scrolled { background-color: #ffffff; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
/* btn-contact removed; unified on .btn-primary */

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/hero-bg-placeholder.png') center/cover no-repeat;
    background-position: 70% center;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.hero-background.loaded {
    background-image: url('./images/hero-bg-optimized.jpg');
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Softer, more transparent overlay for better image visibility while
       keeping enough contrast for the left-aligned text */
    background:
        radial-gradient(1100px 520px at 18% 42%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.38) 46%, rgba(0,0,0,0.12) 78%, rgba(0,0,0,0.28) 100%),
        radial-gradient(900px 380px at 12% 60%, rgba(205,152,51,0.07) 0%, rgba(205,152,51,0) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 140px 24px 120px 24px;
    display: block;
}

.hero-text {
    max-width: 680px;
    text-align: left;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 48px;
    color: var(--white);
    letter-spacing: -0.02em;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    font-family: 'Inter', sans-serif;
    max-width: 720px;
}

.legacy-word {
    position: relative;
    color: var(--white);
    transition: color 0.6s ease 0.3s;
}

.legacy-word::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--gold);
    transition: width 0.6s ease 0.3s;
}

.hero-headline.animate .legacy-word {
    color: var(--gold);
}

.hero-headline.animate .legacy-word::after {
    width: 100%;
}

.hero-subtext {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    max-width: 640px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 14px 26px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 2px solid var(--gold);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

/* Add a right-arrow to CTA buttons (exclude submit buttons) */
.btn-primary:not(button[type="submit"])::after {
    content: '→';
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.btn-primary:not(button[type="submit"]):hover::after {
    transform: translateX(4px);
}

/* Section Styles */
section { padding: 120px 0; }

.section-title {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--black);
    letter-spacing: -0.02em;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 140px;
    height: 4px;
    margin: 26px auto 0;
    background: var(--gold);
    border-radius: 2px;
    opacity: 0.9;
}

.section-title.centered { text-align: center; margin-bottom: 40px; }

.section-title.centered::after {
    left: auto;
    right: auto;
    margin: 22px auto 0;
}

/* Focus / What we do Section */
.focus {
    background-color: var(--white);
}

/* New layout */
.what-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
    align-items: start;
}

.what-left p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.what-left .btn-primary { margin-top: 6px; }

.what-right {
    display: grid;
    gap: 16px;
}

.what-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.what-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.what-icon { color: var(--gold); display: inline-flex; }

.what-card h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 20px;
    color: var(--gray-900);
}

.what-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

.focus-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-600);
    font-weight: 400;
}

/* About Section */
.about {
    background-color: var(--gray-100);
}

.about-header {
    margin-bottom: 40px;
}

.about-name {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.about-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0;
}

/* Differentiated sub-header styling for role */
.about-role span {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: var(--gray-800);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
}

.about-role .linkedin-link {
    color: #0077b5;
    transition: color 0.3s ease;
}

.about-role .linkedin-link:hover {
    color: #005582;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
    align-items: start;
    align-items: flex-start; /* broader browser support */
}

.about-bio p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--gray-600);
}

.about-bio p:last-child {
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: block; /* prevent baseline spacing */
}

/* Ensure both columns stick to the top edge in the grid */
.about-text,
.about-image { align-self: start; }

/* Backers Section */
.backers {
    background-color: var(--white);
    text-align: center;
}

.backers-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.backers-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-600);
}

.investors-carousel {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 3px 0; /* Add padding to prevent clipping on hover */
}

.carousel-track {
    display: flex;
    gap: 60px;
    animation: scroll 45s linear infinite;
    align-items: center;
    width: max-content;
}

.investor-logo {
    flex-shrink: 0;
    width: 200px;
    height: 96px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.investor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.investor-logo:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Pause animation on hover */
.investors-carousel:hover .carousel-track {
    animation-play-state: paused;
}



@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%));
    }
}

/* Contact Section */
.contact {
    background-color: #151a20;
    color: #e8ecf1;
}

.contact .section-title { color: #fff; margin-bottom: 40px; }
.contact .section-title::after { display: block; background: var(--gold); opacity: 0.95; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 72px; /* spacing between text and form */
    align-items: start;
}

.contact-left h3 {
    font-family: var(--heading-font);
    font-size: clamp(1.7rem, 2.6vw, 2.15rem);
    line-height: 1.25;
    color: #fff;
    margin-bottom: 20px;
}

.contact-left p { color: #b7c0ca; margin-bottom: 14px; }

.contact-meta { margin-top: 20px; display: grid; gap: 10px; }
.contact-meta .meta-row { display: flex; align-items: center; gap: 10px; color: #c4ccd6; }
.contact-meta .meta-row svg { color: var(--gold); flex-shrink: 0; }

.contact-form { width: 100%; }
.form-field { position: relative; }
.form-field + .form-field { margin-top: 14px; } /* vertical spacing between fields */
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px 18px;
    background: #1d232b;
    border: 1px solid #2c333d;
    color: #e9edf2;
    border-radius: 8px;
    font-size: 16px;
}
.form-field input { height: 52px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9aa3ad; }
.form-field textarea { min-height: 200px; resize: vertical; }
.contact-submit { margin-top: 20px; }
.contact-submit .btn-primary { width: 100%; }

/* Button animation styles for form submission */
.btn-primary.success {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    transform: scale(1.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(205, 152, 51, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary.success:hover::before {
    left: 100%;
}

.btn-primary.error {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: scale(1.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form success state */
.contact-form.success {
    pointer-events: none;
}

.contact-form.success .form-field input,
.contact-form.success .form-field textarea {
    background-color: rgba(205, 152, 51, 0.05);
    border-color: rgba(205, 152, 51, 0.2);
    color: var(--gray-600);
}

.contact-form.success .form-field input::placeholder,
.contact-form.success .form-field textarea::placeholder {
    color: rgba(108, 117, 125, 0.5);
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto; /* left brand, right stacked info */
    gap: 32px;
    align-items: start;
}

.footer-info { display: none; }

.footer-brand .footer-logo {
    height: 28px;
    display: block;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
}

.footer-brand-name {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 20px;
    color: var(--gray-800);
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Align left column brand elements */
.footer-brand { padding-left: 0; }
.footer-brand .footer-logo { margin-left: 0; }

.footer-tagline {
    margin: 8px 0 0 0; /* align with logo/text at left */
    color: var(--gray-600);
    font-size: 14px;
}

.footer-address p,
.footer-contact p {
    color: var(--gray-600);
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-contact p:last-child {
    margin-bottom: 0;
}

.footer-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-self: end; }
.linkedin-link { color: var(--gray-600); transition: color 0.3s ease; display: inline-block; margin-top: 6px; }
.linkedin-link:hover { color: var(--gold); }

/* Copyright Section */
.copyright {
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 20px 0;
}

.copyright p {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: row;
        gap: 0;
        justify-content: flex-start;
    }
    
    .nav,
    .nav-menu,
    .header-actions { display: none; }
    
    .hero-content {
        padding-top: 160px;
        display: block;
        padding: 160px 0 120px 16px;
    }
    
    .hero-headline {
        max-width: 90vw;
    }
    
    .hero-text {
        max-width: 90vw;
    }
    
    .contact-grid { grid-template-columns: 1fr; }
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .about-role { justify-content: center; }
    
    .about-image {
        display: flex;
        justify-content: center;
    }
    
    .about-image img {
        margin: 0 auto;
    }
    
    .image-placeholder {
        height: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 24px;
    }
    
    .what-grid { grid-template-columns: 1fr; gap: 28px; }
    .carousel-track {
        gap: 40px;
        animation-duration: 35s;
    }
    
    .investor-logo {
        width: 160px;
        height: 80px;
        padding: 12px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50%));
        }
    }
}

@media (max-width: 480px) {
    section { padding: 72px 0; }
    
    .hero-content {
        padding: 140px 0 120px 12px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subtext {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
