/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #4b5563;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.cta-btn.primary {
    background-color: #580100;
    color: #fff;
    border-color: #580100;
}

.cta-btn.primary:hover {
    background-color: #450000;
    border-color: #450000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 1, 0, 0.3);
}

.cta-btn.secondary {
    background-color: transparent;
    color: #580100;
    border-color: #580100;
}

.cta-btn.secondary:hover {
    background-color: #580100;
    color: #fff;
}

.cta-btn.gold {
    background-color: #D7B15C;
    color: #333333;
    border-color: #D7B15C;
}

.cta-btn.gold:hover {
    background-color: #C19F4A;
    border-color: #C19F4A;
    color: #fff;
}

.cta-btn.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.cta-btn.full-width {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: #580100;
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
}

.top-bar-left span,
.top-bar-right a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e5e7eb;
    transition: color 0.3s ease;
}

.top-bar-right a:hover {
    color: #D7B15C;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.firm-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #580100;
    line-height: 1.2;
}

.firm-tagline {
    font-size: 0.9rem;
    color: #D7B15C;
    font-weight: 400;
}

/* Header Phone */
.header-phone {
    text-align: right;
}

.phone-label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #580100;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: #D7B15C;
}

.phone-number i {
    font-size: 1.2rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: #580100;
    transition: all 0.3s ease;
}

/* Navigation */
.main-nav {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: #580100;
    background-color: #fff;
    border-bottom-color: #D7B15C;
}

.nav-menu .fas {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 1rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #666;
    font-weight: 400;
    border-bottom: none !important;
}

.dropdown-menu a:hover {
    background-color: #f8fafc;
    color: #580100;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    min-height: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-main h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #580100;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Hero Benefits */
.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #580100;
    font-weight: 500;
}

.benefit-item i {
    font-size: 1.2rem;
    color: #D7B15C;
}

/* Hero CTA */
.hero-cta {
    text-align: left;
}

.hero-cta .cta-btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

/* Consultation Card */
.consultation-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 100px;
}

.consultation-card h3 {
    color: #580100;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.consultation-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form Styling */
.form-row {
    margin-bottom: 1rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #580100;
    box-shadow: 0 0 0 3px rgba(88, 1, 0, 0.1);
}

.submit-btn {
    width: 100%;
    background-color: #580100;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    background-color: #450000;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #580100;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

/* Trust Section */
.trust-section {
    background-color: #fff;
    padding: 4rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.trust-content h2 {
    color: #580100;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.trust-content p {
    font-size: 1.1rem;
    color: #4b5563;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.trust-stats .stat-item {
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.trust-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(88, 1, 0, 0.1);
    border-color: #D7B15C;
}

.trust-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #580100;
    margin-bottom: 0.5rem;
}

.trust-stats .stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Practice Areas Section */
.practice-areas {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.area-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(88, 1, 0, 0.1);
    border-color: #580100;
}

.area-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #580100, #750200);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.area-card h3 {
    color: #580100;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.area-card p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.area-services {
    list-style: none;
    margin-bottom: 1.5rem;
}

.area-services li {
    padding: 0.3rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.area-services li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #D7B15C;
    font-weight: bold;
}

.area-link {
    color: #580100;
    font-weight: 500;
    transition: color 0.3s ease;
}

.area-link:hover {
    color: #D7B15C;
}

.area-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.area-link:hover i {
    transform: translateX(3px);
}

.areas-cta {
    text-align: center;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 1, 0, 0.1);
    border-color: #580100;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #580100, #750200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    color: #580100;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-content p {
    color: #4b5563;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #580100, #750200);
    color: #fff;
}

.testimonials .section-header h2,
.testimonials .section-header p {
    color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.stars {
    color: #D7B15C;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
    font-style: italic;
}

.client-info h4 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.client-info span {
    color: #D7B15C;
    font-size: 0.9rem;
}

/* Service Areas Section */
.service-areas {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.service-areas .areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-areas .area-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-areas .area-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(88, 1, 0, 0.1);
    border-color: #580100;
}

.service-areas .area-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D7B15C, #C19F4A);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.service-areas .area-item h3 {
    color: #580100;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-areas .area-item p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.service-areas .area-link {
    color: #580100;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-areas .area-link:hover {
    color: #D7B15C;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: #580100;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #580100, #750200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: #580100;
    margin-bottom: 0.5rem;
}

