/* ==========================================================================
   Online Lawyer India — modern layer
   Loaded after style.css. Visual refresh only: brand colours kept as-is,
   expressed as gradients of the same hues. No content lives here.
   ========================================================================== */

:root {
    --saffron: #FF671F;
    --saffron-light: #FF8A4C;
    --saffron-deep: #E5540F;
    --green: #046A38;
    --green-light: #0A8A4C;
    --brown: #75471f;
    --brown-deep: #4A2C12;

    --ink: #1f1a17;
    --text: #5c544e;
    --line: rgba(117, 71, 31, 0.12);
    --cream: #fbf7f2;

    --grad-saffron: linear-gradient(135deg, var(--saffron-light) 0%, var(--saffron) 50%, var(--saffron-deep) 100%);
    --grad-green: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
    --grad-brown: linear-gradient(160deg, var(--brown) 0%, var(--brown-deep) 100%);
    --grad-brand: linear-gradient(90deg, var(--saffron) 0%, var(--brown) 55%, var(--green) 100%);

    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(31, 26, 23, 0.06);
    --shadow: 0 12px 32px -12px rgba(31, 26, 23, 0.18);
    --shadow-lg: 0 24px 48px -16px rgba(117, 71, 31, 0.28);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

/* keep jump-link targets clear of the fixed header */
section[id],
footer[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
    color: var(--ink);
}

h1, h2,
.heading-section h2,
.slider-text h1 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

h3, h4, h5,
.navbar-brand, .navbar-in, .navbar-law,
.slider-text .subheading {
    font-family: var(--font-body);
}

::selection {
    background: var(--saffron);
    color: #fff;
}

/* style.css removes all focus outlines; restore them for keyboard users only */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--saffron) !important;
    outline-offset: 3px;
    border-radius: 6px;
}

img {
    max-width: 100%;
}

/* ---------- Loader ---------- */

#ftco-loader .path {
    stroke: var(--saffron);
}

#ftco-loader .path-bg {
    stroke: rgba(117, 71, 31, 0.12);
}

/* ---------- Scroll progress + back to top (injected by modern.js) ---------- */

.oli-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--grad-brand);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1100;
    pointer-events: none;
}

.oli-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--grad-saffron);
    color: #fff;
    font-size: 20px;
    line-height: 46px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s, box-shadow .3s;
    z-index: 998;
}

.oli-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.oli-to-top:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* phones already have the sticky action bar; keep the screen clear */
@media (max-width: 767.98px) {
    .oli-to-top {
        display: none;
    }

    /* justified text leaves wide gaps on narrow screens */
    p[align="justify"],
    ul[align="justify"] {
        text-align: left;
    }
}

/* ---------- Navbar ---------- */

.ftco-navbar-light {
    z-index: 1000;
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
}

@media (min-width: 992px) {
    .ftco-navbar-light {
        top: 12px;
        transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
    }

    .navbar .logo,
    .navbar .navbar-in img {
        max-width: 260px;
        transition: max-width .35s var(--ease);
    }

    /* Animated underline on the text links */
    .ftco-navbar-light .navbar-nav > .nav-item:not(.cta) > .nav-link::after {
        content: "";
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: .55rem;
        height: 2px;
        border-radius: 2px;
        background: var(--grad-saffron);
        transform: scaleX(0);
        transform-origin: right center;
        transition: transform .4s var(--ease);
    }

    .ftco-navbar-light .navbar-nav > .nav-item:not(.cta) > .nav-link:hover::after,
    .ftco-navbar-light .navbar-nav > .nav-item.active:not(.cta) > .nav-link::after {
        transform: scaleX(1);
        transform-origin: left center;
    }

    .ftco-navbar-light .navbar-nav > .nav-item.cta {
        margin-left: .5rem;
    }

    .ftco-navbar-light.scrolled {
        background: rgba(255, 255, 255, 0.86) !important;
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        box-shadow: 0 8px 30px -12px rgba(31, 26, 23, 0.25);
    }

    .ftco-navbar-light.scrolled .logo,
    .ftco-navbar-light.scrolled .navbar-in img {
        max-width: 220px;
    }

    .ftco-navbar-light.scrolled .nav-link {
        color: var(--ink) !important;
    }
}

/* CTA pills */
.ftco-navbar-light .navbar-nav > .nav-item.cta > a,
.ftco-navbar-light.scrolled .nav-item.cta > a {
    background: var(--grad-saffron) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: .55rem 1.25rem !important;
    font-weight: 600;
    box-shadow: 0 8px 20px -8px rgba(255, 103, 31, 0.6);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}

