/* 
 * Doshix Alpha - Professional Advisory Website
 * Color Palette: Blue Graphite & Muted Gold
 */

:root {
    /* Blue Graphite Palette */
    --graphite-dark: #1a2332;
    --graphite-medium: #2d3e50;
    --graphite-light: #425670;
    --graphite-lighter: #5a6f8c;
    
    /* Muted Gold Palette */
    --gold-primary: #b8956a;
    --gold-light: #d4b896;
    --gold-muted: #9d8259;
    --gold-accent: #c4a576;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e8eaed;
    --medium-gray: #9ca3af;
    --text-primary: #1a2332;
    --text-secondary: #5a6f8c;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--off-white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--graphite-dark);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 149, 106, 0.1);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(248, 249, 250, 0.98);
    box-shadow: 0 4px 20px rgba(26, 35, 50, 0.08);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand .brand-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--graphite-dark);
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

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

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

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

.nav-link.nav-cta {
    color: var(--gold-primary);
    padding: 8px 24px;
    border: 2px solid var(--gold-primary);
    border-radius: 4px;
}

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

.nav-link.nav-cta:hover {
    background: var(--gold-primary);
    color: var(--white);
}

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

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--graphite-dark);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--graphite-dark);
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--gold-primary);
    margin: 0 auto 40px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    color: var(--graphite-medium);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

.btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: inline-block;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--gold-muted);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 149, 106, 0.3);
}

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

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

/* Section Common Styles */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 24px;
    color: var(--graphite-dark);
}

.section-description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Practice Section */
.practice {
    background: var(--white);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.practice-card {
    position: relative;
    padding: 48px 36px;
    background: var(--off-white);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gold-primary);
    transition: var(--transition-smooth);
}

.practice-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(26, 35, 50, 0.12);
}

.practice-card:hover::before {
    height: 100%;
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 24px;
    color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.practice-card:hover .card-icon {
    background: var(--gold-primary);
    color: var(--white);
}

.card-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--graphite-dark);
}

.card-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* How We Work Section */
.how-we-work {
    background: var(--graphite-dark);
    color: var(--white);
}

.how-we-work .section-label {
    color: var(--gold-accent);
}

.how-we-work .section-title {
    color: var(--white);
}

.how-we-work .section-description {
    color: var(--light-gray);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    position: relative;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0;
    opacity: 0;
    transform: translateX(-30px);
    animation: stepFadeIn 0.6s ease-out forwards;
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }

@keyframes stepFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--gold-primary);
    border: 3px solid var(--gold-primary);
    border-radius: 50%;
    background: rgba(184, 149, 106, 0.1);
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-title {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--white);
}

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

.step-connector {
    position: absolute;
    left: 40px;
    top: 120px;
    width: 2px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, var(--gold-primary), transparent);
}

.process-step:last-child .step-connector {
    display: none;
}

.exclusion-note {
    margin-top: 60px;
    padding: 32px;
    background: rgba(184, 149, 106, 0.1);
    border-left: 4px solid var(--gold-primary);
    border-radius: 4px;
    text-align: center;
}

.exclusion-note p {
    font-size: 18px;
    font-style: italic;
    color: var(--gold-light);
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    max-width: 540px;
}

.about-description {
    font-size: 20px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.about-principles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.principle {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--graphite-dark);
}

.principle-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-primary);
    color: var(--white);
    border-radius: 4px;
    font-weight: 700;
}

.about-visual {
    position: relative;
    height: 500px;
}

.visual-element {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--graphite-medium), var(--graphite-light));
    border-radius: 8px;
    overflow: hidden;
}

.visual-element img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.visual-element:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

.visual-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        var(--gold-primary) 40px,
        var(--gold-primary) 42px
    );
    opacity: 0.1;
    animation: visualRotate 30s linear infinite;
}

@keyframes visualRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contact Section */
.contact {
    background: var(--off-white);
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--graphite-dark);
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand .brand-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--light-gray);
    font-size: 14px;
}

.footer-legal p {
    color: var(--medium-gray);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav {
        padding: 20px 24px;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 73px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 24px;
        box-shadow: -4px 0 20px rgba(26, 35, 50, 0.1);
        transition: var(--transition-smooth);
        gap: 24px;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-visual {
        height: 400px;
    }
    
    .process-step {
        gap: 24px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .step-connector {
        left: 30px;
        top: 100px;
    }
    
    .step-title {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