.contact-text p {
    margin: 0;
    color: #4b5563;
}

.contact-text a {
    color: #580100;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #D7B15C;
}

.emergency-contact {
    background-color: #fef3c7;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #D7B15C;
}

.emergency-contact h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-contact p {
    margin: 0;
    color: #92400e;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

/* Footer */
.footer {
    background-color: #333333;
    color: #e5e7eb;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D7B15C;
}

.footer-section p {
    margin-bottom: 1.5rem;
    color: #9ca3af;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.footer-contact i {
    color: #D7B15C;
    width: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #D7B15C;
}

.footer-btn {
    background-color: #580100;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.footer-btn:hover {
    background-color: #450000;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #D7B15C;
}

/* Float Buttons */
.whatsapp-float,
.call-float {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

.whatsapp-float {
    right: 20px;
    background-color: #25d366;
}

.call-float {
    right: 100px;
    background-color: #580100;
}

.whatsapp-float:hover,
.call-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Card Hover Effects with New Colors */
.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #580100, #D7B15C);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.area-card:hover::before {
    transform: scaleX(1);
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #580100, #D7B15C);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-item:hover::after {
    transform: scaleY(1);
}

/* Focus States with New Colors */
.cta-btn:focus,
.submit-btn:focus {
    outline: 3px solid rgba(88, 1, 0, 0.3);
    outline-offset: 2px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    box-shadow: 0 0 0 3px rgba(88, 1, 0, 0.1);
}

/* High Contrast Mode with New Colors */
@media (prefers-contrast: high) {
    .cta-btn.primary {
        background-color: #580100;
        border-color: #580100;
    }
    
    .cta-btn.secondary {
        color: #580100;
        border-color: #580100;
    }
    
    .hero-main h1,
    .section-header h2 {
        color: #580100;
    }
    
    .area-icon,
    .feature-icon,
    .contact-icon {
        background: #580100;
    }
}

/* Custom Scrollbar with New Colors */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #580100;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #450000;
}

/* Selection Color with New Colors */
::selection {
    background: rgba(88, 1, 0, 0.2);
    color: #580100;
}

/* Form Validation with New Colors */
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-row.has-success input,
.form-row.has-success select,
.form-row.has-success textarea {
    border-color: #D7B15C;
    box-shadow:
	border-color: #D7B15C;
   box-shadow: 0 0 0 3px rgba(215, 177, 92, 0.1);
}

/* Error and Success Messages with New Colors */
.error {
   border-color: #dc2626 !important;
   color: #dc2626;
}

.error-message {
   color: #dc2626;
   font-size: 0.875rem;
   margin-top: 0.5rem;
}

.success {
   border-color: #D7B15C !important;
   color: #580100;
}

.success-message {
   color: #D7B15C;
   font-size: 0.875rem;
   margin-top: 0.5rem;
}

/* Loading States with New Colors */
.loading {
   opacity: 0.6;
   pointer-events: none;
}

.loading::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   width: 20px;
   height: 20px;
   margin: -10px 0 0 -10px;
   border: 2px solid #580100;
   border-radius: 50%;
   border-top-color: transparent;
   animation: spin 1s linear infinite;
}

@keyframes spin {
   to {
       transform: rotate(360deg);
   }
}

/* Responsive Design */
@media (max-width: 1024px) {
   .container {
       padding: 0 15px;
   }
   
   .hero-content {
       grid-template-columns: 1fr;
       gap: 3rem;
   }
   
   .consultation-card {
       position: static;
   }
   
   .trust-stats {
       grid-template-columns: repeat(2, 1fr);
   }
   
   .contact-content {
       grid-template-columns: 1fr;
       gap: 3rem;
   }
   
   .footer-content {
       grid-template-columns: 1fr 1fr;
       gap: 2rem;
   }
   
   .areas-grid {
       grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   }
   
   .features-grid {
       grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   }
}