.ftco-navbar-light .navbar-nav > .nav-item.cta.whatsapp > a,
.ftco-navbar-light.scrolled .nav-item.cta.whatsapp > a {
    background: var(--grad-green) !important;
    box-shadow: 0 8px 20px -8px rgba(4, 106, 56, 0.6);
}

.ftco-navbar-light .navbar-nav > .nav-item.cta > a:hover,
.ftco-navbar-light.scrolled .nav-item.cta > a:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    border: 0 !important;
}

/* Mobile / tablet menu */
@media (max-width: 991.98px) {
    .ftco-navbar-light {
        box-shadow: 0 4px 20px -10px rgba(31, 26, 23, 0.2);
    }

    /* keep logo + menu button on one row on narrow phones */
    .ftco-navbar-light .navbar-in {
        flex: 0 1 240px;
        min-width: 0;
    }

    .ftco-navbar-light .navbar-in .logo {
        width: 100%;
    }

    .ftco-navbar-light .navbar-toggler {
        font-size: 22px;
        color: var(--brown) !important;
    }

    .ftco-navbar-light .navbar-collapse.show,
    .ftco-navbar-light .navbar-collapse.collapsing {
        border-top: 1px solid var(--line);
        margin-top: .5rem;
    }

    .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
        color: var(--ink) !important;
        padding-top: .75rem !important;
        padding-bottom: .75rem !important;
        border-bottom: 1px solid var(--line);
    }

    .ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
        color: var(--saffron) !important;
    }
}

/* ---------- Hero ---------- */

.hero-wrap {
    overflow: hidden;
    background-color: var(--brown-deep);
}

/* modern.js moves the inline banner into this layer so it can zoom */
.hero-wrap .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.12);
    animation: oli-kenburns 14s var(--ease) forwards;
    will-change: transform;
}

/* Desktop: start the photo below the navbar so the statue's head isn't hidden under it */
@media (min-width: 992px) {
    .hero-wrap {
        background: var(--grad-brown);
    }

    .hero-wrap .hero-bg {
        top: 84px;
        background-position: center top;
        transform-origin: 74% 0%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
        mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
    }
}

/* Phones / portrait tablets: fit the photo to the hero's height and centre on the statue so it shows in full */
@media (max-width: 991.98px) and (orientation: portrait) {
    .hero-wrap .hero-bg {
        background-size: auto 96%;
        background-position: 86% 100%;
        transform-origin: 86% 100%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 8%);
    }

    .hero-wrap .slider-text {
        align-items: flex-end !important;
        padding-bottom: 2.5rem;
    }
}

.hero-wrap .overlay {
    opacity: 1;
    background:
        linear-gradient(100deg, rgba(42, 24, 9, 0.92) 0%, rgba(74, 44, 18, 0.72) 42%, rgba(74, 44, 18, 0.2) 75%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(0deg, rgba(31, 18, 8, 0.55) 0%, rgba(31, 18, 8, 0) 35%);
}

.hero-wrap .container {
    position: relative;
    z-index: 2;
}

/* Let the hero content run its own staggered entrance */
.hero-wrap .ftco-animate {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

.slider-text .col-md-6 {
    position: relative;
}

/* room for "Guarding Your Freedom." on one line beside the statue */
@media (min-width: 1200px) {
    .slider-text .col-md-6 {
        flex: 0 0 690px;
        max-width: 690px;
    }
}

.slider-text .col-md-6::before {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
    margin-bottom: 1.5rem;
}

.slider-text h1 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* modern.js reserves the longest word's width so the line never reflows while typing */
.slider-text h1 .txt-rotate {
    display: inline-block;
    white-space: nowrap;
    text-align: left;
}

.slider-text h1 .txt-rotate > .wrap {
    background: linear-gradient(120deg, #FFB088 0%, var(--saffron-light) 35%, var(--saffron) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    padding-right: 2px;
}

.slider-text .txt-rotate > .wrap:after {
    width: 3px;
    right: -8px;
    border-radius: 2px;
    background: var(--saffron);
    animation: oli-caret 1s steps(1) infinite;
}

.slider-text p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    max-width: 34rem;
}

/* Staggered entrance */
.slider-text .col-md-6::before,
.slider-text h1,
.slider-text p {
    animation: oli-rise .9s var(--ease) both;
}

.slider-text .col-md-6::before {
    animation-name: oli-grow;
    animation-delay: .15s;
    transform-origin: left center;
}

.slider-text h1 { animation-delay: .25s; }
.slider-text p.mb-4 { animation-delay: .45s; }
.slider-text p:not(.mb-4) { animation-delay: .6s; }

/* Primary button (hero) */
.btn.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--grad-saffron) !important;
    border: 0 !important;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: .85rem 1.9rem !important;
    box-shadow: 0 14px 30px -12px rgba(255, 103, 31, 0.75);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.btn.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    z-index: -1;
    transition: left .7s var(--ease);
}

