/* ========================================
   Presidio Asset Management - Main Styles
   ======================================== */

/* CSS Variables */
:root {
    --navy-dark: #0a1628;
    --navy: #1a2b4a;
    --navy-light: #2d4a6f;
    --gold: #c9a962;
    --gold-light: #d4bc7d;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 6rem 0;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    height: 50px;
    width: auto;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: 3px;
}

.logo-subtext {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.nav-cta {
    background-color: var(--navy-dark);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px;
}

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

.nav-cta:hover {
    background-color: var(--navy);
    color: var(--white) !important;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--navy-dark);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--navy-dark);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    margin-top: 80px;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/fortress-pattern-white.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transition: opacity 0.3s ease, transform 0.1s ease;
    will-change: opacity, transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(26, 43, 74, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Page Hero (smaller for inner pages) */
.page-hero {
    height: 40vh;
    min-height: 300px;
}

.page-hero h1 {
    font-size: 2.75rem;
}

/* ========================================
   About Section
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--gray-100);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--navy-dark);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Philosophy Section
   ======================================== */
.philosophy-section {
    background-color: var(--gray-100);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.philosophy-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.philosophy-icon {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.philosophy-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.philosophy-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    margin-bottom: 1.5rem;
    resize: vertical;
}

@media (max-width: 600px) {
    .contact-form .form-row {
        flex-direction: column;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--navy-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--navy-dark);
    border: 2px solid var(--navy-dark);
}

.btn-outline:hover {
    background-color: var(--navy-dark);
    color: var(--white);
}

/* ========================================
   Strategies Page
   ======================================== */
.strategies-grid {
    display: grid;
    gap: 4rem;
}

.strategy-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.strategy-item:last-child {
    border-bottom: none;
}

.strategy-item:nth-child(even) {
    direction: rtl;
}

.strategy-item:nth-child(even) > * {
    direction: ltr;
}

.strategy-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 1rem;
}

.strategy-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--navy-dark);
}

.strategy-content p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.strategy-visual {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-radius: 8px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strategy-icon {
    color: var(--gold);
    opacity: 0.8;
}

/* ========================================
   Team Page
   ======================================== */
.team-section {
    padding: 6rem 0;
}

.team-member {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.team-photo {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    color: var(--gold);
    opacity: 0.5;
}

.team-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.team-bio p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.team-credentials {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.credential-icon {
    color: var(--navy);
}

/* ========================================
   Principles Page
   ======================================== */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.principle-card {
    padding: 2.5rem;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: var(--transition);
}

.principle-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.principle-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.principle-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.principle-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ========================================
   Careers Page
   ======================================== */
.careers-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.careers-intro p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.no-openings {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--gray-100);
    border-radius: 8px;
}

.no-openings h3 {
    margin-bottom: 1rem;
}

.no-openings p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.careers-culture {
    margin-top: 4rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.culture-item {
    text-align: center;
    padding: 2rem;
}

.culture-icon {
    color: var(--gold);
    margin-bottom: 1rem;
}

.culture-item h4 {
    margin-bottom: 0.75rem;
}

.culture-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   Investor Login Page
   ======================================== */
.login-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    margin-top: 80px;
    padding: 4rem 0;
}

.login-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-500);
    margin-bottom: 0;
}

.login-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
}

.login-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.login-tab:hover {
    color: var(--navy);
}

.login-tab.active {
    color: var(--navy-dark);
    border-bottom-color: var(--gold);
}

.login-form,
.register-form {
    display: none;
}

.login-form.active,
.register-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}

.form-actions {
    margin-top: 2rem;
}

.form-actions .btn {
    width: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.form-footer a {
    color: var(--gold);
    font-weight: 500;
}

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

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    height: 40px;
    width: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.25rem;
}

.footer-brand .logo-subtext {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-legal {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-legal .disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal .disclaimer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.footer-legal .disclaimer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--navy-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.legal-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--gray-600);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--gray-400) !important;
    font-style: italic;
    margin-bottom: 1.5rem !important;
}

/* Accredited Investor Gate */
#investor-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
}

.investor-gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.investor-gate-modal {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 540px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.investor-gate-modal h2 {
    font-family: var(--font-heading);
    color: var(--navy-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.investor-gate-modal p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.investor-gate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.investor-gate-actions .btn-outline {
    border: 2px solid var(--gray-300);
    color: var(--gray-500);
    background: transparent;
}

.investor-gate-actions .btn-outline:hover {
    border-color: var(--gray-400);
    color: var(--gray-600);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .strategy-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .strategy-item:nth-child(even) {
        direction: ltr;
    }

    .team-member {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-photo {
        max-width: 350px;
        margin: 0 auto;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .section {
        padding: 4rem 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }

    .nav-cta {
        display: inline-block;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .about-stats {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.875rem; }

    .container {
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
}