@media (max-width: 768px) {
   /* Top Bar */
   .top-bar-content {
       flex-direction: column;
       gap: 0.5rem;
       text-align: center;
   }
   
   .top-bar-left {
       flex-direction: column;
       gap: 0.5rem;
   }
   
   /* Header */
   .header-content {
       flex-direction: column;
       gap: 1rem;
       text-align: center;
   }
   
   .main-nav {
       display: none;
   }
   
   .mobile-toggle {
       display: flex;
   }
   
   /* Hero */
   .hero {
       padding: 2rem 0;
   }
   
   .hero-main h1 {
       font-size: 2rem;
   }
   
   .hero-benefits {
       flex-direction: column;
       gap: 1rem;
   }
   
   .benefit-item {
       justify-content: center;
   }
   
   /* Sections */
   .practice-areas,
   .why-choose-us,
   .testimonials,
   .service-areas,
   .contact-section {
       padding: 3rem 0;
   }
   
   .trust-stats {
       grid-template-columns: 1fr;
       gap: 1rem;
   }
   
   .areas-grid {
       grid-template-columns: 1fr;
       gap: 1.5rem;
   }
   
   .features-grid {
       grid-template-columns: 1fr;
       gap: 1.5rem;
   }
   
   .feature-item {
       flex-direction: column;
       text-align: center;
       gap: 1rem;
   }
   
   .testimonials-grid {
       grid-template-columns: 1fr;
   }
   
   /* Footer */
   .footer-content {
       grid-template-columns: 1fr;
       gap: 2rem;
   }
   
   .footer-bottom-content {
       flex-direction: column;
       text-align: center;
       gap: 1rem;
   }
   
   .footer-legal {
       justify-content: center;
   }
   
   /* Float Buttons */
   .call-float {
       right: 20px;
       bottom: 100px;
   }
   
   /* Phone Number */
   .phone-number {
       font-size: 1.3rem;
       justify-content: center;
   }
}

@media (max-width: 480px) {
   .container {
       padding: 0 10px;
   }
   
   /* Hero */
   .hero {
       padding: 2rem 0;
   }
   
   .hero-main h1 {
       font-size: 1.8rem;
   }
   
   .hero-subtitle {
       font-size: 1rem;
   }
   
   .consultation-card {
       padding: 1.5rem;
   }
   
   /* Typography */
   .section-header h2 {
       font-size: 1.8rem;
   }
   
   .trust-stats .stat-number {
       font-size: 2rem;
   }
   
   .area-card,
   .testimonial-card {
       padding: 1.5rem;
   }
   
   /* CTAs */
   .hero-cta .cta-btn {
       font-size: 1rem;
       padding: 0.8rem 1.5rem;
   }
   
   /* Trust indicators */
   .trust-indicators {
       flex-direction: column;
       gap: 0.5rem;
       align-items: center;
   }
   
   /* Float buttons adjustment */
   .whatsapp-float,
   .call-float {
       width: 50px;
       height: 50px;
       font-size: 1.2rem;
   }
   
   .whatsapp-float {
       bottom: 15px;
       right: 15px;
   }
   
   .call-float {
       bottom: 80px;
       right: 15px;
   }
}

