/* ==========================================================================
   Bilingual (Arabic RTL / English LTR) tweaks for the public site.
   Loaded after style.css / rtl.css on every page.

   - The template (style.css) is written LTR → it is the English layout.
   - rtl.css mirrors it for Arabic and forces the Tajawal font.
   - Rules here use logical properties (inset-inline-*, margin-inline-*) so
     the same rule works in both directions.
   ========================================================================== */

/* Brand palette
   --c-dark   Deep Graphite      backgrounds of dark sections, all body text
   --c-light  Soft Cloud White   light section backgrounds, text on dark
   --c-accent Sunshine Yellow    accent ONLY, never a primary colour: hover/active
              states (menu, links), the small section-title dash and the
              focus ring. Buttons, frames and icons are graphite / cloud white.
              Never as text on a light background (contrast 1.6:1). */
:root {
    --c-dark: #1c1d20;
    --c-light: #f2f4f1;
    --c-accent: #ffc928;
    --c-accent-soft: rgba(255, 201, 40, 0.5);
    --c-line-on-dark: rgba(242, 244, 241, 0.25);
    --c-border: #e3e6e1;
    --jpi-gold: var(--c-accent);
    --jpi-gold-soft: var(--c-accent-soft);
    --jpi-cream: var(--c-accent);
    --jpi-dark: var(--c-dark);
    --jpi-en-font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ── English typography ─────────────────────────────────────────────────────
   One clean sans-serif for everything (the Arabic site uses Tajawal the same
   way). Tags are listed explicitly — not `*` — so icon fonts on <i> keep
   their own font-family. */
html[lang="en"] :is(body, h1, h2, h3, h4, h5, h6, p, a, span, li, strong, b, em, small,
    button, input, textarea, select, option, label, td, th, summary, div, article, section, time) {
    font-family: var(--jpi-en-font) !important;
}
html[lang="en"] :is(h1, h2, h3, h4, h5, h6) { letter-spacing: -0.015em; }
html[lang="en"] .page-title-text :is(h1, h2) { line-height: 1.3; }
html[lang="en"] .jpi-services-intro .lead,
html[lang="en"] .jpi-practice-intro .lead,
html[lang="en"] .jpi-faq-section .lead { line-height: 1.8; }

/* ── Header: desktop menu ───────────────────────────────────────────────── */
@media (min-width: 992px) {
    /* top-level items only (never the dropdown links) */
    .main-nav nav .navbar-nav > .nav-item > a { white-space: nowrap; }
    html[lang="en"] .main-nav nav .navbar-nav > .nav-item > a { margin-left: 10px; margin-right: 10px; font-size: 15px; }
    html[lang="ar"] .main-nav nav .navbar-nav > .nav-item > a { margin-left: 12px; margin-right: 12px; }
    .main-nav nav .navbar-brand { flex-shrink: 0; }
    .side-nav { display: flex; align-items: center; gap: 14px; }
    .side-nav > a { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    html[lang="en"] .main-nav nav .navbar-nav > .nav-item > a { margin-left: 6px; margin-right: 6px; font-size: 13.5px; }
    html[lang="ar"] .main-nav nav .navbar-nav > .nav-item > a { margin-left: 7px; margin-right: 7px; }
    .side-nav { gap: 8px; }
    .side-nav > a { font-size: 13px; padding: 9px 10px; }
}

/* "Pages" dropdown caret: thin chevron that turns when the menu opens */
.main-nav nav .navbar-nav .dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-inline-start: 8px;
    margin-inline-end: 0;
    vertical-align: 3px;
    transition: transform .25s ease, vertical-align .25s ease;
}
.main-nav nav .navbar-nav .nav-item.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(-135deg);
    vertical-align: -1px;
}

/* Dropdown panel */
.main-nav nav .navbar-nav .nav-item .dropdown-menu {
    width: auto;
    min-width: 270px;
    max-width: 340px;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid rgba(242, 244, 241, 0.12);
    border-radius: 0 0 10px 10px;
    background: var(--jpi-dark);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    text-align: start;
}
.main-nav nav .navbar-nav .nav-item .dropdown-menu li a {
    white-space: normal;
    text-transform: none;            /* template capitalised Every Word */
    line-height: 1.55;
    font-size: 14.5px;
    padding: 11px 22px;
    margin: 0;
    text-align: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color .2s, background-color .2s, padding .2s;
}
.main-nav nav .navbar-nav .nav-item .dropdown-menu li:last-child a { border-bottom: 0; }
.main-nav nav .navbar-nav .nav-item .dropdown-menu li a:hover,
.main-nav nav .navbar-nav .nav-item .dropdown-menu li a:focus,
.main-nav nav .navbar-nav .nav-item .dropdown-menu li a.active {
    color: var(--c-accent);
    background: rgba(242, 244, 241, 0.05);
    letter-spacing: 0;               /* template's 1px letter-spacing made items jump */
    padding-inline-start: 28px;
}

/* ── Language toggle  (عربي | EN) ───────────────────────────────────────── */
.lang-toggle {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--c-line-on-dark);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.lang-toggle a,
.side-nav .lang-toggle a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 38px;
    padding: 0 12px;
    border: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    transition: background-color .25s, color .25s;
}
.side-nav .lang-toggle a::before,
.side-nav .lang-toggle a::after { display: none; }
.lang-toggle a + a,
.side-nav .lang-toggle a + a { border-inline-start: 1px solid var(--c-line-on-dark); }
.lang-toggle a.active {
    background: var(--c-light);
    color: var(--c-dark);
    cursor: default;
    pointer-events: none;
}
.lang-toggle a:not(.active):hover,
.lang-toggle a:not(.active):focus-visible { background: rgba(242, 244, 241, 0.12); color: var(--c-light); }
.lang-toggle a[lang="ar"] { font-family: 'Tajawal', sans-serif !important; font-size: 14px; letter-spacing: 0; }

/* Mobile: the toggle sits in the top bar, next to the menu button */
.mobile-nav > .lang-toggle { display: none; }
@media (max-width: 991px) {
    .mobile-nav > .lang-toggle {
        display: inline-flex;
        position: absolute;
        top: 12px;                   /* same line as the logo (.mobile-nav has no height of its own) */
        inset-inline-end: 72px;
        z-index: 1000;
    }
    .mobile-nav > .lang-toggle a { height: 32px; min-width: 40px; padding: 0 9px; }
}

/* ── Floating contact buttons ─────────────────────────────────────────────
   Sit on the reading-start side (right in Arabic, left in English) so they
   never overlap the back-to-top button, which the template puts on the
   opposite side. */
.contact-buttons {
    position: fixed;
    inset-inline-start: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 12;
}
.contact-btnn {
    color: var(--c-light);
    border: 1px solid rgba(242, 244, 241, 0.18);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}
.contact-btnn:hover,
.contact-btnn:focus { color: var(--c-dark); background-color: var(--c-light); border-color: var(--c-dark); }
.contact-btnn i { font-size: 24px; }
.whatsapp-btn, .phone-btn, .email-btn { background-color: var(--c-dark); }

/* ── Phone numbers & e-mails always read left-to-right ─────────────────── */
a[href^="tel:"], a[href^="mailto:"] { unicode-bidi: isolate; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { text-align: start; }

/* Social icons — own rules so the template's contact-list styles
   (floated gold icons, block items, 20px gaps) don't apply to them */
footer .footer-item .footer-find ul.jpi-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}
footer .footer-item .footer-find ul.jpi-footer-social li { display: block; margin: 0; padding: 0; }
footer .footer-item .footer-find ul.jpi-footer-social li a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-line-on-dark);
    color: var(--c-light);
    transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
footer .footer-item .footer-find ul.jpi-footer-social li a i {
    float: none;
    position: static;
    margin: 0;
    font-size: 15px;
    color: inherit;
}
footer .footer-item .footer-find ul.jpi-footer-social li a:hover {
    background: var(--c-light);
    border-color: var(--c-light);
    color: var(--c-dark);
    letter-spacing: 0;
    transform: translateY(-2px);
}