.btn.btn-primary span {
    display: inline-block;
    margin-left: .35rem;
    transition: transform .3s var(--ease);
}

.btn.btn-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(255, 103, 31, 0.85);
}

.btn.btn-primary:hover::before {
    left: 125%;
}

.btn.btn-primary:hover span {
    transform: translateX(4px);
}

/* Scroll cue (injected) */
.oli-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    opacity: 0;
    animation: oli-fade .8s 1.2s var(--ease) forwards;
}

.oli-scroll-cue::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: oli-wheel 1.8s ease-in-out infinite;
}

.oli-scroll-cue:hover {
    border-color: #fff;
}

@media (max-width: 767.98px) {
    .oli-scroll-cue {
        display: none;
    }

    /* keep the statue clear up top, darken only behind the text */
    .hero-wrap .overlay {
        background: linear-gradient(180deg, rgba(42, 24, 9, 0.15) 0%, rgba(42, 24, 9, 0.35) 35%, rgba(42, 24, 9, 0.88) 62%, rgba(42, 24, 9, 0.96) 100%);
    }
}

/* ---------- Section headings ---------- */

.heading-section .subheading {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--saffron);
    margin-bottom: .75rem;
}

.heading-section .subheading::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-saffron);
}

.heading-section.text-center .subheading::after {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-saffron);
}

.heading-section h2 {
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

/* Smoother easing for the template's .ftco-animate reveals */
.ftco-animated {
    animation-duration: .9s !important;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ---------- About ---------- */

#about {
    padding-top: 5rem !important;
}

#about .img-video {
    position: relative;
    width: 100%;
    padding: 0 18px 18px 0;
}

/* gradient frame offset behind the portrait */
#about .img-video::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    background: var(--grad-saffron);
    opacity: .9;
}

#about .img-video::after {
    content: "";
    position: absolute;
    top: -14px;
    left: -14px;
    width: 96px;
    height: 96px;
    background-image: radial-gradient(rgba(117, 71, 31, 0.35) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    z-index: 0;
}

#about .content {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

#about .content-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

/* Name caption: always readable, lifts on hover */
#about .content .content-overlay {
    opacity: 1;
    background: linear-gradient(0deg, rgba(42, 24, 9, 0.85) 0%, rgba(42, 24, 9, 0.35) 28%, rgba(42, 24, 9, 0) 50%);
}

#about .content-details {
    opacity: 1;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    text-align: left;
    padding: 1.5rem 1.75rem;
    transition: transform .5s var(--ease);
}

#about .content:hover .content-details {
    top: auto;
    left: 0;
    transform: translateY(-6px);
}

#about .content-details h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: .15rem;
}

#about .content-details p {
    font-size: .9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

#about .content-details p::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--saffron);
}

@media (hover: hover) {
    #about .content:hover .content-image {
        transform: scale(1.04);
    }
}

/* Tabs as a segmented control */
.tabulation-2 .nav-pills {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
    gap: 4px;
}

.tabulation-2 .nav-pills .nav-item {
    padding: 0 !important;
    margin: 0 !important;
}

.tabulation-2 .nav-pills .nav-item .nav-link {
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    padding: .6rem .75rem !important;
    transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}

.tabulation-2 .nav-pills .nav-item .nav-link:hover {
    color: var(--saffron);
}

.tabulation-2 .nav-pills .nav-item .nav-link.active {
    background: var(--grad-saffron);
    color: #fff;
    border: 0;
    box-shadow: 0 8px 18px -8px rgba(255, 103, 31, 0.7);
}

.tabulation-2 .tab-content {
    background: #fff !important;
    border: 1px solid var(--line);
    border-left: 3px solid var(--saffron);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-top: 1rem !important;
    box-shadow: var(--shadow-sm);
}

