/**
 * AdvocateCentre Theme — Extended CSS
 * Additional animations, components, enhancements, and utilities.
 *
 * @package AdvocateCentre
 * @version 1.0.0
 */

/* =========================================================
   LOADING STATE
   ========================================================= */
.loading * {
    animation-play-state: paused !important;
    transition: none !important;
}

/* =========================================================
   SMOOTH IMAGE TRANSITIONS
   ========================================================= */
img {
    transition: opacity 0.3s ease;
}

img:not(.loaded) {
    opacity: 0.7;
}

img.loaded {
    opacity: 1;
}

/* =========================================================
   2026 INTERNATIONAL EDITORIAL REDESIGN
   ========================================================= */
:root {
    --color-navy: #071824;
    --color-navy-mid: #102c3b;
    --color-gold: #b89058;
    --color-gold-dark: #987343;
    --color-off-white: #f4f1ea;
    --color-text: #17252d;
    --color-text-light: #56636a;
    --color-border: rgba(7, 24, 36, .14);
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Open Sans", Arial, sans-serif;
    /* Override base nav-height to match full header (topbar + main bar) */
    --nav-height: 118px;
    --nav-height-scrolled: 65px;
}

body { background: #fbfaf7; color: var(--color-text); }
.container { width: min(100% - 48px, 1240px); }
.section { padding: clamp(72px, 9vw, 132px) 0; }

/* ── Global heading size reset (overrides style.css large defaults) ── */
h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.2vw, 1.2rem); }

/* Blog post / page entry title */
.entry-title { font-size: clamp(1.5rem, 2.2vw, 2.2rem) !important; line-height: 1.25; }
/* Entry content headings — keep readable for long-form */
.entry-content h2 { font-size: clamp(1.15rem, 1.5vw, 1.5rem); }
.entry-content h3 { font-size: clamp(1rem, 1.2vw, 1.25rem); }