/* ── Form direction ─────────────────────────────────────────────────────── */
.form-control, .jpi-booking input, .jpi-booking textarea, .jpi-booking select { text-align: start; }
input[type="email"], input[type="tel"] { direction: ltr; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: right; }

/* ── Inline contact-form alerts (contact page) ─────────────────────────── */
.jpi-form-alert { max-width: 800px; margin: 20px auto; padding: 16px 22px; border-radius: 10px; text-align: center; font-weight: bold; }
.jpi-form-alert.success { background: #e8f4ee; color: #2e7d4f; }
.jpi-form-alert.error   { background: #f8e7e4; color: #b03a2e; }

/* ── Home: latest posts ─────────────────────────────────────────────────── */
.jpi-home-blog { padding: 90px 0 70px; background: var(--c-light); }
.jpi-home-blog .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.jpi-home-blog .card { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.jpi-home-blog .card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(28, 29, 32, 0.10); }
.jpi-home-blog .card .img { aspect-ratio: 16/10; overflow: hidden; display: block; }
.jpi-home-blog .card .img img { width: 100%; height: 100%; object-fit: cover; }
.jpi-home-blog .card .ph { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; background: var(--c-border); color: var(--c-dark); font-size: 40px; }
.jpi-home-blog .card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.jpi-home-blog .card time { font-size: 12px; color: #6c707a; margin-bottom: 8px; }
.jpi-home-blog .card h3 { font-size: 19px; line-height: 1.45; margin-bottom: 10px; }
.jpi-home-blog .card h3 a { color: var(--c-dark); text-decoration: none; }

.jpi-home-blog .card p { color: #6c707a; font-size: 14px; line-height: 1.7; flex: 1; }
.jpi-home-blog .card .more { color: var(--c-dark); font-weight: 700; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.jpi-home-blog .all { text-align: center; margin-top: 36px; }

/* ── Icon fonts ────────────────────────────────────────────────────────────
   rtl.css forces `* { font-family: Tajawal !important }`, which beats Font
   Awesome's own (non-important) font-family and turns icons into boxes. */
:is(.fa-solid, .fas, .fa-regular, .far, .fa-classic) { font-family: "Font Awesome 6 Free" !important; }
:is(.fa-brands, .fab) { font-family: "Font Awesome 6 Brands" !important; }

/* ── Brand overrides on top of the template ────────────────────────────────
   Graphite / cloud white carry the design; yellow is only an accent. */
a { color: var(--c-dark); }
.section-title span {
    display: inline-flex;            /* template made it a full-width block */
    align-items: center;
    gap: 10px;
    color: var(--c-dark);
    letter-spacing: .04em;
}
.section-title span::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--c-accent);
}
/* Outline buttons on dark backgrounds fill cloud white on hover → graphite text */
.side-nav > a:hover { color: var(--c-dark); }
.cmn-btn:hover { color: var(--c-light); }
.back-to-top-btn i { color: var(--c-light); }

/* Links on light cards: graphite text, yellow underline on hover */
:is(.jpi-home-blog .card h3, .jpi-blog-card h3, .jpi-rel-card h4, .jpi-widget .recent-item h5) a:hover,
:is(.jpi-home-blog .card, .jpi-blog-card, .jpi-svc-card, .jpi-area-card) .more:hover,
.jpi-blog-card .read-more:hover,
.jpi-widget .cat-list a:hover {
    color: var(--c-dark);
    text-decoration: underline;
    text-decoration-color: var(--c-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}
.jpi-article-content a,
.jpi-faq-answer a,
.privacy-item a { color: var(--c-dark); text-decoration: underline; text-decoration-color: rgba(28, 29, 32, 0.35); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jpi-article-content a:hover,
.jpi-faq-answer a:hover,
.privacy-item a:hover { text-decoration-color: var(--c-accent); }

/* Lawyer cards (white): bio text graphite */
.team-item .team-inner span { color: var(--c-dark); }
.team-item:hover .team-inner span,
.team-item:hover .team-inner h3 a { color: var(--c-light); }

/* Offices / contact strip: graphite panel, light text, outlined icon circles */
.loaction-area .location-bg:before { background-color: var(--c-dark); opacity: 1; }
.loaction-area .location-bg:after { background-color: #3a3c42; }
.location-item h3 { color: var(--c-light); }
.location-item ul li,
.location-item ul li a { color: var(--c-light); }
.location-item .location-link { color: rgba(242, 244, 241, 0.75); text-decoration: underline; text-decoration-color: var(--c-line-on-dark); text-underline-offset: 4px; }
.location-item ul li a:hover,
.location-item .location-link:hover { color: var(--c-accent); }
.location-item .location-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(242, 244, 241, 0.06);
    border: 1px solid var(--c-line-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.location-item .location-icon img { display: none; }
.location-item .location-icon i,
.contact-form-four .location-item .location-icon i { position: static; border: 0; color: var(--c-light); font-size: 24px; }

/* Form fields on white: neutral border, yellow focus ring */
.contact-form .form-control,
.contact-wrap .form-control { border-color: #c9ccc7; }
.contact-form .form-control:focus,
.contact-wrap .form-control:focus,
.jpi-booking input:focus, .jpi-booking textarea:focus, .jpi-booking select:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(255, 201, 40, 0.3);
}

/* Category pill on blog cards: fit its text (card body is a flex column) */
.jpi-blog-card .cat { align-self: flex-start; }

/* Decorative template images are drawn in the old gold/brown — show them in grey */
.practice-item .practice-shape-one,
.practice-item .practice-shape-two,
.help-shape img { filter: grayscale(1); }
.practice-item .practice-shape-one,
.practice-item .practice-shape-two { opacity: .6; }

/* Back-to-top: outline so it stays visible over the dark footer */
.back-to-top-btn i { border: 1px solid rgba(242, 244, 241, 0.18); }

/* Lawyer card hover: the icon bar turns white → icons turn graphite */
.team-item:hover .team-inner ul li a { color: var(--c-dark); }
.team-item:hover .team-inner ul li a:hover { color: #6c707a; }

/* Lawyer names that wrap: normal line height */
.team-item .team-inner h3 { line-height: 1.4; }

/* ══════════════════════════════════════════════════════════════════════════
   Home hero — graphite, editorial typography, line drawing of an arch with
   the scales of justice (inline SVG in pages/Home.php). Yellow appears only
   on the kicker dash, the link underline on hover and the scale's finial.
   ══════════════════════════════════════════════════════════════════════════ */
.jpi-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;               /* exactly one screen (the fixed header sits on top of it) */
    min-height: 100svh;
    padding: 140px 0 80px;
    background: var(--c-dark);
    color: var(--c-light);
}
/* faint architectural rules, fading out towards the bottom */
.jpi-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(242, 244, 241, 0.045) 1px, transparent 1px);
    background-size: calc(100% / 12) 100%;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
    pointer-events: none;
}
/* soft light behind the drawing */
.jpi-hero::after {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    top: 50%;
    inset-inline-end: -170px;
    transform: translateY(-44%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 244, 241, 0.07), transparent 62%);
    pointer-events: none;
}
.jpi-hero .container { position: relative; z-index: 1; }
.jpi-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
    align-items: center;
}

.jpi-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    color: rgba(242, 244, 241, 0.7);
}
.jpi-hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--c-accent); }

.jpi-hero h1 {
    margin: 0 0 24px;
    font-size: clamp(34px, 4.3vw, 58px);
    font-weight: 800;
    line-height: 1.32;
    color: var(--c-light);
    text-wrap: balance;
}
html[lang="ar"] .jpi-hero h1 { font-size: clamp(32px, 3.6vw, 50px); }
html[lang="en"] .jpi-hero h1 { line-height: 1.1; letter-spacing: -0.03em; }

.jpi-hero-lead {
    max-width: 560px;
    margin: 0 0 40px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(242, 244, 241, 0.72);
}
html[lang="en"] .jpi-hero-lead { line-height: 1.7; }