/* Loading Animations */
@keyframes fadeInUp {
   from {
       opacity: 0;
       transform: translateY(30px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

@keyframes slideInLeft {
   from {
       opacity: 0;
       transform: translateX(-30px);
   }
   to {
       opacity: 1;
       transform: translateX(0);
   }
}

@keyframes slideInRight {
   from {
       opacity: 0;
       transform: translateX(30px);
   }
   to {
       opacity: 1;
       transform: translateX(0);
   }
}

.area-card,
.feature-item,
.testimonial-card {
   animation: fadeInUp 0.6s ease forwards;
}

.hero-main {
   animation: slideInLeft 0.8s ease forwards;
}

.consultation-card {
   animation: slideInRight 0.8s ease forwards;
}

/* Scroll animations */
.trust-stats .stat-item {
   animation: fadeInUp 0.6s ease forwards;
}

.trust-stats .stat-item:nth-child(1) { animation-delay: 0.1s; }
.trust-stats .stat-item:nth-child(2) { animation-delay: 0.2s; }
.trust-stats .stat-item:nth-child(3) { animation-delay: 0.3s; }
.trust-stats .stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Print Styles */
@media print {
   .header,
   .whatsapp-float,
   .call-float,
   .consultation-card,
   .top-bar {
       display: none;
   }
   
   .hero {
       background: none;
       color: #333;
       padding: 1rem 0;
   }
   
   .hero-main h1 {
       color: #580100;
       font-size: 2rem;
   }
   
   body {
       font-size: 12pt;
       line-height: 1.4;
       color: #333;
   }
   
   .section-header h2 {
       color: #580100;
       font-size: 18pt;
   }
   
   .area-card,
   .feature-item,
   .testimonial-card {
       break-inside: avoid;
       box-shadow: none;
       border: 1px solid #ccc;
   }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
   *,
   *::before,
   *::after {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
       scroll-behavior: auto !important;
   }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* Image Optimization */
img {
   max-width: 100%;
   height: auto;
   display: block;
}

.lazy-load {
   opacity: 0;
   transition: opacity 0.3s;
}

.lazy-load.loaded {
   opacity: 1;
}

/* Skip Navigation for Accessibility */
.skip-nav {
   position: absolute;
   top: -40px;
   left: 6px;
   background: #580100;
   color: #fff;
   padding: 8px;
   text-decoration: none;
   border-radius: 0 0 4px 4px;
   z-index: 1001;
   transition: top 0.3s;
}

.skip-nav:focus {
   top: 0;
}

/* Screen Reader Only */
.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;
}

/* Focus Visible */
.focus-visible {
   outline: 2px solid #580100;
   outline-offset: 2px;
}

/* Browser Specific Fixes */
/* Safari */
@supports (-webkit-appearance: none) {
   .form-row select {
       -webkit-appearance: none;
       background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23580100' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
       background-repeat: no-repeat;
       background-position: right 12px center;
       background-size: 16px;
       padding-right: 40px;
   }
}

/* Additional Gold Accent Elements */
.gold-accent {
   color: #D7B15C;
}

.gold-bg {
   background-color: #D7B15C;
   color: #333333;
}

.maroon-accent {
   color: #580100;
}

.maroon-bg {
   background-color: #580100;
   color: #fff;
}

/* Special Law Firm Elements */
.legal-highlight {
   background-color: rgba(215, 177, 92, 0.1);
   border-left: 4px solid #D7B15C;
   padding: 1rem;
   margin: 1rem 0;
}

.case-result-badge {
   background: linear-gradient(135deg, #D7B15C, #C19F4A);
   color: #333333;
   padding: 0.5rem 1rem;
   border-radius: 20px;
   font-size: 0.9rem;
   font-weight: 600;
   display: inline-block;
}

.lawyer-expertise {
   border-top: 3px solid #D7B15C;
   background-color: #fff;
   padding: 1.5rem;
   border-radius: 8px;
   box-shadow: 0 5px 15px rgba(88, 1, 0, 0.1);
}

/* Professional Legal Styling */
.professional-card {
   background: #fff;
   border: 1px solid #e5e7eb;
   border-radius: 8px;
   padding: 2rem;
   box-shadow: 0 4px 12px rgba(88, 1, 0, 0.08);
   transition: all 0.3s ease;
}

.professional-card:hover {
   border-color: #D7B15C;
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(88, 1, 0, 0.15);
}

/* Legal Process Steps */
.process-step {
   position: relative;
   padding-left: 3rem;
   margin-bottom: 2rem;
}

.process-step::before {
   content: counter(step-counter);
   counter-increment: step-counter;
   position: absolute;
   left: 0;
   top: 0;
   width: 2rem;
   height: 2rem;
   background: linear-gradient(135deg, #580100, #750200);
   color: #fff;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 600;
   font-size: 0.9rem;
}

.process-container {
   counter-reset: step-counter;
}

/* Performance Optimizations */
.will-change-transform {
   will-change: transform;
}

.will-change-opacity {
   will-change: opacity;
}

/* GPU Acceleration */
.gpu-accelerated {
   transform: translateZ(0);
   backface-visibility: hidden;
   perspective: 1000px;
}

/* Critical CSS End */

/* Fix text selection colors for top bar and footer */

/* Top Bar Selection Fix */
.top-bar ::selection {
    background-color: #D7B15C !important; /* Gold background */
    color: #580100 !important; /* Dark red text */
}

.top-bar ::-moz-selection {
    background-color: #D7B15C !important;
    color: #580100 !important;
}

/* Footer Selection Fix */
.footer ::selection {
    background-color: #D7B15C !important; /* Gold background */
    color: #580100 !important; /* Dark red text */
}

.footer ::-moz-selection {
    background-color: #D7B15C !important;
    color: #580100 !important;
}

/* Specific fixes for footer sections */
.footer-section ::selection,
.footer-bottom ::selection {
    background-color: #D7B15C !important;
    color: #580100 !important;
}

.footer-section ::-moz-selection,
.footer-bottom ::-moz-selection {
    background-color: #D7B15C !important;
    color: #580100 !important;
}

/* Additional specific selectors for top bar elements */
.top-bar-content ::selection,
.top-bar-left ::selection,
.top-bar-right ::selection {
    background-color: #D7B15C !important;
    color: #580100 !important;
}

.top-bar-content ::-moz-selection,
.top-bar-left ::-moz-selection,
.top-bar-right ::-moz-selection {
    background-color: #D7B15C !important;
    color: #580100 !important;
}

/* Override any existing global selection styles for these sections */
.top-bar,
.footer {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Ensure proper text contrast in top bar */
.top-bar-left span,
.top-bar-right a {
    color: #ffffff !important; /* Force white text */
    text-shadow: none;
}

.top-bar-right a:hover {
    color: #D7B15C !important; /* Gold on hover */
}

/* Ensure proper text contrast in footer */
.footer {
    color: #ffffff !important;
}

.footer-section h3 {
    color: #D7B15C !important; /* Gold for headings */
}

.footer-section ul li a {
    color: #e5e7eb !important; /* Light gray for links */
}

.footer-section ul li a:hover {
    color: #D7B15C !important; /* Gold on hover */
}

/* ===== COMPLETE MEGA MENU STYLES ===== */

.mega-dropdown {
    position: relative;
}

.mega-trigger {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.mega-trigger i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.mega-dropdown:hover .mega-trigger i {
    transform: rotate(180deg);
}

/* Base Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: -200px;
    width: 1000px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 200px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    border: 1px solid #e5e7eb;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Dynamic positioning classes */
.mega-menu.position-up {
    top: auto;
    bottom: 100%;
    transform: translateY(-20px);
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-dropdown:hover .mega-menu.position-up {
    transform: translateY(0);
}

.mega-menu-content {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    min-height: fit-content;
}

/* Header Styles */
.mega-menu-header {
    background: linear-gradient(135deg, #580100 0%, #7a0100 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
    position: relative;
}

.mega-menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.mega-menu-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.mega-menu-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Grid Layout */
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: white;
}

.mega-column {
    padding: 20px 20px;
    border-right: 1px solid #f1f5f9;
}

.mega-column:last-child {
    border-right: none;
}

/* Service Groups */
.mega-service-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8fafc;
}

.mega-service-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mega-service-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.mega-service-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #580100, #8b0100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(88, 1, 0, 0.3);
}

.mega-service-info {
    flex-grow: 1;
}

.mega-service-info h4 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.mega-service-info h4 a {
    color: #580100;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mega-service-info h4 a:hover {
    color: #D7B15C;
}

.mega-service-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #374151 !important; /* Darker gray instead of #6b7280 */
    line-height: 1.3;
}

/* Sub Services */
.mega-sub-services {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-sub-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: #1f2937 !important; /* Much darker instead of #4b5563 */
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mega-sub-link:hover {
    background: #f8fafc;
    color: #580100 !important; /* Your brand color on hover */
    border-color: #D7B15C;
    transform: translateX(2px);
}

.mega-sub-link i {
    color: #D7B15C;
    font-size: 0.65rem;
}

.mega-view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #580100;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: #fef7ed;
    border: 1px solid #D7B15C;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.mega-view-all:hover {
    background: #D7B15C;
    color: white;
    transform: translateY(-1px);
}

.mega-view-all i {
    color: inherit;
    font-size: 0.65rem;
}

/* Footer Styles */
.mega-menu-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 15px 30px;
}

.mega-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.mega-footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-footer-icon {
    width: 28px;
    height: 28px;
    background: #580100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
}

.mega-footer-text h5 {
    margin: 0 0 2px 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937 !important; /* Darker instead of #374151 */
}

.mega-footer-text span,
.mega-footer-text a {
    font-size: 0.75rem;
    color: #374151 !important; /* Darker instead of #6b7280 */
    text-decoration: none;
}

/* Service group descriptions */
.mega-service-header .mega-service-info p {
    color: #4b5563 !important; /* Slightly lighter for descriptions but still readable */
}

.mega-footer-text a:hover {
    color: #580100;
}

.mega-footer-cta {
    text-align: center;
}

.mega-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #580100, #8b0100);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(88, 1, 0, 0.3);
}

.mega-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(88, 1, 0, 0.4);
    background: linear-gradient(135deg, #8b0100, #580100);
}

/* ===== COMPACT VERSION STYLES ===== */

.mega-menu.compact {
    width: 900px;
    max-height: 70vh;
    overflow-y: auto;
}

.mega-menu.compact .mega-menu-grid {
    grid-template-columns: repeat(4, 1fr);
}

.mega-menu.compact .mega-column {
    padding: 15px 12px;
}

.mega-menu.compact .mega-service-group {
    margin-bottom: 15px;
    padding-bottom: 12px;
}

.mega-menu.compact .mega-service-info p {
    display: none;
}

.mega-menu.compact .mega-service-header {
    margin-bottom: 8px;
}

.mega-menu.compact .mega-sub-services {
    gap: 3px;
}

.mega-menu.compact .mega-sub-link {
    padding: 3px 8px;
    font-size: 0.75rem;
}

.mega-menu.compact .mega-service-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.mega-menu.compact .mega-service-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.mega-menu.compact .mega-menu-header {
    padding: 15px 25px;
}

.mega-menu.compact .mega-menu-header h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mega-menu.compact .mega-menu-header p {
    font-size: 0.85rem;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
    .mega-menu {
        width: 900px;
        left: -150px;
    }
    
    .mega-menu.compact {
        width: 800px;
    }
    
    .mega-menu.compact .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .mega-menu {
        width: 800px;
        left: -100px;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .mega-menu.compact .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mega-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        max-height: 100vh;
    }
    
    .mega-dropdown:hover .mega-menu {
        transform: translateX(0);
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .mega-column {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 20px 15px;
    }
    
    .mega-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .mega-footer-item {
        justify-content: center;
    }
}

/* ===== HOVER EFFECTS AND ANIMATIONS ===== */

.mega-service-group:hover .mega-service-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(88, 1, 0, 0.4);
}

.mega-menu {
    backdrop-filter: blur(10px);
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

.mega-dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-sub-link:focus,
.mega-view-all:focus,
.mega-cta-btn:focus {
    outline: 2px solid #580100;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */

@media print {
    .mega-menu {
        display: none;
    }
}


/* Force white color and better visibility */
.mega-menu-header h3,
.mega-menu-header p {
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Reduce pattern opacity for better text visibility */
.mega-menu-header::before {
    opacity: 0.15 !important;
}

/* Fix selection colors */
.mega-menu-header *::selection {
    background-color: #D7B15C !important;
    color: #580100 !important;
    text-shadow: none !important;
}

.mega-menu-header *::-moz-selection {
    background-color: #D7B15C !important;
    color: #580100 !important;
    text-shadow: none !important;
}