﻿@import url("/fonts/heebo/heebo.css");

/* ==========================================================================
   Eli Kleiman Law Office — homepage styles
   RTL Hebrew law-firm site
   ========================================================================== */

@counter-style hebrew-letters {
    system: alphabetic;
    symbols: "א" "ב" "ג" "ד" "ה" "ו" "ז" "ח" "ט" "י" "כ" "ל" "מ" "נ" "ס" "ע" "פ" "צ" "ק" "ר" "ש" "ת";
    suffix: ". ";
}

@counter-style cyrillic-letters {
    system: alphabetic;
    symbols: "а" "б" "в" "г" "д" "е" "ж" "з" "и" "к" "л" "м" "н" "о" "п" "р" "с" "т" "у" "ф" "х" "ц" "ч" "ш" "э" "ю" "я";
    suffix: ") ";
}

ol.multilevel {
    list-style: none;
    padding-inline-start: 0;
}

.outline-marker {
    display: inline-block;
    margin-inline-end: 0.35em;
    direction: ltr;
    unicode-bidi: isolate;
}

div[data-group] {
    margin: 0 0 0.9em;
    padding-inline-start: 0.9em;
    border-inline-start: 2px solid var(--gray-300);
}

div[data-group] > :last-child {
    margin-bottom: 0;
}