.jpi-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-bottom: 56px; }
.jpi-hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 17px 34px;
    border: 1px solid var(--c-light);
    background: var(--c-light);
    color: var(--c-dark);
    font-size: 16px;
    font-weight: 700;
    transition: background-color .25s, color .25s;
}
.jpi-hero-btn:hover,
.jpi-hero-btn:focus-visible { background: transparent; color: var(--c-light); }
.jpi-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(242, 244, 241, 0.3);
    color: var(--c-light);
    font-size: 16px;
    font-weight: 600;
    transition: border-color .25s, gap .25s;
}
.jpi-hero-link:hover,
.jpi-hero-link:focus-visible { color: var(--c-light); border-color: var(--c-accent); gap: 14px; }
.jpi-hero-link i { font-size: 13px; }

.jpi-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 600px;
    margin: 0;
    padding: 28px 0 0;
    list-style: none;
    border-top: 1px solid rgba(242, 244, 241, 0.14);
}
.jpi-hero-stats li {
    padding-inline: 24px;
    border-inline-start: 1px solid rgba(242, 244, 241, 0.14);
}
.jpi-hero-stats li:first-child { padding-inline-start: 0; border: 0; }
.jpi-hero-stats strong {
    display: block;
    margin-bottom: 6px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--c-light);
}
.jpi-hero-stats span { font-size: 13.5px; color: rgba(242, 244, 241, 0.6); }

/* drawing */
.jpi-hero-art svg { display: block; width: 100%; max-width: 500px; margin-inline: auto; overflow: visible; }
.jpi-hero-art svg :is(path, circle) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.jpi-hero-art .ring { stroke: rgba(242, 244, 241, 0.07); stroke-width: 1; }
.jpi-hero-art .ring-dash { stroke: rgba(242, 244, 241, 0.16); stroke-dasharray: 2 9; }
.jpi-hero-art .l-strong { stroke: rgba(242, 244, 241, 0.88); stroke-width: 1.6; }
.jpi-hero-art .l-soft { stroke: rgba(242, 244, 241, 0.42); stroke-width: 1.2; }
.jpi-hero-art .l-faint { stroke: rgba(242, 244, 241, 0.18); stroke-width: 1; }
.jpi-hero-art circle.accent { fill: var(--c-accent); stroke: none; }

.jpi-hero-art .orbit-dot { fill: var(--c-accent); stroke: none; }
.jpi-hero-art .orbit-dot-soft { fill: rgba(242, 244, 241, 0.55); stroke: none; }
.jpi-hero-art .glint { stroke: var(--c-accent); stroke-width: 2.2; stroke-dasharray: .07 .93; }
.jpi-hero-art .pulse { stroke: var(--c-accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* 1) draw-in on load */
.jpi-hero-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: jpiDraw 1.8s cubic-bezier(.65, 0, .35, 1) forwards; }
.jpi-hero-art .d1 { animation-delay: .5s; }
.jpi-hero-art .d2 { animation-delay: .8s; }
.jpi-hero-art .d3 { animation-delay: 1s; }
.jpi-hero-art .d4 { animation-delay: 1.3s; }
.jpi-hero-art .d5 { animation-delay: 1.5s; }
.jpi-hero-art .d6 { animation-delay: 1.8s; }
.jpi-hero-art .d7 { animation-delay: 2s; }
.jpi-hero-art .accent { opacity: 0; animation: jpiFade .9s ease 2.8s forwards; }

/* 2) then it keeps living: the scales balance, light runs along the arch,
      dots orbit the rings and the gold point pulses */
.jpi-hero-art :is(.beam, .pan, .orbit, .ring-dash, .pulse) { transform-box: view-box; }
.jpi-hero-art .beam  { transform-origin: 240px 200px; animation: jpiTilt 6s ease-in-out 1.5s infinite both; }
/* each pan follows its end of the beam: 122px × sin(3°) ≈ 6.4px */
.jpi-hero-art .pan-l { animation: jpiPanL 6s ease-in-out 1.5s infinite both; }
.jpi-hero-art .pan-r { animation: jpiPanR 6s ease-in-out 1.5s infinite both; }
.jpi-hero-art .glint { opacity: 0; animation: jpiFade 1s ease 2.4s forwards, jpiRun 7s linear 2.4s infinite; }
.jpi-hero-art .orbit { transform-origin: 240px 250px; animation: jpiSpin 40s linear infinite; }
.jpi-hero-art .orbit-2 { animation-duration: 28s; animation-direction: reverse; }
.jpi-hero-art .ring-dash { transform-origin: 240px 250px; animation: jpiSpin 120s linear infinite reverse; }
.jpi-hero-art .pulse { transform-origin: 240px 178px; opacity: 0; animation: jpiPulse 3s ease-out 3.2s infinite; }
.jpi-hero.is-offscreen .jpi-hero-art * { animation-play-state: paused; }

