:root {
    /* Palette - Premium Legal Elite */
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #0f172a;
    /* Deep Navy */

    --text-main: #334155;
    /* Softer dark for better readability */
    --text-light: #64748b;
    --text-white: #f8fafc;

    --accent: #0f766e;
    /* Emerald */
    --accent-hover: #0d9488;
    --accent-light: #ccfbf1;
    --accent-dark: #115e59;

    --gold: #b45309;
    --gold-light: #fef3c7;

    --border: #cbd5e1;
    --white: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-md: 0.375rem;
    --radius-lg: 0.75rem;

    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Merriweather', serif;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--bg-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

section {
    padding: 5rem 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 6rem;
    background: linear-gradient(to bottom, #f0fdfa, #ffffff);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-indicators {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.trust-item span {
    color: var(--gold);
    margin-right: 0.25rem;
}

.hero-image-placeholder {
    width: 100%;
    height: 500px;
    background: #e2e8f0;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

/* About Company */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.about-image {
    height: 400px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
}

/* Mission */
.mission {
    background-color: var(--bg-dark);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.mission h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.mission p {
    font-size: 1.5rem;
    font-style: italic;
    color: #cbd5e1;
    max-width: 900px;
    margin: 0 auto;
}

/* Advantages */
.advantages {
    background-color: var(--bg-soft);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Warning Signs */
.warning-signs {
    background-color: #fff1f2;
    border-top: 1px solid #fecdd3;
    border-bottom: 1px solid #fecdd3;
}

.warning-signs h2 {
    color: #881337;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.warning-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid #f43f5e;
    box-shadow: var(--shadow-sm);
}

.warning-card h3 {
    color: #881337;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Quiz Section (FIXED) */
.quiz-section {
    background: linear-gradient(to bottom, var(--bg-soft), var(--white));
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
}

.quiz-progress {
    height: 8px;
    background: var(--bg-soft);
    border-radius: 4px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.4s ease;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

.quiz-question {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--bg-dark);
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    width: 100%;
    padding: 1.25rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-family: var(--font-main);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--accent-dark);
    transform: translateX(5px);
}

.quiz-result {
    text-align: center;
}

.result-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 8px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
}

/* Process */
.process {
    background-color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.25rem;
}

/* Team */
.team {
    background-color: var(--bg-soft);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent-light);
}

.team-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
}

.team-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.5px;
}

.team-quote {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ (FIXED) */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--accent);
    background-color: #f0fdfa;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-main);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

/* Contact Form (FIXED) */
.contact {
    background: #1e293b;
    color: var(--white);
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
}

.contact .section-subtitle {
    color: #94a3b8;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-soft);
    color: var(--text-main);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .quiz-container,
    .contact-container {
        padding: 1.5rem;
    }

    .quiz-option {
        padding: 1rem;
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}