.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--dark-blue);
    padding: 14px 26px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    font-size: 24px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--gold);
    color: var(--white);
    font-size: 23px;
    text-decoration: none;
    font-weight: 800;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 100% 0%;
    background-clip: padding-box;
    transition: background-size 0.9s ease, color 0.5s ease;
}

.btn-outline:hover {
    background-size: 100% 100%;
    color: var(--dark-blue);


}

.btn-outline i {
    margin-right: 8px;
}

.btn-outline-light {
    border-color: var(--gold);
    color: var(--gold);
    position: relative;
    overflow: hidden;
    background-image: none;
}

.btn-outline-light::before {
    content: "";
    position: absolute;
    left: -5%;
    bottom: 0;
    width: 110%;
    height: 0%;
    background: var(--gold);
    border-radius: 2px;
    transform-origin: bottom;
    transition: height 0.9s ease;
    z-index: 0;
}

.btn-outline-light::after {
    content: "";
    position: absolute;
    left: -10%;
    bottom: 0;
    width: 120%;
    height: 160%;
    transform: translateY(100%);
    transition: transform 0.9s ease;
    animation: waveShift 2.4s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.btn-outline-light:hover {
    color: #000000;
}

.btn-outline-light:hover::before {
    height: 120%;
}

.btn-outline-light:hover::after {
    transform: translateY(0);
}

.hero-utilities {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 15%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 25px;
    color: var(--white);
}

.hero-callout i {
    color: var(--gold);
    font-size: 30px;
}

.hero-callout strong {
    color: var(--gold);
    font-size: 25px;
    letter-spacing: 0.5px;
}

/* Social Bar */
.social-bar {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-bar a {
    background: var(--white);
    color: var(--dark-blue);
    padding: 10px;
    border-radius: 50%;
}

.stats-card {
    background: var(--white);
    color: var(--dark-blue);
    padding: 16px 24px;
    width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 0;
    left: 10%;
    height: 160px;
    transform: translateY(-50%);
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item .stat-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 6px;
    color: #C9A24D;
}

.stat-item .stat-icon * {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .stat-item .stat-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 4px;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 30px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: block;
    /* changed from flex to block to support scrolling better with margin:auto */
    /* justify-content: center; removed */
    /* align-items: center; removed */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    padding: 24px 24px;
    border-radius: 4px;
    width: 84%;
    max-width: 420px;
    position: relative;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 40px auto;
    /* Ensure spacing when scrolling */
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    /* Removed max-height to allow content to grow */
    height: auto;
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--dark-blue);
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.modal-header h2 {
    color: var(--gold);
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Merriweather', serif;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 2px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.appointment-form {
    background: var(--white);
    color: var(--dark-blue);
    padding: 0;
    border-radius: 1px;
    margin-top: 8px;
}

.appointment-form .form-group label {
    color: var(--dark-blue);
}

.appointment-form .form-group input,
.appointment-form .form-group textarea {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--dark-blue);
}

.appointment-form .form-group input:focus,
.appointment-form .form-group textarea:focus {
    background: var(--white);
    border-color: var(--gold);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.appointment-form .btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-top: 10px;
}

.right-place {
    width: 100%;
    margin: 0;
    background: var(--white);
    color: var(--dark-blue);
    padding: 180px 0 120px;
    position: relative;
}

.rp-grid {
    width: 80%;
    margin: 0 10%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}


.rp-eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
}

.rp-eyebrow::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.right-place h2 {
    font-family: 'Georgia', serif;
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 18px;
    padding-top: 20px;
    color: var(--dark-blue);
}

.right-place p {
    color: var(--dark-blue);
    line-height: 1.8;
    margin-bottom: 22px;
    max-width: 700px;
}

.rp-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 700px;
    margin: 20px 0 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.rp-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.rp-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rp-feature i {
    color: var(--gold);
    font-size: 24px;
}

.rp-feature h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.rp-feature p {
    color: var(--dark-blue);
}

.rp-text {
    max-width: 680px;
}

.rp-media {
    position: relative;
}

.rp-photo-wrap {
    position: relative;
    display: inline-block;
}

.rp-photo-wrap img {
    width: 100%;
    max-width: 620px;
    height: 540px;
    object-fit: cover;
    border-radius: 0;
    position: relative;
    z-index: 2;
}

.site-footer {
    width: 100%;
    background: var(--dark-blue);
    color: var(--white);
    padding: 40px 0;
}