.tabulation-2 .tab-content p {
    margin-bottom: 0;
    color: var(--text);
}

.tabulation-2 .tab-pane.active {
    animation: oli-rise .5s var(--ease) both;
}

@media (min-width: 768px) {
    .mob-margin {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    #about {
        padding-top: 3rem !important;
    }

    #about .img-video {
        height: auto;
    }

    .mob-margin {
        margin-top: 2.5rem;
    }

    .tabulation-2 .nav-pills {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .tabulation-2 .nav-pills .nav-item .nav-link {
        margin: 0 !important;
    }
}

/* ---------- Services ---------- */

#services {
    background:
        radial-gradient(60rem 30rem at 100% 0%, rgba(255, 103, 31, 0.06), transparent 60%),
        radial-gradient(50rem 30rem at 0% 100%, rgba(4, 106, 56, 0.05), transparent 60%),
        var(--cream);
}

.services-wrap > .row {
    justify-content: center;
}

.services-wrap:after {
    height: 160px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--saffron) 0%, var(--saffron-deep) 40%, var(--brown) 100%);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767.98px) {
    .services-wrap:after {
        height: 120px;
    }
}

.services {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}

.services .icon {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--cream);
    margin-bottom: 1.25rem;
}

.services .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--ease);
}

.services .icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 103, 31, 0) 50%, rgba(117, 71, 31, 0.25) 100%);
    opacity: 0;
    transition: opacity .5s var(--ease);
}

.services .text {
    padding: 0 .5rem;
}

.services .text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .5rem;
}

.services .text p {
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* Enquire button: always visible (hover-only hid it on touch devices) */
.services .btn-custom {
    position: static;
    opacity: 1;
    align-self: center;
    margin-top: auto;
    padding: .55rem 1.35rem;
    border: 1.5px solid var(--saffron);
    border-radius: 999px;
    background: transparent;
    color: var(--saffron);
    font-size: 14px;
    font-weight: 600;
    transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.services .btn-custom span {
    color: inherit;
    font-size: 20px;
    line-height: 1;
    transition: transform .35s var(--ease);
}

.services:hover .btn-custom {
    bottom: auto;
}

@media (hover: hover) {
    .services:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(255, 103, 31, 0.3);
    }

    .services:hover .icon img {
        transform: scale(1.07);
    }

    .services:hover .icon::after {
        opacity: 1;
    }

    .services:hover .btn-custom {
        background: var(--grad-saffron);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 10px 22px -10px rgba(255, 103, 31, 0.8);
    }

    .services:hover .btn-custom span {
        transform: translateX(4px);
    }
}

@media (max-width: 991.98px) {
    .services {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .services-wrap .col-md-4 {
        margin-top: 1.5rem !important;
    }

    .services-wrap .col-md-4:first-child {
        margin-top: 0 !important;
    }
}

/* ---------- Testimonials ---------- */

.testimony-section {
    background:
        radial-gradient(40rem 24rem at 10% 10%, rgba(255, 103, 31, 0.07), transparent 60%),
        radial-gradient(40rem 24rem at 90% 90%, rgba(4, 106, 56, 0.06), transparent 60%),
        #fff;
}

.testimony-section .owl-stage-outer {
    padding: 1.25rem 0 2rem;
}

.testimony-section .owl-stage {
    display: flex;
}

.testimony-section .owl-item {
    display: flex;
}

.testimony-section .owl-item > .item {
    display: flex;
    width: 100%;
}

.testimony-wrap {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 1.75rem !important;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.testimony-wrap::before {
    content: "\201C";
    position: absolute;
    top: -.5rem;
    right: 1.25rem;
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    background: var(--grad-saffron);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .18;
    pointer-events: none;
}

.testimony-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
}

.testimony-wrap .text {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimony-wrap .para {
    min-height: 0;
    flex: 1;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    font-style: italic;
}

.testimony-wrap .text > .d-flex {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.testimony-wrap .text > .d-flex > .pl-3 {
    padding-left: 0 !important;
}

.testimony-wrap .name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.testimony-wrap .position {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--saffron);
}

@media (hover: hover) {
    .testimony-wrap:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }
}

.testimony-section .owl-dots .owl-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(117, 71, 31, 0.2);
    transition: width .4s var(--ease), background .4s var(--ease);
}

.testimony-section .owl-dots .owl-dot:after {
    display: none;
}

.testimony-section .owl-dots .owl-dot.active {
    width: 28px;
    background: var(--saffron);
}

/* ---------- Footer ---------- */

.ftco-footer {
    position: relative;
    background: var(--grad-brown);
    overflow: hidden;
}

.ftco-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron) 33%, #fff 33%, #fff 66%, var(--green) 66%, var(--green) 100%);
    opacity: .9;
}

