/* YST Law Office - Main Stylesheet */
/* Color Scheme: Navy (#1E3A5F), Gold (#C9A962), White */

:root {
    --primary: #1E3A5F;
    --primary-dark: #152A45;
    --accent: #C9A962;
    --accent-dark: #B89952;
    --background: #FAFAFA;
    --card: #FFFFFF;
    --text: #1E3A5F;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-gold: rgba(201, 169, 98, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

body[dir="rtl"],
body[dir="ltr"] {
    text-align: justify;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4,
body[dir="rtl"] h5,
body[dir="rtl"] h6 {
    text-align: right;
}

body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] h4,
body[dir="ltr"] h5,
body[dir="ltr"] h6 {
    text-align: left;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo img {
    height: 7rem;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 5rem;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--background);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px var(--shadow-gold);
}

.lang-btn:hover:not(.active) {
    color: var(--text);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    padding: 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.close-mobile-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.6), rgba(30, 58, 95, 0.3));
}

[dir="rtl"] .hero-overlay {
    background: linear-gradient(to left, rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.6), rgba(30, 58, 95, 0.3));
}

.hero-watermark {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    opacity: 0.08;
    pointer-events: none;
}

[dir="rtl"] .hero-watermark {
    right: auto;
    left: 2rem;
}

.hero-watermark img {
    width: 10rem;
    height: 10rem;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 3rem 0;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    display: block;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-gold);
}

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

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

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* LTR: text left, portrait right */
[dir="ltr"] .about-content .about-portrait {
    order: 2;
}

[dir="ltr"] .about-content .about-text {
    order: 1;
}

/* RTL: portrait right (first in DOM), text left */
[dir="rtl"] .about-content {
    grid-template-columns: 380px 1fr;
}

[dir="rtl"] .about-content .about-portrait {
    order: 1;
}

[dir="rtl"] .about-content .about-text {
    order: 2;
}

.about-text {
    max-width: 700px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-portrait {
    position: sticky;
    top: 8rem;
    width: 100%;
    max-width: 380px;
    flex-shrink: 0;
}

.about-portrait-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow);
    border: 1px solid rgba(201, 169, 98, 0.2);
    max-width: 380px;
}

.about-portrait img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Practice Areas */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.practice-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow);
    border-color: var(--accent);
}

a.practice-card:hover h3 {
    color: var(--accent);
}

.practice-card-image {
    height: 180px;
    overflow: hidden;
}

.practice-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.practice-card:hover .practice-card-image img {
    transform: scale(1.1);
}

.practice-card-content {
    padding: 1.5rem;
}

.practice-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.practice-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* More Details Button */
.btn-more-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-family: inherit;
}

.btn-more-details:hover {
    color: var(--accent-dark);
}

.btn-more-details svg {
    transition: transform 0.3s ease;
}

.btn-more-details:hover svg {
    transform: scale(1.1);
}

[dir="rtl"] .btn-more-details {
    flex-direction: row-reverse;
}

/* Practice Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 1rem;
}

.modal-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

.modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.modal-icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    flex: 1;
}

[dir="rtl"] .modal-title {
    text-align: right;
}

[dir="ltr"] .modal-title {
    text-align: left;
}

.modal-image {
    width: 100%;
    height: 16rem;
    overflow: hidden;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

[dir="rtl"] .modal-body {
    text-align: right;
}

[dir="ltr"] .modal-body {
    text-align: left;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Philosophy Section */
.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-intro {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.principles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.principle-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
}

.principle-item h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.principle-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Firm Principles */
.values-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.values-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--shadow-gold);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s ease;
    margin-bottom: 0.75rem;
}

.contact-link:hover {
    background: var(--border);
}

.contact-link.whatsapp {
    background: #25D366;
    color: white;
}

.contact-link.whatsapp:hover {
    background: #20BA5A;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 5rem;
    margin-bottom: 1rem;
}

.footer-info h4,
.footer-links h4,
.footer-legal h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-align: inherit;
}

[dir="rtl"] .footer-info p[dir="ltr"] {
    text-align: right;
    direction: ltr;
    unicode-bidi: embed;
}

.footer-links a,
.footer-legal a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 90;
}

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 1.5rem;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Accessibility Widget */
.accessibility-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
}

[dir="rtl"] .accessibility-toggle {
    right: auto;
    left: 1.5rem;
}

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 5rem;
}

.accessibility-toggle button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.accessibility-toggle button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.accessibility-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }

    [dir="rtl"] .about-content {
        grid-template-columns: 320px 1fr;
    }

    .about-portrait {
        max-width: 320px;
    }

    .about-portrait-wrapper {
        max-width: 320px;
    }

    .about-portrait img {
        max-height: 420px;
    }
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    [dir="rtl"] .about-content {
        grid-template-columns: 1fr;
    }

    .about-portrait {
        order: -1;
        max-width: 320px;
        margin: 0 auto 2rem;
    }

    .about-portrait-wrapper {
        max-width: 320px;
    }

    .about-portrait img {
        max-height: 420px;
    }

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

@media (max-width: 768px) {
    .nav-links,
    .lang-switcher {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 0;
    }

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

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 0.5rem 0.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 0.25rem;
}

.testimonial-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-info strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    border: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    text-align: inherit;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--background);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: relative;
}

.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-mode-toggle .moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

body.dark-mode .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark-mode .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0);
}

/* Accessibility Toggle - Vertical Stack */
.accessibility-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Footer Legal Section */
.footer-legal {
    display: flex;
    flex-direction: column;
}

/* Dark Mode Styles */
body.dark-mode {
    --background: #1a1a2e;
    --card: #16213e;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #2d3a5f;
    --shadow: rgba(0, 0, 0, 0.3);
}

body.dark-mode .header {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode .practice-card,
body.dark-mode .contact-form,
body.dark-mode .contact-card,
body.dark-mode .testimonial-card,
body.dark-mode .faq-item,
body.dark-mode .principle-item,
body.dark-mode .values-list li {
    background: var(--card);
}

body.dark-mode .section-alt {
    background: var(--card);
}

body.dark-mode .nav-links a,
body.dark-mode .mobile-nav-links a {
    color: var(--text);
}

body.dark-mode .mobile-nav {
    background: rgba(26, 26, 46, 0.98);
}

body.dark-mode .modal-content {
    background: var(--card);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: var(--background);
    color: var(--text);
    border-color: var(--border);
}

body.dark-mode .lang-switcher {
    background: var(--card);
}

body.dark-mode .contact-link {
    background: var(--background);
}

body.dark-mode .faq-question:hover {
    background: var(--background);
}

/* Scroll Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="100"] {
    transition-delay: 0.1s;
}

[data-aos-delay="200"] {
    transition-delay: 0.2s;
}

[data-aos-delay="300"] {
    transition-delay: 0.3s;
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e53e3e;
}

.form-group input.success,
.form-group textarea.success {
    border-color: #38a169;
}

.form-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .accessibility-toggle,
    .mobile-menu-btn,
    .cookie-banner,
    .back-to-top {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Responsive for new components */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

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

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

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .accessibility-toggle {
        bottom: 1rem;
        right: 1rem;
    }

    [dir="rtl"] .accessibility-toggle {
        left: 1rem;
        right: auto;
    }
}
