/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #222;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: 'Poppins', sans-serif;
}

button {
    cursor: pointer;
}

/* =========================================================
   VARIABLES
========================================================= */

:root {
    --primary: #081b16;
    --secondary: #123229;
    --gold: #c89b3c;
    --gold-dark: #9b7629;
    --white: #ffffff;
    --light: #f7f7f7;
    --text: #666;
    --border: #e5e5e5;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
    --transition: 0.4s ease;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* =========================================================
   LOADER
========================================================= */

.loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-circle {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255,255,255,0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: loaderSpin 0.9s linear infinite;
    margin: 0 auto 20px;
}

.loader-content p {
    color: #fff;
    font-size: 14px;
    letter-spacing: 3px;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   COMMON HEADING
========================================================= */

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

.section-heading .eyebrow-heading {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-family: 'Cinzel', serif;
    font-size: 44px;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 18px;
}

.section-heading p {
    max-width: 750px;
    margin: 0 auto;
    color: var(--text);
    line-height: 30px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--gold);
    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--gold);
    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.read-btn {
    color: var(--gold);
    font-weight: 600;
    transition: var(--transition);
}

.read-btn:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    background: var(--primary);
    color: #fff;
    padding: 13px 0;
    font-size: 16px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    gap: 25px;
}

.top-left span {
    display: inline-flex;
    font-size: 16px;
    align-items: center;
}

.top-left i,
.top-right i {
    color: var(--gold);
    margin-right: 7px;
}

.top-right {
    display: flex;
    gap: 18px;
}

.top-right a {
    color: #fff;
    transition: var(--transition);
}

.top-right a:hover {
    color: var(--gold);
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */

header {
    background: var(--primary);
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: var(--transition);
}

header.sticky {
    position: fixed;
    background: rgba(8, 27, 22, 0.97);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.navbar {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.logo {
    flex: 0 0 300px;
    min-width: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}

.logo-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(200,155,60,.7);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 19px;
}

.brand-copy {
    min-width: 0;
}

.logo .brand-title {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.logo p {
    color: rgba(255,255,255,0.75);
    font-size: 10px;
    letter-spacing: .5px;
    margin-top: 9px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin-left: auto;
    padding-left: 40px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links li:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--gold);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.contact-btn:hover {
    background: #fff;
    color: var(--primary);
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background: var(--primary);
}

.slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

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

.overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.72),
            rgba(0,0,0,0.40),
            rgba(0,0,0,0.55)
        );
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    color: #fff;
    z-index: 5;
}

.hero-content .eyebrow-heading,
.hero-content h4 {
    color: var(--gold);
    font-size: 17px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 65px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-content h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 18px;
}

.hero-content p {
    max-width: 620px;
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    line-height: 30px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 15px 32px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-btn.primary {
    background: var(--gold);
    color: #fff;
}

.hero-btn.secondary {
    border: 1px solid #fff;
    color: #fff;
}

.hero-btn.primary:hover,
.hero-btn.secondary:hover {
    background: #fff;
    color: var(--primary);
}

/* Support old single hero button too */

.hero-btn:not(.primary):not(.secondary) {
    background: var(--gold);
    color: #fff;
}

.hero-btn:not(.primary):not(.secondary):hover {
    background: #fff;
    color: var(--primary);
}

/* =========================================================
   SLIDER BUTTONS
========================================================= */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.prev {
    left: 25px;
}

.next {
    right: 25px;
}

/* =========================================================
   HERO DOTS
========================================================= */

.dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 30px;
    border-radius: 20px;
    background: var(--gold);
}

/* =========================================================
   HERO SOCIAL
========================================================= */

.hero-social {
    position: absolute;
    left: 30px;
    bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.hero-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    transition: var(--transition);
}

.hero-social a:hover {
    background: var(--gold);
}

/* =========================================================
   ABOUT
========================================================= */

.about {
    padding: 110px 0;
    background: #fff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.about-badge {
    position: absolute;
    right: -20px;
    bottom: 25px;
    background: var(--gold);
    color: #fff;
    padding: 20px 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow);
}

.about-badge h2 {
    font-family: 'Cinzel', serif;
    font-size: 35px;
}

.about-badge p {
    font-size: 13px;
}

.about-content .eyebrow-heading {
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.about-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 44px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text);
    line-height: 31px;
    margin-bottom: 20px;
}

.about-list {
    margin: 25px 0;
}

.about-list li {
    margin-bottom: 12px;
    color: #444;
    font-weight: 500;
}

.about-list i {
    color: var(--gold);
    margin-right: 8px;
}


