/* ==========================================================================
   DH Capital Partners - Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --color-midnight: #0a1628;
    --color-navy: #1a2a4a;
    --color-slate: #3d4f6f;
    --color-steel: #6b7c99;
    --color-silver: #a8b5c9;
    --color-pearl: #e8ecf2;
    --color-white: #ffffff;
    --color-gold: #c9a962;
    --color-gold-light: #dfc88a;
    --color-blue-dark: #1a365d;
    --color-blue-light: #4a90b8;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-pearl);
    background: var(--color-midnight);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.95), transparent);
    transition: all 0.4s var(--transition-smooth);
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 4rem;
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-blue-light);
    letter-spacing: 0.02em;
}

.logo-dh {
    color: var(--color-white);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-silver);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s var(--transition-smooth);
}

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

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-pearl);
    margin: 5px 0;
    transition: all 0.3s var(--transition-smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--transition-smooth);
}

.mobile-menu.active .mobile-menu-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-links li:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

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

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26, 42, 74, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(74, 144, 184, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-midnight) 0%, var(--color-navy) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(74, 144, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 184, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeUp 1.2s var(--transition-smooth) forwards;
    opacity: 0;
}

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

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-blue-light);
    margin-bottom: 2rem;
    animation: fadeUp 1.2s var(--transition-smooth) 0.2s forwards;
    opacity: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    animation: fadeUp 1.2s var(--transition-smooth) 0.4s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-silver);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeUp 1.2s var(--transition-smooth) 0.6s forwards;
    opacity: 0;
}

.hero-values {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeUp 1.2s var(--transition-smooth) 0.8s forwards;
    opacity: 0;
}

.hero-value {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-steel);
    position: relative;
}

.hero-value:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -2.25rem;
    color: var(--color-blue-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeUp 1.2s var(--transition-smooth) 1s forwards, float 3s ease-in-out infinite 2s;
    opacity: 0;
}

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

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-steel);
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-blue-light), transparent);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: 8rem 4rem;
    position: relative;
}

.section-about {
    background: var(--color-navy);
}

.section-team {
    background: var(--color-midnight);
}

.section-services {
    background: var(--color-navy);
}

.section-contact {
    background: var(--color-midnight);
    text-align: center;
}

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

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-blue-light);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-silver);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    padding: 2rem;
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid rgba(74, 144, 184, 0.1);
    transition: all 0.4s var(--transition-smooth);
}

.stat:hover {
    border-color: rgba(74, 144, 184, 0.3);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-blue-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-steel);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Team Section
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.team-card {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(26, 42, 74, 0.5) 0%, rgba(10, 22, 40, 0.8) 100%);
    border: 1px solid rgba(74, 144, 184, 0.1);
    transition: all 0.4s var(--transition-smooth);
}

.team-card:hover {
    border-color: rgba(74, 144, 184, 0.3);
    transform: translateY(-4px);
}

.team-info {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.team-bio {
    font-size: 1rem;
    color: var(--color-silver);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.team-bio:last-of-type {
    margin-bottom: 1.5rem;
}

.team-email {
    font-size: 0.9rem;
    color: var(--color-blue-light);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
    margin-top: auto;
}

.team-email:hover {
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.5) 0%, rgba(26, 42, 74, 0.3) 100%);
    border: 1px solid rgba(74, 144, 184, 0.1);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue-light), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}

.service-card:hover {
    border-color: rgba(74, 144, 184, 0.3);
    transform: translateY(-8px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-blue-light);
    stroke-width: 1.5;
    fill: none;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-steel);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--color-silver);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-item {
    font-size: 1rem;
    color: var(--color-pearl);
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.contact-item a {
    color: var(--color-blue-light);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

.contact-item a:hover {
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border: 1px solid var(--color-blue-light);
    color: var(--color-blue-light);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
}

.btn:hover {
    background: var(--color-blue-light);
    color: var(--color-midnight);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--transition-smooth);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: 3rem 4rem;
    background: var(--color-navy);
    border-top: 1px solid rgba(74, 144, 184, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.footer-logo-image {
    height: 36px;
    width: auto;
}

.footer-logo .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.footer-logo .logo-text {
    font-size: 1.1rem;
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--color-steel);
    max-width: 600px;
    text-align: right;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 124, 153, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-steel);
}

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

.footer-links a {
    font-size: 0.75rem;
    color: var(--color-steel);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

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

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav {
        padding: 1.25rem 2rem;
    }
    
    .nav.scrolled {
        padding: 1rem 2rem;
    }
    
    .section {
        padding: 5rem 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-values {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-value:not(:last-child)::after {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }
    
    .logo-image {
        height: 36px;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title br {
        display: none;
    }
    
    .team-card {
        padding: 2rem;
    }
}
