/* Family Law Specialist Page Styles */

/* #region Hero Section */
.fl-hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
    background-color: var(--color-black);
}

.fl-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fl-hero-bg img,
.fl-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fl-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(31, 32, 38, 0.9) 0%, rgba(31, 32, 38, 0.4) 50%, rgba(31, 32, 38, 0.1) 100%);
    z-index: 2;
}

.fl-hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: none;
}

.fl-hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-yellow);
}

.eyebrow-icon {
    width: 20px;
    height: auto;
    animation: none;
}

.fl-hero-title {
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.1;
    font-size: clamp(48px, 6.4vw, 128px);
}

.fl-hero-main-highlight {
    color: var(--color-yellow);
}

.fl-hero-sub-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.fl-hero-separator-gray {
    width: 40vw;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0 0 10px 0;
}

html[lang="ar"] .fl-hero-separator-gray {
    margin-left: auto;
    margin-right: 0;
}

.fl-hero-separator {
    width: 80px;
    height: 2px;
    background-color: var(--color-yellow);
    margin-bottom: 30px;
}

.fl-hero-content p {
    font-size: clamp(13px, 1.2vw, 17px);
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

/* #endregion */

/* #region Global Section Styles */
section {
    padding: 100px 0;
}

.fl-section-header {
    margin-bottom: 60px;
    text-align: center;
}

.fl-section-header h2,
.fl-cta-box h2 {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 30px;
    font-size: clamp(32px, 5vw, 64px);
    color: var(--color-black);
}

html[lang="ar"] .fl-section-header h2,
html[lang="ar"] .fl-cta-box h2 {
    font-family: var(--font-arabic);
}

.fl-section-header h2::after,
.fl-cta-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-yellow);
}

/* Specific alignment for testimonials header (which isn't always centered) */
.fl-testimonials-section .fl-section-header h2 {
    padding-bottom: 20px;
}

html[lang="en"] .fl-testimonials-section .fl-section-header h2::after {
    left: 0;
    transform: none;
}

html[lang="ar"] .fl-testimonials-section .fl-section-header h2::after {
    left: auto;
    right: 0;
    transform: none;
}

.gold-text {
    color: var(--color-yellow);
}
/* #endregion */

/* #region Services Section */
.fl-services-section {
    background-color: #f9f9f9;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.fl-services-section .container {
    width: 100%;
}

.fl-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fl-service-card {
    background-color: var(--color-white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.fl-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-yellow);
}

.fl-service-icon {
    font-size: 40px;
    color: var(--color-yellow);
    margin-bottom: 25px;
}

.fl-service-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.fl-service-card p {
    color: var(--color-grey);
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.fl-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0D2B4A;
    font-weight: 500;
    transition: color 0.3s;
}

.fl-card-link:hover {
    color: var(--color-yellow);
}

.fl-card-link-alt {
    display: inline-block;
    margin-top: 40px;
    font-family: var(--font-heading);
    font-size: 20px !important;
    color: #0D2B4A !important;
    text-decoration: underline !important;
    text-underline-offset: 8px;
    transition: all 0.3s ease;
}

.fl-card-link-alt:hover {
    color: var(--color-yellow) !important;
}

.fl-card-link-alt i {
    font-size: 16px !important;
    margin-left: 10px;
    color: #0D2B4A !important;
}

html[lang="ar"] .fl-card-link-alt i {
    margin-left: 0;
    margin-right: 10px;
}

.fl-google-verify {
    margin-top: 40px;
    text-align: center;
}

.fl-google-verify.v2 {
    text-align: center;
    border-top: 1px solid var(--color-border);
}
/* #endregion */

/* #region Testimonials Section */
.fl-testimonials-section {
    background-color: var(--color-black);
    color: var(--color-white);
    overflow: hidden;
}

.fl-testimonials-section .fl-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    max-width: 100%;
}

html[lang="ar"] .fl-testimonials-section .fl-section-header {
    text-align: right;
    flex-direction: row-reverse;
}

.fl-testimonials-section .fl-section-header h2 {
    color: var(--color-white);
    margin-bottom: 0;
}

.fl-testimonials-nav {
    display: flex;
    gap: 15px;
}