.ftco-footer::after {
    content: "";
    position: absolute;
    right: -10rem;
    top: -10rem;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 103, 31, 0.18), transparent 65%);
    pointer-events: none;
}

.ftco-footer .container {
    position: relative;
    z-index: 1;
}

.ftco-footer .navbar-in img {
    max-width: 260px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.ftco-footer p,
.ftco-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.ftco-footer .ftco-heading-2,
.ftco-footer .ftco-footer-widget h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.75rem;
    padding-bottom: .75rem;
    position: relative;
}

.ftco-footer .ftco-heading-2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-saffron);
}

.block-23 ul li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1rem;
}

.block-23 ul li > a {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.ftco-footer .block-23 ul li .icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.ftco-footer .block-23 ul li .text {
    width: auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.ftco-footer .block-23 ul li a:hover .icon {
    background: var(--grad-saffron);
    color: #fff;
    transform: translateY(-2px);
}

.ftco-footer .block-23 ul li a:hover .text {
    color: #fff;
}

.ftco-footer .opening-hours h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--saffron-light);
    margin-bottom: .5rem;
}

.ftco-footer .opening-hours p span {
    display: block;
    color: rgba(255, 255, 255, 0.88);
}

.ftco-footer .opening-hours br {
    display: none;
}

.ftco-footer .opening-hours iframe {
    border-radius: var(--radius);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.ftco-footer-social li a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s;
}

.ftco-footer-social li a span {
    font-size: 18px;
    color: #fff;
}

.ftco-footer-social li a:hover {
    background: var(--grad-saffron);
    border-color: transparent;
    transform: translateY(-3px);
}

.ftco-footer .row:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.75rem;
}

.ftco-footer .row:last-child p {
    font-size: 14px;
    margin-bottom: .5rem;
}

.ftco-footer .row:last-child a:hover {
    color: var(--saffron-light);
}

@media (max-width: 767.98px) {
    .ftco-footer {
        padding-bottom: 2rem;
    }

    .ftco-footer .ftco-footer-social {
        margin-top: 1.5rem !important;
        float: none !important;
    }
}

/* ---------- Mobile action bar ---------- */

#mobile-footer-widget .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 -8px 24px -12px rgba(31, 26, 23, 0.3);
}

#mobile-footer-widget .row > div {
    min-width: 0;
}

#mobile-footer-widget .row a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    color: #fff;
    background: var(--grad-saffron);
    box-shadow: 0 8px 18px -10px rgba(255, 103, 31, 0.9);
}

#mobile-footer-widget .row > div:first-child a {
    background: var(--grad-green);
    box-shadow: 0 8px 18px -10px rgba(4, 106, 56, 0.9);
    animation: oli-pulse-green 2.6s ease-out infinite;
}

body:has(#mobile-footer-widget) {
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    body:has(#mobile-footer-widget) {
        padding-bottom: 70px;
    }
}

/* ---------- Scroll reveal (classes added by modern.js) ---------- */

.oli-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--oli-delay, 0s);
}

.oli-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Animated backgrounds (home page) ---------- */

/* Hero: floating legal symbols + light specks, drawn by modern.js between the overlay and the text */
.hero-wrap .oli-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: oli-fade 2.4s var(--ease) .6s forwards;
}

/* Services + testimonials: a faint drifting pattern of scales, gavels,
   pillars and section signs over slowly moving brand-colour glows */