:root {
    /* Colors */
    --teal-950: #0b3234;
    --teal-900: #0f3d3f;
    --teal-800: #164a49;
    --teal-700: #21605d;
    --teal-500: #4f7d78;
    --teal-300: #86a49f;
    --orange-500: #f0a238;
    --orange-600: #dd8f22;
    --ink: #172420;
    --gray-700: #4d5652;
    --gray-500: #77827d;
    --gray-300: #cdd5d1;
    --gray-200: #e5e9e7;
    --gray-100: #f3f5f4;
    --white: #ffffff;
    /* Type */
    --font-base: "Heebo", "Segoe UI", Tahoma, sans-serif;
    /* Layout */
    --container: 1180px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 10px 30px -18px rgba(11, 50, 52, 0.35);
    --shadow-soft: 0 4px 16px -8px rgba(11, 50, 52, 0.2);
    --site-sticky-height: 148px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body, h1, h2, h3, h4, p, ul, form, input, textarea, figure {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea {
    font: inherit;
    color: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

body {
    font-family: var(--font-base);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.not-found-page {
    background: #1a3538;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 40px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--orange-500);
    outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--orange-500);
    color: var(--white);
    box-shadow: 0 10px 20px -10px rgba(240, 162, 56, 0.7);
}

    .btn-primary:hover {
        background: var(--orange-600);
        transform: translateY(-1px);
    }

.btn-block {
    width: 100%;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Stagger grid children so cards rise in sequence rather than all at once */
.feature-row-3 > .reveal:nth-child(1) {
    transition-delay: 0s;
}

.feature-row-3 > .reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.feature-row-3 > .reveal:nth-child(3) {
    transition-delay: 0.24s;
}

.feature-row-2 > .reveal:nth-child(1) {
    transition-delay: 0s;
}

.feature-row-2 > .reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.practice-grid > .reveal:nth-child(1) {
    transition-delay: 0s;
}

.practice-grid > .reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.practice-grid > .reveal:nth-child(3) {
    transition-delay: 0.24s;
}

.blog-grid > .reveal:nth-child(1) {
    transition-delay: 0s;
}

.blog-grid > .reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.blog-grid > .reveal:nth-child(3) {
    transition-delay: 0.24s;
}

/* Hero content fades up once on load, independent of scroll */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-load-in > * {
    animation: heroFadeUp 0.75s cubic-bezier(0.16, 0.8, 0.24, 1) both;
}

.hero-load-in > .eyebrow {
    animation-delay: 0.05s;
}

.hero-load-in > h1 {
    animation-delay: 0.15s;
}

.hero-load-in > p {
    animation-delay: 0.28s;
}

.hero-load-in > .hero-cta {
    animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-load-in > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--orange-500);
    margin-bottom: 14px;
}

.eyebrow-light {
    color: var(--orange-500);
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin-inline: auto;
    margin-bottom: 48px;
}

    .section-head h2 {
        font-size: clamp(26px, 3vw, 34px);
        margin-bottom: 12px;
    }

    .section-head p {
        color: var(--gray-500);
        font-size: 15px;
    }

        .section-head p.sub-en {
            direction: ltr;
            unicode-bidi: isolate;
        }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.site-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar {
    background: var(--teal-950);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.topbar-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 10px 40px;
    display: flex;
    direction: ltr;
    align-items: center;
    gap: 28px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

    .topbar-item:hover {
        color: var(--orange-500);
    }

    .topbar-item .icon-img {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        object-fit: contain;
    }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 0 var(--gray-200);
}

.header-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 18px 40px;
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.logo-img {
    display: block;
    height: auto;
    width: auto;
    max-height: 68px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.header-inner > .btn,
.header-inner > .nav-toggle {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--teal-900);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

    .nav-toggle:hover {
        background: var(--gray-100);
    }

    .nav-toggle svg {
        width: 22px;
        height: 22px;
    }

.main-nav {
    align-self: stretch;
    display: flex;
    margin-block: -18px;
}

.main-nav ul {
    display: flex;
    direction: ltr;
    align-items: stretch;
    gap: 34px;
}

.main-nav > ul > li {
    display: flex;
    align-items: center;
}

.main-nav a,
.main-nav .nav-parent {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.2s ease;
}

    .main-nav a:hover,
    .main-nav .nav-parent:hover {
        color: var(--orange-500);
    }

.main-nav .nav-parent {
    cursor: default;
}

.main-nav svg {
    width: 12px;
    height: 12px;
}

.main-nav .chevron {
    transition: transform 0.2s ease;
}

/* Dropdown (level 2) */
.main-nav li.has-dropdown {
    position: relative;
}

.main-nav .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 190px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 8px;
    display: flex;
    flex-direction: column;
    direction: rtl;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0s linear 0.18s;
    z-index: 60;
}

.main-nav .dropdown::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    height: 12px;
}

.main-nav li.has-dropdown:hover > .dropdown,
.main-nav li.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.main-nav li.has-dropdown:hover > a .chevron,
.main-nav li.has-dropdown:hover > .nav-parent .chevron,
.main-nav li.has-dropdown:focus-within > a .chevron,
.main-nav li.has-dropdown:focus-within > .nav-parent .chevron {
    transform: rotate(180deg);
}

.main-nav .dropdown a {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 400;
    text-align: right;
}

    .main-nav .dropdown a:hover {
        background: var(--gray-100);
        color: var(--orange-500);
    }

    .main-nav .dropdown a.active,
    .main-nav a.active,
    .main-nav .nav-parent.active {
        color: var(--orange-500);
    }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background: linear-gradient(150deg, #7f9c97 0%, #33605d 45%, #0e3b3d 90%);
    padding-top: 72px;
    padding-bottom: 0;
    position: relative;
}

.hero-inner {
    max-width: 780px;
    margin-inline: auto;
    padding-inline: 40px;
    text-align: center;
    color: var(--white);
}

    .hero-inner .eyebrow {
        background: rgba(255, 255, 255, 0.12);
        padding: 6px 16px;
        border-radius: 999px;
    }

    .hero-inner h1 {
        color: var(--white);
        font-size: clamp(32px, 4.4vw, 48px);
        margin-bottom: 20px;
    }

    .hero-inner p {
        color: rgba(255, 255, 255, 0.82);
        font-size: 16px;
        max-width: 640px;
        margin-inline: auto;
        margin-bottom: 32px;
    }

/* ==========================================================================
   404
   ========================================================================== */
.not-found {
    background: linear-gradient(180deg, #8fa3a6 0%, #4a6a6c 42%, #1a3538 100%);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}

.not-found-inner {
    max-width: var(--container);
    margin-inline: auto;
    width: 100%;
}

    .not-found-inner h1 {
        color: var(--white);
        font-size: clamp(26px, 3.2vw, 40px);
        font-weight: 500;
        margin-bottom: 8px;
    }

.not-found-code {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(120px, 18vw, 200px);
    font-weight: 700;
    line-height: 0.85;
    color: var(--orange-500);
    margin: 4px 0 28px;
}

    .not-found-inner p:not(.not-found-code) {
        color: rgba(255, 255, 255, 0.9);
        font-size: 15px;
        font-weight: 300;
        max-width: 34em;
        margin-bottom: 36px;
    }

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 64px;
}

/* Feature cards overlapping the hero bottom edge */
.feature-cards {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 40px;
    position: relative;
    transform: translateY(64px);
}

.feature-row {
    display: grid;
    direction: ltr;
    gap: 26px;
}

.feature-row-3 {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 26px;
}

.feature-row-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-inline: auto;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 34px -18px rgba(11,50,52,0.4);
        background: var(--teal-900);
        border-color: var(--teal-900);
        color: var(--white);
    }

        .feature-card:hover .feature-icon {
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
        }

        .feature-card:hover h3 {
            color: var(--white);
        }

        .feature-card:hover p {
            color: rgba(255, 255, 255, 0.72);
        }

.feature-icon {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: var(--gray-100);
    color: var(--teal-900);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: background 0.4s ease, color 0.4s ease;
}

    .feature-icon svg {
        width: 42px;
        height: 42px;
    }

    .feature-icon .icon-img {
        width: 56px;
        height: 56px;
        object-fit: contain;
    }

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    transition: color 0.4s ease;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    transition: color 0.4s ease;
}

/* ==========================================================================
   Strip banner (dark call-out line)
   ========================================================================== */
.strip-banner {
    background: var(--teal-900);
    margin-top: 108px;
    padding: 32px 40px;
    text-align: center;
}

    .strip-banner p {
        max-width: 900px;
        margin-inline: auto;
        color: rgba(255, 255, 255, 0.92);
        font-size: 18px;
        font-weight: 500;
        line-height: 1.7;
    }

    .strip-banner .highlight {
        color: var(--orange-500);
        font-weight: 700;
    }

/* ==========================================================================
   Practice areas
   ========================================================================== */
.practice-areas {
    padding: 100px 0;
}

.practice-grid {
    display: grid;
    direction: ltr;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.practice-box {
    display: flex;
    direction: rtl;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.practice-box-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.practice-box-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

    .practice-box:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-soft);
        background: var(--teal-900);
        border-color: var(--teal-900);
        color: var(--white);
    }

        .practice-box:hover h3 {
            color: var(--white);
        }

        .practice-box:hover p {
            color: rgba(255, 255, 255, 0.72);
        }

        .practice-box:hover .box-arrow {
            color: var(--white);
            border-color: rgba(255,255,255,0.4);
            background: transparent;
        }

.practice-box-text h3 {
    font-size: 17px;
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.practice-box-text p {
    font-size: 13.5px;
    color: var(--gray-500);
    transition: color 0.4s ease;
}

.box-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--teal-900);
    transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

    .box-arrow svg {
        width: 15px;
        height: 15px;
    }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
    background: linear-gradient(150deg, #6f938e 0%, #1c4c4a 55%, #0e3b3d 100%);
    text-align: center;
    padding: 90px 40px;
    color: var(--white);
}

    .cta-banner .eyebrow {
        background: rgba(255, 255, 255, 0.12);
        padding: 6px 16px;
        border-radius: 999px;
    }

    .cta-banner h2 {
        color: var(--white);
        font-size: clamp(26px, 3.4vw, 36px);
        margin-bottom: 16px;
    }

    .cta-banner p {
        max-width: 560px;
        margin-inline: auto;
        color: rgba(255, 255, 255, 0.82);
        font-size: 15px;
        margin-bottom: 30px;
    }

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background: var(--gray-100);
}

