/* ====== ROOT VARIABLES ====== */
:root {
    --navy: #001F3F;
    --navy-light: #003366;
    --gold: #D4AF37;
    --gold-light: #E8C766;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray: #555555;
    --gray-dark: #333333;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ====== RESET & BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-dark {
    background-color: var(--navy);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--navy-light);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--navy);
}

/* ====== HEADER & NAVIGATION ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-right: 10px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}

.logo-text span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 35px;
}

.nav-menu a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--gold);
}

.nav-menu a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

.theme-toggle {
    margin-left: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--navy);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--gold);
}

/* ====== HERO SECTION ====== */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 31, 63, 0.85), rgba(0, 31, 63, 0.9)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.stat-item {
    margin: 0 30px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.stat-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ====== PRACTICE AREAS ====== */
.practice-areas {
    background-color: var(--gray-light);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.area-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.area-icon {
    height: 80px;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
}

.area-content {
    padding: 30px;
}

.area-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.area-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.area-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.area-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.area-link:hover i {
    transform: translateX(5px);
}

/* ====== TESTIMONIALS ====== */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-content {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--gray-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--gold);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-light);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--gold);
    transform: scale(1.2);
}

/* ====== NEWS SECTION ====== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.news-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* ====== FOOTER ====== */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-col h3 span {
    color: var(--gold);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--gold);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 3px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ====== PAGE CONTENT ====== */
.page-hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 31, 63, 0.85), rgba(0, 31, 63, 0.9)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.page-hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* ====== ABOUT PAGE ====== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--gray);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.mission-box, .vision-box {
    background-color: var(--gray-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.mission-box i, .vision-box i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.team-section {
    background-color: var(--gray-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-img {
    height: 300px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ====== SERVICES PAGE ====== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card.expanded {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    height: 80px;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--gold);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--gold);
    color: var(--navy);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-card.expanded .service-details {
    max-height: 500px;
    margin-top: 20px;
}

.service-toggle {
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.service-toggle i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-card.expanded .service-toggle i {
    transform: rotate(180deg);
}

/* ====== CLIENTS PAGE ====== */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.client-logo {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.client-testimonials {
    margin-top: 80px;
}

/* ====== CONTACT PAGE ====== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background-color: var(--gray-light);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact-info {
    background-color: var(--navy);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
    margin-bottom: 40px;
}

.contact-details li {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.contact-details i {
    color: var(--gold);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 3px;
}

.map-container {
    margin-top: 40px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 600;
}

/* ====== DARK MODE ====== */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

body.dark-mode .area-card,
body.dark-mode .news-card,
body.dark-mode .team-card,
body.dark-mode .service-card,
body.dark-mode .testimonial-slide,
body.dark-mode .contact-form {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .practice-areas,
body.dark-mode .team-section {
    background-color: #181818;
}

body.dark-mode .footer-links a,
body.dark-mode .contact-info p {
    color: rgba(255, 255, 255, 0.8);
}

/* ====== SEO CONTENT STYLES ====== */
.seo-content {
    background-color: var(--gray-light);
    padding: 60px 0;
}

.seo-section {
    max-width: 800px;
    margin: 0 auto;
}

.seo-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--navy);
}

.seo-section p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.seo-keywords {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.seo-keywords h3 {
    margin-bottom: 20px;
    color: var(--navy);
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    background-color: var(--navy);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.keyword-tag.gold {
    background-color: var(--gold);
    color: var(--navy);
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 992px) {
    .about-content,
    .contact-section,
    .mission-vision {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0 0 30px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .stat-item {
        margin: 0 15px;
        margin-bottom: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    section {
        padding: 70px 0;
    }

    .page-hero-content h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        margin-bottom: 30px;
    }

    .areas-grid,
    .team-grid,
    .news-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}