@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/frank-ruhl-libre/frank-ruhl-libre-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/frank-ruhl-libre/frank-ruhl-libre-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/frank-ruhl-libre/frank-ruhl-libre-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    /* Color Palette */
    --primary: #981e25;
    --primary-dark: #791107;
    --primary-light: #b82b33;
    --primary-rgb: 152, 30, 37;
    
    --secondary: #d4af37; /* Metallic Gold */
    --secondary-dark: #aa8417;
    --secondary-rgb: 212, 175, 55;

    --bg-cream: #faf8f4;
    --bg-sand: #fbf5e9;
    --text-dark: #1e1e1e;
    --text-gray: #4a4a4a;
    --text-light: #808285;
    --white: #ffffff;
    --black: #000000;
    
    /* Layout Tokens */
    --font-heading: 'Frank Ruhl Libre', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(152, 30, 37, 0.04);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 245, 233, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(152, 30, 37, 0.08);
    transition: var(--transition);
    height: 90px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 60px;
    width: auto;
        max-height: 60px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* Language Button Dropdown */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--white);
    border: 1px solid rgba(152, 30, 37, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    overflow: hidden;
}

.lang-selector:hover .lang-dropdown,
.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-opt {
    display: block;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition);
}

.lang-opt:hover {
    background-color: rgba(152, 30, 37, 0.05);
    color: var(--primary);
}

.lang-opt.active {
    font-weight: bold;
    color: var(--primary-dark);
    background-color: rgba(152, 30, 37, 0.03);
}

/* CTA WhatsApp Button */
.whatsapp-cta {
    background: var(--primary);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(152, 30, 37, 0.3);
    transition: var(--transition);
}

.whatsapp-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(152, 30, 37, 0.4);
}

.whatsapp-cta i {
    font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    transition: var(--transition);
}

/* Hero Section */

