/* ==========================================================================
   Adua Law Firm - Clean & Professional Responsive Stylesheet
   ========================================================================== */

:root {
    --primary-navy: #0B2545;
    --secondary-teal: #1E6B7B;
    --accent-blue: #2563EB;
    --accent-dark-blue: #1D4ED8;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* ==========================================================================
   Navbar & Navigation Layout
   ========================================================================== */

.navbar {
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-right-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a.nav-link {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-menu a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a.nav-link:hover {
    color: var(--accent-blue);
}

.nav-menu a.nav-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-dark-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Submit Button Success Animation Styles
   ========================================================================== */

.btn-submit {
    transition: background-color 0.4s ease, transform 0.2s ease, box-shadow 0.4s ease;
}

.btn-submit.success {
    background: #16a34a !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35) !important;
    cursor: default;
    transform: none !important;
}

.icon-wrapper {
    display: none;
    width: 22px;
    height: 22px;
    margin-left: 4px;
}

.btn-submit.success .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkmark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-miterlimit: 10;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #ffffff;
    fill: none;
    animation: strokeCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

/* ==========================================================================
   Modern Language Selector (Dropdown Popup)
   ========================================================================== */

.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lang-btn:hover, .lang-btn.active {
    background: #FFFFFF;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.lang-btn i.fa-globe {
    font-size: 15px;
    color: var(--accent-blue);
}

.lang-arrow {
    font-size: 11px;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.lang-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11, 37, 69, 0.12);
    min-width: 170px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
    white-space: nowrap;
}

.lang-option:hover {
    background: #F1F5F9;
    color: var(--accent-blue);
}

.lang-option.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    font-weight: 700;
}

/* ==========================================================================
   Interactive Hero Section
   ========================================================================== */

.hero-interactive {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80vh;
    z-index: 2;
}

.hero-logo-wrapper {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.6s ease;
    transform: scale(1.2);
    margin: auto;
}

.hero-logo-large {
    max-width: 85vw;
    width: 360px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(11, 37, 69, 0.08));
}

.hero-logo-wrapper.scrolled {
    transform: scale(0.8);
    margin-bottom: 20px;
}

.hero-interactive-content {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease, visibility 0.6s;
    max-width: 850px;
    width: 100%;
}

.hero-interactive-content.visible {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    transform: translateY(0);
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary-navy);
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================
   Cards & Sections
   ========================================================================== */

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    max-width: 650px;
    margin: -5px auto 40px auto;
}

.grid { display: grid; gap: 25px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card-icon {
    font-size: 32px;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    border-color: var(--accent-blue);
}

.services-section { background-color: #F1F5F9; }

/* ==========================================================================
   Team Section
   ========================================================================== */

.team-category {
    margin: 40px 0 20px 0;
    color: var(--secondary-teal);
    font-size: 22px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.team-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.team-image-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo { transform: scale(1.05); }
.team-card h4 { color: var(--primary-navy); font-size: 18px; }
.team-card .role { color: var(--text-muted); font-size: 14px; }

/* ==========================================================================
   Clients & Partners Section
   ========================================================================== */

.clients-section {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.clients-banner-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(11, 37, 69, 0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #FFFFFF;
}

.clients-banner-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.12);
}

.clients-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   Consultation Form
   ========================================================================== */

.consultation-section { background-color: #E2E8F0; }
.form-container { max-width: 700px; }
.form-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; }

.consult-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.checkbox-group { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-group input { width: auto; margin-top: 4px; }
.checkbox-group label { font-weight: 400; font-size: 12px; color: var(--text-muted); }

.btn-block { width: 100%; font-size: 16px; padding: 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--primary-navy);
    color: #FFFFFF;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo { 
    height: 48px; 
    margin-bottom: 15px; 
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline { color: #94A3B8; }
.footer h4 { color: #FFFFFF; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #CBD5E1; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-blue); }
.footer-contact p { color: #CBD5E1; margin-bottom: 10px; }
.footer-contact a { color: #FFFFFF; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #05152B;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom-content p { color: #64748B; font-size: 13px; }

/* ==========================================================================
   Mobile Responsive Navigation & Header Layout
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .nav-right-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: #FFFFFF;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a.nav-link {
        font-size: 18px;
        font-weight: 700;
    }

    .lang-selector {
        margin: 0 !important;
        display: inline-block !important;
    }

    .lang-btn {
        padding: 5px 10px !important;
        font-size: 12px !important;
        height: 32px !important;
    }

    .lang-dropdown {
        right: 0;
        top: calc(100% + 6px);
        min-width: 150px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-logo-large {
        max-width: 250px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}