@keyframes jpiDraw  { to { stroke-dashoffset: 0; } }
@keyframes jpiFade  { to { opacity: 1; } }
@keyframes jpiTilt  { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes jpiPanL  { 0%, 100% { transform: translateY(6.4px); } 50% { transform: translateY(-6.4px); } }
@keyframes jpiPanR  { 0%, 100% { transform: translateY(-6.4px); } 50% { transform: translateY(6.4px); } }
@keyframes jpiRun   { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
@keyframes jpiSpin  { to { transform: rotate(360deg); } }
@keyframes jpiPulse { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(3.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .jpi-hero-art .draw { animation: none; stroke-dashoffset: 0; }
    .jpi-hero-art .accent { animation: none; opacity: 1; }
    .jpi-hero-art :is(.beam, .pan, .orbit, .ring-dash, .glint, .pulse) { animation: none; }
    .jpi-hero-art :is(.glint, .orbit, .pulse) { display: none; }
}

@media (max-width: 1199px) {
    .jpi-hero-grid { gap: 36px; }
    .jpi-hero-stats li { padding-inline: 16px; }
}
@media (max-width: 991px) {
    /* still one screen: the drawing becomes a faint backdrop behind the text */
    .jpi-hero { padding: 100px 0 48px; }
    .jpi-hero-grid { grid-template-columns: 1fr; }
    .jpi-hero-copy { position: relative; z-index: 1; }
    .jpi-hero-art {
        position: absolute;
        inset-inline-end: -40px;
        bottom: -30px;
        width: min(78vw, 420px);
        opacity: 0.16;
        pointer-events: none;
    }
    .jpi-hero-art svg { max-width: none; }
    .jpi-hero::after { width: 520px; height: 520px; top: auto; bottom: -160px; transform: none; }
}
@media (max-width: 575px) {
    .jpi-hero-lead { font-size: 16px; margin-bottom: 32px; }
    .jpi-hero-actions { gap: 22px; margin-bottom: 40px; }
    .jpi-hero-btn { padding: 15px 26px; }
    .jpi-hero-stats li { padding-inline: 12px; }
    .jpi-hero-stats strong { font-size: 26px; }
    .jpi-hero-stats span { font-size: 12.5px; }
}

/* Section right after the hero: the old badge overlap is gone, so less top space */
.jpi-hero + .help-area { padding-top: 100px; }
@media (max-width: 991px) { .jpi-hero + .help-area { padding-top: 60px; } }

/* Floating contact buttons: hidden while the home hero is on screen (custom.js) */
.contact-buttons { transition: opacity .35s ease, transform .35s ease, visibility .35s; }
.contact-buttons.is-hidden { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }

/* ── Small screens: contact buttons become a dock fixed at the bottom ─────── */
@media (max-width: 767px) {
    .contact-buttons,
    .contact-buttons.is-hidden {
        inset-inline: auto;
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 4px;
        padding: 5px;
        border: 1px solid rgba(242, 244, 241, 0.14);
        border-radius: 999px;
        background: rgba(28, 29, 32, 0.92);
        -webkit-backdrop-filter: blur(10px);
                backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
        /* always visible on phones (the hide-over-hero rule is desktop only) */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 20;
    }
    .contact-btnn {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .whatsapp-btn, .phone-btn, .email-btn { background-color: transparent; }
    .contact-btnn i { font-size: 20px; }
    .contact-btnn:hover,
    .contact-btnn:focus { background: var(--c-light); color: var(--c-dark); }

    /* back-to-top lines up with the dock; keep content clear of the dock */
    #toTop { bottom: 16px; }
    .jpi-hero { padding-bottom: 104px; }
    footer .copyright-area { padding-bottom: 96px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Cards — services (editorial grid), practice areas (numbered list),
   about (graphite "why" band + offices). No boxes/shadows: hairlines,
   numbers and a graphite inversion on hover.
   ══════════════════════════════════════════════════════════════════════════ */
:root { --c-line: rgba(28, 29, 32, 0.12); --c-muted: #5d6066; }

.jpi-index-num { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #8a8d88; transition: color .35s; }

/* round arrow button used by cards and rows */
.jpi-go { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.jpi-go-circle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--c-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background-color .35s, color .35s, border-color .35s, transform .35s;
}

/* ── Services: grid of cells separated by hairlines ─────────────────────── */
.jpi-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.jpi-index-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 36px 34px 32px;
    background: #ffffff;
    /* every cell draws its own hairlines, overlapping by 1px, so a short last row still looks finished */
    border: 1px solid var(--c-line);
    margin: 0 0 -1px -1px;
    color: var(--c-dark);
    text-decoration: none;
    transition: background-color .35s, color .35s;
}
.jpi-index-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 46px; }
.jpi-index-icon { font-size: 22px; color: var(--c-dark); transition: color .35s, transform .35s; }
.jpi-index-card :is(h2, h3) { margin: 0 0 12px; font-size: 21px; font-weight: 700; line-height: 1.45; color: inherit; }
.jpi-index-card p { flex: 1; margin: 0 0 28px; font-size: 15px; line-height: 1.85; color: var(--c-muted); transition: color .35s; }
.jpi-index-card:hover,
.jpi-index-card:focus-visible { background: var(--c-dark); color: var(--c-light); }
.jpi-index-card:hover p, .jpi-index-card:hover p strong { color: rgba(242, 244, 241, 0.75); }
.jpi-index-card:hover .jpi-index-num { color: rgba(242, 244, 241, 0.55); }
.jpi-index-card:hover .jpi-index-icon { color: var(--c-light); transform: translateY(-3px); }
.jpi-index-card:hover .jpi-go-circle { background: var(--c-light); border-color: var(--c-light); color: var(--c-dark); }
[dir="ltr"] .jpi-index-card:hover .jpi-go-circle { transform: translateX(4px); }
[dir="rtl"] .jpi-index-card:hover .jpi-go-circle { transform: translateX(-4px); }

/* ── Practice areas: numbered index list ────────────────────────────────── */
.jpi-practice-list { border-top: 1px solid var(--c-line); }
.jpi-practice-row {
    display: grid;
    grid-template-columns: 56px 52px minmax(0, 0.9fr) minmax(0, 1.3fr) 40px;
    gap: 28px;
    align-items: center;
    padding: 30px 26px;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-dark);
    text-decoration: none;
    transition: background-color .35s, color .35s, padding .35s;
}
.jpi-practice-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--c-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: border-color .35s;
}
.jpi-practice-row h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.4; color: inherit; }
.jpi-practice-row p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--c-muted); transition: color .35s; }
.jpi-practice-row:hover,
.jpi-practice-row:focus-visible { background: var(--c-dark); color: var(--c-light); padding-inline: 38px; }
.jpi-practice-row:hover p { color: rgba(242, 244, 241, 0.7); }
.jpi-practice-row:hover .jpi-index-num { color: rgba(242, 244, 241, 0.55); }
.jpi-practice-row:hover .jpi-practice-icon { border-color: rgba(242, 244, 241, 0.3); }
.jpi-practice-row:hover .jpi-go-circle { background: var(--c-light); border-color: var(--c-light); color: var(--c-dark); }

/* ── About: "Why JPI" graphite band ─────────────────────────────────────── */
.jpi-why { padding: 100px 0; background: var(--c-dark); color: var(--c-light); }
.jpi-why-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
}
.jpi-why-head h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.35; color: var(--c-light); }
.jpi-why-head p { margin: 0; font-size: 16px; line-height: 1.9; color: rgba(242, 244, 241, 0.7); }
.jpi-why-head a { color: var(--c-light); text-decoration: underline; text-decoration-color: rgba(242, 244, 241, 0.35); text-underline-offset: 4px; }
.jpi-why-head a:hover { color: var(--c-light); text-decoration-color: var(--c-accent); }
.jpi-why-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(242, 244, 241, 0.14); }
.jpi-why-col { padding: 34px 30px 6px; border-inline-start: 1px solid rgba(242, 244, 241, 0.14); }
.jpi-why-col:first-child { border-inline-start: 0; padding-inline-start: 0; }
.jpi-why-col .jpi-index-num { display: block; margin-bottom: 26px; color: rgba(242, 244, 241, 0.45); }
.jpi-why-col i { display: block; margin-bottom: 20px; font-size: 24px; color: var(--c-light); transition: transform .35s; }
.jpi-why-col:hover i { transform: translateY(-4px); }
.jpi-why-col h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: var(--c-light); }
.jpi-why-col p { margin: 0; font-size: 14.5px; line-height: 1.85; color: rgba(242, 244, 241, 0.65); }

/* ── About: offices ─────────────────────────────────────────────────────── */
.jpi-offices { padding: 100px 0; background: #ffffff; }
.jpi-offices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--c-line); }
.jpi-office { padding: 44px 48px 10px; }
.jpi-office:first-child { padding-inline-start: 0; }
.jpi-office + .jpi-office { border-inline-start: 1px solid var(--c-line); padding-inline-end: 0; }
.jpi-office-pin {
    width: 52px;
    height: 52px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--c-dark);
    color: var(--c-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.jpi-office h2 { margin: 0 0 16px; font-size: 26px; font-weight: 800; color: var(--c-dark); }
.jpi-office p { margin: 0; font-size: 15.5px; line-height: 1.95; color: var(--c-muted); }
.jpi-office p strong { color: var(--c-dark); }
.jpi-office a { color: var(--c-dark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--c-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.jpi-office a:hover { color: var(--c-dark); text-decoration-color: var(--c-accent); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .jpi-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jpi-practice-row { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 8px 18px; padding: 26px 8px; }
    .jpi-practice-row .jpi-practice-icon { display: none; }
    .jpi-practice-row h2 { grid-column: 2; font-size: 20px; }
    .jpi-practice-row p { grid-column: 2; grid-row: 2; }
    .jpi-practice-row .jpi-go-circle { grid-column: 3; grid-row: 1 / span 2; }
    .jpi-practice-row:hover { padding-inline: 16px; }
    .jpi-why { padding: 70px 0; }
    .jpi-why-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
    .jpi-why-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jpi-why-col { padding: 30px 24px 28px; }
    .jpi-why-col:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
    .jpi-why-col:nth-child(n+3) { border-top: 1px solid rgba(242, 244, 241, 0.14); }
    .jpi-offices { padding: 70px 0; }
    .jpi-offices-grid { grid-template-columns: 1fr; }
    .jpi-office, .jpi-office:first-child, .jpi-office + .jpi-office { padding: 36px 0 30px; border-inline-start: 0; }
    .jpi-office + .jpi-office { border-top: 1px solid var(--c-line); }
}
@media (max-width: 575px) {
    .jpi-index-grid { grid-template-columns: 1fr; }
    .jpi-index-card { min-height: 0; padding: 30px 24px 26px; }
    .jpi-index-top { margin-bottom: 30px; }
    .jpi-why-cols { grid-template-columns: 1fr; }
    .jpi-why-col, .jpi-why-col:nth-child(odd) { padding: 28px 0; border-inline-start: 0; }
    .jpi-why-col + .jpi-why-col { border-top: 1px solid rgba(242, 244, 241, 0.14); }
}

/* ── Inner page title banners: same language as the home hero ─────────────
   (no photo — graphite, faint architectural rules, soft centre light) */
.page-title-area.title-img-one { background-image: none; background-color: var(--c-dark); overflow: hidden; }
.page-title-area:before {
    opacity: 1;
    background-color: transparent;
    background-image: linear-gradient(to right, rgba(242, 244, 241, 0.045) 1px, transparent 1px);
    background-size: calc(100% / 12) 100%;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}
.page-title-area::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 62%;
    width: 640px;
    height: 640px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 244, 241, 0.06), transparent 62%);
    pointer-events: none;
}
.page-title-area .page-title-text { z-index: 1; }