#contact {
    scroll-margin-top: calc(var(--site-sticky-height) + 20px);
}

.contact-form {
    max-width: 620px;
    margin-inline: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-card);
}

    .contact-form .form-row {
        display: grid;
        direction: ltr;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .contact-form input:not([type="checkbox"]),
    .contact-form textarea {
        width: 100%;
        border: 1.5px solid var(--gray-200);
        border-radius: var(--radius-sm);
        padding: 14px 16px;
        font-size: 14.5px;
        text-align: right;
        background: var(--white);
        transition: border-color 0.2s ease;
    }

        .contact-form input:not([type="checkbox"]):focus,
        .contact-form textarea:focus {
            border-color: var(--orange-500);
            outline: none;
        }

    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }

    .contact-form ::placeholder {
        color: var(--gray-500);
    }

.contact-consent-notice {
    font-size: 13px;
    line-height: 1.75;
    color: var(--gray-500);
    text-align: right;
}

    .contact-consent-notice a {
        color: var(--orange-500);
    }

.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--gray-700);
    cursor: pointer;
    user-select: none;
}

    .contact-consent input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 3px;
        flex-shrink: 0;
        accent-color: var(--teal-700);
        cursor: pointer;
    }

.contact-form-status {
    font-size: 14.5px;
    line-height: 1.6;
    text-align: right;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
}

