/* ========================================
   CATALYXE ADVISORS - Global Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-black: #1a1a1a;
    --color-dark: #2d2d2d;
    --color-gold: #b8a065;
    --color-gold-hover: #c9b276;
    --color-cream: #f9f8f5;
    --color-white: #ffffff;
    --color-text: #3d3d3d;
    --color-text-light: #666666;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --max-width: 1200px;
    --content-width: 800px;
    --header-height: 80px;
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-2xl: 120px;
    
    --transition: 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-black);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

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

/* Accessibility - Focus States */
a:focus,
button:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-black);
    border-bottom: none;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    text-transform: uppercase;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-top: 4px;
    position: relative;
    padding: 0 24px;
}

.logo-sub::before,
.logo-sub::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--color-gold);
}

.logo-sub::before {
    left: 0;
}

.logo-sub::after {
    right: 0;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.02em;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition);
}

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

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-lg) var(--spacing-xl);
    background-color: var(--color-cream);
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-dark);
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--color-text-light);
    max-width: 480px;
    line-height: 1.6;
}

/* ========================================
   PAGE HEADER (for inner pages)
   ======================================== */
.page-header {
    padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-lg) var(--spacing-lg);
    background-color: var(--color-cream);
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center top;
}

.page-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.page-divider {
    width: 80px;
    height: 3px;
    background: var(--color-gold);
    margin: 0 auto var(--spacing-md) auto;
}

.page-intro {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--color-text);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

/* ========================================
   MAIN CONTENT SECTIONS
   ======================================== */
.main {
    background: var(--color-white);
}

.section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.section-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    position: relative;
}

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

.section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

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

.section p strong {
    font-weight: 600;
    color: var(--color-dark);
}

.emphasis-text {
    font-weight: 600;
    color: var(--color-dark);
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-member {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.team-member:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-gold);
    flex-shrink: 0;
}

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

.team-info {
    max-width: 600px;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.team-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.team-bio {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-text);
    margin-bottom: 16px;
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-black);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border-top: none;
}

.footer-email {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-gold);
    transition: color var(--transition);
}

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

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-xs);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 900px) {
    :root {
        --header-height: 70px;
    }
    
    .header-inner {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        min-height: 60vh;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 640px) {
    :root {
        --header-height: 64px;
    }
    
    .logo-main {
        font-size: 1.25rem;
        letter-spacing: 0.2em;
    }
    
    .logo-sub {
        font-size: 0.5rem;
        padding: 0 20px;
    }
    
    .logo-sub::before,
    .logo-sub::after {
        width: 14px;
    }
    
    /* Mobile Navigation */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-black);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        width: 100%;
        text-align: center;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--spacing-lg));
        padding-bottom: var(--spacing-lg);
    }
    
    .hero-logo {
        max-width: 280px;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-title {
        letter-spacing: 0.15em;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    /* Page Header Mobile */
    .page-header {
        padding-top: calc(var(--header-height) + var(--spacing-lg));
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Section Mobile */
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .team-name {
        font-size: 1.5rem;
    }
    
    /* Team Section Mobile */
    .team-member {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .team-info {
        max-width: 100%;
    }
    
    /* Footer Mobile */
    .footer {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}
