/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #002147;
    --secondary-color: #708090;
    --accent-color: #C8A45A;
    --accent-light: #e0bc7a;
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --navy-dark: #001530;
    --gold-gradient: linear-gradient(135deg, #C8A45A, #e0bc7a, #C8A45A);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1280px;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 15px 35px rgba(0,0,0,0.15);
    --shadow-gold: 0 0 25px rgba(200,164,90,0.3);
    /* Typography variables — editable via CMS */
    --font-heading: 'Cormorant Garant', 'Playfair Display', serif;
    --font-body: 'Raleway', 'Assistant', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    --font-size-base: 16px;
    --font-size-scale: 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

.ar-inline, .ar-block { font-family: var(--font-arabic); direction: rtl; }
.ar-block {
    display: block;
    font-size: 0.78em;
    margin-top: 6px;
    font-weight: 300;
    color: var(--accent-color);
}

/* Arabic text rendering normalization */
[lang="ar"], .ar-block, .ar-inline, .quote-ar, .qa-ar, .about-intro,
html[lang="ar"] p, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga";
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.bg-light { background-color: var(--light-bg); }

/* Noise texture overlay */
.section::before, .bg-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}
.section { position: relative; }
.section > .container { position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 55px; }
.section-header h2 { font-size: 2.6rem; margin-bottom: 14px; font-weight: 600; letter-spacing: 0.02em; }
#about .section-header { margin-bottom: 22px; }

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.underline {
    width: 55px; height: 3px;
    background: var(--gold-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn:has(.btn-ar) {
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.btn-he {
    display: flex;
    align-items: center;
    gap: 7px;
}
.btn-ar {
    display: block;
    font-family: 'Alyamama', 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    opacity: 0.75;
    text-transform: none;
    line-height: 1;
    text-align: center;
    width: 100%;
}
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-family: 'Raleway', 'Assistant', sans-serif;
    letter-spacing: 0.06em;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--navy-dark);
    box-shadow: 0 4px 20px rgba(200,164,90,0.4);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200,164,90,0.55);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid rgba(255,255,255,0.55);
    color: rgba(255,255,255,0.9);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-block { display: block; width: 100%; }

/* --- Glassmorphism Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 33, 71, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(200,164,90,0.25);
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 21, 48, 0.95);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; overflow: hidden; }

.logo { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.logo-icon {
    width: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
.logo-text { display: flex; flex-direction: column; }
.firm-name { font-size: 1.35rem; font-weight: 700; color: var(--white); line-height: 1.2; letter-spacing: 0.03em; white-space: nowrap; }
.firm-tagline { font-size: 0.92rem; color: rgba(200,164,90,0.85); font-weight: 300; letter-spacing: 0.04em; font-family: 'Cairo', sans-serif; white-space: nowrap; }

.nav-links { display: flex; gap: 28px; align-items: center; flex-shrink: 0; flex-wrap: nowrap; }
.nav-links a {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding-bottom: 3px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 1.5px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--accent-light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent-color); }

.lang-switch a {
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-color);
    padding: 5px 13px;
    border-radius: 3px;
    font-size: 0.78rem;
}
.lang-switch a:hover { background-color: var(--accent-color); color: var(--navy-dark) !important; }

.nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; right: 0;
    width: 100%;
    background: rgba(0, 21, 48, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-top: 1px solid rgba(200,164,90,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    gap: 15px;
}

.menu-toggle { display: none; font-size: 1.4rem; cursor: pointer; color: var(--accent-color); background: none; border: none; padding: 0; line-height: 1; }

/* Nav Dropdown (שירותים / خدماتنا) */
.navbar .container { overflow: visible; }
.has-dropdown { position: relative; }
.nav-dropdown {
    list-style: none;
    margin: 0; padding: 8px 0;
    position: absolute;
    top: 100%; right: 0;
    min-width: 210px;
    background: rgba(0, 21, 48, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200,164,90,0.25);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1100;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown li { display: block; }
.nav-dropdown a {
    display: block !important;
    padding: 11px 18px !important;
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.86rem !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    border-bottom: none !important;
}
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a:hover {
    background: rgba(200,164,90,0.12);
    color: var(--accent-color) !important;
}
@media (max-width: 768px) {
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.25);
        margin-top: 6px;
        min-width: auto;
        border-radius: 4px;
    }
    .nav-dropdown a { padding-right: 24px !important; }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 720px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    background-color: var(--navy-dark);
}

/* Decorative blur circles */
.hero::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,164,90,0.08) 0%, transparent 70%);
    top: 10%; left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }
.slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}
.slide.active { opacity: 1; }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,21,48,0.92) 0%,
        rgba(0,33,71,0.6) 45%,
        rgba(0,21,48,0.3) 100%
    );
    z-index: 1;
}

.hero-content { position: relative; z-index: 3; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(200,164,90,0.12);
    border: 1px solid rgba(200,164,90,0.35);
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.75rem;
    color: var(--accent-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    backdrop-filter: blur(12px);
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-badge-dot {
    font-size: 0.45rem;
    color: var(--accent-color);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-size: 5rem;
    color: var(--white);
    margin-bottom: 0;
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-shadow: 0 3px 35px rgba(0,0,0,0.45);
}
.he-block { display: block; }

.hero-divider {
    width: 60px; height: 1px;
    background: var(--gold-gradient);
    margin: 24px auto;
    opacity: 0.8;
}

.hero p {
    font-size: 1.08rem;
    max-width: 600px;
    margin: 0 auto 38px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    font-family: 'Raleway', sans-serif;
    line-height: 2;
    letter-spacing: 0.01em;
}

.hero-btns { display: flex; justify-content: center; gap: 16px; }

/* Hero counters */
.hero-counters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 52px;
    padding-top: 36px;
    border-top: 1px solid rgba(200,164,90,0.18);
}
.hero-counter { text-align: center; padding: 0 48px; }
.hero-counter-sep {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(200,164,90,0.4), transparent);
}
.counter-num {
    display: block;
    font-family: 'Cormorant Garant', serif;
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--accent-light);
    line-height: 1;
    letter-spacing: 0.02em;
}
.counter-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
    margin-top: 8px;
    display: block;
    font-weight: 300;
}
html[lang="ar"] .hero p {
    font-family: 'Alyamama', 'Cairo', sans-serif;
    font-weight: 400;
}
html[lang="ar"] .counter-num {
    font-family: 'Cairo', sans-serif;
    font-weight: 300;
}
html[lang="ar"] .counter-label {
    font-family: 'Cairo', sans-serif;
    font-weight: 300;
    letter-spacing: 0.08em;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}
.slide-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(200,164,90,0.4);
}
.slide-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 34px;
    right: 40px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(200,164,90,0.7), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--primary-color);
    border-bottom: 1px solid rgba(200,164,90,0.2);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,164,90,0.04) 0%, transparent 60%);
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; z-index: 1; }
.stat-item { text-align: center; padding: 0 30px; border-left: 1px solid rgba(200,164,90,0.2); }
.stat-item:last-child { border-left: none; }
.stat-num {
    font-family: 'Cormorant Garant', serif;
    font-size: 2.8rem; font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block; line-height: 1; margin-bottom: 6px;
}
.stat-label {
    font-size: 0.75rem; color: rgba(255,255,255,0.6);
    letter-spacing: 0.09em; text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
}

/* --- About Section --- */
.about-intro p strong {
    color: var(--accent-color);
    font-weight: 700;
}

.about-intro {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 55px;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--secondary-color);
    font-family: 'Alyamama', 'Cairo', sans-serif;
}

/* Reduce gap between the two specialization paragraphs */
.about-intro p + p {
    margin-top: 0.6rem;
}


.lawyers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }

.lawyer-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid rgba(200,164,90,0.15);
    background: var(--white);
}
.lawyer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold), var(--shadow-md);
    border-color: rgba(200,164,90,0.5);
}

.lawyer-img { position: relative; overflow: hidden; }
.lawyer-img img {
    width: 100%; height: 300px;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.5s ease;
}
@media (min-width: 769px) {
    .lawyer-img img { height: 460px; }
}
.lawyer-card:hover .lawyer-img img { transform: scale(1.04); }

/* Gradient overlay with name on image */
.lawyer-img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,21,48,0.88) 0%, rgba(0,33,71,0.4) 55%, transparent 100%);
    padding: 24px 20px 16px;
    color: var(--white);
}
.lawyer-img-overlay h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 3px;
    font-weight: 600;
    font-family: 'Alyamama', 'Cairo', sans-serif;
}
.lawyer-img-overlay .lawyer-title {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    font-family: var(--font-arabic), var(--font-body);
    font-weight: 600;
}

.lawyer-info { padding: 28px; }
.lawyer-info p { color: var(--secondary-color); line-height: 1.8; font-size: 0.97rem; font-family: 'Alyamama', 'Cairo', sans-serif; }

