/* 
   UI Refactoring - Elite Legal / Corporate Standard
   Focus: Trust, Authority, Conversion, Professionalism
*/

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #102a43;
    /* Professional Deep Navy */
    --primary-light: #243b53;
    --accent: #b8860b;
    /* Dark Bronze Gold */
    --accent-hover: #9c710a;
    --bg-main: #fcfdfe;
    /* Clean Professional White */
    --bg-sub: #f0f4f8;
    /* Light Grey-Blue tint */
    --text-header: #102a43;
    --text-body: #334e68;
    --text-light: #627d98;
    --white: #ffffff;
    --border: #d9e2ec;
    --error: #cf1124;
    --success: #2d7d46;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(16, 42, 67, 0.08);
    --shadow-lg: 0 20px 60px rgba(16, 42, 67, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-header);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mobile Navigation Overlay - Fixed for Light Theme */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* Higher than navbar */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-links-mobile {
    list-style: none;
    text-align: center;
}

.nav-links-mobile li {
    margin: 2rem 0;
}

.nav-links-mobile a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Form Layout Fixes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    margin-bottom: 0.5rem;
    /* Space between label and input */
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .input-group {
        margin-bottom: 1.5rem;
        /* Extra space when stacked */
    }
}

/* Header & Nav */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-law {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-header);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section - Light Professional */
#hero {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.hero-banner-link {
    display: block;
    width: 100%;
    max-width: 1280px;
    line-height: 0;
    cursor: pointer;
}

.hero-banner-img {
    width: 100%;
    height: auto;
display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent);
    border-bottom: 4px solid var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    max-width: 600px;
}

/* Action Buttons */
.btn {
    padding: 1.2rem 2.8rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 42, 67, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Section Common Styles */
section {
    padding: 5rem 0;
}

#services {
    transition: var(--transition);
}

#services:hover {
    background: rgba(16, 42, 67, 0.02);
}

#services:hover .section-header h2 {
    color: var(--accent);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Service Cards - White Surface Design */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 4rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.icon-box {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

/* Wizard / Qualifier UI */
.wizard-box {
    background: var(--white);
    max-width: 850px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.wizard-progress {
    height: 6px;
    background: var(--bg-sub);
    border-radius: 3px;
    margin-bottom: 4rem;
}

.progress-bar {
    background: var(--accent);
    height: 100%;
    transition: width 0.5s ease;
}

/* Analysis Terminal - Option Cards Redesign */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.option-card {
    background: var(--white);
    border: 2px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    min-height: 140px;
}

.option-card i {
    font-size: 2rem;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.option-card span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    text-align: center;
}

.option-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.1);
}

.option-card.selected {
    border-color: var(--accent);
    background: #fffdf5;
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.15);
}

.option-card.selected i {
    color: var(--accent);
    transform: scale(1.1);
}

/* Checkmark Indicator */
.option-card.selected::after {
    content: '\f058';
    /* FontAwesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent);
    font-size: 1.2rem;
    animation: scaleIn 0.3s forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Protocol Section - Deep Professional */
#protocol {
    background: var(--primary);
    color: var(--white);
}

#protocol .section-header h2,
#protocol .section-header p {
    color: var(--white);
}

.protocol-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.p-step h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.p-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.p-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -2rem;
    display: block;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* Contact Form - High Conversion UI */
.contact-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    background: var(--white);
    padding: 1rem;
    width: 100%;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.contact-details i {
    color: var(--success);
    font-size: 1.2rem;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 42, 67, 0.05);
    outline: none;
}

.btn-gold {
    background: var(--accent);
    color: var(--white);
    width: 100%;
}

.btn-gold:hover {
    background: var(--accent-hover);
}

/* Footer & Compliance */
footer {
    padding: 6rem 0 3rem;
    background: #06111c;
    color: var(--white);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 1rem;
}

.footer-links-list a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--accent);
    opacity: 1;
    padding-left: 5px;
}

.footer-compliance {
    flex: 2;
    min-width: 300px;
}

.footer-compliance p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 800px;
    line-height: 1.6;
}

/* Moblie Optimizations */
@media (max-width: 992px) {
    .qualifier-split-container {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
        text-align: center;
    }

    .trust-checkpoints {
        display: none;
        /* Simplify mobile view */
    }

    .qualifier-info h2 {
        font-size: 2.2rem;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .protocol-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    #hero {
        /* padding-top: 150px; */
        text-align: center;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section Styles */
.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.faq-question {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0, 1, 0, 1);
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    /* Plus to X */
    color: var(--accent);
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Action Button - Elite Breathing Version */
@keyframes floating-breathing {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        box-shadow: 0 10px 25px rgba(184, 134, 11, 0.3), 0 0 0 0px rgba(184, 134, 11, 0.4);
    }

    50% {
        transform: translateX(-50%) translateY(-5px) scale(1.03);
        box-shadow: 0 15px 35px rgba(184, 134, 11, 0.5), 0 0 0 15px rgba(184, 134, 11, 0);
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        box-shadow: 0 10px 25px rgba(184, 134, 11, 0.3), 0 0 0 0px rgba(184, 134, 11, 0);
    }
}

.floating-cta {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--accent);
    color: var(--white);
    padding: 1.25rem 3rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: floating-breathing 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.floating-cta:hover {
    background: var(--accent-hover);
    transform: translateX(-50%) translateY(-8px) scale(1.05);
    animation-play-state: paused;
    color: var(--white);
}

.floating-cta i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1.5rem;
        padding: 1rem 2rem;
        font-size: 0.9rem;
        width: 90%;
        max-width: 400px;
        justify-content: center;
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

.badge i {
    color: var(--accent);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .trust-badges {
        justify-content: center;
    }
}