/* =========================================================
   HOME ABOUT ENHANCEMENTS
========================================================= */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 22px 0;
}
.about-highlight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: #f8f6f0;
    border-left: 3px solid var(--gold);
    border-radius: 8px;
}
.about-highlight > i { color: var(--gold); font-size: 22px; margin-top: 2px; }
.about-highlight strong { display:block; color:var(--primary); font-size:14px; margin-bottom:5px; }
.about-highlight span { display:block; color:#666; font-size:12px; line-height:1.6; }
.education-box {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e8e1d2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(8,27,22,.06);
}
.education-title { color:var(--primary); font-family:'Cinzel',serif; font-weight:600; margin-bottom:16px; font-size:17px; }
.education-title i { color:var(--gold); margin-right:8px; }
.education-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.education-grid div { padding:12px 14px; background:#fafafa; border-radius:7px; }
.education-grid span { display:block; color:var(--gold); font-size:11px; text-transform:uppercase; letter-spacing:.8px; margin-bottom:4px; }
.education-grid strong { color:#333; font-size:13px; line-height:1.45; }

/* Legal Philosophy (replaces Educational Profile box) */
.legal-philosophy-box {
    margin: 24px 0;
    padding: 28px 30px;
    background: #f8f6f0;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(8,27,22,.06);
}
.legal-philosophy-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.legal-philosophy-box p {
    color: var(--primary);
    font-size: 15px;
    line-height: 1.85;
    margin: 0;
}
@media (max-width: 600px) {
    .legal-philosophy-box { padding: 22px 20px; }
    .legal-philosophy-title { font-size: 17px; margin-bottom: 12px; }
    .legal-philosophy-box p { font-size: 14.5px; line-height: 1.75; }
}

/* =========================================================
   COUNTER
========================================================= */

.counter-section {
    padding: 80px 0;
    background:
        linear-gradient(rgba(8,27,22,0.94), rgba(8,27,22,0.94)),
        url("../images/law.jpg") center/cover no-repeat;
}

.counter-section .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.counter-box {
    text-align: center;
    color: #fff;
    padding: 35px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    transition: var(--transition);
}

.counter-box:hover {
    transform: translateY(-7px);
    background: rgba(255,255,255,0.06);
}

.counter-box h2 {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 52px;
    color: var(--gold);
}

.counter-box span {
    font-size: 30px;
    color: var(--gold);
    font-weight: 700;
}

.counter-box p {
    margin-top: 10px;
    font-size: 15px;
}

/* =========================================================
   EXPERTISE
========================================================= */

.expertise {
    padding: 110px 0;
    background: #f8f8f8;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expertise-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.expertise-card img {
    height: 230px;
    object-fit: cover;
    transition: 0.6s ease;
}

.expertise-card:hover img {
    transform: scale(1.06);
}

.expertise-content {
    padding: 25px;
}

.expertise-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 13px;
}

.expertise-content p {
    color: var(--text);
    line-height: 28px;
    margin-bottom: 18px;
}

/* =========================================================
   WORK
========================================================= */

.work {
    padding: 110px 0;
    background: #fff;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.work-card {
    position: relative;
    overflow: hidden;
    padding: 40px 25px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.step {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 42px;
    font-weight: 700;
    color: rgba(200,155,60,0.15);
}

.work-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: var(--transition);
}

.work-card:hover .work-icon {
    background: var(--primary);
    transform: rotateY(180deg);
}

.work-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    font-size: 23px;
    margin-bottom: 12px;
}

.work-card p {
    color: var(--text);
    line-height: 28px;
}

/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonials {
    padding: 110px 0;
    background: #f8f8f8;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background: #fff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-8px);
}

.quote {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.stars {
    color: #e7b934;
    margin-bottom: 18px;
}

.testimonial > p {
    color: var(--text);
    line-height: 29px;
    margin-bottom: 25px;
}

.client {
    display: flex;
    align-items: center;
}

.client img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin-right: 15px;
}

.client h4 {
    color: var(--primary);
    margin-bottom: 3px;
}

.client span {
    color: #777;
    font-size: 13px;
}

/* =========================================================
   APPOINTMENT
========================================================= */

.appointment {
    padding: 110px 0;
    background: #fff;
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.appointment-left .eyebrow-heading {
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.appointment-left h2 {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.appointment-left > p {
    color: var(--text);
    line-height: 30px;
    margin-bottom: 30px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 17px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fafafa;
    outline: none;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 12px rgba(200,155,60,0.15);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    border: 0;
    padding: 15px 32px;
    background: var(--gold);
    color: #fff;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary);
}

.appointment-right {
    position: relative;
}

.appointment-right img {
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.experience-badge {
    position: absolute;
    left: -25px;
    bottom: 25px;
    background: var(--gold);
    color: #fff;
    padding: 20px 25px;
    border-radius: 14px;
    text-align: center;
}

.experience-badge h2 {
    font-family: 'Cinzel', serif;
    font-size: 35px;
}

.experience-badge p {
    font-size: 13px;
}

/* =========================================================
   BLOGS
========================================================= */

.blogs {
    padding: 110px 0;
    background: #f8f8f8;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card img {
    height: 230px;
    object-fit: cover;
    transition: 0.6s ease;
}

.blog-card:hover img {
    transform: scale(1.06);
}

.blog-content {
    padding: 25px;
}

.blog-content span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
}

.blog-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 23px;
    color: var(--primary);
    line-height: 1.4;
    margin: 12px 0;
}

.blog-content p {
    color: var(--text);
    line-height: 28px;
    margin-bottom: 18px;
}

.center-btn {
    text-align: center;
    margin-top: 45px;
}

/* =========================================================
   MAP
========================================================= */

.office-map {
    padding: 110px 0;
    background: #fff;
}

.map-box {
    margin-top: 50px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.map-box iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    background: var(--primary);
    color: #fff;
    padding-top: 75px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-grid h3 {
    font-family: 'Cinzel', serif;
    font-size: 23px;
    margin-bottom: 20px;
}

.footer-about p,
.footer-contact p {
    color: #ccc;
    line-height: 29px;
}

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

.footer-links a {
    color: #ddd;
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--gold);
    transform: translateY(-4px);
}

.copyright {
    margin-top: 55px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 13px;
}

/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 27px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9998;
    transition: var(--transition);
}

.whatsapp:hover {
    transform: scale(1.08);
}

/* =========================================================
   SCROLL TOP
========================================================= */

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    z-index: 9998;
    transition: var(--transition);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary);
}

/* =========================================================
   FADE ANIMATION
========================================================= */

.fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   ZOOM
========================================================= */

.zoom {
    overflow: hidden;
}

.zoom img {
    transition: 0.6s ease;
}