.quote-section {
    margin-top: 65px;
    padding: 45px 55px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #eef1f5 100%);
    border-right: 3px solid var(--accent-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.quote-section::before {
    content: '\201C';
    font-family: 'Cormorant Garant', serif;
    font-size: 8rem;
    color: var(--accent-color);
    opacity: 0.08;
    position: absolute;
    top: -20px; right: 25px;
    line-height: 1;
}
.quote-he {
    font-family: var(--font-heading);
    font-size: 1.85rem; font-style: italic;
    color: var(--primary-color);
    margin-bottom: 10px; font-weight: 500;
}
.quote-ar { font-size: 1.4rem; font-family: var(--font-arabic); color: var(--primary-color); margin-bottom: 20px; font-weight: 300; }
.quote-author { display: block; font-weight: 700; color: var(--accent-color); letter-spacing: 0.04em; }
html[lang="he"] .qa-ar { display: none; }
html[lang="ar"] .qa-he { display: none; }

/* Language-based quote visibility */
html[lang="he"] .quote-ar { display: none; }
html[lang="ar"] .quote-he { display: none; }
html[lang="ar"] .quote-ar { display: block; }

/* --- Two Quotes Grid --- */
.quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 65px;
}
@media (max-width: 768px) {
    .quotes-grid { grid-template-columns: 1fr; }
    .quote-he { font-size: 2.4rem; }
    .quote-ar { font-size: 2.05rem; }
}

/* --- Services Section --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }

.service-card {
    background: var(--white);
    padding: 38px 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(200,164,90,0.1);
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,33,71,0.02) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-color);
    box-shadow: var(--shadow-gold), var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.35rem; color: var(--primary-color); }
.service-card p { color: var(--secondary-color); font-size: 1.04rem; line-height: 1.75; font-family: 'Alyamama', 'Cairo', sans-serif; }

/* --- Why Us Section --- */
#whyTitle { font-family: 'Alyamama', 'Cairo', sans-serif; }
.why-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(200,164,90,0.2);
    border-radius: 10px;
    overflow: hidden;
}
.why-item {
    padding: 2.6rem;
    display: flex; gap: 1.6rem;
    border-bottom: 1px solid rgba(200,164,90,0.15);
    transition: var(--transition);
    background: var(--white);
}
.why-item:nth-child(odd) { border-left: 1px solid rgba(200,164,90,0.15); }
.why-item:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 768px) {
    .why-item.in-view {
        background: linear-gradient(135deg, #f8f4eb 0%, #fdfaf4 100%);
    }
}
/* Only one why-item highlighted at a time */
.why-grid:hover .why-item {
    background: var(--white);
    transform: none;
    box-shadow: none;
}
.why-item:hover {
    background: linear-gradient(135deg, #f8f4eb 0%, #fdfaf4 100%) !important;
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-sm) !important;
    z-index: 1;
}
.why-num {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.25;
    font-family: 'Cormorant Garant', serif;
    flex-shrink: 0; font-weight: 600;
}
.why-body h4 { margin-bottom: 8px; font-size: 1.25rem; color: var(--primary-color); font-family: 'Alyamama', 'Cairo', sans-serif; }
.why-body p { color: var(--secondary-color); font-size: 1.02rem; line-height: 1.75; font-family: 'Alyamama', 'Cairo', sans-serif; }

/* --- Success Stories (dark navy) --- */
#success.success {
    background: linear-gradient(135deg, #1a3558 0%, #142840 100%);
    position: relative;
    overflow: hidden;
}
#success.success::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}
/* Decorative blur circle */
#success.success::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,164,90,0.07) 0%, transparent 70%);
    bottom: -150px; left: -100px;
    pointer-events: none;
}
#success .section-header h2 { color: var(--white); }
#success .underline { background: var(--gold-gradient); }

.success-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; position: relative; z-index: 1; }

.success-item {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200,164,90,0.2);
    padding: 30px 26px;
    border-radius: 10px;
    display: flex; align-items: flex-start;
    gap: 18px;
    transition: var(--transition);
}
.success-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(200,164,90,0.45);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.success-item i { color: var(--accent-color); font-size: 1.3rem; margin-top: 4px; flex-shrink: 0; }
.success-item strong { display: block; color: var(--white); margin-bottom: 6px; font-family: 'Alyamama', 'Cairo', sans-serif; font-size: 1.05rem; font-weight: 700; }
.success-item p { font-weight: 300; color: rgba(255,255,255,0.75); line-height: 1.75; font-size: 0.93rem; font-family: 'Alyamama', 'Cairo', sans-serif; }

