:root {
    --color-bg-light: #fcfcfc;
    --color-bg-dark: #121212;
    --color-text-dark: #2c2c2c;
    --color-text-light: #ffffff;
    --color-text-muted: #757575;
    --color-accent: #a38c5a; /* Champagne gold/brass for premium feel */
    --color-border: #e0e0e0;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Fixed: 'smooth' clashes with JS smooth scrolling (Lenis) and causes jumping */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Prevent scroll during preloader */
body.loading {
    overflow: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 150px 0;
}

.bg-light { background-color: #f0f2f5; }
.bg-white { background-color: #ffffff; }
.bg-dark { background-color: var(--color-bg-dark); color: var(--color-text-light); }
.text-white { color: var(--color-text-light); }

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-text-wrapper {
    text-align: center;
    overflow: hidden; /* For clip-path animation in JS */
}

.preloader-text {
    font-size: 3rem;
    letter-spacing: 0.2em;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.preloader-subtext {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition-slow);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header.scrolled, .header.internal-header {
    background-color: rgba(252, 252, 252, 0.98);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo-area a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    line-height: 1.1;
    display: block;
}
.header.scrolled .logo-area a, .header.internal-header .logo-area a {
    color: var(--color-text-dark);
}
.logo-area span {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: block;
    color: rgba(255,255,255,0.7);
}
.header.scrolled .logo-area span, .header.internal-header .logo-area span {
    color: var(--color-text-muted);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-light);
    position: relative;
}
.header.scrolled .nav-links a, .header.internal-header .nav-links a {
    color: var(--color-text-dark);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}
.nav-links a:hover::after {
    width: 100%;
}

.lang-switcher a {
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 15px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}
.header.scrolled .lang-switcher a, .header.internal-header .lang-switcher a {
    color: var(--color-text-muted);
    text-shadow: none;
}
.lang-switcher a.active, .lang-switcher a:hover {
    color: #ffffff;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.9);
}
.header.scrolled .lang-switcher a.active, .header.scrolled .lang-switcher a:hover,
.header.internal-header .lang-switcher a.active, .header.internal-header .lang-switcher a:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* GSAP scale animation will happen here */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    color: var(--color-text-light);
    max-width: 800px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    font-size: 5rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
    transform: translateY(100%); /* For GSAP reveal */
}

.hero-subtitle {
    margin-top: 30px;
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 500px;
    color: rgba(255,255,255,0.8);
    opacity: 0;
}





/* Section Components */
.section-subtitle {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: var(--color-text-dark);
}

.title-line {
    width: 0; /* Animated with GSAP */
    height: 1px;
    background-color: var(--color-border);
    margin: 40px 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.lead-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 30px;
    line-height: 1.4;
}

.about-text-col p:not(.lead-text) {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Practice Areas */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}

.practice-item {
    position: relative;
    padding-bottom: 30px;
}

.practice-item h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.practice-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.practice-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
}
.practice-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-slow);
}
.practice-item:hover::after {
    width: 100%;
}
.practice-item:hover h3 {
    color: var(--color-accent);
}

/* Team Section */
.team-layout {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 80px;
}

.team-member-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.team-member-row.reverse {
    flex-direction: row-reverse;
}

.team-img-col {
    flex: 1;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 130%; /* Aspect ratio */
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

.img-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-text-col {
    flex: 1;
}

.team-text-col h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.team-text-col .role {
    display: block;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.team-text-col p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
    border-bottom: 1px solid var(--color-text-dark);
    padding-bottom: 5px;
}
.social-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-desc {
    color: #a0a0a0;
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.contact-details {
    margin-bottom: 60px;
}

.detail-box {
    margin-bottom: 30px;
}

.detail-label {
    display: block;
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.detail-box p {
    color: #ddd;
    font-size: 1.1rem;
}

.mail-link {
    color: #fff;
    text-decoration: underline;
}
.mail-link:hover {
    color: var(--color-accent);
}

.footer-socials a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 20px;
}
.footer-socials a:hover {
    color: var(--color-accent);
}

.premium-form .form-group {
    margin-bottom: 30px;
}

.premium-form input, .premium-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 15px 0;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.premium-form input:focus, .premium-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.submit-btn {
    background: transparent;
    border: none;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-fast);
}

.submit-btn:hover {
    color: white;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.footer-logo {
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .practice-grid { grid-template-columns: repeat(2, 1fr); }
    .team-member-row, .team-member-row.reverse { flex-direction: column; gap: 40px; }
    .hero-title .line-inner { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .header-inner { 
        flex-direction: row; 
        justify-content: space-between; 
        padding: 15px 5%;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-text-light);
        margin: 3px 0;
        transition: var(--transition-fast);
        transform-origin: center;
    }
    .header.scrolled .mobile-menu-btn span,
    .header.internal-header .mobile-menu-btn span {
        background-color: var(--color-text-dark);
    }
    
    /* When Menu is Open */
    body.menu-open .mobile-menu-btn span { background-color: #fff !important; }
    body.menu-open .mobile-menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    body.menu-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
    body.menu-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile Overlay for Nav */
    .nav-area {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-slow);
        z-index: 999;
    }
    body.menu-open .nav-area {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center;
    }
    .nav-links a {
        font-size: 1.5rem;
        color: #fff !important;
    }
    
    .lang-social-area {
        display: none; /* Hide top lang switcher on mobile normally */
    }
    body.menu-open .lang-social-area {
        display: block;
        position: fixed;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        opacity: 1;
        pointer-events: all;
    }
    body.menu-open .lang-switcher a {
        color: #fff !important;
        font-size: 1.2rem;
        margin: 0 10px;
    }
    body.menu-open .lang-switcher a.active {
        color: var(--color-accent) !important;
    }

    .practice-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.5rem; }
    .hero-title .line-inner { font-size: 2.8rem; }
    .section-padding { padding: 80px 0; }
    .preloader-text { max-width: 80%; width: auto; }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Drop-Cap */
.drop-cap::first-letter {
    font-size: 4rem;
    float: left;
    margin-right: 15px;
    line-height: 1;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

/* Vertical Text */
.vertical-text {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    color: rgba(0,0,0,0.03);
    font-size: 8rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}

/* Practice Inline Expand */
.practice-desc-container {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 15px;
}
.practice-desc-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.practice-item.expanded .practice-desc-container {
    max-height: 2500px; /* Increased to accommodate very long lists on mobile */
}
.practice-item.expanded .practice-desc-container::after {
    opacity: 0;
}
.practice-desc-container p {
    margin-bottom: 15px;
    color: var(--color-text-muted);
}
.practice-desc-container p:last-child {
    margin-bottom: 0;
}
.practice-expand-btn i {
    transition: transform 0.4s ease;
}
.practice-item.expanded .practice-expand-btn i {
    transform: rotate(180deg);
}

/* Custom List for Practice Areas */
.custom-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 25px 0;
}
.custom-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--color-text);
}
.custom-list li::before {
    content: '\f00c'; /* FontAwesome Checkmark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-accent);
    font-size: 0.9rem;
}


/* Animated Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    z-index: 10;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; height: 8px; }
    40% { top: 18px; opacity: 0; height: 4px; }
    100% { top: 6px; opacity: 0; height: 8px; }
}