/* Contact page: outline the info panel where it overlaps the graphite banner */
.contact-form-four .location-bg { box-shadow: 0 0 0 1px rgba(242, 244, 241, 0.08); }

/* ══════════════════════════════════════════════════════════════════════════
   Contact · Appointment · Attorney profiles
   ══════════════════════════════════════════════════════════════════════════ */
.jpi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--c-muted);
}
.jpi-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--c-accent); }
.jpi-eyebrow.light { color: rgba(242, 244, 241, 0.65); }

/* ── Shared form fields ─────────────────────────────────────────────────── */
.jpi-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.jpi-field { margin: 0; }
.jpi-field.full { grid-column: 1 / -1; }
.jpi-field > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--c-dark); }
.jpi-field .req { color: #b03a2e; }
.jpi-field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, textarea) {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d5d8d3;
    border-radius: 4px;
    background: #ffffff;
    font: inherit;
    font-size: 15px;
    color: var(--c-dark);
    transition: border-color .2s, box-shadow .2s;
}
.jpi-field textarea { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.7; resize: vertical; }
.jpi-field :is(input, select, textarea):focus { outline: 0; border-color: var(--c-dark); box-shadow: 0 0 0 3px rgba(255, 201, 40, 0.35); }
.jpi-field ::placeholder { color: #9a9d98; opacity: 1; }
.jpi-field select {
    -webkit-appearance: none;
            appearance: none;
    cursor: pointer;
    padding-inline-end: 42px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1d20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
[dir="rtl"] .jpi-field select { background-position: left 16px center; }
.jpi-field.has-error :is(input, select, textarea) { border-color: #b03a2e; }
.jpi-field .help-block { margin-top: 6px; font-size: 12.5px; color: #b03a2e; }
.jpi-field .help-block ul { margin: 0; padding: 0; list-style: none; }
.jpi-check { display: flex; align-items: flex-start; gap: 10px; }
.jpi-check input { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; accent-color: var(--c-dark); }
.jpi-check label { margin: 0; font-size: 14px; line-height: 1.7; color: var(--c-muted); }
.jpi-check label a { color: var(--c-dark); text-decoration: underline; text-underline-offset: 3px; }
.jpi-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    padding: 17px 34px;
    border: 0;
    border-radius: 4px;
    background: var(--c-dark);
    color: var(--c-light);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .25s;
}
.jpi-submit:hover { background: #34363b; }
.jpi-submit[disabled] { opacity: .7; cursor: default; }
.jpi-submit.full { width: 100%; }
#msgSubmit.text-danger { margin-top: 14px; font-size: 14px; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.jpi-contact { padding: 90px 0 100px; background: var(--c-light); }
.jpi-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    border: 1px solid var(--c-line);
    background: #ffffff;
}
.jpi-contact-info { padding: 52px 46px; background: var(--c-dark); color: var(--c-light); }
.jpi-contact-info h2 { margin: 0 0 12px; font-size: 30px; font-weight: 800; color: var(--c-light); }
.jpi-contact-info .lead { margin: 0 0 32px; font-size: 15px; line-height: 1.8; color: rgba(242, 244, 241, 0.68); }
.jpi-contact-list { margin: 0; padding: 0; list-style: none; }
.jpi-contact-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(242, 244, 241, 0.12); }
.jpi-contact-list .ic {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(242, 244, 241, 0.25);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--c-light);
}
.jpi-contact-list li > div { display: flex; flex-direction: column; align-items: flex-start; }
.jpi-contact-list strong { margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--c-light); }
.jpi-contact-list span,
.jpi-contact-list a { font-size: 14.5px; line-height: 1.75; color: rgba(242, 244, 241, 0.7); }
.jpi-contact-list a:hover { color: var(--c-light); }
.jpi-contact-social { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 26px; border-top: 1px solid rgba(242, 244, 241, 0.12); }
.jpi-contact-social > span { margin-inline-end: 6px; font-size: 13px; font-weight: 700; color: rgba(242, 244, 241, 0.6); }
.jpi-contact-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(242, 244, 241, 0.25);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--c-light);
    transition: background-color .25s, color .25s;
}
.jpi-contact-social a:hover { background: var(--c-light); color: var(--c-dark); }
.jpi-contact-form { padding: 52px 50px; }
.jpi-contact-form > h2 { margin: 0 0 10px; font-size: 30px; font-weight: 800; color: var(--c-dark); }
.jpi-contact-form > p { margin: 0 0 32px; font-size: 15px; color: var(--c-muted); }
.jpi-map iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(1) contrast(1.05); }

/* ── Appointment ────────────────────────────────────────────────────────── */
.jpi-appt { padding: 90px 0 100px; background: var(--c-light); }
.jpi-appt-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.jpi-appt-copy h2 { margin: 0 0 18px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.4; color: var(--c-dark); }
.jpi-appt-copy > p { margin: 0 0 34px; font-size: 15.5px; line-height: 1.9; color: var(--c-muted); }
.jpi-appt-copy > p strong { color: var(--c-dark); }
.jpi-steps { margin: 0 0 34px; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.jpi-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.jpi-steps .n { padding-top: 3px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #8a8d88; }
.jpi-steps h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--c-dark); }
.jpi-steps p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--c-muted); }
.jpi-appt-call { display: flex; align-items: center; gap: 14px; }
.jpi-appt-call .ic {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-dark);
    color: var(--c-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jpi-appt-call > div { display: flex; flex-direction: column; align-items: flex-start; }
.jpi-appt-call span { font-size: 13px; color: var(--c-muted); }
.jpi-appt-call a { font-size: 18px; font-weight: 700; color: var(--c-dark); }
.jpi-appt-card { position: relative; padding: 46px 44px; border: 1px solid var(--c-line); background: #ffffff; }
.jpi-appt-card::before { content: ""; position: absolute; top: -1px; inset-inline: -1px; height: 3px; background: var(--c-dark); }
.jpi-appt-card > h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--c-dark); }
.jpi-appt-card > p { margin: 0 0 30px; font-size: 15px; color: var(--c-muted); }
.jpi-appt-more { padding: 90px 0; background: #ffffff; }
.jpi-appt-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--c-line); }
.jpi-appt-more-grid > div { padding: 34px 30px 0; border-inline-start: 1px solid var(--c-line); }
.jpi-appt-more-grid > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.jpi-appt-more-grid .jpi-index-num { display: block; margin-bottom: 18px; }
.jpi-appt-more-grid h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: var(--c-dark); }
.jpi-appt-more-grid p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--c-muted); }
.jpi-appt-more-grid p strong { color: var(--c-dark); }

/* ── Attorney profile + certificates ────────────────────────────────────── */
.jpi-attorney { padding: 100px 0; background: #ffffff; }
.jpi-attorney-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: center; }
.jpi-attorney-photo { position: relative; max-width: 440px; }
.jpi-attorney-photo::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: -28px;
    inset-inline-start: 28px;
    inset-inline-end: -28px;
    border: 1px solid var(--c-line);
}
.jpi-attorney-photo .img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-light); }
.jpi-attorney-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; mix-blend-mode: multiply; /* white photo backgrounds take the panel colour */ }
.jpi-attorney-copy h2 { margin: 0 0 12px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1.25; color: var(--c-dark); }
.jpi-attorney-role { margin: 0 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--c-line); font-size: 16px; color: var(--c-muted); }
.jpi-attorney-role strong, .jpi-attorney-copy p strong { color: var(--c-dark); }
.jpi-attorney-copy > p:not(.jpi-eyebrow):not(.jpi-attorney-role) { margin: 0 0 16px; font-size: 15.5px; line-height: 1.95; color: var(--c-muted); }
.jpi-attorney-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.jpi-btn-dark { display: inline-flex; align-items: center; padding: 15px 30px; border-radius: 4px; background: var(--c-dark); color: var(--c-light); font-weight: 700; transition: background-color .25s; }
.jpi-btn-dark:hover { background: #34363b; color: var(--c-light); }
.jpi-icon-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-dark);
    transition: background-color .25s, color .25s, border-color .25s;
}
.jpi-icon-btn:hover { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-light); }