.hero {
    position: relative;
    padding-top: 90px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(251, 245, 233, 0.97) 0%, rgba(242, 230, 209, 0.95) 100%);
    background-color: var(--bg-cream);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-cream), transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-content .subtitle {
    font-size: 1.4rem;
    color: var(--secondary-dark);
    font-family: var(--font-heading);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 600px;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(152, 30, 37, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(152, 30, 37, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-logo-img {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-logo-img img {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(152, 30, 37, 0.15);
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

/* About Us Section */
.about-teaser {
    background-color: var(--bg-sand);
    border-top: 1px solid rgba(152, 30, 37, 0.05);
    border-bottom: 1px solid rgba(152, 30, 37, 0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-box img {
    width: 100%;
    display: block;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.about-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-dark);
}

.about-point i {
    color: var(--secondary-dark);
    font-size: 1.2rem;
}

/* Why Us Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(152, 30, 37, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.why-card:hover::before {
    transform: scaleY(1);
}

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

.why-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 24px;
    display: inline-block;
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.why-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Practice Areas Grid */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.practice-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(152,30,37,0.05);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(152,30,37,0.15);
}

.practice-card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(152,30,37,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.practice-card:hover .practice-card-icon {
    background-color: var(--primary);
    color: var(--white);
}

.practice-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.practice-card p {
    font-size: 0.92rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    display: block;
}

.practice-card .read-more {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.practice-card .read-more + .read-more {
    margin-top: 6px;
}

.practice-card .read-more i {
    transition: var(--transition);
}

.practice-card:hover .read-more i {
    transform: translateX(4px);
}

/* Animated SVGs in Practice Detail Page Header */
.practice-hero {
    background-color: var(--bg-sand);
    padding: 140px 0 80px;
    border-bottom: 1px solid rgba(152,30,37,0.05);
}

.practice-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.practice-hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 16px;
}

.practice-hero-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.animated-shape-container {
    width: 100%;
    aspect-ratio: 1;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(152,30,37,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* SVG Animations definitions */
.animated-svg {
    width: 70%;
    height: 70%;
}

/* Shape 1: Morphing Shape for Generic/AI */
.anim-morph {
    animation: morphing 8s ease-in-out infinite;
}
@keyframes morphing {
    0%, 100% { border-radius: 60% 40% 60% 40% / 60% 40% 60% 40%; }
    50% { border-radius: 40% 60% 40% 60% / 40% 60% 40% 60%; }
}

/* Shape 2: Pulse & Spin for Balance/IP */
.anim-spin {
    transform-origin: center;
    animation: spinning 20s linear infinite;
}
@keyframes spinning {
    100% { transform: rotate(360deg); }
}

.anim-pulse {
    animation: pulsing 3s ease-in-out infinite;
}
@keyframes pulsing {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Shape 3: Path stroke animation */
.anim-dash {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 5s linear infinite alternate;
}
@keyframes dash {
    to { stroke-dashoffset: 0; }
}

/* Shape 4: Floating elements */
.anim-float-item {
    animation: floatItem 4s ease-in-out infinite alternate;
}
@keyframes floatItem {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

/* Custom Network SVG animations */
.anim-dash-line {
    stroke-dasharray: 10;
    stroke-dashoffset: 100;
    animation: dashLine 4s linear infinite;
}
@keyframes dashLine {
    to {
        stroke-dashoffset: 0;
    }
}

.anim-pulse-dot {
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Experts/Attorneys Page */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.expert-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(152,30,37,0.04);
    transition: var(--transition);
    cursor: pointer;
}

.expert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(152,30,37,0.12);
}

.expert-img-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 24px auto 12px auto;
    overflow: hidden;
    background-color: var(--bg-sand);
    position: relative;
    border: 3px solid var(--secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.expert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.expert-card:hover .expert-img-container {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.expert-info {
    padding: 20px;
    text-align: center;
}

.expert-info h2,
.expert-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.expert-info .expert-role {
    font-size: 0.88rem;
    color: var(--secondary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dynamic Lawyer Bio Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(152,30,37,0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-cream);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-dark);
    transition: var(--transition);
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
}

.modal-left {
    background: var(--bg-sand);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(152,30,37,0.05);
}

.modal-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-left h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.modal-left .modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.modal-contact-info {
    width: 100%;
    border-top: 1px solid rgba(152,30,37,0.08);
    padding-top: 20px;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.modal-contact-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
}

.modal-right {
    padding: 40px;
}

.modal-right h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 6px;
    display: inline-block;
}

.modal-right p {
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 0.98rem;
    text-align: justify;
}

/* Blog Page layout */
.blog-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.blog-filter-btn {
    background: var(--white);
    border: 1px solid rgba(152,30,37,0.15);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(152,30,37,0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-post-card.hidden {
    display: none;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-dark);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-post-header {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.blog-post-header h2,
.blog-post-header h3 {
    color: var(--white);
    font-size: 1.4rem;
}

.blog-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-post-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-snippet {
    font-size: 0.92rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-post-card .read-more {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Contact Us Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-panel {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-info-panel h2,
.contact-info-panel h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-top: 4px;
}

.contact-item h3,
.contact-item h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.contact-form-panel {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(152,30,37,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(152, 30, 37, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer styling */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 6px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-social-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .experts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1100px) {
    .header-container {
        height: 75px;
    }
    .logo img {
        height: 50px;
    }
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-cream);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        gap: 24px;
        transition: right 0.4s ease;
        z-index: 1001;
    }
    .nav-menu.active {
        right: 0;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding-top: 40px;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-logo-img img {
        max-width: 300px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .practice-grid {
        grid-template-columns: 1fr;
    }
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-left {
        border-right: none;
        border-bottom: 1px solid rgba(152,30,37,0.05);
    }
    .practice-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .experts-grid {
        grid-template-columns: 1fr;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .contact-info-panel, .contact-form-panel {
        padding: 30px 20px;
    }
}

/* Practice Detail Icon Badge styling (Strategy 4 & 5) */
.practice-detail-icon-badge {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-sand), var(--white));
    border: 3px solid var(--secondary);
    box-shadow: 0 20px 40px rgba(152, 30, 37, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.practice-detail-icon-badge i {
    font-size: 11rem;
    color: var(--primary);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}

.practice-detail-icon-badge:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 25px 50px rgba(152, 30, 37, 0.15);
    border-color: var(--primary);
}

/* Mobile Overrides for Language Selector (Strategy 5) */
@media (max-width: 1100px) {
    .lang-selector {
        width: 100%;
        margin-top: 5px;
    }
    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }
    .lang-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 5px;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .lang-selector.active .lang-dropdown {
        display: block;
    }
}

/* Keep multilingual desktop navigation readable without overlapping the logo. */
@media (min-width: 1101px) {
    .header-container { gap: 20px; }
    .header-container > .logo { flex: 0 0 auto; }
    .nav-menu { min-width: 0; gap: clamp(7px, 1.35vw, 22px); }
    .nav-link { font-size: clamp(0.76rem, 0.89vw, 0.95rem); white-space: normal; line-height: 1.25; }
    .nav-menu > li { flex: 0 1 auto; min-width: 0; }
    .nav-menu > li:has(.lang-selector), .nav-menu > li:has(.whatsapp-cta) { flex: 0 0 auto; }
    .whatsapp-cta { font-size: clamp(0.74rem, 0.84vw, 0.95rem); }
}

/* Article subheadings and legal note: shared across the eight site languages. */
.blog-detail-content h2 { text-align: start; letter-spacing: normal; word-spacing: normal; margin-top: 1.65em; margin-bottom: .55em; }
.blog-detail-content p { margin-top: 0; margin-bottom: 1em; }
.contact-details .contact-item h2 { font-size: 1.05rem; margin: 0 0 6px; color: inherit; }
.market-links a { display: inline-flex; margin: 2px 14px 2px 0; margin-inline-end: 14px; }
.practices-seo-overview p { margin-bottom: 18px; }
.practices-seo-overview p:last-child { margin-bottom: 0; }
.practice-hero .btn { margin-top: 18px; }
.practice-detail-content p { margin-top: 0; margin-bottom: 1em; }
.practice-detail-content ol + p, .practice-detail-content ul + p { margin-top: 1.4em; }
.practice-detail-content p:last-child { margin-bottom: 0; }
.blog-detail-content ol + p, .blog-detail-content ul + p { margin-top: 1.4em; }
.blog-detail-content p:last-child { margin-bottom: 0; }
.article-legal-note { background: #faf4e8; border-inline-start: 4px solid #8b1914; border-radius: 10px; padding: 16px 20px; margin-top: 28px; color: #473a34; font-family: inherit; font-size: .88rem; line-height: 1.65; text-align: start; box-shadow: 0 2px 12px rgba(77,35,25,.06); }
.article-legal-note strong { display: block; color: #811914; margin-bottom: 3px; font-size: .97rem; line-height: 1.4; letter-spacing: normal; word-spacing: normal; }

/* Contextual article and practice links: visible in LTR and RTL without changing navigation. */
.blog-detail-content a[href], .practice-detail-content a[href] { color: #8b1914; text-decoration: underline; text-underline-offset: .17em; text-decoration-thickness: 1px; font-weight: 600; }
.blog-detail-content a[href]:focus-visible, .practice-detail-content a[href]:focus-visible { outline: 2px solid #8b1914; outline-offset: 3px; }

/* Blog badge clearance and mobile filter wrapping. */
.blog-post-header {
    height: auto;
    min-height: 180px;
    padding: 18px 20px;
    flex-direction: column;
    gap: 10px;
}
.blog-post-badge {
    position: static;
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
    text-align: start;
}
@media (max-width: 600px) {
    .blog-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* Keep translated headings inside mobile screens with whole words. */
@media (max-width: 600px) {
    .about-grid { grid-template-columns: minmax(0, 1fr); }
    .about-content { min-width: 0; }
    html:lang(de) .about-teaser .about-points { grid-template-columns: minmax(0, 1fr); }
    .practice-hero-grid { min-width: 0; grid-template-columns: minmax(0, 1fr); }
    .practice-hero-text { min-width: 0; }
    .practice-hero-text h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
    .blog-article-hero h1 { font-size: 1.8rem !important; }
    .blog-post-header h3, .blog-post-header h2, .practice-card h3 { font-size: 1.1rem; }
    .practices-seo-overview h2 { font-size: 1.65rem !important; max-width: 100%; }
    .blog-detail-content h2 { font-size: 1.25rem; }
    .blog-detail-content[style] { padding-inline: 18px !important; text-align: start !important; }
    h1, h2, .practice-card h3, .blog-post-header h3,
    .practice-hero-text p { hyphens: auto; overflow-wrap: normal; }
    html:lang(de) section[style*="background-color:var(--bg-sand)"] h1 { font-size: 1.7rem !important; }
    #analytics-choice { inset: auto 8px 8px; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
    #analytics-choice p { margin-bottom: 7px; }
    #analytics-choice .analytics-actions { gap: 7px; }
    #analytics-choice button { min-height: 38px; padding: 6px 9px; font-size: 13px; }
}
