/**********************************************/
/********* Modern Variables & Resets **********/
/**********************************************/
:root {
    --primary: #9e2a2b;          /* Deep Regal Burgundy / Crimson */
    --primary-dark: #6e1a24;     /* Rich Wine Red Accent */
    --bg-dark: #121214;          /* Warm Obsidian Black */
    --bg-navy: #1a1a1e;          /* Rich Charcoal / Dark Onyx */
    --text-main: #4a4a4a;        /* Balanced Soft Gray */
    --text-muted: #8a8a8f;       /* Muted Slate Gray */
    --white: #ffffff;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --card-shadow: 0 10px 30px rgba(18, 18, 20, 0.04);
    --hover-shadow: 0 20px 40px rgba(18, 18, 20, 0.09);
}

body {
    color: var(--text-main);
    background: #fcfdfe;
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bg-dark);
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

a {
    color: var(--text-main);
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary);
}

.btn:focus, .form-control:focus {
    box-shadow: none !important;
    border-color: var(--primary) !important;
}

/* Back to Top Smooth Button */
.back-to-top {
    position: fixed;
    display: none;
    background: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-align: center;
    right: 25px;
    bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
    transition: var(--transition-smooth);
    z-index: 99;
}

.back-to-top i {
    color: var(--white);
    line-height: 48px;
    font-size: 18px;
}

.back-to-top:hover {
    background: var(--bg-dark);
    transform: translateY(-3px);
}

/**********************************************/
/********** Top Bar (Micro-Header) ************/
/**********************************************/
.top-bar {
    height: 40px;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .text {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .text i {
    font-size: 13px;
    color: var(--primary);
    margin-right: 8px;
}

.top-bar .text h2 {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 300;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

.top-bar .text p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 0 6px;
}

.top-bar .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .social a:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .social a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/**********************************************/
/*********** Modern Sticky Navbar *************/
/**********************************************/
.navbar {
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: var(--bg-navy); !important;
}

@media (min-width: 992px) {
    .navbar {
        position: absolute;
        width: 100%;
        top: 40px;
        z-index: 99;
    }
    
    .navbar.nav-sticky {
        position: fixed;
        top: 0;
        padding: 12px 0;
        background: rgba(7, 22, 44, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 991.98px) {
    .navbar {
        background: var(--bg-dark) !important;
        padding: 15px 20px;
    }
}

.navbar .navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-dark) !important;
}

.navbar .navbar-brand span {
    font-weight: 400;
    color: var(--primary);
}

.navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6e1a24; !important;
    padding: 8px 16px !important;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 16px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 32px);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    outline: none;
}

/**********************************************/
/********* Footer (Luxury Signature) **********/
/**********************************************/
.footer {
    background: var(--bg-dark);
    padding-top: 80px;
    color: #e2e8f0;
}

.footer .footer-contact h2,
.footer .footer-link h2 {
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
}

.footer .footer-contact h2::after,
.footer .footer-link h2::after {
    content: "";
    position: absolute;
    width: 35px;
    height: 2px;
    bottom: -8px;
    left: 0;
    background: var(--primary);
}

.footer p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.footer p i {
    color: var(--primary);
    margin-right: 10px;
}

.footer .footer-link a {
    display: block;
    color: var(--text-muted);
    padding: 6px 0;
    font-size: 15px;
}

.footer .footer-link a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    color: var(--text-muted) !important;
    margin-right: 10px;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white) !important;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
    font-size: 14px;
    margin: 0;
}
/**/
/**********************************************/
/********** Modern Grid Typography ************/
/**********************************************/
.section-header {
    margin-bottom: 40px;
}

.section-header p {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.25;
    color: var(--bg-dark);
}

@media (max-width: 768px) {
    .section-header h2 { font-size: 28px; }
}

/**********************************************/
/********** Hero & Carousel System ************/
/**********************************************/
.carousel {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background: var(--bg-dark);
    margin-bottom: 0;
    overflow: hidden;
}

.carousel .carousel-item {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-dark);
}

.carousel .carousel-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel .carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.carousel .carousel-text {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 160px 0 100px 0; /* Clear space for fixed header */
}

.carousel .carousel-text h1 {
    color: var(--white);
    font-size: 54px;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.carousel .carousel-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 30px;
}

@media (max-width: 991.98px) {
    .carousel .carousel-text { padding: 100px 20px 60px 20px; }
    .carousel .carousel-text h1 { font-size: 34px; }
    .carousel .carousel-text p { font-size: 15px; }
}

/* Slick Custom Owl Nav Styling */
.carousel .owl-nav {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    z-index: 9;
}

@media (min-width: 992px) {
    .carousel .owl-nav {
        right: 15%;
        transform: none;
    }
}

.carousel .owl-nav .owl-prev,
.carousel .owl-nav .owl-next {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 5px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.carousel .owl-nav .owl-prev:hover,
.carousel .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/**********************************************/
/********** Modern About Interface ************/
/**********************************************/
.about {
    padding: 100px 0;
    background: #ffffff;
}

.about .about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 20px;
}

.about-img-box {
    position: relative;
    padding-right: 30px;
}

.about-img-box img {
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.about-img-box:hover img {
    box-shadow: var(--hover-shadow);
}

/* Unified Dynamic Sub-Hero Structure */
.custom-bg-hero {
    background: linear-gradient(rgba(7, 22, 44, 0.85), rgba(7, 22, 44, 0.85)), url('../img/hero-bg.jpg') center/cover no-repeat;
    padding: 120px 0 80px 0;
    color: var(--white);
}

.custom-bg-hero h1 {
    color: var(--white);
    font-size: 42px;
    font-weight: 300;
}

/**********************************************/
/********** Practice Areas Layer *************/
/**********************************************/
.service {
    padding: 100px 0;
    background: #f8fafc;
}

.service-card {
    background: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(0, 119, 255, 0.15);
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 119, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-card:hover .icon-wrapper {
    background: var(--primary);
}

.service-card .icon-wrapper img {
    max-height: 28px;
    transition: var(--transition-smooth);
}

.service-card:hover .icon-wrapper img {
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card .read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.service-card .read-more::after {
    content: "\f0da";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 6px;
    transition: var(--transition-smooth);
}

.service-card:hover .read-more::after {
    transform: translateX(3px);
}