.jpi-certs { padding: 90px 0 100px; background: var(--c-light); }
.jpi-certs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--c-line); }
.jpi-certs-head h2 { margin: 0; font-size: 28px; font-weight: 800; color: var(--c-dark); }
.jpi-certs-head span { font-size: 14px; color: var(--c-muted); }
/* masonry: every document keeps its own proportions */
.jpi-cert-gallery { columns: 4 240px; column-gap: 24px; }
.jpi-cert {
    display: block;
    break-inside: avoid;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--c-line);
    background: #ffffff;
    color: var(--c-dark);
    transition: transform .3s, box-shadow .3s;
}
.jpi-cert .frame { display: block; overflow: hidden; background: #ffffff; }
.jpi-cert img { display: block; width: 100%; height: auto; transition: transform .4s; }
.jpi-cert .meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 2px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.jpi-cert .meta i { margin-inline-start: 6px; font-size: 11px; color: var(--c-dark); }
.jpi-cert:hover { color: var(--c-dark); transform: translateY(-4px); box-shadow: 0 18px 36px rgba(28, 29, 32, 0.10); }
.jpi-cert:hover img { transform: scale(1.03); }
.jpi-other-attorney {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding: 26px 0;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    color: var(--c-dark);
    font-size: 22px;
    font-weight: 800;
}
.jpi-other-attorney small { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.jpi-other-attorney:hover { color: var(--c-dark); }
.jpi-other-attorney:hover .jpi-go-circle { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-light); }
.mfp-bg { background: var(--c-dark); }
.mfp-bg.mfp-ready, .mfp-fade.mfp-bg.mfp-ready { opacity: .95; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .jpi-contact-grid, .jpi-appt-grid, .jpi-attorney-grid { grid-template-columns: 1fr; }
    .jpi-appt-grid { gap: 44px; }
    .jpi-attorney-grid { gap: 70px; }
    .jpi-attorney-photo { margin-inline: auto 28px; width: min(100%, 420px); }
    .jpi-cert-gallery { columns: 3 200px; }
    .jpi-appt-more-grid { grid-template-columns: 1fr; }
    .jpi-appt-more-grid > div, .jpi-appt-more-grid > div:first-child { padding: 28px 0; border-inline-start: 0; }
    .jpi-appt-more-grid > div + div { border-top: 1px solid var(--c-line); }
}
@media (max-width: 575px) {
    .jpi-contact, .jpi-appt { padding: 60px 0 70px; }
    .jpi-contact-info, .jpi-contact-form, .jpi-appt-card { padding: 34px 22px; }
    .jpi-form-grid { grid-template-columns: 1fr; }
    .jpi-cert-gallery { columns: 2; column-gap: 14px; }
    .jpi-cert { margin-bottom: 14px; }
    .jpi-cert { padding: 8px; }
    .jpi-map iframe { height: 320px; }
    .jpi-other-attorney { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Home page sections (below the hero) + shared section header
   ══════════════════════════════════════════════════════════════════════════ */
.jpi-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 48px; }
.jpi-section-head .jpi-eyebrow { margin-bottom: 14px; }
.jpi-section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.3; color: var(--c-dark); }
.jpi-head-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-dark);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color .25s, gap .25s;
}
.jpi-head-link i { font-size: 12px; }
.jpi-head-link:hover { color: var(--c-dark); border-color: var(--c-accent); gap: 14px; }
.jpi-btn-dark i { margin-inline-start: 10px; font-size: 12px; }

/* ── Firm introduction ──────────────────────────────────────────────────── */
.jpi-intro { padding: 110px 0; background: #ffffff; }
.jpi-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 90px; align-items: center; }
.jpi-intro-media { position: relative; max-width: 520px; }
.jpi-intro-media::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: -30px;
    inset-inline-start: 30px;
    inset-inline-end: -30px;
    border: 1px solid var(--c-line);
}
.jpi-intro-media .img { position: relative; aspect-ratio: 5 / 6; overflow: hidden; background: var(--c-light); }
.jpi-intro-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .8s ease; }
.jpi-intro-media:hover img { transform: scale(1.03); }
.jpi-intro-badge {
    position: absolute;
    bottom: 34px;
    inset-inline-end: -34px;
    padding: 22px 26px;
    background: var(--c-dark);
    color: var(--c-light);
    box-shadow: 0 18px 40px rgba(28, 29, 32, 0.25);
}
.jpi-intro-badge strong { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.jpi-intro-badge span { display: block; margin-top: 6px; font-size: 13px; color: rgba(242, 244, 241, 0.65); }
.jpi-intro-copy h2 { margin: 0 0 20px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.35; color: var(--c-dark); }
.jpi-intro-copy > p:not(.jpi-eyebrow) { margin: 0 0 28px; font-size: 15.5px; line-height: 1.95; color: var(--c-muted); }
.jpi-intro-copy > p strong { color: var(--c-dark); }
.jpi-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0 0 36px;
    padding: 28px 0 0;
    list-style: none;
    border-top: 1px solid var(--c-line);
}
.jpi-checks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--c-dark); }
.jpi-checks i {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c-dark);
    color: var(--c-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* ── Practice areas on home ─────────────────────────────────────────────── */
.jpi-home-practice { padding: 110px 0; background: var(--c-light); }
.jpi-index-icon[class*="flaticon-"]::before { margin: 0; font-size: 30px; }

/* ── Why clients choose us ──────────────────────────────────────────────── */
.jpi-expertise { padding: 110px 0; background: var(--c-dark); color: var(--c-light); }
.jpi-expertise-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 90px; align-items: center; }
.jpi-expertise-copy h2 { margin: 0 0 40px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.35; color: var(--c-light); }
.jpi-expertise-copy h2 strong { color: inherit; }
.jpi-expertise-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(242, 244, 241, 0.14); }
.jpi-expertise-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid rgba(242, 244, 241, 0.14); }
.jpi-expertise-list .jpi-index-num { padding-top: 4px; color: rgba(242, 244, 241, 0.45); }
.jpi-expertise-list h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--c-light); }
.jpi-expertise-list p { margin: 0; font-size: 15px; line-height: 1.85; color: rgba(242, 244, 241, 0.68); }
.jpi-expertise-list p strong { color: var(--c-light); }
.jpi-expertise-media { position: relative; }
.jpi-expertise-media::before {
    content: "";
    position: absolute;
    top: -26px;
    bottom: 26px;
    inset-inline-start: -26px;
    inset-inline-end: 26px;
    border: 1px solid rgba(242, 244, 241, 0.16);
}
.jpi-expertise-media img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* ── Team ───────────────────────────────────────────────────────────────── */
.jpi-team { padding: 110px 0; background: #ffffff; }
.jpi-team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.jpi-team-intro h2 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.3; color: var(--c-dark); }
.jpi-team-intro h2 strong { color: inherit; }
.jpi-team-intro > p:not(.jpi-eyebrow) { margin: 0 0 28px; font-size: 15.5px; line-height: 1.9; color: var(--c-muted); }
.jpi-member-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 22px; background: var(--c-light); }
.jpi-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; mix-blend-mode: multiply; transition: transform .6s ease; }
.jpi-member:hover .jpi-member-photo img { transform: scale(1.03); }
.jpi-member h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.jpi-member h3 a { color: var(--c-dark); }
.jpi-member > p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.8; color: var(--c-muted); }
.jpi-member > p strong { color: var(--c-dark); }
.jpi-member-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jpi-member-links .jpi-icon-btn { width: 40px; height: 40px; font-size: 14px; }
.jpi-member-links .jpi-head-link { margin-inline-start: auto; font-size: 14px; }