/* --- Contact Section --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }

.contact-info {
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--navy-dark) 100%);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}
.contact-info::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    width: 50%;
    background:
        linear-gradient(160deg, rgba(26,39,68,0.25) 0%, rgba(15,24,48,0.40) 100%),
        url('office_pic_new_cropped.png') 50% 50% / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}
.contact-info::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,164,90,0.12) 0%, transparent 70%);
    bottom: -80px; right: -80px;
    pointer-events: none;
    z-index: 1;
}

.info-item { display: flex; gap: 18px; margin-bottom: 28px; position: relative; z-index: 2; }
.info-item i { font-size: 1.2rem; color: var(--accent-color); margin-top: 4px; }
.info-item h4 {
    margin-bottom: 4px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    font-family: 'Alyamama', 'Cairo', sans-serif;
}
.info-item p, .info-item a { color: rgba(255,255,255,0.82); font-weight: 300; font-size: 1.05rem; font-family: 'Alyamama', 'Cairo', sans-serif; }
.info-item a:hover { color: var(--accent-light); }

.contact-form-wrap { background: var(--white); padding: 50px 45px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dde3eb;
    border-radius: 5px;
    font-family: 'Alyamama', 'Cairo', sans-serif; font-size: 1.02rem;
    text-align: right;
    background: #fafbfc;
    transition: var(--transition);
    color: var(--text-color);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200,164,90,0.1);
}

/* --- Footer (3 columns) --- */
.footer {
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(200,164,90,0.25);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .firm-name { font-size: 1.4rem; color: var(--accent-color); margin-bottom: 8px; display: block; font-family: 'Cormorant Garant', serif; letter-spacing: 0.03em; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.8; font-weight: 300; }

.footer-col h5 {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.78); font-weight: 300; }
.footer-col ul a:hover { color: var(--accent-light); }
.footer-col address { font-style: normal; font-size: 0.88rem; color: rgba(255,255,255,0.78); line-height: 2; font-weight: 300; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.8rem; opacity: 0.5; letter-spacing: 0.03em; }
.accessibility-link { color: var(--accent-color); text-decoration: underline; margin-right: 10px; opacity: 0.7; }
.accessibility-link:hover { opacity: 1; }

/* --- WhatsApp Float + ping + tooltip --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    background-color: #25D366;
    color: var(--white);
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 1001;
    transition: var(--transition);
}
.whatsapp-float i { font-size: 1.6rem; }
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
/* Ping ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waPing 2s ease-out infinite;
}
@keyframes waPing {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.9); opacity: 0; }
}
/* Tooltip */
.whatsapp-float .wa-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy-dark);
    color: var(--white);
    font-size: 0.82rem;
    padding: 7px 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    border: 1px solid rgba(200,164,90,0.3);
    font-family: 'Raleway', sans-serif;
    line-height: 1.4;
}
.whatsapp-float .wa-tooltip .qa-ar {
    font-family: var(--font-arabic);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0;
}
.whatsapp-float .wa-tooltip::after {
    content: '';
    position: absolute;
    left: -6px; top: 50%; transform: translateY(-50%);
    border: 6px solid transparent;
    border-left: none;
    border-right-color: var(--navy-dark);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
.whatsapp-text { display: none; }

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    will-change: opacity, transform;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.25s; }
.delay-2 { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .lawyers-grid, .contact-grid { grid-template-columns: 1fr; }
    .contact-grid { border-radius: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; letter-spacing: 0.01em; }
    .hero-badge { font-size: 0.62rem; letter-spacing: 0.04em; padding: 7px 14px; }
    .hero-counter { padding: 0 18px; }
    .counter-num { font-size: 2rem; }
    .hero-btns { gap: 10px; }
    .hero-btns .btn { padding: 11px 20px; font-size: 0.8rem; white-space: nowrap; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-item { border-left: none; border-bottom: 1px solid rgba(200,164,90,0.15); padding-bottom: 20px; }
    .stat-item:last-child { border-bottom: none; }
    .why-grid { grid-template-columns: 1fr; }
    .why-item:nth-child(odd) { border-left: none; }
    .why-item { border-bottom: 1px solid rgba(200,164,90,0.15); }
    .why-item:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .quote-section { padding: 30px 22px; }
    .contact-form-wrap { padding: 30px 22px; }
    .contact-info { padding: 22px 12px 22px 52%; }
    .contact-info::before {
        width: 50%;
        background:
            linear-gradient(160deg, rgba(26,39,68,0.25) 0%, rgba(15,24,48,0.40) 100%),
            url('office_pic_new_cropped.png') 65% 35% / cover no-repeat;
    }
    .info-item { gap: 10px; margin-bottom: 18px; }
    .info-item h4 { white-space: nowrap; font-size: 0.72rem; }
    .info-item p, .info-item a { white-space: nowrap; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; }
    .scroll-indicator { display: none; }
    .whatsapp-float { right: auto; left: 18px; bottom: 18px; width: 50px; height: 50px; }
    .a11y-toggle { bottom: 96px; left: 18px; right: auto; }
    .a11y-panel { bottom: 152px; left: 18px; right: auto; }

    /* Flip tooltip to the right when button is on the left */
    .whatsapp-float .wa-tooltip {
        right: auto;
        left: calc(100% + 14px);
    }
    .whatsapp-float .wa-tooltip::after {
        left: auto;
        right: -12px;
        border-right: none;
        border-left: 6px solid var(--navy-dark);
        border-right-color: transparent;
    }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px; right: 0;
    background: var(--accent-color);
    color: var(--navy-dark);
    padding: 10px 18px;
    z-index: 10000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--navy-dark); }

