/* Additional Theme Styles */

/* Typography Enhancements */
/*
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--color-text);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-title h2 {
        font-size: 1.875rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

.container p {
	padding-bottom: 5px;
	text-align: justify;
}
*/

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 2rem;
    }
    
    .main-navigation.active {
        right: 0;
		display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hero Carousel Enhancements */
.hero-slide {
    transition: opacity 1.2s ease-in-out;
}

.hero-content h1 {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content p {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects for Images */
.card img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Card Hover Effects */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(191, 98, 33, 0.1);
}

/* Practice Area Cards */
#areas .card {
    padding: 2rem;
}

#areas .card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

#areas .card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Instagram Posts */
.instagram-post {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-overlay.active {
    opacity: 1;
}

#instagram .card {
    transition: all 0.3s ease;
}

#instagram .card:hover {
    transform: scale(1.05);
}

#instagram .card img {
    transition: all 0.3s ease;
}

#instagram .card:hover img {
    transform: scale(1.1);
}

#instagram .card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Team */
#team-list {
	width: 75%;
}
@media (max-width: 768px) {
	#team-list {
		width: 90%;
	}
}

/* Team Cards */
.team-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.team-card .position {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.team-card .oab {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-social.active,
.team-card:hover .team-social {
    opacity: 1;
}

/* News/Case Study Cards */
#noticias .card {
    border: 1px solid var(--color-border);
}

#noticias .card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin: 1rem 0;
}

#noticias .card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

#noticias .card h3 a:hover {
    color: var(--color-primary);
}

#noticias .card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

#noticias .card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s;
}

#noticias .card .read-more:hover {
    gap: 0.75rem;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    flex-shrink: 0;
    width: 100%;
    min-height: 360px;
}

.testimonial-slide .grid > div {
    min-height: 100%;
    max-height: 350px;
    display: flex;
    flex-direction: column;
}

.testimonial-slide .grid > div p.testimonials-text {
    overflow: auto;
    flex-grow: 1;
    margin-bottom: 1rem;
    margin-right: 2rem;
}

.testimonial-prev,
.testimonial-next {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    transform: scale(1.1);
}

.testimonial-prev:active,
.testimonial-next:active {
    transform: scale(0.95);
}

.testimonial-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.testimonial-dot:hover {
    transform: scale(1.2);
}

.testimonial-dot.active {
    width: 2rem;
}

/* Responsive adjustments for testimonial slider */
@media (max-width: 1024px) {
    .testimonial-slide {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .testimonial-prev,
    .testimonial-next {
        display: none;
    }
    
    .testimonials-slider {
        padding: 0 !important;
    }
    
    .testimonial-slide {
        min-height: auto;
    }
    
    .testimonial-slide .grid > div {
        max-height: none;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Spacing */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Badge/Tag Styles */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

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

.badge-secondary {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Sticky Header Enhancement */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(191, 98, 33, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    box-shadow: 0 4px 12px rgba(191, 98, 33, 0.4);
    transform: translateY(-2px);
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

input.error,
textarea.error {
    border-color: #ef4444;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Link Styles */
a {
    transition: all 0.3s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: var(--color-primary);
    color: white;
}

::-moz-selection {
    background: var(--color-primary);
    color: white;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .hero-section,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .main-navigation ul {
    flex-direction: row-reverse;
}