.site-footer .footer-grid {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 56px;
    align-items: start;
}

.site-footer .footer-brand .logo img {
    width: 160px;
    height: auto;
    display: block;
}

.site-footer .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.site-footer h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 9px;
    margin-top: 10px;
    color: var(--gold);
}



.site-footer .footer-list,
.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-list li,
.site-footer .footer-links li {
    margin-bottom: 8px;
}

.site-footer .footer-list li,
.site-footer .footer-list a,
.site-footer .footer-links a,
.site-footer .footer-subhead {
    white-space: nowrap;
}

.site-footer .footer-quick h4 {
    white-space: nowrap;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
}

.site-footer a:hover {
    color: var(--gold);
}

.site-footer .footer-subhead {
    display: block;
    margin-top: 10px;
    color: var(--gold);
    font-weight: 800;
    font-size: 16px;
}

.site-footer .footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.site-footer .footer-social a:hover {
    background: var(--gold);
    color: #000;
}

.site-footer .footer-list,
.site-footer .footer-links {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 12px;
}

.site-footer .footer-list li,
.site-footer .footer-links li {
    line-height: 1.6;
}

.site-footer .footer-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .site-footer .footer-services {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

.rp-photo-wrap::after {
    content: "";
    position: absolute;
    top: -28px;
    left: 90px;
    width: 100%;
    height: 96%;
    background: #d6ba76;
    z-index: 1;
}

/* overrides to ensure callout button matches Free Consultation behavior */
.btn-outline-light {
    border-color: var(--gold);
    color: var(--gold);
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 100% 0%;
    background-clip: padding-box;
    transition: background-size 0.9s ease, color 0.5s ease;
}

.btn-outline-light:hover {
    background-size: 100% 100%;
    color: #000000;
}

.btn-outline-light::before,
.btn-outline-light::after {
    content: none !important;
    display: none !important;
}

/* Right-place CTA styled like hero Free Consultation */
.right-place .rp-cta {
    font-size: 18px;
    font-weight: 700;
    border-color: var(--dark-blue);
    background-color: var(--gold);
    color: #000;
    background-image: linear-gradient(#000, #000);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 100% 0%;
    background-clip: padding-box;
    transition: background-size 0.9s ease, color 0.5s ease;
}

.right-place .rp-cta:hover {
    background-size: 100% 100%;
    color: var(--gold);
}

.practice-areas {
    width: 100%;
    background: #f7f7f7;
    color: var(--dark-blue);
    padding: 80px 0;
}

.practice-areas .pa-grid {
    width: 80%;
    margin: 0 10%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.practice-areas h2 {
    font-family: 'Georgia', serif;
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 14px;
    padding-top: 20px;
    color: var(--dark-blue);
}

.practice-areas .pa-intro {
    color: var(--dark-blue);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 18px;
}

.practice-areas .pa-readmore {
    display: none;
    font-size: inherit;
    text-decoration: underline;
    color: inherit;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .practice-areas .pa-intro {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .practice-areas .pa-readmore {
        display: inline-block;
    }
}

.practice-areas .pa-intro.expanded {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.practice-areas .pa-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 20px;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.practice-areas .pa-item {
    background: #fafafa;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 16px;
    height: 100%;
    transition: background-color 0.25s ease;
}

.practice-areas .pa-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: block;
}

.practice-areas .pa-icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.practice-areas .pa-item:hover {
    background: #dcdbdb;
}

.practice-areas .pa-item:nth-child(4n) {
    border-right: none;
}

.practice-areas .pa-item:nth-child(n+5) {
    border-bottom: none;
}

.practice-areas .pa-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.practice-areas .pa-item p {
    color: var(--dark-blue);
    line-height: 1.6;
}

.practice-areas .pa-media {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.practice-areas .pa-photo-wrap {
    position: relative;
    display: inline-block;
}

.practice-areas .pa-photo-wrap img {
    width: 100%;
    max-width: 420px;
    height: 320px;
    object-fit: cover;
    border-radius: 0;
    position: relative;
    z-index: 2;
}

.practice-areas .pa-photo-wrap::after {
    content: "";
    position: absolute;
    top: -18px;
    left: 50px;
    width: 100%;
    height: 92%;
    background: #d6ba76;
    z-index: 1;
}

@media (max-width: 480px) {
    .modal-container {
        width: 88%;
        max-width: 320px;
        padding: 10px;
        transform: none;
        max-height: 70vh;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
    }

    .modal-close {
        font-size: 24px;
        top: 10px;
        right: 12px;
    }

    .modal-header h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .appointment-form {
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
    }

    .form-content {
        flex: 1;
        overflow: visible;
        gap: 6px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 12px;
    }

    .appointment-form .form-group input,
    .appointment-form .form-group textarea {
        padding: 6px;
        font-size: 12px;
    }

    .appointment-form .btn-primary {
        font-size: 14px;
        padding: 9px;
    }
}

/* ================= HOW IT WORKS ================= */
.how-it-works {
    width: 100%;
    background: var(--white);
    color: var(--dark-blue);
    padding: 90px 0;
    text-align: center;
}

.how-it-works .hiw-grid {
    width: 80%;
    margin: 0 10%;
}

.how-it-works .hiw-eyebrow {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 14px;
}

.how-it-works h2 {
    font-family: 'Georgia', serif;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 14px;
    padding-top: 10px;
    color: var(--dark-blue);
    text-align: center;
}

.how-it-works .hiw-intro {
    color: var(--dark-blue);
    line-height: 1.8;
    margin-bottom: 26px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.how-it-works .hiw-steps {
    width: 68%;
    margin: 0 16%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    --hiw-gap: 40px;
    gap: var(--hiw-gap);
    align-items: stretch;
}

.how-it-works .hiw-step {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left top;
    transition: background-size 0.9s ease;
}

.how-it-works .hiw-step-number {
    font-family: 'Georgia', serif;
    font-size: 50px;
    line-height: 1;
    color: #b8c0ca;
    margin-bottom: 12px;
}

.how-it-works .hiw-step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.how-it-works .hiw-step p {
    line-height: 1.7;
}

.how-it-works .hiw-cta {
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.how-it-works .rp-cta {
    font-size: 18px;
    font-weight: 700;
    border-color: var(--dark-blue);
    background-color: var(--gold);
    color: #000;
    background-image: linear-gradient(#000, #000);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 100% 0%;
    background-clip: padding-box;
    transition: background-size 0.9s ease, color 0.5s ease;
}

.how-it-works .rp-cta:hover {
    background-size: 100% 100%;
    color: var(--gold);
}

.how-it-works .hiw-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    width: var(--hiw-gap);
    height: 14px;
    background: var(--white);
    border-top: 2px solid rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    transition: transform 0.7s ease;
}

.how-it-works .hiw-step.pipe-active:not(:last-child)::after {
    transform: translateY(-50%) scaleX(1);
}

.how-it-works .hiw-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    width: var(--hiw-gap);
    height: 10px;
    background: var(--gold);
    border-radius: 8px;
    transition: transform 0.7s ease;
}

.how-it-works .hiw-step.pipe-active:not(:last-child)::before {
    transform: translateY(-50%) scaleX(1);
}

.how-it-works .hiw-step.fill-active {
    background-size: 100% 100%;
}

.testimonials {
    width: 100%;
    color: var(--white);
    padding: 110px 0;
    position: relative;
}

.testimonials .t-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.testimonials .t-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(17, 38, 57, 0.6), rgba(17, 38, 57, 0.6));
    z-index: 1;
    pointer-events: none;
}

.testimonials .t-grid,
.testimonials .t-slider {
    position: relative;
    z-index: 2;
}

.testimonials .t-grid {
    width: 80%;
    margin: 0 10%;
    text-align: center;
}

.testimonials .t-eyebrow {
    display: inline-block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin-bottom: 14px;
}

.testimonials h2 {
    font-family: 'Georgia', serif;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--white);
}

.testimonials .t-socials {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--white);
    opacity: 0.9;
}

.testimonials .t-intro {
    max-width: 900px;
    margin: 0 auto 28px;
    line-height: 1.8;
    color: var(--white);
    opacity: 0.9;
}

.testimonials .t-slider {
    width: 80%;
    margin: 0 10%;
    overflow: hidden;
}

.testimonials .t-track {
    display: flex;
    gap: 24px;
    will-change: transform;
}

.testimonials .t-card {
    flex: 0 0 calc((100% - 48px) / 3);
    background: var(--white);
    color: var(--dark-blue);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    padding: 22px 22px 24px;
    text-align: center;
}

.testimonials .t-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid #111;
    margin: 0 auto 12px;
    background: #ddd;
}

.testimonials .t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.testimonials .t-quote {
    line-height: 1.8;
    margin-bottom: 16px;
}

.testimonials .t-name {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 6px;
}

.testimonials .t-location {
    color: var(--gold);
    font-weight: 700;
}

.legal-help {
    width: 100%;
    background: rgb(13, 53, 73);
    color: var(--dark-blue);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.legal-help .lh-grid {
    width: 80%;
    margin: 0 10%;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.legal-help h2 {
    font-family: 'Georgia', serif;
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--gold);
}

.legal-help p {
    line-height: 1.7;
    max-width: 760px;
    color: rgb(255, 255, 255);
    font-size: 18px;
}

.legal-help .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.legal-help .overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 40, 0.55);
    z-index: 1;
}

