/* 
=========================================================
COLOR THEME OPTIONS
To change the theme, simply replace the :root variables 
below with one of these options:

OPTION 1: Executive Monochromatic (Ultra-Sleek & Modern)
    --primary-color: #1A1A1A;
    --accent-color: #666666;

OPTION 2: Deep Forest (Established & Trustworthy)
    --primary-color: #1E392A;
    --accent-color: #8A9A86;

OPTION 3: Navy & Silver (Classic Law Firm, no gold)
    --primary-color: #0A2342;
    --accent-color: #8D99AE;
=========================================================
*/

/* --- CSS VARIABLES (Currently: Charcoal & Slate) --- */
:root {
    --primary-color: #2C3E50;
    /* Dark Slate */
    --accent-color: #7F8C8D;
    /* Muted Grey */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

/* --- RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    /* Set overflow hidden initially to prevent scrolling until disclaimer is agreed */
    overflow: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* PARAGRAPH JUSTIFICATION */
p {
    text-align: justify;
    margin-bottom: 20px;
    hyphens: auto;
}

ul {
    list-style: none;
    text-align: left;
}

ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-light);
}

ul li::before {
    content: '■';
    color: var(--accent-color);
    font-size: 10px;
    position: absolute;
    left: 0;
    top: 6px;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    /* Classy corporate boardroom/office background with neutral dark overlay */
    background: linear-gradient(rgba(15, 15, 15, 0.80), rgba(15, 15, 15, 0.90)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 900px;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 40px;
    color: #E0E0E0;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    padding: 15px 35px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    filter: brightness(0.85);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 0;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* --- SECTIONS COMMON --- */
section {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
}

.founder-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
}

.founder-card h3 {
    margin-bottom: 10px;
}

.founder-card h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- PRACTICE AREAS SECTION --- */
.bg-light-section {
    background-color: var(--bg-light);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.practice-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.practice-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.practice-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    text-align: left;
}

/* --- METRICS & SECTORS --- */
.metrics-banner {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metrics-banner h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.metrics-banner .number {
    font-size: 4rem;
    color: var(--accent-color);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin: 20px 0;
    text-align: center;
}

.metrics-text {
    text-align: center;
    font-size: 1.2rem;
}

.sectors {
    margin-top: 50px;
    width: 100%;
    text-align: center;
}

.sectors-title {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center;
}

.sectors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.sector-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- FOOTER & CONTACT --- */
footer {
    background: #111;
    color: #fff;
    padding: 60px 10% 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-col .contact-title {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
}

.footer-desc {
    color: #aaa;
    text-align: left;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    font-size: 0.95rem;
    text-align: left;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-btn {
    margin: 15px 0 0 0;
    padding: 8px 20px;
    font-size: 14px;
}

/* Policy Links in Footer */
.policy-links {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.policy-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.policy-links a:hover {
    color: var(--accent-color);
}

/* --- DISCLAIMER OVERLAY --- */
.disclaimer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.98);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.disclaimer-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.disclaimer-content h3 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.disclaimer-text {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 30px;
}

.disclaimer-text p,
.disclaimer-text ul {
    font-size: 0.95rem;
    color: var(--text-light);
}

.disclaimer-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- MODALS (Forms & Policies) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    text-align: left;
}

.policy-content {
    max-width: 700px;
}

.policy-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    border: none;
    background: none;
}

.modal-content h3 {
    margin-bottom: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-desc {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    width: 100%;
    margin-left: 0;
}

/* Scrollbar formatting for internal scrolling divs */
.disclaimer-text::-webkit-scrollbar,
.policy-scroll::-webkit-scrollbar {
    width: 6px;
}

.disclaimer-text::-webkit-scrollbar-thumb,
.policy-scroll::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet Breakpoint */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    section {
        padding: 60px 5%;
    }

    /* Mobile Navigation */
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    /* Typography & Layout Adjustments */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .founder-card {
        padding: 30px 20px;
    }

    .practice-card {
        padding: 30px 20px;
    }

    /* Footer Adjustments */
    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col .contact-title,
    .footer-desc,
    .footer-col a {
        text-align: center;
    }

    /* Metrics Adjustments */
    .metrics-banner {
        padding: 60px 5%;
    }

    .metrics-banner .number {
        font-size: 3rem;
    }

    /* Modal & Disclaimer Adjustments */
    .disclaimer-content,
    .modal-content {
        padding: 30px 20px;
    }

    .disclaimer-buttons {
        flex-direction: column;
    }

    .disclaimer-buttons .btn {
        width: 100%;
        margin: 0;
    }
}