/* ==========================================
   The AS Lex - Premium Law Firm Stylesheet
   ========================================== */

/* ========== CSS Variables ========== */
:root {
    --bg-primary: #0A0E1A;
    --bg-surface: #111827;
    --accent-gold: #C9A84C;
    --accent-light: #E2C87B;
    --text-primary: #F5F5F5;
    --text-muted: #94A3B8;
    --border-gold: rgba(201, 168, 76, 0.2);
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --transition: 200ms ease;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover {
    color: var(--accent-light);
}

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

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

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-mark {
    color: var(--accent-gold);
    font-size: 2rem;
    line-height: 1;
}

.logo-text {
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: color var(--transition);
}

.nav-links a:not(.nav-cta):hover {
    color: var(--accent-gold);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

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

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

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

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

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

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.05) 0%, var(--bg-primary) 70%);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent-gold));
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* ========== Sections ========== */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title.center {
    text-align: center;
    margin-bottom: 3rem;
}

/* ========== About Section ========== */
.about {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin-bottom: 2rem;
}

.about-text .lead {
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.stat:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.1);
    transform: translateX(4px);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== Practice Areas ========== */
.practice {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.practice-card {
    background: var(--bg-surface);
    padding: 2rem;
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

.practice-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
    transform: translateY(-4px) scale(1.02);
}

.card-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.practice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.practice-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tags span {
    background: rgba(201, 168, 76, 0.1);
    color: var(--accent-light);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-gold);
}

/* ========== Forums ========== */
.forums {
    background: var(--bg-primary);
    padding: 4rem 0;
}

.forums-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.forum-badge {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-gold);
    border-radius: 50px;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.forum-badge:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ========== Founder ========== */
.founder {
    background: var(--bg-surface);
}

.founder-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.founder-photo {
    position: relative;
}

.photo-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1) 0%, rgba(201, 168, 76, 0.05) 100%);
    border: 3px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent-gold);
    font-weight: 700;
    transition: all var(--transition);
}

.photo-placeholder:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.2);
}

.founder-content {
    padding-top: 1rem;
}

.founder-credentials {
    font-family: var(--font-mono);
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.founder-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* ========== Insights ========== */
.insights {
    background: var(--bg-primary);
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-all {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition);
}

.view-all:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

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

.insight-card {
    background: var(--bg-surface);
    padding: 2rem;
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius);
    transition: all var(--transition);
    display: block;
    color: inherit;
    text-decoration: none;
}

.insight-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
    transform: translateY(-4px);
}

.insight-category {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent-gold);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.insight-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.insight-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* ========== Contact ========== */
.contact {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
}

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

.contact-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.contact-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-primary);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-gold);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-disclaimer {
    font-size: 0.875rem;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .photo-placeholder {
        margin: 0 auto;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .forums-strip {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .forum-badge {
        white-space: nowrap;
    }
    
    .photo-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ========== Print Styles ========== */
@media print {
    .nav,
    .scroll-indicator,
    .mobile-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