/* Visually hidden labels */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicator */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 3px;
}

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

/* Scroll padding for sticky nav */
html { scroll-padding-top: 90px; }

/* ---- Accessibility Widget (minimalist) ---- */
.a11y-toggle {
    position: fixed;
    bottom: 96px; left: 8px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--accent-color);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 1001;
    border: 1px solid rgba(200,164,90,0.4);
    transition: var(--transition);
}
.a11y-toggle:hover { background: var(--navy-dark); transform: scale(1.05); }

/* Tooltip על כפתור נגישות */
.a11y-toggle .a11y-tooltip {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%; transform: translateY(-50%);
    background: var(--navy-dark);
    color: var(--white);
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    border: 1px solid rgba(200,164,90,0.3);
    font-family: 'Raleway', sans-serif;
}
.a11y-toggle .a11y-tooltip::before {
    content: '';
    position: absolute;
    right: -6px; top: 50%; transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: var(--navy-dark);
}
.a11y-toggle:hover .a11y-tooltip { opacity: 1; }

.a11y-panel {
    position: fixed;
    bottom: 156px; left: 30px; right: auto;
    width: 240px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 14px;
    z-index: 1002;
    display: none;
    border-top: 3px solid var(--accent-color);
}
.a11y-panel.open { display: block; }
.a11y-panel h3 {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}
.a11y-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.a11y-options button {
    background: #f5f7fa;
    border: 1px solid #e0e4ea;
    padding: 8px 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.76rem;
    color: var(--text-color);
    transition: all 0.2s;
    font-family: 'Raleway', sans-serif;
}
.a11y-options button:hover { border-color: var(--accent-color); color: var(--primary-color); }
.a11y-options button.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.a11y-reset {
    grid-column: 1 / -1;
    background: transparent !important;
    border: 1px solid var(--accent-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-top: 2px;
}
.a11y-reset:hover { background: var(--accent-color) !important; }

@media (max-width: 480px) {
    .a11y-toggle { left: 18px; right: auto; bottom: 96px; width: 44px; height: 44px; font-size: 1.1rem; }
    .a11y-toggle .a11y-tooltip { display: none; }
    .a11y-panel { left: 18px; right: auto; bottom: 152px; width: calc(100vw - 36px); }
}

/* ---- Accessibility modes ---- */
body.a11y-large-text  { font-size: 18px !important; }
body.a11y-largest-text { font-size: 22px !important; }

body.a11y-high-contrast { background: #000 !important; color: #fff !important; }
body.a11y-high-contrast * { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
body.a11y-high-contrast a, body.a11y-high-contrast h1,
body.a11y-high-contrast h2, body.a11y-high-contrast h3 { color: #ffff00 !important; }
body.a11y-high-contrast img { filter: grayscale(100%) contrast(120%); }

body.a11y-negative-contrast { filter: invert(1) hue-rotate(180deg); }
body.a11y-negative-contrast img { filter: invert(1) hue-rotate(180deg); }

body.a11y-readable-font, body.a11y-readable-font * { font-family: 'Assistant', Arial, sans-serif !important; }

body.a11y-highlight-links a { outline: 2px solid var(--accent-color) !important; outline-offset: 2px; }

body.a11y-stop-animations *, body.a11y-stop-animations *::before, body.a11y-stop-animations *::after {
    animation: none !important; transition: none !important;
}

body.a11y-spacing { letter-spacing: 0.06em !important; word-spacing: 0.12em !important; line-height: 2 !important; }
