/*
Theme Name: Bulgarian Lawyer
Theme URI: https://example.com/bulgarian-lawyer
Author: Sergey
Author URI: https://example.com
Description: A modern, minimal trilingual WordPress theme designed for a law firm in Bulgaria. Supports Bulgarian, English, and German. Features clean typography, professional layouts, and essential pages for legal practice.
Version: 1.0.12
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bulgarian-lawyer
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, blog
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */

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

:root {
    /* Colors - Modern Minimal Palette */
    --color-primary: #1a1a2e;
    --color-primary-light: #2d2d4a;
    --color-accent: #4a6fa5;
    --color-accent-hover: #3a5a8a;
    --color-accent-light: #e8eef6;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-text-muted: #999999;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #1a1a2e;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-white: #ffffff;
    --color-success: #4caf50;
    --color-error: #e74c3c;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3rem;
    --fs-5xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 3.5rem;
    --space-4xl: 5rem;
    --space-5xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

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

h1 { font-size: var(--fs-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

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

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

li {
    margin-bottom: var(--space-sm);
}

blockquote {
    border-left: 3px solid var(--color-accent);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    background: var(--color-bg-alt);
    font-style: italic;
    color: var(--color-text-light);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-5xl) 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section__subtitle {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.section__description {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    height: var(--header-height);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: var(--color-primary);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo__text {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.site-logo__text small {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

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

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--color-white);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after,
.nav-menu .current_page_item a::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher__btn {
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 4px 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.lang-switcher__btn:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
}

.lang-switcher__btn.active,
.lang-switcher__btn[aria-current="true"] {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    box-shadow: none;
}

/* CTA Button in Header */
.header__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 10px 24px;
    background: var(--color-accent);
    color: var(--color-white) !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.header__cta:hover {
    background: var(--color-accent-hover);
    color: var(--color-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

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

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 10px);
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-accent-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(74, 111, 165, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero__badge {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: var(--space-xl);
}

.hero h1 {
    font-size: var(--fs-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    color: var(--color-primary);
}

.hero__description {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.hero__stat-label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 40px;
    font-size: var(--fs-base);
}

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

.btn--white:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

/* ============================================
   PRACTICE AREAS
   ============================================ */

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.practice-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.practice-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: var(--fs-xl);
    color: var(--color-accent);
}

.practice-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 1.5;
}

.practice-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
}

.practice-card p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.practice-card__link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.practice-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.practice-card:hover .practice-card__link svg {
    transform: translateX(4px);
}

/* ============================================
   ABOUT / WHY CHOOSE US
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image__badge {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--color-white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-image__badge strong {
    display: block;
    font-size: var(--fs-2xl);
    color: var(--color-accent);
    line-height: 1;
}

.about-image__badge span {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: var(--space-xl) 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.features-list li svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
    background: var(--color-primary);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(74, 111, 165, 0.3), transparent 60%);
    pointer-events: none;
}

.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-md);
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
    position: relative;
}

.cta-banner .btn {
    position: relative;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
}

.contact-info {
    padding-right: var(--space-2xl);
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-info > p {
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-details__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-details__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 1.5;
}

.contact-details__content strong {
    display: block;
    font-size: var(--fs-sm);
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.contact-details__content span,
.contact-details__content a {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

/* Contact Form */
.contact-form {
    background: var(--color-bg-alt);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-lg);
    display: none;
}

.form-message--success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-message--error {
    display: block;
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: var(--space-4xl);
}

.site-footer--minimal {
    padding-top: 0;
}

.site-footer--minimal .footer__bottom {
    border-top: none;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.footer__brand {
    max-width: 300px;
}

.footer__brand .site-logo__text {
    color: var(--color-white);
    font-size: var(--fs-lg);
    margin-bottom: var(--space-lg);
    display: block;
}

.footer__brand p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer__heading {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xl);
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--fs-sm);
}

.footer__contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    stroke: var(--color-accent);
    fill: none;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xl) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-xs);
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(74, 111, 165, 0.1);
}

.footer__social a svg {
    width: 16px;
    height: 16px;
}

.footer__separator {
    margin: 0 var(--space-sm);
    opacity: 0.3;
}

.footer__policy-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--fs-xs);
    transition: color var(--transition-fast);
}

.footer__policy-link:hover {
    color: var(--color-white);
}

/* ============================================
   LEGAL / PRIVACY POLICY PAGE
   ============================================ */

.legal-content h2 {
    font-size: var(--fs-2xl);
    color: var(--color-primary);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent-light);
}

.legal-content h3 {
    font-size: var(--fs-lg);
    color: var(--color-primary);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.legal-content p {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.legal-content li {
    font-size: var(--fs-md);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-accent-dark);
}

.legal-content strong {
    color: var(--color-primary);
}

.legal-content .legal-update-date {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    font-style: italic;
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */

.page-header {
    background: var(--color-bg-alt);
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

.page-header h1 {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-md);
}

.page-header h1 span {
    display: none;
}

.page-header p {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs .separator {
    margin: 0 var(--space-sm);
}

.page-content {
    padding: var(--space-4xl) 0;
}

.page-content .container--narrow p {
    font-size: var(--fs-md);
    line-height: 1.9;
}

/* ============================================
   BLOG / POSTS
   ============================================ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.post-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.post-card__image {
    aspect-ratio: 16/10;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__content {
    padding: var(--space-xl);
}

.post-card__meta {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.post-card__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
}

.post-card__title a {
    color: var(--color-primary);
}

.post-card__title a:hover {
    color: var(--color-accent);
}

.post-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Single Post */
.single-post__header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
    text-align: center;
}

.single-post__meta {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.single-post__content {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.single-post__content h2,
.single-post__content h3 {
    margin-top: var(--space-2xl);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.error-404__code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-bg-alt);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-404 h1 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-md);
}

.error-404 p {
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: var(--fs-sm);
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --fs-4xl: 2.5rem;
        --fs-5xl: 3rem;
    }

    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-3xl: 2rem;
        --fs-4xl: 2.25rem;
        --fs-5xl: 2.5rem;
        --header-height: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        gap: var(--space-xl);
        overflow-y: auto;
        z-index: 999;
    }

    .primary-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }

    .nav-menu a {
        font-size: var(--fs-base);
        display: block;
        padding: var(--space-sm) 0;
    }

    .lang-switcher {
        width: 100%;
        justify-content: center;
    }

    .header__cta {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    }

    .hero h1 {
        font-size: var(--fs-3xl);
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }

    .hero__stat {
        min-width: 120px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-info {
        padding-right: 0;
    }

    .practice-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__brand {
        grid-column: span 1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-3xl: 1.75rem;
        --fs-4xl: 2rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

/* ============================================
   WORDPRESS CORE ALIGNMENT
   ============================================ */

.alignwide {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.alignright {
    float: right;
    margin-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-sm);
}

/* Screen reader text - WordPress */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
