/* Homepage Specific Styles */
:root {
    --legal-navy: #1a2332;
    --legal-gold: rgb(230, 159, 18);
    --legal-silver: #000;
    --legal-charcoal: #2c3e50;
    --legal-cream: #f8f6f0;
}

p {
    color: #000 !important;
}

.hero p {
    color: white !important;
}

.cta-section p {
    color: white !important;
}

footer p {
    color: white !important;
}

.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--legal-navy) 0%, var(--legal-charcoal) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="scales" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M10,2 L18,10 L10,18 L2,10 Z" fill="none" stroke="rgba(201,169,97,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23scales)"/></svg>');
    z-index: 0;
}

.hero-particles {
    display: none;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 97, 0.2);
    color: var(--legal-gold);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    border: 1px solid rgba(201, 169, 97, 0.3);
    backdrop-filter: blur(10px);
}

.hero-accent {
    color: var(--legal-gold);
    position: relative;
    font-weight: 700;
}

.hero-accent::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--legal-gold), transparent);
    z-index: -1;
}

.stats-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.hero-contact-form {
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Phone Number Display Styles */
.phone-display {
    display: inline-block;
    background: rgba(201, 169, 97, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--legal-gold);
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.phone-display:hover {
    background: var(--legal-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.phone-link {
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Georgia', serif;
}

.phone-link:hover {
    color: var(--legal-navy) !important;
}

.phone-number {
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    font-weight: 700;
    color: white !important;
}

@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-content .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-content .d-flex.gap-2 {
        justify-content: center;
    }
    
    .hero-badge {
        margin: 0 auto 1rem;
        display: table;
        padding: 0.75rem 1.5rem;
        font-size: 1.3rem;
    }
    
    .stats-box {
        margin-bottom: 0.5rem;
    }
    
    .hero-contact-form {
        margin-top: 2rem;
    }
    
    .phone-display {
        padding: 0.75rem 1.5rem;
    }
    
    .phone-link {
        font-size: 1.3rem;
    }
    
    .phone-number {
        font-size: 1.3rem;
    }
}

/* Search Box Styles */
.search-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(201, 169, 97, 0.2);
}

/* Feature Cards */
.feature-card {
    border: 1px solid rgba(201, 169, 97, 0.2);
    transition: all 0.3s;
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    background: var(--legal-cream);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 35, 50, 0.15);
    border-color: var(--legal-gold);
}

/* Lawyer Cards */
.lawyer-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(26, 35, 50, 0.1);
    transition: all 0.3s;
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.lawyer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 35, 50, 0.2);
    border-color: var(--legal-gold);
}

.lawyer-img {
    height: 200px;
    object-fit: cover;
}

.lawyer-rating {
    color: var(--legal-gold);
}

.lawyer-specialty {
    display: inline-block;
    background: rgba(201, 169, 97, 0.15);
    color: var(--legal-charcoal);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(201, 169, 97, 0.3);
    font-weight: 500;
}

/* Elite Lawyer Cards */
.elite-lawyer-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(26, 35, 50, 0.12);
    transition: all 0.4s ease;
    height: 300px;
    margin-bottom: 15px;
    background: white;
    border: 2px solid rgba(201, 169, 97, 0.2);
    backdrop-filter: blur(5px);
}

.elite-lawyer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 35, 50, 0.25);
    border-color: var(--legal-gold);
}

.elite-lawyer-img-wrapper {
    height: 180px;
    width: 180px;
    position: relative;
    overflow: hidden;
    margin: 15px auto 0;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.elite-lawyer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.elite-lawyer-card:hover .elite-lawyer-img-wrapper img {
    transform: scale(1.1);
}

.elite-lawyer-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.elite-lawyer-specialties {
    padding: 5px;
    margin-top: 2px;
    text-align: center;
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
}

.elite-specialty {
    display: inline-block;
    background: var(--legal-gold);
    color: var(--legal-navy);
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    border: 1px solid rgba(26, 35, 50, 0.1);
}

.elite-lawyer-info {
    padding: 12px 15px;
    background: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.elite-lawyer-info h5 {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--legal-navy);
    font-family: 'Georgia', serif;
}

.elite-lawyer-info p {
    margin-bottom: 0;
    font-size: 0.7rem;
    color: var(--legal-silver);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Top Lawyers Section */
.top-lawyers-section {
    position: relative;
    background: var(--legal-cream);
    padding: 4rem 0;
    overflow: hidden;
    border-top: 3px solid var(--legal-gold);
}

.top-lawyers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a961' fill-opacity='0.03'%3E%3Cpath d='M30,15 L45,30 L30,45 L15,30 Z' stroke='%23c9a961' stroke-width='0.5' stroke-opacity='0.1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.top-lawyers-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--legal-gold) 0%, var(--legal-silver) 50%, var(--legal-gold) 100%);
}

.top-lawyers-decoration {
    position: absolute;
    border-radius: 4px;
    background: rgba(201, 169, 97, 0.08);
    z-index: 1;
    transform: rotate(45deg);
}

.top-lawyers-decoration-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -50px;
    animation: float 12s ease-in-out infinite;
}

.top-lawyers-decoration-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    right: -25px;
    animation: float 10s ease-in-out infinite reverse;
}