/* ── Latest posts (restyled) ────────────────────────────────────────────── */
.jpi-home-blog { padding: 110px 0; background: var(--c-light); }
.jpi-home-blog .card { border-radius: 0; border-color: var(--c-line); }
.jpi-home-blog .card:hover { transform: none; box-shadow: 0 18px 36px rgba(28, 29, 32, 0.08); }
.jpi-home-blog .card .img img { transition: transform .6s ease; }
.jpi-home-blog .card:hover .img img { transform: scale(1.04); }
.jpi-home-blog .card .body { padding: 26px; }

/* ── Offices & contact ──────────────────────────────────────────────────── */
.jpi-home-contact { padding: 110px 0; background: #ffffff; }
.jpi-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--c-line); }
.jpi-fact { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 28px 6px; border-inline-start: 1px solid var(--c-line); }
.jpi-fact:first-child { padding-inline-start: 0; border-inline-start: 0; }
.jpi-fact .ic {
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-dark);
}
.jpi-fact strong { margin-bottom: 6px; font-size: 16px; font-weight: 800; color: var(--c-dark); }
.jpi-fact a { font-size: 14.5px; line-height: 1.8; color: var(--c-muted); }
.jpi-fact a:hover { color: var(--c-dark); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 4px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .jpi-intro, .jpi-home-practice, .jpi-expertise, .jpi-team, .jpi-home-blog, .jpi-home-contact { padding: 80px 0; }
    .jpi-intro-grid, .jpi-expertise-grid { grid-template-columns: 1fr; gap: 70px; }
    .jpi-intro-media { width: calc(100% - 30px); }
    .jpi-intro-badge { inset-inline-end: -14px; }
    .jpi-expertise-media { order: -1; width: calc(100% - 26px); margin-inline-start: 26px; }
    .jpi-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jpi-team-intro { grid-column: 1 / -1; }
    .jpi-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jpi-fact:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
    .jpi-fact:nth-child(n+3) { border-top: 1px solid var(--c-line); }
    .jpi-fact { padding-bottom: 30px; }
    /* attorney profile photo frame must stay inside the screen */
    .jpi-attorney-photo { width: calc(100% - 20px); margin-inline: 0 auto; }
    .jpi-attorney-photo::before { top: 18px; bottom: -18px; inset-inline-start: 18px; inset-inline-end: -18px; }
}
@media (max-width: 575px) {
    .jpi-section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 34px; }
    .jpi-checks { grid-template-columns: 1fr; }
    .jpi-intro-media::before { top: 18px; bottom: -18px; inset-inline-start: 18px; inset-inline-end: -18px; }
    .jpi-intro-media { width: calc(100% - 18px); }
    .jpi-team-grid { grid-template-columns: 1fr; }
    .jpi-facts { grid-template-columns: 1fr; }
    .jpi-fact, .jpi-fact:nth-child(odd) { padding: 26px 0; border-inline-start: 0; }
    .jpi-fact + .jpi-fact { border-top: 1px solid var(--c-line); }
}

/* Article photos: black & white like the rest of the imagery, colour on hover */
.jpi-home-blog .card .img img,
.jpi-blog-card .img-wrap img,
.jpi-rel-card .img img { filter: grayscale(1); transition: filter .5s ease, transform .6s ease; }
.jpi-home-blog .card:hover .img img,
.jpi-blog-card:hover .img-wrap img,
.jpi-rel-card:hover .img img { filter: grayscale(0); }

/* ── About: our story ───────────────────────────────────────────────────── */
.jpi-story { padding: 110px 0; background: #ffffff; }
.jpi-story-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 90px; align-items: start; }
.jpi-story-head { position: sticky; top: 130px; }
.jpi-story-head h2 { margin: 0 0 40px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.35; color: var(--c-dark); }
.jpi-story-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--c-line); }
.jpi-story-stats li { padding-inline: 20px; border-inline-start: 1px solid var(--c-line); }
.jpi-story-stats li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.jpi-story-stats strong { display: block; margin-bottom: 6px; font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--c-dark); }
.jpi-story-stats span { font-size: 13px; color: var(--c-muted); }
.jpi-story-body p { margin: 0 0 22px; font-size: 16px; line-height: 2; color: var(--c-muted); }
.jpi-story-body p strong { color: var(--c-dark); }
.jpi-story-body .lead { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--c-line); font-size: 20px; line-height: 1.9; color: var(--c-dark); }
@media (max-width: 991px) {
    .jpi-story { padding: 80px 0; }
    .jpi-story-grid { grid-template-columns: 1fr; gap: 44px; }
    .jpi-story-head { position: static; }
}

/* Banner button (inner pages): hover fills cloud white → graphite text */
.page-title-text .page-title-btn a:hover,
.page-title-text .page-title-btn a:hover i { color: var(--c-dark); }

/* ── Yellow light on the black & white photos ─────────────────────────────
   A golden spotlight from the outer top corner: a bright hotspot (::after)
   plus soft rays (::before), both blended with "screen" so the photo lights
   up. Mirrored in English so the light always comes from the outer edge. */
:is(.jpi-intro-media, .jpi-expertise-media) .img::before,
:is(.jpi-intro-media, .jpi-expertise-media) .img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: opacity .6s ease;
}
:is(.jpi-intro-media, .jpi-expertise-media) .img::after {
    background: radial-gradient(60% 45% at 92% -4%, rgba(255, 214, 80, 0.95) 0%, rgba(255, 201, 40, 0.45) 30%, transparent 65%);
}
:is(.jpi-intro-media, .jpi-expertise-media) .img::before {
    opacity: .5;
    background: conic-gradient(from 198deg at 92% -4%,
        transparent 0deg, rgba(255, 201, 40, 0.55) 6deg, transparent 13deg,
        transparent 20deg, rgba(255, 201, 40, 0.4) 26deg, transparent 34deg,
        transparent 42deg, rgba(255, 201, 40, 0.3) 47deg, transparent 56deg, transparent 360deg);
    -webkit-mask-image: radial-gradient(130% 110% at 92% -4%, #000 20%, transparent 85%);
            mask-image: radial-gradient(130% 110% at 92% -4%, #000 20%, transparent 85%);
}
[dir="ltr"] :is(.jpi-intro-media, .jpi-expertise-media) .img::before,
[dir="ltr"] :is(.jpi-intro-media, .jpi-expertise-media) .img::after { transform: scaleX(-1); }
:is(.jpi-intro-media, .jpi-expertise-media):hover .img::before { opacity: .7; }
:is(.jpi-intro-media, .jpi-expertise-media) img { filter: grayscale(1) contrast(1.08) brightness(.92); }
.jpi-expertise-media .img { position: relative; display: block; overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════════════
   Landing page: Jordanian lawyer for Palestinians + home band
   ══════════════════════════════════════════════════════════════════════════ */
.jpi-index-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jpi-index-grid.cols-4 .jpi-index-card { min-height: 340px; padding: 32px 28px 28px; }
.jpi-index-grid.cols-4 .jpi-index-card :is(h2, h3) { font-size: 19px; }
.jpi-lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 8px; }
.jpi-lp-actions .jpi-head-link i, .jpi-lp-actions .jpi-hero-link i.fa-whatsapp { font-size: 16px; }

.jpi-lp-steps { padding: 110px 0; background: #ffffff; }
.jpi-lp-steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.jpi-lp-steps-row li { padding: 32px 28px 0; border-inline-start: 1px solid var(--c-line); }
.jpi-lp-steps-row li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.jpi-lp-steps-row .jpi-index-num { display: block; margin-bottom: 18px; }
.jpi-lp-steps-row h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; color: var(--c-dark); }
.jpi-lp-steps-row p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--c-muted); }

/* Services / practice — firm overview text block */
.jpi-seo-block { border-top: 1px solid var(--c-line); }
.jpi-seo-links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 8px 0 0; padding: 0; list-style: none; }
.jpi-seo-links a { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--c-dark); text-decoration: none; border-bottom: 1px solid var(--c-line); transition: border-color .2s, gap .2s; }
.jpi-seo-links a:hover { border-color: var(--c-accent); gap: 12px; color: var(--c-dark); }
.jpi-seo-links i { font-size: 12px; }