.contact-form-status--ok {
    color: var(--teal-800);
    background: #e8f3f1;
}

.contact-form-status--error {
    color: #8a2a2a;
    background: #fbeaea;
}

.contact-form .btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-section {
    padding: 100px 0;
    text-align: center;
}

.blog-grid {
    display: grid;
    direction: ltr;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: right;
    margin-bottom: 44px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    unicode-bidi: isolate;
    text-align: start;
}

html[dir="rtl"] .blog-card {
    direction: rtl;
}

html[dir="ltr"] .blog-card {
    direction: ltr;
}

.blog-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: linear-gradient(150deg, #8fada7 0%, #2c5654 55%, #0e3b3d 100%);
}

    .blog-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.blog-article-meta {
    display: flex;
    direction: ltr;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 16px 0 18px;
}

.blog-article-meta .blog-date,
.blog-article-meta .blog-author {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500);
}

.blog-article-meta .blog-author {
    margin-left: auto;
    direction: rtl;
    text-align: right;
}

.blog-author {
    margin: -8px 0 18px;
    font-size: 14px;
    color: var(--gray-500);
}

.blog-date {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--gray-500);
}

.blog-card h3 {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.blog-empty {
    color: var(--gray-500);
    font-size: 16px;
}

.blog-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.blog-pager__page,
.blog-pager__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--teal-800);
    font-size: 14px;
    font-weight: 600;
}

a.blog-pager__page:hover,
a.blog-pager__nav:hover {
    border-color: var(--orange-500);
    color: var(--orange-600);
}

.blog-pager__page.is-current {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
}

.blog-pager__nav.is-disabled {
    color: var(--gray-300);
    cursor: default;
}

.page-hero .breadcrumb {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--orange-500);
}

    .page-hero .breadcrumb a:hover {
        text-decoration: underline;
    }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange-500);
    align-self: flex-start;
}

    .read-more svg {
        width: 13px;
        height: 13px;
    }

/* ==========================================================================
   Practice area detail page (page hero + two-column layout)
   ========================================================================== */