.section-title { font-size: clamp(1.4rem, 2vw, 2.1rem); letter-spacing: -.025em; line-height: 1.15; }
.section-subtitle,
.eyebrow { display: block; color: var(--color-gold-dark); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }
.text-link { color: var(--color-navy); display: inline-flex; gap: 14px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.text-link span { color: var(--color-gold); font-size: 1.15rem; transition: transform .25s ease; }
.text-link:hover span { transform: translateX(5px); }

/* ── UTILITY TOPBAR ── */
.header-topbar {
    height: 38px;
    background: #020c14;
    border-bottom: 1px solid rgba(255,255,255,.055);
    overflow: hidden;
    transition: height .32s ease, opacity .32s ease;
    flex-shrink: 0;
}
.site-header.scrolled .header-topbar { height: 0; opacity: 0; pointer-events: none; }

.header-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 38px; gap: 16px;
}
.topbar-contact { display: flex; align-items: center; gap: 16px; }
.topbar-item {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.45); font-size: .67rem; font-weight: 500;
    letter-spacing: .03em; text-decoration: none; white-space: nowrap;
    transition: color .2s;
}
a.topbar-item:hover { color: #d8b886; }
.topbar-item svg { color: var(--color-gold); flex-shrink: 0; }
.topbar-divider { display: inline-block; width: 1px; height: 12px; background: rgba(255,255,255,.12); flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-social { display: flex; gap: 5px; }
.topbar-social-link {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.1); border-radius: 50%;
    color: rgba(255,255,255,.36); transition: border-color .2s, color .2s, background .2s;
    text-decoration: none;
}
.topbar-social-link:hover { border-color: var(--color-gold); color: #d8b886; background: rgba(184,144,88,.1); }

/* ── MAIN HEADER BAR ── */
.site-header {
    height: 118px; /* 38px topbar + 80px nav */
    display: flex; flex-direction: column;
    border-bottom: none;
    transition: height .32s ease, background .32s ease, box-shadow .32s ease;
}
.site-header.header-solid {
    background: rgba(7,24,36,.98);
    box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.site-header.scrolled {
    height: 65px;
    background: rgba(4,14,22,.98);
    box-shadow: 0 2px 32px rgba(0,0,0,.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.header-inner {
    flex: 1 0 auto;
    height: 80px;
    max-width: 1440px;
    border-top: 1px solid rgba(255,255,255,.07);
    transition: height .32s ease;
}
.site-header.scrolled .header-inner { height: 65px; border-top: none; }

/* ── Logo ── */
.site-logo { gap: 14px; }
.logo-mark {
    width: 46px; height: 52px;
    background: var(--color-gold);          /* Gold filled — strong brand mark */
    border: none;
    color: #071824;                          /* Navy text on gold */
    font-size: 1.05rem; font-weight: 800;
    letter-spacing: -.02em;
    border-radius: 0;
    position: relative;
    transition: background .22s ease;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.logo-mark::before {
    content: '';
    position: absolute; bottom: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent rgba(7,24,36,.25) transparent;
    pointer-events: none;
}
.site-logo:hover .logo-mark { background: #c9a065; }

.logo-text { border-left: 1px solid rgba(255,255,255,.15); padding-left: 14px; }
.logo-name { letter-spacing: -.02em; font-size: 1.22rem; }
.brand-mark { color: #d8b886; font-family: var(--font-body); font-size: .42em; margin-left: 3px; top: -.85em; }
.logo-tagline { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-gold); font-size: .58rem; letter-spacing: .22em; }

/* Override style.css justify-content:space-between for precise control */
.header-inner { justify-content: flex-start; }
.primary-nav  { flex: 1; display: flex; justify-content: center; }

/* ── Header Actions (CTA only — phone is in topbar) ── */
.header-actions { display: flex; align-items: center; gap: 0; margin-left: auto; }

/* Phone button — hidden by default, shown only where needed */
.header-phone-btn { display: none; }

/* Premium outlined CTA button */
.btn-cta-header {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 26px;
    background: transparent;
    border: 1.5px solid rgba(184,144,88,.7);
    color: #d8b886;
    font-size: .66rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}
/* Animated fill from left */
.btn-cta-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    transform: translateX(-101%);
    transition: transform .28s ease;
    z-index: 0;
}
.btn-cta-header > * { position: relative; z-index: 1; }
.btn-cta-header::after {
    content: '\2192';
    font-size: .9em;
    position: relative; z-index: 1;
    transition: transform .25s ease;
}
.btn-cta-header:hover::before { transform: translateX(0); }
.btn-cta-header:hover { color: #fff; border-color: var(--color-gold); }
.btn-cta-header:hover::after { transform: translateX(5px); }

/* ── Gold accent stripe at bottom of header ── */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(184,144,88,.5) 20%, rgba(184,144,88,.8) 50%, rgba(184,144,88,.5) 80%, transparent 100%);
    pointer-events: none;
}

/* ── Desktop Navigation ── */
.primary-nav > ul { gap: 0; display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
/* li must be static so fixed sub-menu is positioned relative to viewport, not the li */
.primary-nav > ul > li { position: static; }
.primary-nav > ul > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 0 16px; height: 80px;
    font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.78); text-decoration: none;
    transition: color .22s ease; white-space: nowrap;
}
.site-header.scrolled .primary-nav > ul > li > a { height: 65px; }
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a { color: #d8b886; text-shadow: 0 0 18px rgba(184,144,88,.3); }

/* Dropdown chevron — on the link's span child, not ::after, to avoid conflict */
.primary-nav .menu-item-has-children > a > .nav-arrow,
.primary-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 5px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.primary-nav .menu-item-has-children:hover > a::after,
.primary-nav .menu-item-has-children:focus-within > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* ── MEGA DROPDOWN PANEL ──
   position:fixed keeps the panel fully in-viewport on every screen size.
   Centered with left:max(16px, calc(50vw - 420px)) so it never clips.       */
.primary-nav .sub-menu {
    position: fixed;
    top: 118px;   /* 38px topbar + 80px nav bar */
    left: max(16px, calc(50vw - 420px));
    width: min(840px, calc(100vw - 32px));
    max-height: 72vh;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 2px;
    background: rgba(4,16,26,.97);
    border-top: 3px solid var(--color-gold);
    border-left: 1px solid rgba(184,144,88,.22);
    border-right: 1px solid rgba(184,144,88,.22);
    border-bottom: 1px solid rgba(184,144,88,.22);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 28px 64px rgba(0,0,0,.55);
    z-index: 9999;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    list-style: none; margin: 0;
}
/* Adjust top when header shrinks on scroll (topbar hidden + nav compressed) */
.site-header.scrolled .primary-nav .sub-menu { top: 65px; }

/* Show on hover or keyboard focus */
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu,
.primary-nav .menu-item-has-children.menu-open > .sub-menu,
.primary-nav .menu-item-has-children > a[aria-expanded="true"] + .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.primary-nav .sub-menu li { border: 0; padding: 0; }
.primary-nav .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.94);
    padding: 13px 16px;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .04em;
    border-radius: 4px;
    text-decoration: none;
    border-left: 2px solid transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,.38);
    transition: color .15s ease, background .15s ease, border-color .15s ease, padding-left .15s ease;
}
.primary-nav .sub-menu li a::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #e0ba80;
    opacity: 1;
    flex-shrink: 0;
    transition: opacity .15s;
}
.primary-nav .sub-menu li a:hover {
    color: #fff;
    background: rgba(184,144,88,.12);
    border-left-color: var(--color-gold);
    padding-left: 20px;
}
.primary-nav .sub-menu li a:hover::before { opacity: 1; }
.primary-nav .sub-menu li a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; color: #fff; }
.primary-nav .sub-menu .current-menu-item > a { color: #d8b886; border-left-color: var(--color-gold); background: rgba(184,144,88,.08); }

/* ── MOBILE NAVIGATION ── */
.mobile-nav { display: none; transform: none; transition: none; }
.mobile-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 78px; left: 0; right: 0; bottom: 0;
    background: #040f1a;
    overflow-y: auto;
    z-index: 9998;
    padding: 0 0 40px;
    animation: slideDown .25s ease;
    border-top: 3px solid var(--color-gold);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav > ul { list-style: none; margin: 0; padding: 0 24px; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-nav > ul > li > a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0;
    color: rgba(255,255,255,.85); font-size: .86rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}
.mobile-nav > ul > li > a:hover { color: #d8b886; padding-left: 6px; }

/* Mobile dropdown toggle button */
.submenu-toggle {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.6);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 3px;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.submenu-toggle:hover { background: rgba(255,255,255,.07); color: #d8b886; }
.submenu-toggle span,
.submenu-toggle span::after { content: ""; display: block; width: 14px; height: 1px; background: currentColor; transition: transform .25s ease; }
.submenu-toggle span::after { transform: rotate(90deg); }
.submenu-toggle[aria-expanded="true"] span::after { transform: rotate(0); }

/* Mobile sub-menu hidden by default */
.mobile-nav .sub-menu {
    list-style: none; margin: 0;
    padding: 0 0 14px 0;
    display: none;
}
.mobile-nav .submenu-open > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 18px; }
.mobile-nav .sub-menu li { border: 0; }
.mobile-nav .sub-menu a {
    display: block; padding: 10px 8px;
    color: rgba(255,255,255,.9); font-size: .86rem; font-weight: 600;
    text-decoration: none; border-radius: 3px;
    transition: color .15s, background .15s;
}
.mobile-nav .sub-menu a:hover { color: #d8b886; background: rgba(255,255,255,.05); }
.mobile-nav .sub-menu .current-menu-item > a { color: #d8b886; }
.mobile-consultation { width: 100%; justify-content: center; margin-top: 28px; display: flex; }

/* Generated page-title imagery */
.page-hero {
    --page-title-image: var(--title-firm-image);
    min-height: 470px;
    padding: 170px 0 90px;
    display: flex;
    align-items: center;
    background-color: var(--color-navy);
    background-image: linear-gradient(90deg, rgba(4,17,26,.96) 0%, rgba(4,17,26,.82) 48%, rgba(4,17,26,.28) 100%), var(--page-title-image) !important;
    background-size: cover !important;
    background-position: center !important;
}
.blog .page-hero,
.single-post .page-hero,
.archive .page-hero,
.search-results .page-hero,
.page-contact .page-hero { --page-title-image: var(--title-insights-image); }
.page-hero .page-hero-content { position: relative; z-index: 2; max-width: 850px; margin: 0; text-align: left; }
.page-hero .breadcrumbs { justify-content: flex-start; }
.page-hero .section-title { color: #fff; font-size: clamp(1.65rem, 2.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.025em; }
.page-hero .section-desc { color: rgba(255,255,255,.68); max-width: 700px; margin-left: 0 !important; }

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

/* Generated content imagery replacing former icon placeholders */
.about-office-image {
    position: relative;
    background: var(--color-navy);
    box-shadow: 0 24px 55px rgba(4,16,26,.18);
}
.about-office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}
.about-office-image:hover img { transform: scale(1.025); }
.about-office-image figcaption,
.contact-location-image figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 15px 18px;
    background: rgba(4,16,26,.84);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.contact-location-image {
    position: relative;
    height: 290px;
    margin-top: 24px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-navy);
}
.contact-location-image img { width: 100%; height: 100%; object-fit: cover; }
.contact-location-image figcaption { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.contact-location-image figcaption a { color: #e0ba80; white-space: nowrap; }
.contact-location-image figcaption a:hover { color: #fff; }

/* ── STATS STRIP ── */
.stats-strip { background: var(--color-navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { padding: 40px 30px; border-right: 1px solid rgba(255,255,255,.1); text-align: center; }
.stat-item:last-child { border-right: 0; }
.stat-number { display: block; font-family: var(--font-heading); font-size: clamp(2.8rem,5vw,4.5rem); font-weight: 700; color: #d5b37e; line-height: 1; letter-spacing: -.04em; }
.stat-plus { font-size: .6em; vertical-align: super; color: var(--color-gold); }
.stat-label { display: block; color: rgba(255,255,255,.55); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: 10px; }

/* ── TESTIMONIALS ── */
.testimonials-section { position: relative; isolation: isolate; overflow: hidden; background-color: var(--color-navy); background-image: linear-gradient(112deg, rgba(3,15,24,.97) 0%, rgba(4,19,30,.91) 48%, rgba(5,24,37,.76) 100%), var(--testimonials-background-image); background-size: cover; background-position: center 48%; }
.testimonials-section::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 86% 18%, rgba(66,111,142,.2), transparent 34%), linear-gradient(180deg, rgba(3,15,24,.08), rgba(3,15,24,.48)); pointer-events: none; }
.testimonials-section > .container { position: relative; z-index: 1; }
.testimonials-section .section-title { color: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; }
.testimonial-block { background: rgba(4,18,28,.7); border: 1px solid rgba(255,255,255,.13); border-top: 2px solid var(--color-gold); padding: 36px; margin: 0; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 45px rgba(0,0,0,.14); }
.testimonial-block > p { color: rgba(255,255,255,.78); font-size: .94rem; line-height: 1.85; font-style: italic; flex: 1; margin-bottom: 24px; }
.testimonial-block > p::before { content: '\201C'; color: var(--color-gold); font-size: 2.2rem; font-family: var(--font-heading); line-height: 0; vertical-align: -.55rem; margin-right: 4px; }
.testimonial-block footer { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.testimonial-block cite { font-style: normal; display: flex; flex-direction: column; gap: 3px; color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 600; }
.testimonial-block cite span { color: var(--color-gold); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

.hero-redesign { min-height: min(880px, 100vh); padding: 168px 0 70px; display: flex; align-items: center; background-color: #071824; background-image: linear-gradient(90deg, rgba(3,15,24,.96) 0%, rgba(3,15,24,.84) 37%, rgba(3,15,24,.23) 70%, rgba(3,15,24,.13) 100%), var(--hero-image); background-size: cover; background-position: center; }
.hero-redesign::before { height: 180px; background: linear-gradient(transparent, rgba(3,15,24,.45)); }
.hero-layout { display: block; position: relative; z-index: 2; }
.hero-copy { max-width: 680px; text-align: left; }
.hero-copy h1 { color: #fff; font-size: clamp(2.2rem, 3.8vw, 4rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 30px; }
.hero-copy h1 em { color: #d5b37e; font-weight: 400; }
.hero-copy > p { max-width: 610px; color: rgba(255,255,255,.72); font-size: 1.08rem; line-height: 1.8; }
.hero-copy .hero-actions { justify-content: flex-start; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-proof span { color: rgba(255,255,255,.65); font-size: .69rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero-proof span::before { content: "\2022"; color: #d5b37e; margin-right: 9px; }
.btn { border-radius: 1px; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.btn-primary { background: #b89058; border-color: #b89058; }
.btn-primary:hover { background: #c7a36c; border-color: #c7a36c; }

.credibility-strip { background: #fff; border-bottom: 1px solid var(--color-border); }
.credibility-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.credibility-grid p { margin: 0; padding: 28px 34px; border-right: 1px solid var(--color-border); }
.credibility-grid p:first-child { padding-left: 0; }
.credibility-grid p:last-child { border-right: 0; }
.credibility-grid strong { display: block; color: var(--color-navy); font-family: var(--font-heading); font-size: 1.08rem; margin-bottom: 5px; }
.credibility-grid span { color: var(--color-text-light); font-size: .78rem; }

.intro-editorial { overflow: hidden; }
.editorial-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(50px,8vw,120px); align-items: start; }
.editorial-intro .section-title { max-width: 690px; margin-bottom: 0; }
.editorial-visual { position: relative; margin: clamp(34px,5vw,66px) 28px 0 0; isolation: isolate; }
.editorial-visual::before { content: ''; position: absolute; z-index: -1; inset: 24px -24px -24px 24px; border: 1px solid rgba(184,144,88,.65); }
.editorial-visual::after { content: ''; position: absolute; z-index: 2; width: 72px; height: 72px; top: -14px; right: -14px; border-top: 2px solid var(--color-gold); border-right: 2px solid var(--color-gold); pointer-events: none; }
.editorial-visual-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-navy); }
.editorial-visual-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(4,17,26,.64) 100%); pointer-events: none; }
.editorial-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.editorial-visual:hover img { transform: scale(1.025); }
.editorial-visual figcaption { position: absolute; z-index: 3; left: clamp(22px,4vw,42px); right: clamp(22px,4vw,42px); bottom: clamp(22px,4vw,38px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; color: #fff; }
.editorial-visual figcaption span { color: #d5b37e; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.editorial-visual figcaption strong { max-width: 270px; font-family: var(--font-heading); font-size: clamp(1rem,1.45vw,1.28rem); font-weight: 400; line-height: 1.35; text-align: right; }
.editorial-copy { align-self: center; border-left: 1px solid var(--color-gold); padding-left: clamp(28px,4vw,60px); }
.editorial-copy p { color: var(--color-text-light); font-size: 1.08rem; line-height: 1.9; margin-bottom: 28px; }

.home-seo-overview { background: #f5f2eb; border-top: 1px solid var(--color-border); }
.home-seo-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(50px,8vw,120px); align-items: start; }
.home-seo-grid .section-title { max-width: 560px; }
.home-seo-copy { display: grid; gap: 20px; padding-top: 8px; }
.home-seo-copy p { color: var(--color-text-light); font-size: 1rem; line-height: 1.9; margin: 0; }

.practices-redesign { background: var(--color-navy); }
.practices-redesign .section-title { color: #fff; }
.practices-redesign .text-link { color: #fff; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.capability-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.capability-card { min-height: 320px; padding: 34px; position: relative; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); transition: background .3s ease; }
.capability-card:hover { background: rgba(184,144,88,.1); }
.capability-number { color: #d5b37e; font-size: .67rem; letter-spacing: .16em; }
.capability-card h3 { font-size: 1.55rem; margin: 48px 0 18px; line-height: 1.2; }
.capability-card h3 a { color: #fff; }
.capability-card p { color: rgba(255,255,255,.58); font-size: .86rem; line-height: 1.75; }
.card-arrow { position: absolute; right: 30px; bottom: 24px; color: #d5b37e; font-size: 1.35rem; }

.home-faq-section { background: #fff; }
.home-faq-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(50px,8vw,120px); align-items: start; }
.home-faq-heading { position: sticky; top: 140px; }
.home-faq-heading > p { max-width: 520px; color: var(--color-text-light); line-height: 1.8; }
.home-faq-list { border-top: 1px solid var(--color-border); }
.home-faq-list details { border-bottom: 1px solid var(--color-border); }
.home-faq-list summary { position: relative; padding: 28px 52px 28px 0; color: var(--color-navy); font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.35; cursor: pointer; list-style: none; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { content: '+'; position: absolute; top: 26px; right: 8px; color: var(--color-gold-dark); font-family: var(--font-body); font-size: 1.4rem; font-weight: 400; transition: transform .2s ease; }
.home-faq-list details[open] summary::after { transform: rotate(45deg); }
.home-faq-list details p { max-width: 760px; padding: 0 52px 28px 0; color: var(--color-text-light); line-height: 1.8; }

.featured-service { background: #ece7dd; }
.featured-service-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: stretch; }
.featured-image { min-height: 520px; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy { background: #fff; padding: clamp(42px,6vw,90px); display: flex; flex-direction: column; justify-content: center; }
.featured-copy h2 { color: var(--color-navy); font-size: clamp(1.4rem,2vw,2rem); line-height: 1.15; margin-bottom: 24px; }
.featured-copy p { color: var(--color-text-light); line-height: 1.85; margin-bottom: 32px; }
.featured-copy .btn { align-self: flex-start; }

.insight-band { position: relative; isolation: isolate; overflow: hidden; background: #061a27; }
.insight-band::before { content: ''; position: absolute; z-index: -1; width: 560px; height: 560px; right: -260px; top: -340px; border: 1px solid rgba(213,179,126,.16); border-radius: 50%; box-shadow: 0 0 0 80px rgba(213,179,126,.025), 0 0 0 160px rgba(213,179,126,.018); }
.insight-grid { display: grid; grid-template-columns: minmax(260px,.58fr) minmax(0,1.42fr); gap: clamp(54px,7vw,110px); align-items: end; }
.process-intro { max-width: 430px; padding-bottom: 8px; }
.process-intro .section-subtitle { color: #d5b37e; }
.process-intro .section-subtitle::before, .process-intro .section-subtitle::after { background: #d5b37e; }
.insight-grid h2 { max-width: 420px; color: #fff; font-size: clamp(2rem,3.2vw,3.25rem); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 26px; }
.process-intro > p { color: rgba(255,255,255,.62); font-size: .96rem; line-height: 1.8; margin: 0 0 34px; }
.process-link { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(213,179,126,.45); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.process-link span { color: #d5b37e; font-size: 1rem; transition: transform .2s ease; }
.process-link:hover { color: #d5b37e; }
.process-link:hover span { transform: translateX(5px); }
.approach-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.approach-list li { position: relative; min-height: 360px; padding: clamp(28px,3vw,40px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.018); transition: background .3s ease, transform .3s ease; }
.approach-list li::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--color-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.approach-list li:hover { z-index: 1; background: rgba(184,144,88,.09); transform: translateY(-6px); }
.approach-list li:hover::before { transform: scaleX(1); }
.process-step-head { display: flex; align-items: center; justify-content: space-between; color: #d5b37e; }
.process-step-head span:first-child { font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.process-step-head span:last-child { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(213,179,126,.35); border-radius: 50%; font-size: 1rem; }
.approach-list strong { display: block; color: #fff; font-family: var(--font-heading); font-size: clamp(1.45rem,2vw,1.85rem); font-weight: 500; line-height: 1.15; margin-bottom: 18px; }
.approach-list p { color: rgba(255,255,255,.58); font-size: .86rem; line-height: 1.75; margin: 0; }

.closing-cta,
.contact-cta-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    background-color: #0e2b39;
    background-size: cover !important;
    background-position: center !important;
}
.contact-cta-section { background-image: linear-gradient(90deg, rgba(4,17,26,.88), rgba(6,27,39,.68)), var(--cta-background-image) !important; }
.closing-cta { text-align: left; background-color: #24180f; background-image: linear-gradient(90deg, rgba(10,13,15,.97) 0%, rgba(18,16,15,.91) 43%, rgba(35,22,14,.65) 73%, rgba(43,25,13,.36) 100%), var(--closing-cta-background-image) !important; background-position: center !important; }
.closing-cta::before,
.contact-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    width: auto;
    height: auto;
    border-radius: 0;
    pointer-events: none;
}
.contact-cta-section::before { background: radial-gradient(circle at 50% 45%, rgba(5,18,28,.15), rgba(5,18,28,.62) 75%); }
.closing-cta::before { background: linear-gradient(180deg, rgba(11,12,13,.08), rgba(11,12,13,.5)), radial-gradient(circle at 84% 42%, rgba(184,144,88,.16), transparent 33%); }
.contact-cta-section::after { display: none; }
.closing-cta > .container,
.contact-cta-section > .container { position: relative; z-index: 2; }
.closing-cta-inner { max-width: 740px; margin-left: 0; }
.closing-cta h2 { color: #fff; font-size: clamp(1.6rem,2.5vw,2.6rem); line-height: 1.15; letter-spacing: -.025em; }
.closing-cta p { max-width: 680px; color: rgba(255,255,255,.68); margin: 24px 0 34px; }

/* ── FOOTER ── */
.site-footer { background: #04101a; }

/* Recognition bar */
.footer-recognition { background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.07); padding: 18px 0; }
.footer-recognition-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-recognition-label { color: rgba(255,255,255,.35); font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.footer-recognition-list { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
.footer-recognition-list li { display: flex; flex-direction: column; gap: 2px; }
.recog-badge { color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.recog-year { color: var(--color-gold); font-size: .62rem; letter-spacing: .08em; }

/* Footer body */
.footer-body { padding: 72px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1.3fr; gap: clamp(28px,4vw,64px); align-items: start; }

.footer-col-title { font-family: var(--font-body); color: #d5b37e; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }

/* Brand col */
.footer-logo { gap: 12px; margin-bottom: 20px; display: inline-flex; }
.footer-tagline { color: rgba(255,255,255,.48); font-size: .82rem; line-height: 1.75; margin: 0 0 24px; max-width: 280px; }

.footer-contact-quick { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.footer-quick-link { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.6); font-size: .78rem; text-decoration: none; transition: color .2s; }
.footer-quick-link:hover { color: #d5b37e; }
.footer-quick-link svg { color: var(--color-gold); flex-shrink: 0; }

.footer-social { display: flex; gap: 10px; }
.footer-social-link { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); transition: background .2s, border-color .2s, color .2s; }
.footer-social-link:hover { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }

/* Nav links */
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0; }
.footer-links a { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: .8rem; padding: 7px 0; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.05); transition: color .2s, padding-left .2s; }
.footer-links a::before { content: ''; display: inline-block; width: 14px; height: 1px; background: var(--color-gold); opacity: 0; transition: opacity .2s, transform .2s; transform: translateX(-4px); flex-shrink: 0; }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

/* Address */
.footer-address { font-style: normal; margin: 0 0 28px; }
.footer-address-block { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,.55); font-size: .8rem; line-height: 1.6; }
.footer-address-block svg { color: var(--color-gold); flex-shrink: 0; margin-top: 3px; }
.footer-address-block a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-address-block a:hover { color: #d5b37e; }

/* Newsletter */
.footer-newsletter { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.footer-newsletter-title { color: rgba(255,255,255,.85); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 6px; }
.footer-newsletter-desc { color: rgba(255,255,255,.42); font-size: .75rem; line-height: 1.6; margin-bottom: 14px; }
.footer-newsletter-form { display: flex; gap: 0; }
.footer-newsletter-form input { flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-right: 0; color: #fff; font-size: .78rem; padding: 10px 14px; border-radius: 3px 0 0 3px; outline: none; transition: border-color .2s; }
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.3); }
.footer-newsletter-form input:focus { border-color: var(--color-gold); }
.footer-newsletter-form button { background: var(--color-gold); border: none; color: #fff; padding: 10px 14px; border-radius: 0 3px 3px 0; cursor: pointer; display: flex; align-items: center; transition: background .2s; }
.footer-newsletter-form button:hover { background: var(--color-gold-dark); }
.footer-newsletter-msg { font-size: .72rem; margin-top: 8px; min-height: 18px; }

/* Bottom bar */
.footer-bottom-bar { background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.07); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-copy { color: rgba(255,255,255,.32); font-size: .67rem; margin: 0; }
.footer-copy sup { font-size: .55em; }
.footer-legal-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-nav a { color: rgba(255,255,255,.32); font-size: .67rem; text-decoration: none; transition: color .2s; }
.footer-legal-nav a:hover { color: rgba(255,255,255,.7); }
.footer-credentials { color: rgba(255,255,255,.2); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; margin: 0; }

.mobile-consultation { width: 100%; justify-content: center; margin-top: 28px; }

@media (max-width: 1100px) {
    .header-actions .header-cta { display: none !important; }
    /* fixed sub-menu auto-adapts — no override needed at this breakpoint */
    .capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-col--brand { grid-column: 1 / -1; }
    .footer-tagline { max-width: 100%; }
    .footer-contact-quick { flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .stats-inner { grid-template-columns: repeat(2,1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.1); }
    .testimonials-grid { grid-template-columns: repeat(2,1fr); }
    .insight-grid { grid-template-columns: 1fr; align-items: start; }
    .process-intro { max-width: 680px; }
    .approach-list li { min-height: 300px; }
}

@media (max-width: 960px) {
    .primary-nav { display: none; }
    .header-actions .header-cta { display: none !important; }
    .hamburger { display: flex; margin-left: auto; flex: 0 0 40px; }
    /* Mobile nav sits below the full header (topbar + main bar) */
    .mobile-nav.active { top: 118px; }
    .site-header.scrolled + .mobile-nav.active { top: 65px; }
    .mobile-nav > ul > .menu-item-has-children { position: relative; }
    .mobile-nav > ul > .menu-item-has-children > a { padding-right: 54px; }
    .mobile-nav .submenu-toggle { position: absolute; top: 7px; right: 0; }
}

@media (max-width: 768px) {
    .container { width: min(100% - 32px, 1240px); }
    /* Hide topbar on mobile — phone/email accessible via hamburger menu */
    .header-topbar { display: none; }
    .site-header { height: 78px; }
    .site-header .header-inner { height: 78px; flex: unset; border-top: none; }
    .site-header.scrolled { height: 65px; }
    .site-header.scrolled .header-inner { height: 65px; }
    .hero-redesign { min-height: 780px; padding-top: 120px; background-image: linear-gradient(90deg,rgba(3,15,24,.97),rgba(3,15,24,.68)),var(--hero-image); background-position: 62% center; }
    .page-hero { min-height: 390px; padding: 130px 0 65px !important; background-image: linear-gradient(90deg, rgba(4,17,26,.96), rgba(4,17,26,.64)), var(--page-title-image) !important; background-position: 65% center !important; }
    .header-inner { width: 100%; min-width: 0; }
    .hamburger { margin-left: auto; flex: 0 0 40px; }
    .mobile-nav.active { top: 78px; }
    .hero-copy { width: 100%; min-width: 0; overflow: hidden; }
    .hero-copy h1 { font-size: clamp(1.9rem,7vw,2.8rem); overflow-wrap: anywhere; }
    .hero-copy h1 em { display: block; font-size: .88em; white-space: nowrap; }
    .hero-copy .hero-actions { width: 100%; max-width: 100%; }
    .hero-copy .hero-actions .btn { width: 100%; max-width: 100%; justify-content: center; }
    .hero-proof { display: grid; }
    .credibility-grid, .editorial-grid, .home-seo-grid, .home-faq-layout, .featured-service-grid, .insight-grid { grid-template-columns: 1fr; }
    .credibility-grid p { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--color-border); }
    .editorial-visual { max-width: 680px; margin-right: 22px; }
    .editorial-visual::before { inset: 18px -18px -18px 18px; }
    .editorial-copy { align-self: auto; border-left: 0; border-top: 1px solid var(--color-gold); padding: 30px 0 0; }
    .home-faq-heading { position: static; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .capability-grid { grid-template-columns: 1fr; }
    .capability-card { min-height: 280px; }
    .featured-image { min-height: 330px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col--brand { grid-column: 1 / -1; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-credentials { display: none; }
    .footer-recognition-inner { gap: 14px; }
    .footer-recognition-list { gap: 8px 16px; }
    .stats-inner { grid-template-columns: repeat(2,1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item { padding: 28px 20px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .approach-list { grid-template-columns: 1fr; }
    .approach-list li { min-height: 220px; }
    .insight-band::before { width: 380px; height: 380px; right: -240px; top: -230px; }
}

@media (max-width: 480px) {
    .logo-name { font-size: 1.05rem; }
    .logo-tagline { font-size: .52rem; max-width: 175px; }
    .header-phone-btn { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-recognition-label { display: none; }
    .mobile-nav .submenu-open > .sub-menu { grid-template-columns: 1fr; }
    .contact-location-image figcaption { align-items: flex-start; flex-direction: column; gap: 6px; }
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: clamp(2rem,8vw,2.8rem); }
    .testimonial-block { padding: 24px; }
    .editorial-visual { margin-right: 12px; }
    .editorial-visual::before { inset: 12px -12px -12px 12px; }
    .editorial-visual figcaption { align-items: flex-start; flex-direction: column; gap: 8px; }
    .editorial-visual figcaption strong { text-align: left; }
}

/* =========================================================
   SELECTION COLORS
   ========================================================= */
::selection {
    background: var(--color-gold);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-gold);
    color: var(--color-white);
}

/* =========================================================
   SCROLLBAR STYLES (WebKit)
   ========================================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-navy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* =========================================================
   FOCUS VISIBLE (accessibility)
   ========================================================= */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 3px;
}

/* =========================================================
   SKIP LINK
   ========================================================= */
.sr-only:focus,
.sr-only:focus-visible {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: var(--color-gold);
    color: var(--color-white);
    font-weight: 700;
    border-radius: 4px;
    clip: auto;
    white-space: normal;
}

/* =========================================================
   HERO DECORATIVE ELEMENTS
   ========================================================= */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(13,27,62,0.1));
    z-index: 1;
    pointer-events: none;
}

/* Hero floating golden orbs */
@keyframes float-orb {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}

/* =========================================================
   NAVBAR ENHANCEMENTS
   ========================================================= */

/* Gold underline indicator — active and hover — uses ::before to avoid
   conflicting with the dropdown chevron ::after on .menu-item-has-children */
.primary-nav > ul > li > a { position: relative; }

.primary-nav > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; right: 50%;
    height: 2px;
    background: var(--color-gold);
    border-radius: 1px;
    transition: left .25s ease, right .25s ease;
}
/* Slide in underline on hover */
.primary-nav > ul > li > a:hover::before { left: 10px; right: 10px; }
/* Always show underline on active items */
.primary-nav > ul > li.current-menu-item > a::before,
.primary-nav > ul > li.current-menu-ancestor > a::before { left: 10px; right: 10px; }

/* (backdrop-filter already included in the main sub-menu rule above) */

/* =========================================================
   CARD HOVER EFFECTS — ENHANCED
   ========================================================= */
.practice-card {
    position: relative;
    overflow: hidden;
}

.practice-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-gold), var(--color-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.practice-card:hover::after {
    transform: scaleX(1);
}

/* Team card photo zoom */
.team-photo img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* News card image zoom */
.news-image img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* =========================================================
   BUTTON RIPPLE EFFECT
   ========================================================= */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.20);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}

/* =========================================================
   FORM ENHANCEMENTS
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

/* Floating label feel on filled inputs */
input:not(:placeholder-shown),
textarea:not(:placeholder-shown) {
    background-color: #fafafa;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1b3e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    cursor: pointer;
    accent-color: var(--color-gold);
}

/* =========================================================
   TOOLTIP COMPONENT
   ========================================================= */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 100;
    pointer-events: none;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
    z-index: 500;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-gold);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =========================================================
   ALERT / NOTICE STYLES
   ========================================================= */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.alert-success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

/* =========================================================
   BADGE COMPONENT
   ========================================================= */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.badge-gold  { background: var(--color-gold);  color: var(--color-white); }
.badge-navy  { background: var(--color-navy);  color: var(--color-white); }
.badge-green { background: #22c55e; color: white; }
.badge-outline-gold {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
}

/* =========================================================
   TABLE STYLES
   ========================================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-sm);
}

th {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    vertical-align: top;
}

tr:nth-child(even) td {
    background: var(--color-off-white);
}

tr:hover td {
    background: rgba(184,148,46,0.05);
}

/* Responsive table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =========================================================
   PAGINATION STYLES
   ========================================================= */
.pagination {
    margin-top: var(--spacing-3xl);
}

.pagination-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-list a,
.pagination-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: background var(--transition-fast), color var(--transition-fast);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
}

.pagination-list a:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.pagination-list .current span,
.pagination-list span.current {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

/* =========================================================
   TESTIMONIAL CARD ENHANCEMENTS
   ========================================================= */
.testimonial-card {
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* =========================================================
   GLOBAL CARD HOVER GLOW
   ========================================================= */
.global-card:hover {
    box-shadow: 0 0 0 1px rgba(184,148,46,0.4), 0 8px 24px rgba(0,0,0,0.2);
}

/* =========================================================
   SEPARATOR DECORATIONS
   ========================================================= */
.section-divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-4xl) 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}

.section-divider span {
    position: relative;
    background: var(--color-white);
    padding: 0 var(--spacing-lg);
    color: var(--color-gold);
    font-size: 1.5rem;
}

/* =========================================================
   STICKY SIDEBAR
   ========================================================= */
@media (min-width: 769px) {
    .contact-info-block {
        position: sticky;
        top: calc(var(--nav-height) + 20px);
        /* No max-height — content must never be clipped */
    }
}

/* =========================================================
   PRINT-FRIENDLY LOGO
   ========================================================= */
@media print {
    .logo-mark {
        background: #0d1b3e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* =========================================================
   TOUCH-FRIENDLY INTERACTIVE ELEMENTS
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
    .practice-card:hover,
    .team-card:hover,
    .news-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Larger touch targets */
    .primary-nav .sub-menu a {
        padding: 14px 20px;
    }

    .footer-links a {
        padding: 6px 0;
        display: block;
    }
}

/* =========================================================
   HIGH CONTRAST MODE
   ========================================================= */
@media (forced-colors: active) {
    .btn {
        border: 2px solid ButtonText;
    }

    .practice-card {
        border: 1px solid ButtonText;
    }

    .section-subtitle::before,
    .section-subtitle::after {
        background: ButtonText;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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

    .hero-scroll-line {
        animation: none;
    }

    .hero-badge-dot {
        animation: none;
    }
}

/* =========================================================
   DARK MODE SUPPORT (optional, auto-detect)
   ========================================================= */
@media (prefers-color-scheme: dark) {
    /* Currently we maintain the firm's brand colors in dark mode.
       Uncomment and customise the below if you wish to support system dark mode. */

    /*
    :root {
        --color-white:       #1a1a2e;
        --color-off-white:   #16213e;
        --color-text:        #e0e0e0;
        --color-text-light:  #aaaaaa;
        --color-border:      #333355;
    }
    */
}

/* =========================================================
   FOOTER NEWSLETTER FOCUS
   ========================================================= */
.footer-newsletter-form input:focus + button {
    background: var(--color-gold-dark);
}

/* =========================================================
   HERO GRADIENT ANIMATION
   ========================================================= */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================================
   COOKIE BANNER (if needed)
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-navy);
    color: rgba(255,255,255,0.85);
    padding: var(--spacing-lg) var(--spacing-2xl);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner p {
    margin: 0;
    font-size: var(--font-size-sm);
    flex: 1;
}

.cookie-banner a {
    color: var(--color-gold);
}

/* =========================================================
   TEAM PAGE EXTENSIONS
   ========================================================= */
.team-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
}

.team-filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--color-border-dark);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.team-filter-btn:hover,
.team-filter-btn.active {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: var(--color-white);
}

/* =========================================================
   EXTRA UTILITY CLASSES
   ========================================================= */
.text-justify { text-align: justify; }
.text-italic  { font-style: italic; }
.text-caps    { text-transform: uppercase; letter-spacing: 0.08em; }
.text-sm      { font-size: var(--font-size-sm); }
.text-lg      { font-size: var(--font-size-lg); }
.text-xl      { font-size: var(--font-size-xl); }

.weight-400 { font-weight: 400; }
.weight-600 { font-weight: 600; }
.weight-700 { font-weight: 700; }

.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow     { box-shadow: var(--shadow-md); }
.shadow-lg  { box-shadow: var(--shadow-lg); }
.shadow-xl  { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

.border-gold-left { border-left: 4px solid var(--color-gold); }
.border-gold-top  { border-top: 4px solid var(--color-gold); }

.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

.gap-sm  { gap: var(--spacing-sm); }
.gap-md  { gap: var(--spacing-md); }
.gap-lg  { gap: var(--spacing-lg); }
.gap-xl  { gap: var(--spacing-xl); }
.gap-2xl { gap: var(--spacing-2xl); }

.p-md  { padding: var(--spacing-md); }
.p-lg  { padding: var(--spacing-lg); }
.p-xl  { padding: var(--spacing-xl); }
.p-2xl { padding: var(--spacing-2xl); }
.p-3xl { padding: var(--spacing-3xl); }

.mt-md  { margin-top: var(--spacing-md); }
.mt-lg  { margin-top: var(--spacing-lg); }
.mt-xl  { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }
.mt-3xl { margin-top: var(--spacing-3xl); }

.mb-md  { margin-bottom: var(--spacing-md); }
.mb-lg  { margin-bottom: var(--spacing-lg); }
.mb-xl  { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }
.mb-3xl { margin-bottom: var(--spacing-3xl); }

/* Flexbox utilities */
.flex-column      { flex-direction: column; }
.flex-wrap        { flex-wrap: wrap; }
.flex-grow        { flex: 1; }
.flex-shrink-0    { flex-shrink: 0; }
.align-start      { align-items: flex-start; }
.align-end        { align-items: flex-end; }
.align-center     { align-items: center; }
.justify-start    { justify-content: flex-start; }
.justify-end      { justify-content: flex-end; }
.justify-between  { justify-content: space-between; }

/* Grid utilities */
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Responsive show/hide */
.show-mobile  { display: none; }
.hide-mobile  { display: block; }

@media (max-width: 768px) {
    .show-mobile { display: block; }
    .hide-mobile { display: none; }
    .hide-on-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* =========================================================
   LEGAL DOCUMENTS PAGE — DOC SERVICE BLOCKS
   ========================================================= */

/* Two-column document service block (label + content) */
.doc-service-block {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.doc-service-block:last-child {
    border-bottom: none;
}

.doc-service-label h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Three-column overview anchor cards */
.three-col-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
}

.overview-anchor-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-4px);
    text-decoration: none;
}

.overview-anchor-card:hover h3 {
    color: var(--color-gold);
}

/* Estate planning card hover for navy bg sections */
.estate-card:hover {
    background: rgba(255, 255, 255, 0.10) !important;
}

/* Formalisation section service cards */
.formal-card {
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: var(--color-off-white);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.formal-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

/* IP licensing mini-cards hover */
.ip-license-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 3px solid var(--color-gold);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ip-license-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

/* Trademark process steps — gold numbered variant */
.process-step .step-number.gold {
    background: var(--color-gold);
    color: var(--color-navy);
}

/* Checklist items used in document service blocks */
.doc-checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.doc-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text);
}

.doc-checklist li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Two-panel grids (used in Employment Contracts section) */
.doc-two-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.doc-two-panel-box {
    background: var(--color-off-white);
    padding: 1.5rem;
    border-radius: 8px;
}

.doc-two-panel-box h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

/* Info highlight box (gold left border) */
.doc-highlight-box {
    background: var(--color-off-white);
    border-left: 4px solid var(--color-gold);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.doc-highlight-box p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* Dark-card mini-info box (used inside estate planning dark cards) */
.dark-info-box {
    background: var(--color-white);
    border-left: 3px solid var(--color-gold);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.dark-info-box p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* DPA list items */
.dpa-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dpa-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-off-white);
    border-radius: 10px;
}

.dpa-list-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.3rem;
}

.dpa-list-item p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   RESPONSIVE — LEGAL DOCUMENTS & IP EXTENDED SECTIONS
   ========================================================= */
@media (max-width: 1024px) {
    .doc-service-block {
        grid-template-columns: 220px 1fr;
        gap: 2.5rem;
    }

    .three-col-overview {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Stack doc service blocks vertically on mobile */
    .doc-service-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .doc-service-label {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .doc-service-label > div:first-child {
        margin-bottom: 0;
    }

    /* Single column overview on mobile */
    .three-col-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Two-panel becomes single column */
    .doc-two-panel {
        grid-template-columns: 1fr;
    }

    .doc-checklist {
        grid-template-columns: 1fr;
    }

    /* Estate planning cards stack */
    #estate-planning > .container > .section-header + div,
    #formalisation > .container > .section-header + div {
        grid-template-columns: 1fr !important;
    }

    /* Trademark two-col grids */
    #trademarks > .container > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* IP licensing mini-card grid */
    #trademarks > .container > div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    /* DPA section two-column */
    #trademarks .reveal[style*="grid-template-columns:1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .doc-service-label h3 {
        font-size: 1.15rem;
    }

    .overview-anchor-card {
        padding: 1.75rem 1.25rem !important;
    }
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9990;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.2);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.25);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Pulsing ring animation */
.whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #25d366;
    animation: wa-pulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: .8; }
    70%  { transform: scale(1.6); opacity: 0;  }
    100% { transform: scale(1.6); opacity: 0;  }
}

/* Tooltip label */
.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: #111;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 6px 12px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateY(-50%) translateX(6px);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #111;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-pulse { animation: none; }
    .whatsapp-float:hover { transform: none; }
}

@media (max-width: 480px) {
    .whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
    .whatsapp-icon  { width: 26px; height: 26px; }
    .whatsapp-tooltip { display: none; }
}

/* =========================================================
   INSIGHTS EDITORIAL HUB
   ========================================================= */
.insights-hero {
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    background-image: linear-gradient(90deg, rgba(4,17,26,.97) 0%, rgba(4,17,26,.83) 50%, rgba(4,17,26,.38) 100%), var(--title-insights-image) !important;
    background-position: center 42% !important;
}

.insights-hero-content {
    width: 100%;
    max-width: 1100px !important;
}

.insights-hero .section-title {
    max-width: 720px;
    font-size: clamp(2.6rem, 5vw, 5rem);
    margin-bottom: 1rem;
}

.insights-hero .section-desc {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
}

.insights-search {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) minmax(180px, .8fr) minmax(160px, .7fr) auto;
    gap: 1px;
    margin-top: 2rem;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 18px 50px rgba(0,0,0,.24);
    backdrop-filter: blur(14px);
}

.insights-search-keyword {
    position: relative;
}

.insights-search-keyword svg {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: #a88446;
    stroke-width: 1.8;
    pointer-events: none;
}

.insights-search input,
.insights-search select {
    width: 100%;
    height: 54px;
    margin: 0;
    border: 0;
    border-radius: 3px;
    outline: 0;
    background: rgba(255,255,255,.96);
    color: #122a38;
    font: 500 .88rem/1 var(--font-body);
}

.insights-search input {
    padding: 0 20px 0 52px;
}

.insights-search select {
    padding: 0 36px 0 16px;
    cursor: pointer;
}

.insights-search input:focus,
.insights-search select:focus {
    box-shadow: inset 0 0 0 2px #bd9859;
}

.insights-search button {
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 3px;
    background: #bd9859;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.insights-search button:hover {
    background: #a88446;
}

.insights-main {
    padding: 0 0 6rem;
    background: #f6f4ef;
}

.insights-topics {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 82px;
    padding: 1rem 0;
    border-bottom: 1px solid #dcd8cf;
}

.insights-topics > span,
.insights-eyebrow {
    color: #a17d40;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.insights-topics > div {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.insights-topics a,
.insight-card-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid #d7d0c3;
    border-radius: 99px;
    background: #fff;
    color: #536470;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.insights-topics a:hover,
.insight-card-tags a:hover {
    border-color: #bd9859;
    background: #bd9859;
    color: #fff;
}

.insights-feature {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    min-height: 500px;
    margin-top: 4rem;
    overflow: hidden;
    border-radius: 8px;
    background: #0b2837;
    box-shadow: 0 28px 70px rgba(7,31,43,.16);
}

.insights-feature-image {
    position: relative;
    min-height: 450px;
    background: linear-gradient(145deg, #143746, #061923);
    overflow: hidden;
}

.insights-feature-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(11,40,55,.55));
}

.insights-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.insights-feature:hover .insights-feature-image img {
    transform: scale(1.025);
}

.insights-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: rgba(255,255,255,.72);
}

.insight-category-link {
    align-self: flex-start;
    margin: 1.2rem 0 .8rem;
    color: #d7b778;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.insights-feature h2 {
    margin: 0 0 1.25rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 3.3rem);
    line-height: 1.08;
}

.insights-feature h2 a { color: inherit; }
.insights-feature p { margin: 0 0 1.4rem; line-height: 1.75; }

.insight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    color: rgba(255,255,255,.55);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.insight-read-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    align-self: flex-start;
    margin-top: 2rem;
    color: #e0bc77;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.insight-read-link:hover { color: #fff; }

.insights-results {
    padding-top: 5rem;
}

.archive-insights {
    padding-bottom: 5rem;
}

.insights-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.insights-results-head h2 {
    margin: .5rem 0 0;
    color: #0b2837;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.14;
}

.insights-result-count {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6e7b82;
    font-size: .82rem;
}

.insights-result-count a {
    color: #9b7332;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Insights grid ── */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

/* =========================================================
   INS-CARD — Blog / Insights card redesign
   ========================================================= */

.ins-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e4dc;
    box-shadow: 0 2px 14px rgba(7,31,43,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.ins-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(7,31,43,.12);
}

/* Thumbnail */
.ins-card-thumb {
    position: relative;
    display: block;
    height: 215px;
    overflow: hidden;
    background: linear-gradient(135deg, #0c2030 0%, #1a3d54 100%);
    flex-shrink: 0;
}

.ins-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s ease;
    display: block;
}

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

/* Placeholder when no thumbnail */
.ins-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, #0b2030 0%, #1e4560 60%, #132d42 100%);
}

/* Category badge on thumbnail */
.ins-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    background: rgba(6,24,35,.88);
    border: 1px solid rgba(184,144,88,.45);
    border-radius: 4px;
    color: #d7b778;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    line-height: 1;
}

/* Card body */
.ins-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.3rem;
}

/* Date · read time */
.ins-meta {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .7rem;
    color: #9e8e76;
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Title */
.ins-title {
    margin: 0 0 .65rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.36;
    color: #0d2233;
    letter-spacing: -.01em;
}

.ins-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.ins-title a:hover { color: #9b7332; }

/* Excerpt */
.ins-excerpt {
    flex: 1;
    margin: 0 0 1.1rem;
    color: #5c6b74;
    font-size: .875rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: tags + read link */
.ins-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: auto;
    padding-top: .95rem;
    border-top: 1px solid #f0ece5;
}

.ins-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    min-width: 0;
}

.ins-tags a {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: #f4f1eb;
    border: 1px solid #e2dcd2;
    border-radius: 99px;
    color: #6b7880;
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s;
    text-decoration: none;
}

.ins-tags a:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
}

/* "Read →" link */
.ins-read {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex-shrink: 0;
    color: #9b7332;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s;
}

.ins-read svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform .22s;
}

.ins-read:hover { color: var(--color-navy); }
.ins-read:hover svg { transform: translateX(4px); }

/* ── Pagination ── */
.insights-pagination {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: 3rem;
}

.insights-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: .5rem .85rem;
    border: 1px solid #d8d2c7;
    border-radius: 4px;
    background: #fff;
    color: #173342;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s, background .18s, color .18s;
}

.insights-pagination .current,
.insights-pagination a:hover { border-color: #bd9859; background: #bd9859; color: #fff; }

/* ── Empty state ── */
.insights-empty {
    padding: 4rem 2rem;
    border: 1px solid #ded9cf;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.insights-empty h3 { margin-bottom: .6rem; color: #0b2837; font-family: var(--font-heading); font-size: 1.6rem; }
.insights-empty p { margin-bottom: 1.5rem; color: #6b777e; }

/* ── Results section header ── */
.insights-results-head h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
}

/* ── Section header eyebrow ── */
.insight-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 .5rem;
}

.insight-card-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border: 1px solid #d7d0c3;
    border-radius: 99px;
    background: #fff;
    color: #536470;
    font-size: .65rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s, background .18s, color .18s;
}

.insight-card-tags a:hover {
    border-color: #bd9859;
    background: #bd9859;
    color: #fff;
}

/* ── Single post entry tags ── */
.single-post .entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.single-post .entry-tags a {
    padding: 5px 11px;
    border: 1px solid #d7d0c3;
    border-radius: 99px;
    color: #536470;
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 1050px) {
    .insights-search { grid-template-columns: 1fr 1fr; }
    .insights-search-keyword { grid-column: 1 / -1; }
    .insights-search button { min-width: 150px; }
    .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .insights-hero { min-height: 650px; padding-bottom: 3rem !important; }
    .insights-search { grid-template-columns: 1fr; padding: 5px; }
    .insights-search-keyword { grid-column: auto; }
    .insights-search input, .insights-search select, .insights-search button { height: 50px; min-height: 50px; }
    .insights-topics { align-items: flex-start; flex-direction: column; gap: .7rem; padding: 1.25rem 0; }
    .insights-feature { grid-template-columns: 1fr; margin-top: 2.5rem; }
    .insights-feature-image { min-height: 270px; }
    .insights-feature-image::after { background: linear-gradient(0deg, rgba(11,40,55,.45), transparent 40%); }
    .insights-feature-copy { padding: 2rem 1.5rem 2.5rem; }
    .insights-results { padding-top: 3.5rem; }
    .insights-results-head { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .insights-grid { grid-template-columns: 1fr; }
    .ins-card-thumb { height: 220px; }
}

@media (max-width: 430px) {
    .insights-hero { min-height: 700px; }
    .insights-feature-image { min-height: 220px; height: 220px; }
    .ins-card-thumb { height: 195px; }
    .insights-feature h2 { font-size: 1.9rem; }
}