.page-home #services,
.page-home .testimony-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.page-home #services::before,
.page-home .testimony-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -240px;
    left: -240px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='rgb(117,71,31)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(20 18) rotate(-8 24 24)'%3E%3Cpath d='M24 12V40M15 41H33M9 12H39M9 12L3 25M9 12L15 25M2 25Q9 33 16 25ZM39 12L33 25M39 12L45 25M32 25Q39 33 46 25Z'/%3E%3Ccircle cx='24' cy='9' r='2.2'/%3E%3C/g%3E%3Cg transform='translate(150 40) rotate(12 24 24)'%3E%3Cpath d='M14 6L28 20L22 26L8 12ZM17 9L11 15M25 17L19 23M25 23L40 38M6 42H26M9 38H23'/%3E%3C/g%3E%3Cg transform='translate(86 128) rotate(0 24 24)'%3E%3Cpath d='M6 16L24 6L42 16ZM9 20H39M13 22V36M21 22V36M27 22V36M35 22V36M8 38H40M6 42H42'/%3E%3C/g%3E%3Cg transform='translate(176 160) rotate(-10 24 24)'%3E%3Cpath d='M24 12Q18 8 7 9V37Q18 36 24 40Q30 36 41 37V9Q30 8 24 12ZM24 12V40'/%3E%3C/g%3E%3Cg transform='translate(14 178) rotate(6 24 24)'%3E%3Cpath d='M14 6L28 20L22 26L8 12ZM17 9L11 15M25 17L19 23M25 23L40 38M6 42H26M9 38H23'/%3E%3C/g%3E%3Ctext x='120' y='38' transform='rotate(-8 120 38)' font-family='Georgia,serif' font-style='italic' font-size='34' fill='rgb(117,71,31)' stroke='none' text-anchor='middle'%3E%C2%A7%3C/text%3E%3Ctext x='54' y='112' transform='rotate(10 54 112)' font-family='Georgia,serif' font-style='italic' font-size='34' fill='rgb(117,71,31)' stroke='none' text-anchor='middle'%3E%C2%A7%3C/text%3E%3Ctext x='210' y='118' transform='rotate(0 210 118)' font-family='Georgia,serif' font-style='italic' font-size='34' fill='rgb(117,71,31)' stroke='none' text-anchor='middle'%3E%C2%A7%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 240px 240px;
    opacity: 0.09;
    animation: oli-pattern 70s linear infinite;
    will-change: transform;
}

.page-home .testimony-section::before {
    animation-direction: reverse;
    animation-duration: 90s;
}

.page-home #services::after,
.page-home .testimony-section::after {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -25%;
    pointer-events: none;
    background:
        radial-gradient(28rem 28rem at 78% 18%, rgba(255, 103, 31, 0.14), transparent 70%),
        radial-gradient(26rem 26rem at 18% 82%, rgba(4, 106, 56, 0.11), transparent 70%);
    animation: oli-drift 30s ease-in-out infinite alternate;
    will-change: transform;
}

.page-home .testimony-section::after {
    animation-duration: 36s;
    animation-direction: alternate-reverse;
}

/* ---------- Legal pages ---------- */

.page-legal .ftco-navbar-light {
    top: 0;
    background: var(--grad-brown) !important;
}

@media (min-width: 992px) {
    .page-legal .ftco-navbar-light.scrolled {
        background: rgba(255, 255, 255, 0.86) !important;
    }
}

@media (max-width: 991.98px) {
    .page-legal .ftco-navbar-light {
        background: #fff !important;
    }
}

.page-legal #services {
    padding-top: 9rem;
}

.page-legal #services .heading-section h2 {
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: .02em;
}

.page-legal #services .heading-section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 3px;
    margin-left: -32px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
}

.page-legal #services .col-lg-12 {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow);
}

.page-legal #services .col-lg-12 p,
.page-legal #services .col-lg-12 li {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
}

.page-legal #services .col-lg-12 h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink);
    margin: 2.25rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--saffron);
    line-height: 1.35;
}

.page-legal #services .col-lg-12 ul {
    padding-left: 1.25rem;
}

.page-legal #services .col-lg-12 li::marker {
    color: var(--saffron);
}

@media (max-width: 991.98px) {
    .page-legal #services {
        padding-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .page-legal #services .col-lg-12 {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius);
    }
}

/* ---------- Keyframes ---------- */

@keyframes oli-kenburns {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}

@keyframes oli-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes oli-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes oli-fade {
    to { opacity: 1; }
}

@keyframes oli-caret {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes oli-wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@keyframes oli-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(4, 106, 56, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(4, 106, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(4, 106, 56, 0); }
}

@keyframes oli-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-6%, 5%, 0) scale(1.08); }
    100% { transform: translate3d(5%, -4%, 0) scale(0.96); }
}

/* moves exactly one pattern tile, so the loop is seamless */
@keyframes oli-pattern {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(240px, 240px, 0); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .hero-wrap .hero-bg {
        transform: none;
    }

    .oli-reveal {
        opacity: 1;
        transform: none;
    }

    .hero-wrap .oli-particles {
        display: none;
    }
}