.page-hero {
    background: linear-gradient(150deg, #7f9c97 0%, #33605d 45%, #0e3b3d 90%);
    padding: 90px 0;
    text-align: center;
}

    .page-hero h1 {
        color: var(--white);
        font-size: clamp(30px, 4vw, 42px);
    }

.practice-detail {
    padding: 90px 0;
}

.practice-detail-grid {
    display: grid;
    direction: ltr;
    grid-template-columns: 2fr 1fr;
    gap: 44px;
    align-items: start;
}

.practice-detail-main {
    direction: rtl;
    text-align: right;
}

.detail-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    background: linear-gradient(150deg, #8fada7 0%, #2c5654 55%, #0e3b3d 100%);
}

.practice-detail-main h2 {
    font-size: 26px;
    margin-bottom: 18px;
}

.practice-detail-main p {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 18px;
}

/* Editor lists keep a start padding so the marker sits beside the text.
   The site reset removes that padding from every ul. */
.practice-detail-main ul,
.practice-detail-main ol {
    margin: 0 0 18px;
    padding-inline-start: 1.6em;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.85;
}

.practice-detail-main ul {
    list-style: disc;
}

.practice-detail-main ol {
    list-style: decimal;
}

.practice-detail-main li {
    margin-bottom: 0.3em;
}

.practice-detail-main li > p {
    margin-bottom: 0.3em;
}

.practice-detail-main li > :last-child {
    margin-bottom: 0;
}

.practice-detail-main ol.multilevel {
    list-style: none;
    padding-inline-start: 0;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 24px;
    padding-right: 4px;
}

    .detail-list li {
        position: relative;
        padding-right: 24px;
        color: var(--gray-700);
        font-size: 15px;
        line-height: 1.8;
    }

        .detail-list li::before {
            content: "";
            position: absolute;
            right: 0;
            top: 9px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--orange-500);
        }