.zoom:hover img {
    transform: scale(1.06);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .nav-links {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 55px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-section .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {

    .menu-toggle {
        display: block;
        z-index: 10001;
    }

    .contact-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--primary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        transition: right 0.4s ease;
        z-index: 10000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 17px;
    }

    .about-container,
    .appointment-container {
        grid-template-columns: 1fr;
    }

    .appointment-right {
        margin-top: 20px;
    }

    .testimonial-slider {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .top-left {
        flex-direction: column;
        gap: 5px;
    }

    .top-bar .container {
        align-items: flex-start;
    }

    .top-right {
        display: none;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content h3 {
        font-size: 17px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-social {
        display: none;
    }

    .slider-btn {
        display: none;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .about-content h2,
    .appointment-left h2 {
        font-size: 36px;
    }

    .expertise-grid,
    .work-grid,
    .testimonial-slider,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .counter-section .container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-badge {
        right: 15px;
        bottom: 15px;
    }

    .experience-badge {
        left: 15px;
        bottom: 15px;
    }
}

@media (max-width: 576px) {

    .container {
        width: 92%;
    }

    .navbar {
        min-height: 75px;
    }

    .logo { flex-basis: auto; max-width: calc(100% - 55px); }

    .logo-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 16px;
    }

    .logo .brand-title {
        font-size: 13px;
        white-space: normal;
    }

    .logo p {
        font-size: 8px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h3 {
        font-size: 15px;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 25px;
    }

    .hero-btn {
        padding: 13px 25px;
        font-size: 13px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .section-heading p {
        font-size: 14px;
        line-height: 26px;
    }

    .about,
    .expertise,
    .work,
    .testimonials,
    .appointment,
    .blogs,
    .office-map {
        padding: 80px 0;
    }

    .counter-section {
        padding: 60px 0;
    }

    .counter-section .container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .counter-box {
        padding: 25px 10px;
    }

    .counter-box h2 {
        font-size: 38px;
    }

    .counter-box span {
        font-size: 22px;
    }

    .counter-box p {
        font-size: 12px;
    }

    .about-content h2,
    .appointment-left h2 {
        font-size: 30px;
    }

    .about-content p,
    .appointment-left > p {
        font-size: 14px;
        line-height: 27px;
    }

    .map-box iframe {
        height: 350px;
    }

    .whatsapp {
        width: 52px;
        height: 52px;
        font-size: 24px;
        left: 15px;
        bottom: 15px;
    }

    .scroll-top {
        width: 48px;
        height: 48px;
        right: 15px;
        bottom: 15px;
    }
}

/* =====================================================
   ENQUIRY POPUP
===================================================== */
.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.enquiry-modal.show {
    display: flex;
}

.enquiry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.enquiry-box {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(0,0,0,.28);
    animation: enquiryPop .28s ease-out;
}

@keyframes enquiryPop {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.enquiry-content {
    padding: 38px;
}

.enquiry-kicker {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b18a4a;
}

.enquiry-content h2 {
    margin: 0 0 10px;
    font-family: 'Cinzel', serif;
    font-size: 30px;
    color: #123229;
}

.enquiry-content > p {
    margin: 0 0 22px;
    color: #666;
    line-height: 1.7;
}

.enquiry-close {
    position: absolute;
    top: 13px;
    right: 15px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    color: #222;
    cursor: pointer;
    font-size: 15px;
}

.enquiry-form input,
.enquiry-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 13px 14px;
    margin-bottom: 13px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
    border-color: #b18a4a;
}

.enquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.enquiry-grid input { margin-bottom: 0; }

.enquiry-submit {
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 13px 20px;
    background: #123229;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 600px) {
    .enquiry-modal { padding: 14px; }
    .enquiry-content { padding: 32px 22px 24px; }
    .enquiry-content h2 { font-size: 25px; }
    .enquiry-grid { grid-template-columns: 1fr; gap: 0; }
    .enquiry-grid input { margin-bottom: 13px; }
}

/* ================= ENQUIRY POPUP ================= */
.enquiry-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);display:none;align-items:center;justify-content:center;padding:20px;z-index:99999;backdrop-filter:blur(3px)}
.enquiry-overlay.show{display:flex}
.enquiry-popup{position:relative;width:min(520px,100%);background:#fff;border-radius:14px;box-shadow:0 25px 70px rgba(0,0,0,.3);overflow:hidden;animation:enquiryIn .3s ease}
.enquiry-content{padding:36px}
.enquiry-label{font-size:12px;letter-spacing:2px;font-weight:700;opacity:.7}
.enquiry-content h2{margin:8px 0 8px;font-size:32px}
.enquiry-content p{margin:0 0 20px;line-height:1.6;opacity:.8}
.enquiry-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:32px;line-height:1;cursor:pointer;z-index:2}
.enquiry-form{display:grid;gap:12px}
.enquiry-form input,.enquiry-form textarea{width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid #ddd;border-radius:7px;font:inherit;outline:none}
.enquiry-form textarea{resize:vertical}
.enquiry-form input:focus,.enquiry-form textarea:focus{border-color:#999}
.enquiry-submit{border:0;border-radius:7px;padding:14px 18px;cursor:pointer;font-weight:700;font-size:15px}
body.enquiry-open{overflow:hidden}
@keyframes enquiryIn{from{opacity:0;transform:translateY(15px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.enquiry-content{padding:28px 22px}.enquiry-content h2{font-size:26px}}

/* =========================================================
   REFERENCE-STYLE DROPDOWN NAVIGATION
========================================================= */
.nav-links .has-dropdown {
    position: relative;
}

.nav-links .has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-chevron {
    font-size: 9px;
    transition: transform .25s ease;
}

.nav-links .has-dropdown:hover > a .nav-chevron,
.nav-links .has-dropdown:focus-within > a .nav-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 270px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.15);
    border-top: 3px solid var(--gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    z-index: 10000;
}

/* Keep dropdown open while moving mouse from parent to menu */
.nav-links .has-dropdown:hover > .dropdown-menu,
.nav-links .has-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.dropdown-menu {
    scrollbar-width: auto;
    scrollbar-color: var(--gold) #f1f1f1;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li::after {
    display: none !important;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #222 !important;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
}

.dropdown-menu li a:hover {
    background: #f6f1e7;
    color: var(--gold-dark) !important;
    padding-left: 23px;
}

/* Right-align main navigation */
.navbar {
    display: flex !important;
    align-items: center !important;
}

.nav-links {
    margin-left: auto !important;
    justify-content: flex-end !important;
}

/* =========================================================
   HOMEPAGE HEADER - BLACK TEXT ON LIGHT BACKGROUND
   ========================================================= */
header,
header.sticky {
    background: #ffffff !important;
}

.navbar {
    background: #ffffff !important;
}

.logo .brand-title {
    color: #111111 !important;
}

.logo p {
    color: #333333 !important;
}

.nav-links > li > a {
    color: #111111 !important;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--gold-dark) !important;
}

.nav-links > li::after {
    background: var(--gold) !important;
}

.contact-btn {
    color: #ffffff !important;
}


/* =========================================================
   FINAL NAVIGATION + DROPDOWN FIX
========================================================= */
.nav-links > li > a {
    font-size: 16px !important;
}

@media (max-width: 991px) {
    .nav-links > li > a {
        font-size: 18px !important;
    }

    .nav-links .has-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-links .has-dropdown > a {
        justify-content: center;
    }

    .nav-links .dropdown-menu {
        position: static;
        width: 90%;
        min-width: 0;
        max-height: 170px;
        margin: 4px auto 0;
        border-top: 2px solid var(--gold);
        box-shadow: 0 8px 25px rgba(0,0,0,.18);
        transform: none;
        overflow-y: scroll;
    }

    .nav-links .has-dropdown:hover > .dropdown-menu,
    .nav-links .has-dropdown:focus-within > .dropdown-menu {
        transform: none;
    }

    .dropdown-menu li a {
        font-size: 14px !important;
        padding: 9px 12px;
        color: #222 !important;
    }
}

/* Navbar hover effect */
.nav-links > li > a {
    padding: 12px 18px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    background: #c9a227;
    color: #fff !important;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: #c9a227 !important;
    color: #fff !important;
    padding-left: 23px;
}

/* =========================================================
   STICKY NAVBAR - COLOR CHANGES ON SCROLL
   ========================================================= */
header.sticky {
    background: #081b16 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18) !important;
}

header.sticky .navbar {
    background: #081b16 !important;
}

header.sticky .logo .brand-title {
    color: #ffffff !important;
}

header.sticky .logo p {
    color: rgba(255, 255, 255, 0.78) !important;
}

header.sticky .nav-links > li > a {
    color: #ffffff !important;
}

header.sticky .nav-links > li > a:hover,
header.sticky .nav-links > li > a.active {
    background: #c9a227 !important;
    color: #ffffff !important;
}

header.sticky .nav-links > li::after {
    background: #c9a227 !important;
}

/* =========================================================
   FINAL NAVBAR SPACING FIX
========================================================= */
.nav-links {
    gap: 24px !important;
}

.nav-links > li > a {
    padding: 8px 4px !important;
    white-space: nowrap;
    background: transparent !important;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
header.sticky .nav-links > li > a:hover,
header.sticky .nav-links > li > a.active {
    background: transparent !important;
    color: var(--gold-dark) !important;
}

header.sticky .nav-links > li > a {
    color: #fff !important;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 16px !important;
    }
}

@media (max-width: 991px) {
    .nav-links {
        gap: 20px !important;
    }

    .nav-links > li > a {
        padding: 8px 12px !important;
    }
}

/* FINAL NAVBAR POSITION + FONT SIZE */
.nav-links {
    margin-left: auto !important;
    justify-content: flex-end !important;
    gap: 24px !important;
}

.nav-links > li > a {
    font-size: 18px !important;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 18px !important;
    }
}

@media (max-width: 991px) {
    .nav-links {
        margin-left: 0 !important;
        gap: 20px !important;
    }

    .nav-links > li > a {
        font-size: 18px !important;
    }
}

/* NAVBAR RIGHT SHIFT - FINAL */
.navbar > nav {
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

.navbar > nav .nav-links {
    margin-left: 0 !important;
    justify-content: flex-end !important;
    gap: 24px !important;
}

.navbar > nav .nav-links > li > a {
    font-size: 18px !important;
    white-space: nowrap !important;
}

@media (min-width: 992px) {
    .navbar > nav {
        transform: translateX(35px);
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .navbar > nav {
        transform: translateX(15px);
    }
}

@media (max-width: 991px) {
    .navbar > nav {
        transform: none !important;
        margin-left: 0 !important;
    }
}

/* FINAL CONTACT + APPOINTMENT SPACING */
.nav-links > li.contact-item,
.nav-links > li.appointment-item {
    margin-left: 10px !important;
}

.nav-links > li.contact-item + li.appointment-item {
    margin-left: 18px !important;
}

.nav-links > li.contact-item > a,
.nav-links > li.appointment-item > a {
    white-space: nowrap !important;
}

/* =========================================================
   FINAL STICKY HEADER + APPOINTMENT BUTTON HOVER
   ========================================================= */
header { background: #ffffff !important; }
header.sticky {
    background: var(--primary) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18) !important;
}
header.sticky .navbar { background: var(--primary) !important; }
header.sticky .logo .brand-title { color: #ffffff !important; }
header.sticky .logo p { color: rgba(255,255,255,0.78) !important; }
header.sticky .nav-links > li > a { color: #ffffff !important; }
header.sticky .nav-links > li > a:hover,
header.sticky .nav-links > li > a.active { color: var(--gold) !important; }
header.sticky .nav-links > li::after { background: var(--gold) !important; }

.contact-btn {
    background: var(--gold) !important;
    color: #ffffff !important;
    border: 1px solid var(--gold) !important;
}
.contact-btn:hover {
    background: var(--gold-dark) !important;
    color: #ffffff !important;
    border-color: var(--gold-dark) !important;
}
header.sticky .contact-btn { background: var(--gold) !important; color: #ffffff !important; }
header.sticky .contact-btn:hover { background: var(--gold-dark) !important; color: #ffffff !important; }

/* BOOK APPOINTMENT - SHIFT FURTHER RIGHT */
@media (min-width: 992px) {
    .contact-btn {
        margin-left: 18px !important;
    }
}

/* =========================================================
   STICKY HEADER SLIDE-DOWN ANIMATION
   ========================================================= */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

header.sticky {
    animation: headerSlideDown 0.45s ease-out forwards;
}

@media (max-width: 991px) {
    header.sticky {
        animation-duration: 0.4s;
    }
}


/* OFFICE LOCATION BUTTON */
.office-location-btn {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.office-location-btn:hover {
    background: var(--primary);
    color: #fff;
}

#office-location {
    scroll-margin-top: 120px;
}

/* =========================================================
   PREMIUM LEGAL DESIGN UPGRADE - NIKHIL SHAKARWAL
   Elegant ivory + deep emerald + antique gold theme
========================================================= */
:root {
    --primary: #071b16;
    --secondary: #12352b;
    --gold: #c8a45d;
    --gold-dark: #9f7b35;
    --cream: #f8f5ee;
    --cream-2: #f1ece1;
    --ink: #18201d;
    --muted: #68716d;
    --line: rgba(8,27,22,.10);
    --premium-shadow: 0 22px 60px rgba(7,27,22,.12);
}

body {
    background: #fff;
    color: var(--ink);
}

/* subtle premium background texture without images */
section:not(.hero) {
    position: relative;
}

section:not(.hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image: radial-gradient(rgba(200,164,93,.10) .7px, transparent .7px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

section > .container {
    position: relative;
    z-index: 1;
}

/* top contact strip */
.top-bar {
    background: linear-gradient(90deg, #061611, #0d2a21 52%, #061611);
    border-bottom: 1px solid rgba(200,164,93,.22);
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.top-left span {
    letter-spacing: .2px;
}

.top-left i,
.top-right i {
    color: var(--gold);
}

/* main header */
header {
    border-bottom: 1px solid rgba(200,164,93,.18);
    box-shadow: 0 8px 30px rgba(7,27,22,.07);
    z-index: 9998;
}

.navbar {
    min-height: 92px;
}

.logo {
    position: relative;
    padding-left: 17px;
}

.logo::before {
    content: "§";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1;
}

.logo .brand-title {
    font-family: 'Cinzel', serif;
    letter-spacing: .4px;
}

.logo p {
    letter-spacing: 1.1px;
}

.nav-links > li > a {
    position: relative;
    border-radius: 0 !important;
    padding: 13px 4px !important;
    letter-spacing: .25px;
}

.nav-links > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 3px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), #e2c27e);
    transition: right .3s ease;
}

.nav-links > li > a:hover::before,
.nav-links > li > a.active::before {
    right: 0;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--gold-dark) !important;
}

.contact-btn {
    box-shadow: 0 9px 24px rgba(200,164,93,.28);
    border-radius: 5px !important;
    padding: 13px 23px !important;
    letter-spacing: .3px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(159,123,53,.35);
}

/* dropdowns */
.dropdown-menu {
    border: 1px solid rgba(200,164,93,.22);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 25px 55px rgba(7,27,22,.18);
}

.dropdown-menu li a:hover {
    background: linear-gradient(90deg, #f7f0e2, #fff) !important;
    color: var(--gold-dark) !important;
}

/* hero: richer overlay and luxury framing */
.hero {
    position: relative;
    isolation: isolate;
}

.hero .overlay {
    background:
        linear-gradient(90deg, rgba(4,17,13,.88) 0%, rgba(4,17,13,.65) 42%, rgba(4,17,13,.22) 78%, rgba(4,17,13,.45) 100%),
        linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)) !important;
}

.hero-content {
    max-width: 900px;
}

.hero-content .eyebrow-heading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #e2c27e !important;
    letter-spacing: 4px;
}

.hero-content .eyebrow-heading::before,
.hero-content .eyebrow-heading::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.hero-content h1 {
    text-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.hero-content p {
    color: rgba(255,255,255,.88);
    max-width: 720px;
}

.hero-btn.primary {
    box-shadow: 0 12px 30px rgba(200,164,93,.25);
}

.hero-btn.primary:hover {
    background: #fff;
    color: var(--primary);
}

.hero-btn.secondary {
    border-color: rgba(255,255,255,.75);
    backdrop-filter: blur(5px);
}

.slider-btn {
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(7,27,22,.35);
    backdrop-filter: blur(8px);
    transition: all .3s ease;
}

.slider-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.06);
}

.dots .dot {
    border: 1px solid rgba(255,255,255,.75);
}

.dots .dot.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200,164,93,.18);
}

/* common headings */
.section-heading {
    position: relative;
    margin-bottom: 50px;
}

.section-heading .eyebrow-heading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.section-heading .eyebrow-heading::before,
.section-heading .eyebrow-heading::after {
    content: "";
    width: 25px;
    height: 1px;
    background: var(--gold);
}

.section-heading h2 {
    letter-spacing: -.4px;
}

.section-heading p {
    font-size: 15px;
}

/* about */
.about {
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.about-image {
    border-radius: 4px;
    box-shadow: var(--premium-shadow);
}

.about-image::after {
    border: 1px solid rgba(200,164,93,.6) !important;
}

.about-content h2,
.about-content h3 {
    color: var(--primary);
}

.about-content p {
    color: var(--muted);
}

/* stat/counter strip */
.counter-section {
    background: linear-gradient(135deg, #071b16, #12352b) !important;
    position: relative;
    overflow: hidden;
}

.counter-section::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -180px;
    border: 1px solid rgba(200,164,93,.22);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(200,164,93,.035), 0 0 0 70px rgba(200,164,93,.025);
}

.counter-box {
    position: relative;
    padding: 22px 15px;
    border-right: 1px solid rgba(255,255,255,.10);
}

.counter-box:last-child {
    border-right: 0;
}

.counter-box h2 {
    color: #e2c27e;
    font-family: 'Cinzel', serif;
}

.counter-box p {
    color: rgba(255,255,255,.78);
}

/* cards: expertise, services, blogs, testimonials, process */
.expertise,
.services,
.practice,
.blogs,
.testimonials,
.work-process {
    background: #fff;
}

.expertise-card,
.service-card,
.practice-card,
.blog-card,
.testimonial-card,
.work-card {
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(7,27,22,.09) !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(7,27,22,.07);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.expertise-card:hover,
.service-card:hover,
.practice-card:hover,
.blog-card:hover,
.testimonial-card:hover,
.work-card:hover {
    transform: translateY(-9px);
    border-color: rgba(200,164,93,.42) !important;
    box-shadow: 0 20px 48px rgba(7,27,22,.13);
}

.expertise-card .zoom,
.service-card .zoom,
.blog-card .zoom {
    overflow: hidden;
}

.expertise-card img,
.service-card img,
.blog-card img {
    transition: transform .55s ease;
}

.expertise-card:hover img,
.service-card:hover img,
.blog-card:hover img {
    transform: scale(1.045);
}

.expertise-content,
.service-content,
.blog-content,
.practice-content {
    padding: 25px !important;
}

.expertise-content h3,
.service-content h3,
.blog-content h3,
.practice-content h3 {
    color: var(--primary);
}

.expertise-content p,
.service-content p,
.blog-content p,
.practice-content p {
    color: var(--muted);
}

.read-btn {
    color: var(--gold-dark);
}

/* light premium section */
.appointment,
.office-map {
    background: linear-gradient(180deg, var(--cream), #fff) !important;
}

.appointment-container {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(200,164,93,.20);
    border-radius: 12px;
    padding: 45px;
    box-shadow: var(--premium-shadow);
}

.appointment-left h2 {
    color: var(--primary);
    font-family: 'Cinzel', serif;
}

.appointment form input,
.appointment form textarea,
.appointment form select {
    border: 1px solid rgba(7,27,22,.14) !important;
    background: #fff !important;
    border-radius: 4px !important;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.appointment form input:focus,
.appointment form textarea:focus,
.appointment form select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 4px rgba(200,164,93,.10) !important;
    outline: none;
}

.submit-btn {
    background: linear-gradient(135deg, var(--gold), #d8b96e) !important;
    border: 0 !important;
    box-shadow: 0 10px 25px rgba(200,164,93,.25);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    transform: translateY(-2px);
}

/* office map */
.map-box {
    border: 8px solid #fff;
    outline: 1px solid rgba(200,164,93,.35);
    box-shadow: var(--premium-shadow);
    border-radius: 8px;
    overflow: hidden;
}

/* footer */
footer {
    background: linear-gradient(135deg, #061611 0%, #0c2920 58%, #061611 100%) !important;
    border-top: 3px solid var(--gold);
}

.footer-grid h3 {
    font-family: 'Cinzel', serif;
    color: #fff;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
    color: rgba(255,255,255,.70);
}

.footer-grid a:hover {
    color: #e2c27e;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,.10) !important;
}

/* floating actions */
.whatsapp,
.scroll-top {
    box-shadow: 0 12px 28px rgba(7,27,22,.20);
    transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp:hover,
.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(7,27,22,.28);
}

/* scroll reveal feels smoother */
.fade-up {
    will-change: transform, opacity;
}

/* mobile premium adjustments */
@media (max-width: 991px) {
    .navbar {
        min-height: 78px;
    }

    .nav-links {
        background: linear-gradient(180deg, #071b16, #12352b) !important;
        box-shadow: -20px 0 55px rgba(0,0,0,.20);
    }

    .nav-links > li > a {
        color: #fff !important;
        font-size: 18px !important;
    }

    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        color: #e2c27e !important;
    }

    .nav-links > li > a::before {
        background: #e2c27e;
        bottom: 2px;
        left: 30%;
        right: 30%;
    }

    .menu-toggle {
        color: var(--primary) !important;
        background: rgba(200,164,93,.14);
        border: 1px solid rgba(200,164,93,.35);
        width: 46px;
        height: 42px;
        display: grid !important;
        place-items: center;
        border-radius: 5px;
    }

    header.sticky .menu-toggle {
        color: #fff !important;
    }

    .appointment-container {
        padding: 28px 22px;
    }

    .counter-box {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

    .counter-box:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 600px) {
    .top-bar .container {
        justify-content: center;
    }

    .top-left {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-right {
        display: none;
    }

    .logo .brand-title {
        font-size: 18px;
    }

    .logo p {
        font-size: 10px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .appointment-container {
        padding: 22px 16px;
    }
}


/* Our Expertise dropdown scroll */
.dropdown-menu {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}


/* Dropdown parent links: click opens the scroll menu instead of navigating */
.nav-links .has-dropdown.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
@media (max-width: 991px) {
    .nav-links .has-dropdown.is-open > .dropdown-menu {
        display: block;
    }
}

/* =========================================================
   SHARED PAGE HERO BACKGROUND
   Keep all inner-page heading banners visually consistent
   with the About Us hero without changing page content.
========================================================= */
.services-hero,
.practice-hero,
.page-hero,
.contact-hero,
.service-detail-hero,
.service-hero,
.blog-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(8, 27, 22, 0.82), rgba(8, 27, 22, 0.82)),
        url("../images/law.jpg") center/cover no-repeat !important;
}

.services-hero h1,
.practice-hero h1,
.page-hero h1,
.contact-hero h1,
.service-detail-hero h1,
.service-hero h1,
.blog-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
}

.services-hero p,
.practice-hero p,
.page-hero p,
.contact-hero p,
.service-detail-hero p,
.blog-hero p {
    position: relative;
    z-index: 1;
    color: #e9eee9;
}

.services-hero .eyebrow,
.practice-hero .eyebrow,
.page-hero .eyebrow,
.contact-hero .eyebrow,
.service-detail-hero .eyebrow,
.blog-hero .eyebrow {
    position: relative;
    z-index: 1;
    color: var(--gold);
}

@media (max-width: 600px) {
    .services-hero,
    .practice-hero,
    .page-hero,
    .contact-hero,
    .service-detail-hero,
    .service-hero,
    .blog-hero {
        min-height: 300px;
    }
}


/* =========================================================
   REFERENCE-STYLE FOOTER NAVIGATION
   Our Services / Our Expertise are headings only; only
   their individual links are clickable.
========================================================= */
footer.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 55px 20px 0;
}
footer.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr 1fr 1.35fr;
    gap: 42px;
    align-items: start;
}
footer.site-footer h3 {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 24px;
}
footer.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
footer.site-footer .footer-brand h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 18px;
}
footer.site-footer .footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
footer.site-footer .footer-tagline {
    margin: 3px 0 0;
    color: #bfc8c8;
    font-size: 12px;
}
footer.site-footer .footer-about > p {
    color: #d4dada;
    line-height: 1.75;
    margin: 0;
    max-width: 350px;
}
footer.site-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer.site-footer .footer-links li {
    margin: 0 0 13px;
    line-height: 1.35;
}
footer.site-footer .footer-links a {
    color: #e1e5e5;
    text-decoration: none;
    transition: color .25s ease, padding-left .25s ease;
}
footer.site-footer .footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}
footer.site-footer .footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e1e5e5;
    line-height: 1.55;
    margin: 0 0 16px;
}
footer.site-footer .footer-contact p > i {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}
footer.site-footer .footer-contact a {
    color: #e1e5e5;
    text-decoration: none;
}
footer.site-footer .footer-contact a:hover {
    color: var(--gold);
}
footer.site-footer .social-icons {
    margin-top: 24px;
}
footer.site-footer .social-icons a {
    background: #fff;
    color: var(--primary);
}
footer.site-footer .copyright {
    margin-top: 45px;
    border-top: 1px solid rgba(255,255,255,.18);
    padding: 20px 0;
}
footer.site-footer .copyright p {
    margin: 0;
    color: #d4dada;
}

@media (max-width: 1100px) {
    footer.site-footer .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
    footer.site-footer .footer-contact {
        grid-column: 1 / -1;
    }
}
@media (max-width: 760px) {
    footer.site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 25px;
    }
    footer.site-footer .footer-about,
    footer.site-footer .footer-contact {
        grid-column: 1 / -1;
    }
}
@media (max-width: 520px) {
    footer.site-footer .footer-grid {
        grid-template-columns: 1fr;
    }
    footer.site-footer .footer-about,
    footer.site-footer .footer-contact {
        grid-column: auto;
    }
}

/* Ensure floating scroll-to-top arrow stays perfectly centered */
.scroll-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
.scroll-top i {
    display: block !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Scroll-to-top icon alignment fix */
.scroll-top { display: flex !important; align-items: center; justify-content: center; }
.scroll-top i { display: block; line-height: 1; margin: 0; }

/* =========================================================
   HOME HEADER — RESTORE ORIGINAL SCROLL BEHAVIOUR
   At the top: green contact bar + white navigation bar.
   On scroll: contact bar naturally moves out of view and the
   navigation bar stays fixed, white and clean (not green).
========================================================= */
body.home-page > header.sticky {
    background: #ffffff !important;
    color: #222 !important;
    box-shadow: 0 6px 22px rgba(0,0,0,.10) !important;
}

body.home-page > header.sticky .logo .brand-title {
    color: var(--primary) !important;
}

body.home-page > header.sticky .logo p {
    color: #777 !important;
}

body.home-page > header.sticky .nav-links > li > a {
    color: #222 !important;
}

body.home-page > header.sticky .nav-links > li > a:hover,
body.home-page > header.sticky .nav-links > li > a.active {
    color: var(--gold-dark) !important;
}

body.home-page > header.sticky .nav-links > li::after {
    background: var(--gold) !important;
}

body.home-page > header.sticky .contact-btn {
    background: var(--gold) !important;
    color: #fff !important;
}

body.home-page > header.sticky .contact-btn:hover {
    background: var(--gold-dark) !important;
    color: #fff !important;
}

@media (min-width: 992px) {
    body.home-page > header.sticky .navbar {
        min-height: 90px;
    }
}

@media (max-width: 991px) {
    body.home-page > header.sticky {
        background: var(--primary) !important;
    }

    body.home-page > header.sticky .logo .brand-title,
    body.home-page > header.sticky .logo p,
    body.home-page > header.sticky .nav-links > li > a {
        color: #fff !important;
    }

    body.home-page > header.sticky .menu-toggle {
        color: #fff !important;
    }
}


/* =========================================================
   FINAL HOME HEADER STABILITY FIX
   - The top contact strip remains in normal document flow.
   - The navigation becomes sticky naturally when it reaches the top.
   - No JS sticky class, no green state, no blur, no slide animation.
   - The entire navigation row stays solid white.
========================================================= */
body.home-page > header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    box-shadow: 0 3px 18px rgba(0,0,0,.08) !important;
    z-index: 99999 !important;
}

body.home-page > header.sticky {
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    color: #222 !important;
    transform: none !important;
    animation: none !important;
    box-shadow: 0 3px 18px rgba(0,0,0,.08) !important;
}

body.home-page > header .navbar,
body.home-page > header.sticky .navbar {
    background: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}

body.home-page > header .logo .brand-title,
body.home-page > header.sticky .logo .brand-title { color: var(--primary) !important; }
body.home-page > header .logo p,
body.home-page > header.sticky .logo p { color: #777 !important; }
body.home-page > header .nav-links > li > a,
body.home-page > header.sticky .nav-links > li > a { color: #222 !important; }
body.home-page > header .nav-links > li > a:hover,
body.home-page > header .nav-links > li > a.active,
body.home-page > header.sticky .nav-links > li > a:hover,
body.home-page > header.sticky .nav-links > li > a.active { color: var(--gold-dark) !important; }
body.home-page > header .contact-btn,
body.home-page > header.sticky .contact-btn {
    background: var(--gold) !important;
    color: #fff !important;
}

/* The contact strip must never become part of the sticky header. */
body.home-page > .top-bar {
    position: relative !important;
    top: auto !important;
    z-index: 100000 !important;
}

@media (max-width: 991px) {
    body.home-page > header,
    body.home-page > header.sticky {
        position: sticky !important;
        top: 0 !important;
        background: #ffffff !important;
    }
    body.home-page > header .menu-toggle,
    body.home-page > header.sticky .menu-toggle { color: var(--primary) !important; }
}

/* =========================================================
   V8 FINAL HEADER RESET — SINGLE CLEAN WHITE NAVBAR
   Top: green contact strip + white navigation.
   After scroll: only the white navigation remains fixed/sticky.
   No green sticky navbar, no blur, no animation, no transparency.
========================================================= */

/* Keep the contact strip green and in normal document flow. */
.top-bar {
    position: relative !important;
    width: 100% !important;
    background: var(--primary) !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}

/* The navigation itself is always a solid white full-width layer. */
body > header,
body.inner-page > header,
body.home-page > header,
body > header.sticky,
body.inner-page > header.sticky,
body.home-page > header.sticky {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    color: #222 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 3px 18px rgba(0,0,0,.08) !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* Header becomes sticky/fixed without changing its colours. */
body.home-page > header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
}

body.inner-page > header {
    z-index: 99999 !important;
}

body.inner-page > header.sticky {
    position: fixed !important;
    top: 0 !important;
    z-index: 99999 !important;
}

/* Remove the old green sticky treatment everywhere. */
header.sticky .navbar,
body.home-page > header .navbar,
body.home-page > header.sticky .navbar,
body.inner-page > header .navbar,
body.inner-page > header.sticky .navbar {
    background: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}

/* Desktop reference colours. */
header .logo .brand-title,
header.sticky .logo .brand-title,
body.home-page > header .logo .brand-title,
body.home-page > header.sticky .logo .brand-title,
body.inner-page > header .logo .brand-title,
body.inner-page > header.sticky .logo .brand-title {
    color: var(--primary) !important;
}

header .logo p,
header.sticky .logo p,
body.home-page > header .logo p,
body.home-page > header.sticky .logo p,
body.inner-page > header .logo p,
body.inner-page > header.sticky .logo p {
    color: #777 !important;
}

header .nav-links > li > a,
header.sticky .nav-links > li > a,
body.home-page > header .nav-links > li > a,
body.home-page > header.sticky .nav-links > li > a,
body.inner-page > header .nav-links > li > a,
body.inner-page > header.sticky .nav-links > li > a {
    color: #222 !important;
}

header .nav-links > li > a:hover,
header .nav-links > li > a.active,
header.sticky .nav-links > li > a:hover,
header.sticky .nav-links > li > a.active {
    color: var(--gold-dark) !important;
}

header .nav-links > li::after,
header.sticky .nav-links > li::after {
    background: var(--gold) !important;
}

header .menu-toggle,
header.sticky .menu-toggle {
    color: var(--primary) !important;
}

/* Do not animate the sticky header. */
header.sticky {
    animation: none !important;
}

@media (max-width: 991px) {
    /* Mobile dropdown itself may remain dark green; the header row stays white. */
    body > header,
    body > header.sticky,
    body.home-page > header,
    body.home-page > header.sticky,
    body.inner-page > header,
    body.inner-page > header.sticky {
        background: #fff !important;
    }

    body.inner-page > header.sticky {
        position: fixed !important;
    }

    header .menu-toggle,
    header.sticky .menu-toggle {
        color: var(--primary) !important;
    }
}

/* =========================================================
   V9 SMART CONTACT BAR + NAVBAR BEHAVIOUR
   Top: green contact strip + white navbar in normal flow.
   Scroll DOWN: green contact strip slides out, white navbar
                moves to the very top and stays there.
   Scroll UP: green contact strip slides back, navbar returns
              underneath it.
   This intentionally overrides all older sticky-header rules.
========================================================= */

:root {
    --smart-topbar-h: 52px;
    --smart-navbar-h: 90px;
}

/* Normal state at the top of every page. */
body:not(.smart-header-active) {
    padding-top: 0 !important;
}

body:not(.smart-header-active) > .top-bar {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    transition: none !important;
}

body:not(.smart-header-active) > header,
body:not(.smart-header-active) > header.sticky {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    animation: none !important;
}

/* Once scrolling starts, reserve the exact header space in the document. */
body.smart-header-active {
    padding-top: calc(var(--smart-topbar-h) + var(--smart-navbar-h)) !important;
}

body.smart-header-active > .top-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 100001 !important;
    transform: translateY(0) !important;
    transition: transform 0.22s ease !important;
    will-change: transform;
}

body.smart-header-active.smart-contact-hidden > .top-bar {
    transform: translateY(-100%) !important;
}

body.smart-header-active > header,
body.smart-header-active > header.sticky {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100000 !important;
    background: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 3px 18px rgba(0,0,0,.08) !important;
    transform: none !important;
    animation: none !important;
    transition: top 0.22s ease !important;
    will-change: top;
}

/* Contact visible = navbar sits directly below green strip. */
body.smart-header-active.smart-contact-visible > header,
body.smart-header-active.smart-contact-visible > header.sticky {
    top: var(--smart-topbar-h) !important;
}

/* Contact hidden = navbar reaches the top edge. */
body.smart-header-active.smart-contact-hidden > header,
body.smart-header-active.smart-contact-hidden > header.sticky {
    top: 0 !important;
}

/* Always keep the navigation row solid white. */
body.smart-header-active > header .navbar,
body.smart-header-active > header.sticky .navbar {
    background: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.smart-header-active > header .logo .brand-title,
body.smart-header-active > header.sticky .logo .brand-title {
    color: var(--primary) !important;
}

body.smart-header-active > header .logo p,
body.smart-header-active > header.sticky .logo p {
    color: #777 !important;
}

body.smart-header-active > header .nav-links > li > a,
body.smart-header-active > header.sticky .nav-links > li > a {
    color: #222 !important;
}

body.smart-header-active > header .nav-links > li > a:hover,
body.smart-header-active > header .nav-links > li > a.active,
body.smart-header-active > header.sticky .nav-links > li > a:hover,
body.smart-header-active > header.sticky .nav-links > li > a.active {
    color: var(--gold-dark) !important;
}

@media (max-width: 991px) {
    body.smart-header-active > header,
    body.smart-header-active > header.sticky {
        width: 100% !important;
    }
}


/* =========================================================
   V10 UNIVERSAL HEADER FINAL OVERRIDE
   Applies to HOME, ABOUT, SERVICES, EXPERTISE, BLOGS,
   CONTACT and every other page using the shared header.
   IMPORTANT: do not rely on .sticky; older .sticky rules
   are intentionally bypassed to prevent the green navbar.
========================================================= */

html { scroll-padding-top: 0 !important; }

body.smart-header-active {
    padding-top: calc(var(--smart-topbar-h, 52px) + var(--smart-navbar-h, 90px)) !important;
}

body.smart-header-active > .top-bar,
body.smart-header-active > header {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
    will-change: transform, top !important;
}

body.smart-header-active > .top-bar {
    top: 0 !important;
    z-index: 100001 !important;
    transform: translateY(0) !important;
    transition: transform .22s ease !important;
}

body.smart-header-active.smart-contact-hidden > .top-bar {
    transform: translateY(-100%) !important;
}

body.smart-header-active > header {
    top: var(--smart-topbar-h, 52px) !important;
    z-index: 100000 !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: 0 3px 18px rgba(0,0,0,.08) !important;
    transform: none !important;
    transition: top .22s ease !important;
}

body.smart-header-active.smart-contact-hidden > header {
    top: 0 !important;
}

body.smart-header-active > header .navbar {
    background: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.smart-header-active > header .logo .brand-title,
body.smart-header-active > header .logo p,
body.smart-header-active > header .nav-links > li > a,
body.smart-header-active > header .menu-toggle {
    opacity: 1 !important;
}

body.smart-header-active > header .logo .brand-title { color: var(--primary) !important; }
body.smart-header-active > header .logo p { color: #777 !important; }
body.smart-header-active > header .nav-links > li > a { color: #222 !important; }
body.smart-header-active > header .nav-links > li > a:hover,
body.smart-header-active > header .nav-links > li > a.active { color: var(--gold-dark) !important; }
body.smart-header-active > header .nav-links > li::after { background: var(--gold) !important; }
body.smart-header-active > header .menu-toggle { color: var(--primary) !important; }
body.smart-header-active > header .contact-btn { background: var(--gold) !important; color: #fff !important; }

/* At the top, restore the original non-fixed document flow. */
body:not(.smart-header-active) > .top-bar,
body:not(.smart-header-active) > header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

body:not(.smart-header-active) {
    padding-top: 0 !important;
}

@media (max-width: 991px) {
    body.smart-header-active > header,
    body.smart-header-active > .top-bar {
        width: 100% !important;
    }

    body.smart-header-active > header .navbar {
        min-height: var(--smart-navbar-h, 70px) !important;
    }
}

/* =========================================================
   V11 HEADER BEHAVIOUR — MATCH REFERENCE SCREENSHOT
   Top: green contact bar + white navigation.
   Scrolling DOWN: contact bar hides and navigation becomes
   a solid green compact header at the very top.
   Scrolling UP / returning to top: original green contact
   bar + white navigation are restored.
========================================================= */
body.smart-header-active { padding-top: calc(var(--smart-topbar-h,52px) + var(--smart-navbar-h,90px)) !important; }
body.smart-header-active.smart-contact-hidden { padding-top: var(--smart-navbar-h,90px) !important; }

body.smart-header-active > .top-bar {
    transition: transform .22s ease !important;
}

/* Scrolled-down state: the navbar itself becomes the green bar. */
body.smart-header-active.smart-contact-hidden > header,
body.smart-header-active.smart-contact-hidden > header.sticky {
    top: 0 !important;
    background: var(--primary) !important;
    box-shadow: 0 3px 18px rgba(0,0,0,.16) !important;
}
body.smart-header-active.smart-contact-hidden > header .navbar,
body.smart-header-active.smart-contact-hidden > header.sticky .navbar {
    background: var(--primary) !important;
}
body.smart-header-active.smart-contact-hidden > header .logo .brand-title,
body.smart-header-active.smart-contact-hidden > header.sticky .logo .brand-title,
body.smart-header-active.smart-contact-hidden > header .logo p,
body.smart-header-active.smart-contact-hidden > header.sticky .logo p,
body.smart-header-active.smart-contact-hidden > header .nav-links > li > a,
body.smart-header-active.smart-contact-hidden > header.sticky .nav-links > li > a,
body.smart-header-active.smart-contact-hidden > header .menu-toggle,
body.smart-header-active.smart-contact-hidden > header.sticky .menu-toggle {
    color: #fff !important;
}
body.smart-header-active.smart-contact-hidden > header .nav-links > li > a:hover,
body.smart-header-active.smart-contact-hidden > header .nav-links > li > a.active,
body.smart-header-active.smart-contact-hidden > header.sticky .nav-links > li > a:hover,
body.smart-header-active.smart-contact-hidden > header.sticky .nav-links > li > a.active {
    color: var(--gold) !important;
}
body.smart-header-active.smart-contact-hidden > header .nav-links > li::after,
body.smart-header-active.smart-contact-hidden > header.sticky .nav-links > li::after {
    background: var(--gold) !important;
}
body.smart-header-active.smart-contact-hidden > header .contact-btn,
body.smart-header-active.smart-contact-hidden > header.sticky .contact-btn {
    background: var(--gold) !important;
    color: #fff !important;
}

/* Restored state while scrolling upward: original white navbar. */
body.smart-header-active.smart-contact-visible > header,
body.smart-header-active.smart-contact-visible > header.sticky {
    top: var(--smart-topbar-h,52px) !important;
    background: #fff !important;
}
body.smart-header-active.smart-contact-visible > header .navbar,
body.smart-header-active.smart-contact-visible > header.sticky .navbar {
    background: #fff !important;
}
body.smart-header-active.smart-contact-visible > header .logo .brand-title,
body.smart-header-active.smart-contact-visible > header.sticky .logo .brand-title { color: var(--primary) !important; }
body.smart-header-active.smart-contact-visible > header .logo p,
body.smart-header-active.smart-contact-visible > header.sticky .logo p { color: #777 !important; }
body.smart-header-active.smart-contact-visible > header .nav-links > li > a,
body.smart-header-active.smart-contact-visible > header.sticky .nav-links > li > a { color: #222 !important; }
body.smart-header-active.smart-contact-visible > header .nav-links > li > a:hover,
body.smart-header-active.smart-contact-visible > header .nav-links > li > a.active,
body.smart-header-active.smart-contact-visible > header.sticky .nav-links > li > a:hover,
body.smart-header-active.smart-contact-visible > header.sticky .nav-links > li > a.active { color: var(--gold-dark) !important; }


/* =========================================================
   EXPERTISE DETAIL PAGES — NAV SPACING FIX
   Disabled: this gave "expertise" pages (civil-lawyers,
   criminal-lawyers, bail-lawyers, etc.) a different fixed-width
   logo/nav layout than every other inner page, which is what made
   the navbar look misaligned from page to page. Expertise pages
   now fall back to the same body.inner-page navbar rules in
   page-common.css that every other inner page uses, so the logo,
   nav links and buttons line up identically everywhere.
========================================================= */

/* V11 FINAL FIX: full-width header background + prevent navbar items merging */
body > header,
body.smart-header-active > header,
body.smart-header-active.smart-contact-hidden > header,
body.smart-header-active.smart-contact-visible > header {
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
}

body.smart-header-active.smart-contact-hidden > header,
body.smart-header-active.smart-contact-hidden > header.sticky {
    background: var(--primary) !important;
}

body.smart-header-active.smart-contact-hidden > header .navbar,
body.smart-header-active.smart-contact-hidden > header.sticky .navbar {
    width: min(94%, 1450px) !important;
    max-width: 1450px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(12px, 1.5vw, 26px) !important;
    box-sizing: border-box !important;
}

@media (min-width: 1200px) {
    body.smart-header-active.smart-contact-hidden > header .logo,
    body.smart-header-active.smart-contact-hidden > header.sticky .logo {
        flex: 0 0 auto !important;
        max-width: 290px !important;
        min-width: 220px !important;
    }
    body.smart-header-active.smart-contact-hidden > header .navbar > nav,
    body.smart-header-active.smart-contact-hidden > header.sticky .navbar > nav {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        transform: none !important;
    }
    body.smart-header-active.smart-contact-hidden > header .nav-links,
    body.smart-header-active.smart-contact-hidden > header.sticky .nav-links {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: clamp(10px, 1.1vw, 18px) !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }
    body.smart-header-active.smart-contact-hidden > header .nav-links > li > a,
    body.smart-header-active.smart-contact-hidden > header.sticky .nav-links > li > a {
        white-space: nowrap !important;
        font-size: clamp(12px, .9vw, 15px) !important;
    }
    body.smart-header-active.smart-contact-hidden > header .contact-btn,
    body.smart-header-active.smart-contact-hidden > header.sticky .contact-btn {
        flex: 0 0 auto !important;
        margin-left: 8px !important;
        white-space: nowrap !important;
    }
}

.footer-sitemap-link { color: inherit; text-decoration: underline; margin-left: 6px; }
.footer-sitemap-link:hover { color: #d4af37; }