/* Palestine landing — key facts + Ramallah office */
.jpi-lp-facts { margin-top: 34px; padding: 30px 32px; background: var(--c-light); border-inline-start: 3px solid var(--c-accent); }
.jpi-lp-facts-title { margin: 0 0 18px !important; font-size: 13px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dark) !important; }
.jpi-lp-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; margin: 0; }
.jpi-lp-facts dl > div { padding-top: 14px; border-top: 1px solid var(--c-line); }
.jpi-lp-facts dt { margin-bottom: 4px; font-size: 12.5px; font-weight: 700; color: #8a8d88; }
.jpi-lp-facts dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.7; color: var(--c-dark); }
.jpi-lp-office { padding: 110px 0; background: var(--c-light); }
.jpi-lp-office-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 80px; align-items: center; }
.jpi-lp-office h2 { margin: 0 0 22px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; line-height: 1.35; color: var(--c-dark); }
.jpi-lp-office-text { margin: 0 0 30px; font-size: 16px; line-height: 2; color: var(--c-muted); }
.jpi-lp-office-text strong { color: var(--c-dark); }
.jpi-lp-office .jpi-btn-dark i { margin-inline-end: 6px; }
.jpi-lp-office-info { margin: 0; padding: 8px 34px; list-style: none; background: #ffffff; border: 1px solid var(--c-line); }
.jpi-lp-office-info li { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--c-line); }
.jpi-lp-office-info li:first-child { border-top: 0; }
.jpi-lp-office-info i { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--c-dark); color: var(--c-light); font-size: 15px; }
.jpi-lp-office-info span { display: flex; flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.75; color: var(--c-dark); }
.jpi-lp-office-info small { font-size: 12.5px; font-weight: 700; color: #8a8d88; }
.jpi-lp-office-info a { color: var(--c-dark); text-decoration: none; border-bottom: 1px solid var(--c-line); align-self: flex-start; }
.jpi-lp-office-info a:hover { border-color: var(--c-accent); }
@media (max-width: 991px) {
    .jpi-lp-office { padding: 70px 0; }
    .jpi-lp-office-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 575px) {
    .jpi-lp-facts { padding: 24px 20px; }
    .jpi-lp-facts dl { grid-template-columns: 1fr; }
    .jpi-lp-office-info { padding: 4px 20px; }
}
.jpi-lp-cities-title { margin: 0 0 14px !important; font-size: 14px !important; font-weight: 700; color: rgba(242, 244, 241, 0.85) !important; }
.jpi-lp-cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jpi-lp-cities li { padding: 7px 14px; border: 1px solid rgba(242, 244, 241, 0.22); border-radius: 999px; font-size: 13.5px; color: rgba(242, 244, 241, 0.85); }
.jpi-why-cols.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.jpi-lp-faq { padding: 110px 0; background: var(--c-light); }
.jpi-lp-faq-list { display: grid; gap: 12px; }
.jpi-lp-faq-list details { border: 1px solid var(--c-line); background: #ffffff; transition: border-color .25s; }
.jpi-lp-faq-list details[open] { border-color: var(--c-dark); }
.jpi-lp-faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    font-size: 17px;
    font-weight: 700;
    color: var(--c-dark);
    cursor: pointer;
    list-style: none;
}
.jpi-lp-faq-list summary::-webkit-details-marker { display: none; }
.jpi-lp-faq-list summary::after { content: "+"; flex-shrink: 0; font-size: 24px; font-weight: 400; line-height: 1; transition: transform .25s; }
.jpi-lp-faq-list details[open] summary::after { transform: rotate(45deg); }
.jpi-lp-faq-list details p { margin: 0; padding: 0 26px 24px; font-size: 15.5px; line-height: 1.95; color: var(--c-muted); }

.jpi-lp-guides { padding: 110px 0; background: #ffffff; }
.jpi-lp-guide-list { border-top: 1px solid var(--c-line); }
.jpi-lp-guide-list .jpi-practice-row h2 { font-size: 19px; }

.jpi-lp-cta { padding: 0 0 100px; background: #ffffff; }
.jpi-lp-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 56px 60px; background: var(--c-dark); color: var(--c-light); }
.jpi-lp-cta-inner h2 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; color: var(--c-light); }
.jpi-lp-cta-inner p { margin: 0; font-size: 16px; color: rgba(242, 244, 241, 0.7); }
.jpi-lp-cta-inner .jpi-lp-actions { flex-shrink: 0; margin: 0; }
.jpi-lp-disclaimer { margin: 22px 0 0; font-size: 13px; line-height: 1.8; color: #8a8d88; }

/* Home band → landing page */
.jpi-ps-band { padding: 0 0 110px; background: var(--c-light); }
.jpi-ps-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 40px 48px; background: var(--c-dark); color: var(--c-light); transition: background-color .3s; }
.jpi-ps-band-inner:hover { color: var(--c-light); background: #26272b; }
.jpi-ps-band-inner > span:first-child { display: flex; flex-direction: column; }
.jpi-ps-band-inner .jpi-eyebrow { margin-bottom: 10px; }
.jpi-ps-band-inner strong { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; color: var(--c-light); }
.jpi-ps-band-inner em { margin-top: 6px; font-style: normal; font-size: 15px; color: rgba(242, 244, 241, 0.7); }
.jpi-ps-band-inner .jpi-hero-link { flex-shrink: 0; }
.jpi-home-practice + .jpi-ps-band { margin-top: -30px; }

@media (max-width: 1199px) {
    .jpi-index-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jpi-lp-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jpi-lp-steps-row li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
    .jpi-lp-steps-row li:nth-child(n+3) { border-top: 1px solid var(--c-line); margin-top: 30px; }
}
@media (max-width: 991px) {
    .jpi-lp-steps, .jpi-lp-faq, .jpi-lp-guides { padding: 80px 0; }
    .jpi-why-cols.cols-3 { grid-template-columns: 1fr; }
    .jpi-why-cols.cols-3 .jpi-why-col { padding: 28px 0; border-inline-start: 0; }
    .jpi-why-cols.cols-3 .jpi-why-col + .jpi-why-col { border-top: 1px solid rgba(242, 244, 241, 0.14); }
    .jpi-lp-cta-inner, .jpi-ps-band-inner { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
    .jpi-ps-band { padding-bottom: 80px; }
}
@media (max-width: 575px) {
    .jpi-index-grid.cols-4 { grid-template-columns: 1fr; }
    .jpi-index-grid.cols-4 .jpi-index-card { min-height: 0; }
    .jpi-lp-steps-row { grid-template-columns: 1fr; }
    .jpi-lp-steps-row li, .jpi-lp-steps-row li:nth-child(3) { padding: 26px 0; margin: 0; border-inline-start: 0; }
    .jpi-lp-steps-row li + li { border-top: 1px solid var(--c-line); }
    .jpi-lp-faq-list summary { padding: 18px 20px; font-size: 16px; }
    .jpi-lp-faq-list details p { padding: 0 20px 20px; }
}

/* ── Article body elements (guides) ─────────────────────────────────────── */
.jpi-article-content .lead { font-size: 18px; line-height: 1.95; color: var(--c-dark); }
.jpi-article-content .note {
    margin: 30px 0;
    padding: 22px 26px;
    border-inline-start: 4px solid var(--c-dark);
    background: var(--c-light);
    line-height: 1.9;
}
.jpi-article-content .faq { margin-top: 40px; padding-top: 10px; border-top: 1px solid var(--c-line); }
.jpi-article-content .faq h3 { margin: 24px 0 8px; font-size: 18px; }
.jpi-article-content .faq p { margin-bottom: 8px; }
.jpi-article-content .disclaimer { margin-top: 34px; padding-top: 18px; border-top: 1px dashed var(--c-line); font-size: 14px; color: #6c707a; }
.jpi-article-content ol li::marker { font-weight: 700; color: var(--c-dark); }