/* Sidebar */
.practice-sidebar {
    direction: rtl;
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.sidebar-nav-item {
    display: block;
    text-align: center;
    padding: 15px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

    .sidebar-nav-item:hover {
        border-color: var(--orange-500);
        color: var(--orange-500);
    }

    .sidebar-nav-item.active {
        background: var(--teal-900);
        border-color: var(--teal-900);
        color: var(--white);
    }

.sidebar-cta {
    background: linear-gradient(150deg, #6f938e 0%, #1c4c4a 55%, #0e3b3d 100%);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    text-align: center;
}

    .sidebar-cta .eyebrow {
        background: rgba(255, 255, 255, 0.12);
        padding: 5px 14px;
        border-radius: 999px;
        font-size: 12px;
    }

    .sidebar-cta h3 {
        color: var(--white);
        font-size: 19px;
        margin: 14px 0 20px;
        line-height: 1.4;
    }

.latest-articles {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    background: var(--white);
}

    .latest-articles h3 {
        color: var(--orange-500);
        font-size: 20px;
        margin-bottom: 4px;
    }

.latest-article {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

    .latest-article:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .latest-article h4 {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 8px;
        unicode-bidi: isolate;
    }

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 12px 0 20px;
}

.blog-article-body ol,
.blog-article-body ul {
    margin: 0 0 18px;
    padding-right: 22px;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.85;
}

.blog-article-body li {
    margin-bottom: 8px;
}

.blog-article-body a {
    color: var(--orange-500);
}

.blog-detail-footer {
    margin-top: 36px;
    border-top: 1px solid var(--gray-200);
}

/* ==========================================================================
   Legal pages (Privacy Policy, Terms of Use)
   ========================================================================== */
.legal-page {
    padding: 90px 0;
}

.legal-page-body {
    max-width: 820px;
    margin-inline: auto;
    text-align: right;
}

    .legal-page-body p {
        color: var(--gray-700);
        font-size: 15px;
        line-height: 1.85;
        margin-bottom: 18px;
    }

    .legal-page-body h2 {
        margin: 28px 0 10px;
        font-size: 22px;
        line-height: 1.4;
    }

    .legal-page-body ol,
    .legal-page-body ul {
        margin: 0 0 18px;
        padding-right: 22px;
        color: var(--gray-700);
        font-size: 15px;
        line-height: 1.85;
    }

    .legal-page-body li {
        margin-bottom: 8px;
    }

    .legal-page-body a {
        color: var(--orange-500);
    }

.legal-hero {
    background: linear-gradient(150deg, #7f9c97 0%, #33605d 45%, #0e3b3d 90%);
    padding: 80px 0 90px;
}

.legal-hero-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 40px;
}

    .legal-hero-inner h1 {
        color: var(--white);
        font-size: clamp(32px, 4.6vw, 52px);
        font-weight: 500;
        line-height: 1.15;
        margin-bottom: 18px;
        text-align: start;
    }

.legal-hero-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

    .legal-hero-meta p {
        margin: 0;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        line-height: 1.5;
    }

.legal-hero-intro {
    max-width: 44em;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
}

    .legal-hero-intro p {
        margin: 0 0 16px;
        font-size: 15px;
        line-height: 1.85;
        color: inherit;
    }

        .legal-hero-intro p:last-child {
            margin-bottom: 0;
        }

    .legal-hero-intro a {
        color: var(--orange-500);
    }

.legal-toc {
    position: sticky;
    top: calc(var(--site-sticky-height) + 12px);
    max-height: calc(100dvh - var(--site-sticky-height) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-self: start;
    padding: 0;
}

.legal-layout {
    direction: ltr;
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 48px 64px;
    align-items: start;
    max-width: var(--container);
    margin-inline: auto;
    padding: 28px 40px 100px;
}

    .legal-layout .legal-toc,
    .legal-layout .legal-sections {
        direction: rtl;
    }

.legal-toc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

    .legal-toc-row:first-child {
        border-top: 1px solid var(--ink);
    }

    .legal-toc-row:hover,
    .legal-toc-row.is-active {
        color: var(--ink);
        font-weight: 700;
    }

.legal-toc-num,
.legal-toc-title {
    transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.legal-toc-num {
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.legal-toc-title {
    min-width: 0;
}

.legal-sections {
    padding: 0;
}

.legal-section {
    padding: 36px 0 20px;
    scroll-margin-top: calc(var(--site-sticky-height) + 16px);
}

.legal-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 16px;
    margin-bottom: 28px;
}

    .legal-section-head h2 {
        font-size: clamp(18px, 2vw, 24px);
        font-weight: 600;
        line-height: 1.35;
        margin: 0;
    }

.legal-section-num {
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.legal-section-body {
    max-width: 46em;
}

    .legal-section-body p {
        color: var(--gray-700);
        font-size: 15px;
        line-height: 1.85;
        margin: 0 0 16px;
    }

    .legal-section-body ul,
    .legal-section-body ol {
        margin: 0 0 18px;
        padding-inline-start: 22px;
        color: var(--gray-700);
        font-size: 15px;
        line-height: 1.85;
    }

    .legal-section-body ol ol,
    .legal-section-body ul ul,
    .legal-section-body ol ul,
    .legal-section-body ul ol {
        margin: 8px 0 0;
    }

    .legal-section-body li {
        margin-bottom: 8px;
    }

    .legal-section-body a {
        color: var(--orange-500);
    }

@media (max-width: 900px) {
    .practice-detail-grid {
        grid-template-columns: 1fr;
    }

    .practice-sidebar {
        position: static;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 12px;
    }

    .legal-toc {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

/* ==========================================================================
   About page (bio + photo with experience badge)
   ========================================================================== */
.about-detail {
    padding: 90px 0;
}

.about-detail-grid {
    display: grid;
    direction: ltr;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-detail-text {
    direction: rtl;
    text-align: right;
}

    .about-detail-text h2 {
        font-size: 28px;
        line-height: 1.4;
        margin: 14px 0 22px;
    }

    .about-detail-text p {
        color: var(--gray-700);
        font-size: 15px;
        line-height: 1.85;
        margin-bottom: 18px;
    }

    .about-detail-text ul,
    .about-detail-text ol {
        margin: 0 0 18px;
        padding-inline-start: 1.4em;
        color: var(--gray-700);
        font-size: 15px;
        line-height: 1.85;
    }

    .about-detail-text ul {
        list-style: disc;
    }

    .about-detail-text ol {
        list-style: decimal;
    }

    .about-detail-text li {
        margin-bottom: 8px;
    }

    .about-detail-text li:last-child {
        margin-bottom: 0;
    }

    .about-detail-text ol.multilevel {
        list-style: none;
        padding-inline-start: 0;
    }

    .about-detail-text .btn {
        margin-top: 10px;
    }

.about-detail-media {
    direction: rtl;
    display: flex;
    justify-content: center;
}

.about-photo-wrap {
    position: relative;
    display: inline-block;
}

.about-photo-frame {
    padding: 14px 14px 0;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
}

.about-photo-img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

.about-badge {
    position: absolute;
    top: 14%;
    right: -34px;
    background: var(--teal-900);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.about-badge-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--orange-500);
    line-height: 1;
}

    .about-badge-number sup {
        font-size: 18px;
        top: -0.6em;
    }

.about-badge-label {
    display: block;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .about-detail-grid {
        grid-template-columns: 1fr;
    }

    .about-detail-media {
        order: -1;
        margin-bottom: 8px;
    }

    .about-badge {
        right: -12px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--teal-950);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 64px;
}

.footer-top {
    max-width: var(--container);
    margin-inline: auto;
    padding: 0 40px 48px;
    display: grid;
    direction: ltr;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo .logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-logo p {
    margin-top: 16px;
    font-size: 13.5px;
    max-width: 260px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-col {
    direction: rtl;
    text-align: right;
}

    .footer-col h4 {
        color: var(--white);
        font-size: 15px;
        margin-bottom: 18px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--orange-500);
        display: inline-block;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .footer-col ul a,
        .footer-col ul li {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.72);
            transition: color 0.2s ease;
        }

            .footer-col ul a:hover {
                color: var(--orange-500);
            }

    .footer-col .contact-line {
        display: flex;
        direction: ltr;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.72);
        margin-bottom: 12px;
    }

        .footer-col .contact-line svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
        }

        .footer-col .contact-line .icon-img {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
            object-fit: contain;
        }

.footer-bottom {
    text-align: center;
    padding: 22px 40px;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal {
    margin-top: 8px;
}

    .footer-legal a {
        color: rgba(255, 255, 255, 0.55);
        transition: color 0.2s ease;
    }

        .footer-legal a:hover {
            color: var(--orange-500);
        }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .feature-row-3 {
        grid-template-columns: 1fr;
    }

    .feature-row-2 {
        grid-template-columns: 1fr;
    }

    .practice-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    .header-inner {
        gap: 12px;
    }

    .logo-img {
        max-height: 44px;
    }

    .header-inner > .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-soft);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        margin-block: 0;
        display: block;
    }

        .main-nav.open {
            max-height: 80vh;
            overflow-y: auto;
        }

        .main-nav ul {
            align-items: stretch;
            direction: rtl;
            gap: 0;
        }

        .main-nav > ul {
            flex-direction: column-reverse;
            padding: 8px 20px 18px;
        }

        .main-nav > ul > li,
        .main-nav .dropdown > li {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            width: 100%;
        }

        .main-nav a,
        .main-nav .nav-parent {
            width: 100%;
            justify-content: flex-start;
            padding: 12px 0;
            border-bottom: 1px solid var(--gray-100);
            text-align: right;
        }

        .main-nav .nav-parent {
            font-weight: 700;
            color: var(--gray-500);
            border-bottom: none;
            padding-bottom: 4px;
        }

            .main-nav .nav-parent:hover {
                color: var(--gray-500);
            }

        /* Dropdowns render as an always-open indented sublist on touch/mobile */
        .main-nav .chevron {
            display: none;
        }

        .main-nav .dropdown {
            position: static;
            display: flex;
            flex-direction: column;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            box-shadow: none;
            border: none;
            border-radius: 0;
            padding: 0 0 8px;
            min-width: 0;
            width: 100%;
        }

            .main-nav .dropdown::before {
                content: none;
            }

            .main-nav .dropdown a {
                padding: 10px 0;
                padding-inline-start: 16px;
                font-size: 13.5px;
                color: var(--gray-700);
                border-bottom: none;
                text-align: right;
            }
}

@media (max-width: 991px) and (min-width: 992px) {
    /* placeholder kept intentionally empty (guard against selector clashes) */
}

@media (max-width: 480px) {
    .topbar-inner {
        gap: 18px;
        padding-inline: 20px;
    }

    .topbar-item .label {
        display: none;
    }
}

@media (max-width: 640px) {
    .container,
    .topbar-inner,
    .header-inner,
    .feature-cards,
    .practice-areas .container,
    .footer-top {
        padding-inline: 20px;
    }

    .hero-inner {
        padding-inline: 20px;
    }

    .not-found {
        padding: 56px 20px;
    }

    .legal-hero {
        padding: 56px 0 64px !important;
    }

    .legal-hero-inner,
    .legal-layout {
        padding-inline: 20px;
    }

    .legal-section {
        padding: 24px 0 12px !important;
    }

    .hero-cta {
        flex-direction: row;
        gap: 12px;
    }

    .strip-banner {
        padding: 28px 20px;
    }

        .strip-banner p {
            font-size: 16px;
        }

    .contact-form {
        padding: 24px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: 8px;
    z-index: 80;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--teal-950);
    font-weight: 700;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

.a11y {
    position: fixed;
    z-index: 70;
    inset-inline-start: 16px;
    bottom: 16px;
}

.a11y-toggle,
.a11y-actions button,
.a11y-close,
.a11y-statement {
    font-family: var(--font-base);
}

.a11y-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--white);
    border-radius: 999px;
    background: var(--teal-900);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.a11y-toggle svg {
    width: 22px;
    height: 22px;
}

.a11y-toggle:hover,
.a11y-toggle:focus-visible {
    background: var(--teal-700);
}

.a11y-panel {
    position: absolute;
    inset-inline-start: 0;
    bottom: calc(100% + 10px);
    width: min(280px, calc(100vw - 32px));
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-card);
}

.a11y-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.a11y-panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.a11y-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--teal-800);
    cursor: pointer;
}

.a11y-close svg {
    width: 18px;
    height: 18px;
}

.a11y-close:hover {
    background: var(--gray-100);
}

.a11y-actions {
    display: grid;
    gap: 8px;
}

.a11y-actions button,
.a11y-statement {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.a11y-actions button[aria-pressed="true"] {
    border-color: var(--teal-700);
    background: var(--teal-900);
    color: var(--white);
}

.a11y-statement {
    margin-top: 8px;
    background: transparent;
}

.a11y-toggle:focus-visible,
.a11y-close:focus-visible,
.a11y-actions button:focus-visible,
.a11y-statement:focus-visible {
    outline: 2px solid var(--orange-500);
    outline-offset: 2px;
}

/* Text size is applied in accessibility.js. A percentage or zoom on the root
   either misses the pixel sizes or shifts the click targets. */

html.a11y-contrast main,
html.a11y-contrast main :where(p, li, h1, h2, h3, h4, span, div, article, section) {
    background-color: #000 !important;
    color: #fff !important;
}

html.a11y-contrast main a {
    color: #ffe14a !important;
}

html.a11y-contrast main img {
    background: transparent !important;
}

html.a11y-links a {
    text-decoration: underline;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

html.a11y-font body,
html.a11y-font button,
html.a11y-font input,
html.a11y-font textarea {
    font-family: Arial, "Segoe UI", Tahoma, sans-serif !important;
}

/* A list whose markers were turned off still carried the padding that made room
   for them. Ordered lists pick that up from the browser even when unordered
   lists do not, so the text stayed shifted after the numbers were gone. */
:is(ul, ol):not(.multilevel):is(
    [style*="list-style-type: none"],
    [style*="list-style-type:none"],
    [style*="list-style: none"],
    [style*="list-style:none"]
) {
    margin-inline-start: 0;
    padding-inline-start: 0;
    padding-left: 0;
    padding-right: 0;
}