.legal-help .lh-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.legal-help .appointment-form {
    width: 100%;
    max-width: 420px;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 16px;
}

.legal-help .appointment-form .btn-primary {
    margin-top: 12px;
}

.legal-help .lh-readmore {
    display: none;
    text-decoration: underline;
    color: rgb(255, 255, 255);
    margin-top: 6px;
    font-size: 18px;
}

.legal-help .rp-cta {
    font-size: 20px;
    font-weight: 700;
    border-color: var(--dark-blue);
    background-color: var(--gold);
    color: #000;
    background-image: linear-gradient(#000, #000);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 100% 0%;
    background-clip: padding-box;
    transition: background-size 0.9s ease, color 0.5s ease;
}

.legal-help .rp-cta:hover {
    background-size: 100% 100%;
    color: var(--gold);
}

@media (max-width: 768px) {
    .legal-help .lh-grid {
        width: 90%;
        margin: 0 5%;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .legal-help .lh-action {
        justify-content: flex-start;
    }

    .legal-help .appointment-form {
        max-width: 100%;
    }

    .legal-help .lh-text p:first-of-type {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .legal-help .lh-text p:nth-of-type(n+2) {
        display: none;
    }

    .legal-help .lh-readmore {
        display: inline-block;
    }
}

.legal-help .lh-text.expanded p {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.locations {
    width: 100%;
    background: var(--white);
    color: var(--dark-blue);
    padding: 20px 0 0;
}

.locations .loc-header {
    width: 80%;
    margin: 0 10% 16px;
    text-align: center;
}

.locations .loc-header h2 {
    font-family: 'Georgia', serif;
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--dark-blue);
}

.locations .loc-grid {
    width: 80%;
    margin: 0 10%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}

.locations .loc-item {
    position: relative;
}

.locations .loc-item iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.locations .loc-info {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 240px;
    max-width: calc(100% - 20px);
    background: #ffffff;
    color: var(--dark-blue);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 2;
}

.locations .loc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.locations .loc-name {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.locations .loc-directions {
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.locations .loc-directions i {
    font-size: 14px;
    line-height: 1;
}

.locations .loc-address {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.locations .loc-plus {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.locations .loc-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.locations .loc-rating {
    font-weight: 700;
}

.locations .loc-stars i {
    color: var(--gold);
}

.locations .loc-reviews {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.locations .loc-view {
    display: inline-block;
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
}

@media (max-width: 768px) {
    .locations .loc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .locations .loc-info {
        position: static;
        width: 100%;
        max-width: none;
        margin-bottom: 8px;
    }

    .locations .loc-item iframe {
        height: 300px;
    }
}

.site-navbar {
    width: 100%;
    margin: 0;
    border-top: 1px solid #e0e0e0;
    background: var(--dark-blue);
    color: var(--white);
}

.site-navbar .nav-inner {
    width: 90%;
    margin: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-navbar .nav-right {
    font-size: 14px;
    color: var(--white);
}

.site-navbar .nav-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    padding: 10px 0;
    font-size: 14px;
    color: var(--white);
    opacity: 0.95;
}

.services {
    width: 100%;
    background: var(--white);
    color: var(--dark-blue);
    padding: 100px 0;
}

.services .s-grid {
    width: 80%;
    margin: 0 10%;
    text-align: center;
}

.services .s-header h2 {
    font-family: 'Georgia', serif;
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--dark-blue);
}

.services .s-intro {
    max-width: 900px;
    margin: 0 auto 26px;
    line-height: 1.8;
    color: var(--dark-blue);
    opacity: 0.9;
}

.services .s-list {
    display: grid;
    column-gap: 24px;
    row-gap: 40px;
    grid-template-columns: repeat(4, 1fr);
}

.services .s-card {
    position: relative;
    background: var(--white);
    color: var(--dark-blue);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    padding: 22px 22px 24px;
    text-align: left;
    z-index: 1;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
}

.services .s-list>.s-card-wrap::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 15px;
    width: 100%;
    height: 100%;
    background: var(--gold);
    z-index: 0;
    border-radius: 0;
}

.services .s-list>.s-card-wrap {
    position: relative;
    height: 280px;
}

.services .s-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 280px;
}

.services .s-help {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.services .s-title {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 8px;
}

.services .s-help {
    position: relative;
    z-index: 1;
    line-height: 1.7;
    opacity: 0.9;
}

.services .s-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 34, 51, 1);
    color: var(--white);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transform-origin: center center;
    clip-path: circle(0% at 50% 50%);
    z-index: 2;
    transition: transform 0.9s ease, opacity 0.7s ease, clip-path 0.5s ease;
}

.services .s-card:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.services .s-card:hover .s-overlay,
.services .s-card:focus-within .s-overlay {
    opacity: 1;
    transform: scale(1);
    clip-path: circle(150% at 50% 50%);
}

.services .s-title,
.services .s-help {
    transition: opacity 0.3s ease;
}

.services .s-title-overlay {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--white);
}

/* Service Icons */
.services .s-icon {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 10px;
    color: var(--gold);
}

.services .s-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.services .s-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .services .s-icon {
        width: 32px;
        height: 32px;
        margin: 0 auto 8px;
    }
}

.services .s-card:hover .s-title,
.services .s-card:hover .s-help,
.services .s-card:focus-within .s-title,
.services .s-card:focus-within .s-help {
    opacity: 0;
}

.services .s-subhead {
    font-weight: 700;
    margin-bottom: 10px;
}

.services .s-services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services .s-services li {
    margin-bottom: 8px;
}

.services .s-more {
    text-align: center;
}

.services .s-more .s-cta {
    display: inline-block;
    margin-top: 10px;
}

.services .s-card.s-more .s-icon {
    display: none;
}

.services .s-card.s-more .s-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.services .s-card.s-more .s-icon-big {
    width: 160px;
    height: 160px;
    max-width: 70%;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .services .s-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }

    .services .s-header h2 {
        font-size: 34px;
    }

    .services .s-list {
        grid-template-columns: 1fr;
    }

    .services .s-card {
        padding: 18px;
        transition: none !important;
        animation: none !important;
    }

    .services .s-overlay {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }

    .services .s-card:hover .s-overlay,
    .services .s-card:focus-within .s-overlay {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .services .s-card:hover .s-title,
    .services .s-card:hover .s-help,
    .services .s-card:focus-within .s-title,
    .services .s-card:focus-within .s-help,
    .services .s-card:active .s-title,
    .services .s-card:active .s-help {
        opacity: 1 !important;
    }

    .services .s-title,
    .services .s-help {
        transition: none !important;
        animation: none !important;
    }

    .services .s-icon,
    .services .s-icon-img,
    .services .s-title-overlay,
    .services .s-services {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 1024px) {
    .testimonials .t-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 80px 0;
    }

    .testimonials .t-card {
        flex: 0 0 100%;
    }
}

.fab {
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fab-button {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #1a73e8;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    animation: fab-pulse 2.2s ease-in-out infinite;
}

.fab-button.active {
    background: #9e0300;
    animation: fab-pulse-red 2.2s ease-in-out infinite;
}

.fab-button:active {
    transform: scale(0.98);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.fab-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: fab-sheen 3s linear infinite;
}

.fab-button i {
    font-size: 24px;
}

@keyframes fab-pulse {

    0%,
    100% {
        box-shadow: 0 10px 24px rgba(26, 115, 232, 0.35);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 14px 30px rgba(26, 115, 232, 0.5);
        transform: scale(1.04);
    }
}

@keyframes fab-sheen {
    0% {
        left: -100%;
    }

    100% {
        left: 140%;
    }
}

/* WhatsApp Floating Icon */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    /* Original WhatsApp Green */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* WhatsApp Badge */
.wa-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 22px;
    height: 22px;
    background-color: #ff3b30;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    animation: wa-badge-appear 0.5s forwards;
    animation-delay: 2s;
    z-index: 1001;
}

/* WhatsApp Tooltip */
.wa-tooltip {
    position: absolute;
    bottom: 75px;
    left: -10px;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wa-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wa-tooltip-content {
    background: #25d366;
    /* Original WhatsApp Green */
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #fff;
    position: relative;
}

/* Thought Bubble dots */
.wa-tooltip-dots {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    margin-left: 30px;
    align-items: center;
}

.wa-tooltip-dots span {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

.wa-tooltip-dots span:nth-child(1) {
    width: 10px;
    height: 10px;
    margin-left: -4px;
}

.wa-tooltip-dots span:nth-child(2) {
    width: 7px;
    height: 7px;
    margin-left: -12px;
}

.wa-tooltip-dots span:nth-child(3) {
    width: 4px;
    height: 4px;
    margin-left: -18px;
}

@keyframes wa-badge-appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tooltip animation: Fade in, stay for 4s, fade out */
@keyframes wa-tooltip-cycle {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }

    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
}

@media (max-width: 768px) {
    .whatsapp-fab {
        width: 48px;
        height: 48px;
        font-size: 28px;
        bottom: 50px;
        left: 10px;
    }

    .wa-tooltip {
        bottom: 65px;
        left: -5px;
    }

    .wa-tooltip-content {
        font-size: 14px;
        padding: 6px 15px;
    }
}

.fab-popover {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: clamp(300px, 86vw, 360px);
    max-width: calc(100% - 40px);
    max-height: 80vh;
    background: var(--white);
    color: var(--dark-blue);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: transform 300ms ease, opacity 250ms ease;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fab-popover.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-popover-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fab-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--gold);
    text-align: center;
}

.fab-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: 0;
    color: var(--dark-blue);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.fab-popover .appointment-form {
    padding: 8px 10px;
    flex: 1;
    overflow-y: auto;
}

.fab-popover .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fab-popover .btn-primary {
    margin-top: 6px;
    padding: 8px 10px;
    font-size: 14px;
}

.fab-popover .form-group {
    margin-bottom: 8px;
}

.fab-popover .form-group label {
    font-size: 12px;
}

.fab-popover .form-group input,
.fab-popover .form-group textarea {
    padding: 8px;
    font-size: 13px;
}

.fab-popover textarea {
    min-height: 60px;
}

@media (max-width: 768px) {
    .fab-popover {
        bottom: 16px;
        right: 12px;
        width: clamp(280px, 92vw, 320px);
        max-height: 78vh;
    }
}

/* ================= DISCLAIMER OVERLAY ================= */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    /* Much lighter background to see through */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    backdrop-filter: blur(15px);
    /* Stronger blur for the website behind */
    -webkit-backdrop-filter: blur(15px);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.disclaimer-container {
    background: #ffffff;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: disclaimer-fade-in 0.5s ease-out;
    border: 1px solid #e5e7eb;
}

@keyframes disclaimer-fade-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.disclaimer-title {
    padding: 24px;
    text-align: center;
    color: #1a1a1a;
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 900;
    border-bottom: 1px solid #f3f4f6;
    margin: 0;
    background: #fff;
}

.disclaimer-body {
    padding: 32px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    text-align: justify;
}

.disclaimer-body p {
    margin-bottom: 20px;
}

.disclaimer-body p:last-child {
    margin-bottom: 0;
}

.disclaimer-footer {
    padding: 20px 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.btn-agree {
    background: #000080;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    flex: 1;
}

.btn-agree:hover {
    background: #000066;
    transform: translateY(-1px);
}

.btn-disagree {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    flex: 1;
}

.btn-disagree:hover {
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 640px) {
    .disclaimer-footer {
        flex-direction: column;
        padding: 16px;
    }

    .disclaimer-title {
        font-size: 1.25rem;
    }

    .disclaimer-body {
        padding: 20px;
    }
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.open {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-modal.open .success-content {
    transform: scale(1);
}

.success-icon-container {
    width: 64px;
    height: 64px;
    background: #e6f4ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon-container i {
    font-size: 32px;
    color: #1e7e34;
}

.success-content h3 {
    font-family: 'Merriweather', serif;
    color: #102a43;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

.success-content p {
    color: #486581;
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.quick-assist-label {
    font-size: 13px;
    color: #627d98;
    margin: 0;
    font-weight: 500;
}

.btn-whatsapp-success {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-success:hover {
    background: #20b85c;
    transform: translateY(-1px);
}

.btn-whatsapp-success i {
    font-size: 20px;
}

.btn-text-only {
    background: transparent;
    color: #627d98;
    border: none;
    padding: 10px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.btn-text-only:hover {
    color: #102a43;
}