.fl-testimonials-nav button {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.fl-testimonials-nav button:hover {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.fl-testimonials-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px 0;
    margin-top: 40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.fl-testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

.fl-testimonial-card {
    min-width: 450px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: var(--border-radius);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.fl-testimonial-quote {
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    flex-grow: 1;
}

.fl-testimonial-author {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-yellow);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.fl-google-verify a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fl-google-verify i {
    color: #4285F4;
}
/* #endregion */

/* #region Why Us Section */
.fl-why-section {
    background-color: var(--color-black);
    padding-bottom: 150px;
}

.fl-why-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

html[lang="en"] .fl-why-content {
    text-align: left;
}

html[lang="ar"] .fl-why-content {
    text-align: right;
}

.fl-why-section .fl-section-header {
    text-align: inherit;
    margin-bottom: 40px;
}

html[lang="en"] .fl-why-section .fl-section-header h2::after {
    left: 0;
    transform: none;
}

html[lang="ar"] .fl-why-section .fl-section-header h2::after {
    left: auto;
    right: 0;
    transform: none;
}

.fl-why-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 20px 20px 0 var(--color-yellow);
}

.fl-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.fl-stat-item {
    color: var(--color-white);
    padding: 30px;
    border: 1px solid rgba(254, 201, 109, 0.2);
    border-inline-start: 3px solid var(--color-yellow);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.fl-stat-item:hover {
    border-color: var(--color-yellow);
    transform: translateY(-5px);
    background: rgba(254, 201, 109, 0.05);
}

.fl-stat-num {
    font-family: var(--font-heading);
    font-size: clamp(40px, 4vw, 60px);
    color: var(--color-yellow);
}

.fl-stat-plus {
    font-size: 30px;
    color: var(--color-yellow);
    margin-left: 5px;
}

.fl-stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}
/* #endregion */

/* #region Process Section */
.fl-process-section {
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.process-section-icon {
    display: block;
    width: 60px;
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .fl-process-section {
        min-height: auto;
    }
}

.fl-process-container {
    width: 100%;
}

.fl-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}

@media (min-width: 769px) {
    .fl-process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Connecting line for desktop/tablet */
@media (min-width: 769px) {
    .fl-process-grid::before {
        content: '';
        position: absolute;
        top: 40px; /* Center of the 80px circle */
        left: 50px;
        right: 50px;
        height: 2px;
        background-color: var(--color-yellow);
        z-index: 0;
        opacity: 0.4;
    }
}

.fl-process-step {
    text-align: center;
}

.fl-process-num {
    width: 80px;
    height: 80px;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.fl-process-step h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.fl-process-step p {
    color: var(--color-grey);
}
/* #endregion */

/* #region CTA Section */
.fl-cta-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    overflow: hidden;
    color: var(--color-white);
    text-align: center;
}

.fl-cta-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fl-cta-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fl-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 32, 38, 0.85);
    z-index: 2;
}

.fl-cta-box {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.cta-logo {
    display: block;
    width: 80px;
    margin: 0 auto 30px;
}

.fl-cta-section h2 {
    color: var(--color-white);
    font-size: clamp(40px, 5vw, 80px);
    margin-bottom: 20px;
}

.fl-cta-separator {
    width: 100px;
    height: 3px;
    background-color: var(--color-yellow);
    margin: 30px auto;
}

.fl-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fl-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #25D366;
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 300;
    font-size: 18px;
    transition: all 0.3s ease;
}

.fl-btn-whatsapp:hover {
    background-color: white;
    color: var(--color-black);
    transform: translateY(-3px);
}

.fl-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 300;
    font-size: 16px;
    transition: all 0.3s ease;
}

.fl-btn-outline:hover {
    background-color: white;
    color: var(--color-black);
    transform: translateY(-3px);
}

/* Override global btn-primary for this page */
.btn-primary:hover {
    background-color: white !important;
    color: var(--color-black) !important;
    transform: translateY(-3px);
}
/* #endregion */

/* #region Media Queries */
@media (max-width: 1024px) {
    .fl-why-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .fl-why-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .fl-hero-content {
        text-align: center;
    }

    .fl-hero-eyebrow, .fl-hero-separator {
        justify-content: center;
        margin-inline: auto;
    }

    .fl-hero-sub-text {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .fl-testimonial-card {
        min-width: 300px;
        padding: 30px;
    }

    .fl-testimonials-section .fl-section-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .fl-stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fl-why-image img {
        box-shadow: none !important;
    }

    .fl-hero-separator-gray {
        width: 100%;
        margin-inline: auto;
    }

    .eyebrow-icon, .process-section-icon {
        animation: none !important;
    }
}
/* #endregion */