.top-lawyers-heading {
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--legal-navy);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    font-family: 'Georgia', serif;
}

.top-lawyers-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--legal-gold) 0%, var(--legal-silver) 100%);
    border-radius: 0;
    animation: headingUnderlineCentered 1s ease-out 0.3s forwards;
}

.top-lawyers-heading::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-color: rgba(231, 166, 0, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s infinite;
}

.top-lawyers-title-accent {
    color: var(--legal-gold);
    position: relative;
    font-weight: 800;
    animation: colorPop 0.5s ease-out 0.5s both;
}

.top-lawyers-title-accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.3), transparent);
    z-index: -1;
    border-radius: 0;
    animation: widthGrow 0.8s ease-out 0.6s both;
}

.top-lawyers-slider {
    position: relative;
    z-index: 2;
}

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

@keyframes widthGrow {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes colorPop {
    0% {
        color: #333;
    }
    100% {
        color: var(--legal-gold);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes headingUnderlineCentered {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* City Links */
.city-section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
}

.city-section-title:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--legal-gold), transparent);
    bottom: 0;
    left: 25%;
}

.popular-cities-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.city-link {
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-color: rgba(201, 169, 97, 0.3);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: white;
    box-shadow: 0 3px 8px rgba(26, 35, 50, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.2);
    color: #000 !important;
    text-decoration: none;
}

.city-link .city-icon {
    background-color: rgba(201, 169, 97, 0.15);
    color: var(--legal-gold);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.city-link:hover {
    background: linear-gradient(135deg, var(--legal-gold) 0%, #d4b76a 100%);
    color: var(--legal-navy);
    border-color: var(--legal-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.3);
}

.city-link:hover .city-icon {
    background-color: rgba(26, 35, 50, 0.2);
    color: var(--legal-navy);
}

/* Hero Contact Form */
.hero-contact-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(26, 35, 50, 0.15);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s;
    border: 2px solid rgba(201, 169, 97, 0.2);
}

.hero-contact-form h3 {
    color: var(--legal-navy);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Georgia', serif;
}

.hero-contact-form .form-floating > label {
    color: #888;
    font-weight: 500;
}

.hero-contact-form .form-control,
.hero-contact-form .form-select {
    border-radius: 4px;
    border: 2px solid rgba(201, 169, 97, 0.2);
    box-shadow: none;
    font-size: 1rem;
    background: var(--legal-cream);
    color: var(--legal-navy);
}

.hero-contact-form .form-control:focus,
.hero-contact-form .form-select:focus {
    border-color: var(--legal-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    background: #fff;
}

.hero-contact-form .btn-primary {
    background: linear-gradient(90deg, var(--legal-gold) 0%, #d4b76a 100%);
    border: none;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 6px 15px rgba(201, 169, 97, 0.3);
    transition: all 0.3s;
    color: var(--legal-navy);
}

.hero-contact-form .btn-primary:hover {
    background: linear-gradient(90deg, #d4b76a 0%, var(--legal-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.4);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--legal-navy) 0%, var(--legal-charcoal) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
}

.cta-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: white;
}

.cta-blob-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -50px;
    animation: float 15s ease-in-out infinite;
}

.cta-blob-2 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    left: -100px;
    animation: float 12s ease-in-out infinite reverse;
}

.cta-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(44, 62, 80, 0.9) 100%);
    border: 2px solid rgba(201, 169, 97, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
    border-color: var(--legal-gold);
}

.cta-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #ffffff, var(--legal-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    font-family: 'Georgia', serif;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.9);
}

.cta-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--legal-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(201, 169, 97, 0.4);
    position: relative;
    z-index: 1;
    animation: pulse 3s infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-feature-item {
    background: rgba(255,255,255,0.1);
    padding: 0.7rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cta-feature-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.cta-btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--legal-gold);
    border-color: var(--legal-gold);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    z-index: 1;
    transition: all 0.4s ease;
    border-radius: 4px;
    box-shadow: 0 8px 15px rgba(201, 169, 97, 0.4);
    color: var(--legal-navy);
}

.cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(26, 35, 50, 0.2);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(201, 169, 97, 0.5);
}

.cta-btn-primary:hover::before {
    width: 100%;
}

.cta-btn-secondary {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    transition: all 0.4s ease;
    color: var(--legal-navy);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(201, 169, 97, 0.3);
}

.cta-btn-secondary:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
    border-color: var(--legal-gold);
}

.cta-trust-badges {
    margin-top: 2.5rem;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.cta-trust-item:hover {
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .cta-heading {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-feature-item {
        margin-bottom: 0.5rem;
    }
    
    .cta-trust-item {
        margin-bottom: 0.5rem;
    }
}

/* Media query for 1366x768 screens */
@media (min-width: 1200px) and (max-width: 1440px) {
    .col-xl-2 {
        flex: 0 0 auto;
        width: 20%;
    }
    
    .elite-lawyer-card {
        height: 290px;
    }
    
    .elite-lawyer-img-wrapper {
        height: 160px;
        width: 160px;
        margin: 15px auto 0;
    }
    
    .elite-lawyer-info h5 {
        font-size: 0.9rem;
    }
    
    .elite-lawyer-info p {
        font-size: 0.7rem;
    }
    
    .elite-specialty {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    .top-lawyers-heading {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }
}