/* Bilingual Language Toggle Styles */

/* Language Toggle Container */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

/* Language Buttons */
.lang-button {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 2px solid #e5e7eb;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-button:hover:not(.active) {
    border-color: rgb(154, 102, 1);
    color: rgb(154, 102, 1);
    transform: translateY(-1px);
}

.lang-button.active {
    background: rgb(154, 102, 1);
    color: white;
    border-color: rgb(154, 102, 1);
    box-shadow: 0 4px 8px rgba(154, 102, 1, 0.2);
}

/* Flag Icons */
.spanish-flag, .us-flag, .brazil-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    margin-right: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

.spanish-flag {
    background: linear-gradient(to bottom, 
        #c60b1e 0%, #c60b1e 25%, 
        #ffc400 25%, #ffc400 75%, 
        #c60b1e 75%, #c60b1e 100%);
}

.us-flag {
    background: 
        linear-gradient(to bottom, 
            #b22234 0%, #b22234 7.7%,
            white 7.7%, white 15.4%,
            #b22234 15.4%, #b22234 23.1%,
            white 23.1%, white 30.8%,
            #b22234 30.8%, #b22234 38.5%,
            white 38.5%, white 46.2%,
            #b22234 46.2%, #b22234 53.9%,
            white 53.9%, white 61.6%,
            #b22234 61.6%, #b22234 69.3%,
            white 69.3%, white 77%,
            #b22234 77%, #b22234 84.7%,
            white 84.7%, white 92.4%,
            #b22234 92.4%, #b22234 100%),
        radial-gradient(circle at 25% 35%, #3c3b6e 0%, #3c3b6e 25%, transparent 25%);
}

.brazil-flag {
    background: linear-gradient(to bottom, 
        #009b3a 0%, #009b3a 35%, 
        #fedf00 35%, #fedf00 65%, 
        #009b3a 65%, #009b3a 100%);
    position: relative;
}

.brazil-flag::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 6px;
    background: #002776;
    border-radius: 50%;
}

/* Language Content Visibility */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

.lang-content.active.inline {
    display: inline;
}

/* Smooth transitions for content switching */
.lang-content {
    transition: opacity 0.3s ease;
}

.lang-content:not(.active) {
    opacity: 0;
}

.lang-content.active {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .language-toggle {
        margin-right: 0.5rem;
        gap: 0.25rem;
    }
    
    .lang-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .spanish-flag, .us-flag, .brazil-flag {
        width: 14px;
        height: 10px;
        margin-right: 4px;
    }
    
    .brazil-flag::after {
        width: 6px;
        height: 4px;
    }
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
    .nav-links.active .language-toggle {
        order: -1;
        margin-bottom: 1rem;
        justify-content: center;
    }
}

/* Additional utility classes for language switching */
.text-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Language indicator for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Hover effects for better UX */
.lang-button:focus {
    outline: 2px solid rgb(154, 102, 1);
    outline-offset: 2px;
}

.lang-button:active {
    transform: scale(0.98);
}

/* Spanish text adjustments (longer text in Spanish typically) */
html[lang="es"] .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

html[lang="es"] .nav-link {
    font-size: 0.95rem;
}

html[lang="es"] .feature-title {
    line-height: 1.3;
}

/* Portuguese text adjustments (similar to Spanish) */
html[lang="pt"] .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

html[lang="pt"] .nav-link {
    font-size: 0.95rem;
}

html[lang="pt"] .feature-title {
    line-height: 1.3;
}

/* RTL support for Hebrew text (unchanged in both languages) */
.hebrew-text-large,
.hebrew-sample,
.hebrew-text {
    direction: rtl;
    unicode-bidi: embed;
    font-family: 'Times New Roman Hebrew', 'David', 'Frank Ruehl', serif;
}

/* About Section Styles */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(154, 102, 1);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hebrew-scroll {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.scroll-text {
    font-size: 2rem;
    color: rgb(154, 102, 1);
    font-family: 'Times New Roman Hebrew', 'David', 'Frank Ruehl', serif;
    direction: rtl;
    margin-bottom: 1rem;
    font-weight: 600;
}

.scroll-translation {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.scroll-reference {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Testimonials Section Styles */
.testimonials {
    padding: 5rem 0;
    background: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgb(154, 102, 1);
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

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

.author-avatar {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    border: 3px solid rgb(154, 102, 1);
}

.author-info h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.author-info span {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Footer Styles */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-links .newsletter-link {
    display: inline-block;
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.newsletter-links .newsletter-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

/* Mobile responsive adjustments for new sections */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-links {
        align-items: center;
    }
    
    .scroll-text {
        font-size: 1.5rem;
    }
    
    .hebrew-scroll {
        padding: 2rem 1.5rem;
    }
} 