/* ============================================================
   Clean Colors — Owusu & Partners
   Brand colour consistency across all inner pages.
   Safe colour rules only — no layout overrides.
   ============================================================ */

/* ── Scroll offset for sticky navbar ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* matches navbar height so anchors don't hide behind it */
}

/* ── CSS custom properties for brand palette ── */
:root {
    --color-primary:    #3D5198;
    --color-gold:       #C9A84C;
    --color-navy-deep:  #0D1A3D;
    --color-navy:       #1A2B6E;
    --color-white:      #ffffff;
    --color-text:       #6c6c6c;
    --color-heading:    #2d2d2d;
}

/* ── Section title accent colour consistency ── */
.section-title span {
    color: var(--color-primary);
}

.section-title h2 span {
    color: var(--color-primary);
}

/* ── Services sidebar links ── */
.side-bar-box.categories-box ul li a {
    color: var(--color-text);
    transition: color .3s, padding-left .3s;
}

.side-bar-box.categories-box ul li a:hover {
    color: var(--color-primary);
    padding-left: 6px;
}

/* ── FAQ image decorative frame ── */
.faq-image {
    position: relative;
    display: inline-block;
    text-align: left;
    padding: 18px 18px 0 0;    /* space for the offset gold border behind */
    margin-bottom: 18px;
}

/* Gold offset border behind the image (bottom-right) */
.faq-image::before {
    content: '';
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    border: 3px solid var(--color-gold);
    border-radius: 4px;
    z-index: 0;
    pointer-events: none;
}

/* Navy corner accent (top-left) */
.faq-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    border-top: 4px solid var(--color-navy-deep);
    border-left: 4px solid var(--color-navy-deep);
    border-radius: 3px 0 0 0;
    z-index: 2;
    pointer-events: none;
}

.faq-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(13, 26, 61, 0.18);
    transition: transform 0.55s ease, box-shadow 0.55s ease;
}

.faq-image:hover img {
    transform: scale(1.04);
    box-shadow: 0 16px 48px rgba(13, 26, 61, 0.28);
}

/* Gold frame brightens on hover */
.faq-image::before {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.faq-image:hover::before {
    border-color: #e0bf6a;
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.25);
}

/* Navy corner accent slides inward slightly on hover */
.faq-image::after {
    transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
}

.faq-image:hover::after {
    width: 72px;
    height: 72px;
    border-color: var(--color-primary);
}

@media (max-width: 767px) {
    .faq-image {
        padding: 12px 12px 0 0;
        margin-top: 30px;
    }
    .faq-image::before {
        bottom: -12px;
        right: -12px;
    }
}

/* ── Service cards — icon scale + rotate on hover ── */
.our-service-card {
    transition: all 0.4s ease;
}

.our-service-card i {
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.our-service-card:hover i {
    transform: scale(1.15) rotate(-8deg);
}

/* ── Attorney card — portrait image zoom ── */
.attorney-card .attorney-image {
    overflow: hidden;
}

.attorney-card .attorney-image img {
    transition: transform 0.55s ease;
}

.attorney-card:hover .attorney-image img {
    transform: scale(1.07);
}

/* ── Fun-fact stats — icon pulse on hover ── */
.signle-fun-fact {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.signle-fun-fact i {
    transition: transform 0.35s ease, color 0.35s ease;
    display: inline-block;
}

.signle-fun-fact:hover i {
    transform: scale(1.2) rotate(8deg);
    color: var(--color-gold);
}

/* ── Footer text links — smooth indent transition ── */
.footer-area .footer-widget .footer-text li a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-area .footer-widget .footer-text li a i {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-area .footer-widget .footer-text li a:hover i {
    color: var(--color-gold);
    transform: translateX(3px);
}

/* ── Footer info-list links — gold on hover ── */
.footer-area .footer-widget .info-list li {
    transition: padding-left 0.3s ease;
}

.footer-area .footer-widget .info-list li:hover {
    padding-left: 4px;
}

.footer-area .footer-widget .info-list li a {
    transition: color 0.3s ease;
}

.footer-area .footer-widget .info-list li a:hover {
    color: var(--color-gold);
}

/* ── Contact cards — lift + gold icon on hover ── */
.contact-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(13, 26, 61, 0.14);
}

.contact-card span {
    transition: background 0.35s ease, transform 0.35s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-card:hover span {
    background: var(--color-gold) !important;
    transform: rotate(8deg) scale(1.08);
}

/* ── Case study / testimonial images — smooth zoom ── */
.testimonials-img {
    overflow: hidden;
}

.testimonials-img img {
    transition: transform 0.55s ease;
}

.testimonials-slider-item:hover .testimonials-img img {
    transform: scale(1.08);
}

/* ── Disable transform hovers on touch devices ── */
@media (hover: none) {
    .faq-image:hover img,
    .attorney-card:hover .attorney-image img,
    .testimonials-slider-item:hover .testimonials-img img { transform: none; }

    .our-service-card:hover i,
    .signle-fun-fact:hover i,
    .contact-card:hover span { transform: none; }

    .contact-card:hover { transform: none; box-shadow: none; }
    .footer-area .footer-widget .info-list li:hover { padding-left: 0; }
}

/* ── Page banner breadcrumb gold accent ── */
.page-banner .page-content ul li a {
    color: var(--color-gold);
}

.page-banner .page-content ul li a:hover {
    color: var(--color-white);
}
