/*!
Theme Name: Rippa Law
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: rippa-law
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Rippa Law is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


h1, h2, h3, h4, h5 {
    font-family: "Frank Ruhl Libre", serif;
    font-weight: 500;
}

body, p, span, a, li, button {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}
.font-inter{
    font-family: 'Inter', sans-serif!important;
}
.iti__selected-dial-code,
.iti__country-list{
    color: #717182!important;
}
.iti--allow-dropdown{
    width: 100%;
    margin-top: 5px;
}
.button-styles{
    width: 174px;
    padding: 16.5px 10px;
    font-size: 18px;
    text-align: center;
    line-height: 100%;
    font-weight: 600;
    transition: .3s all;
    color: #FFFFFF;
}
.button-style-1{
    background: #B7000E;
    border: 1px solid #B7000E;

}
.button-style-1:hover{
    background: transparent;
    border: 1px solid #FFFFFF;
}

.button-style-2{
    background: transparent;
    border: 1px solid #FFFFFF;
}
.button-style-2:hover{
    background: #B7000E;
    border: 1px solid #B7000E;
}
.container{
    max-width:1300px;
    margin: 0 auto;
}

#menu-header-menu a{
    color: #121212;
    font-weight: 600!important;
    font-size: 18px;
    transition: .3s all;
}
.copyright a{
    transition: .3s all;
}
.copyright a:hover,
#menu-header-menu a:hover,
#menu-header-menu .current_page_item>a{
    color: #B7000E;
}
.show-mobile{
    display: none;
}
.arrow-icon{
    display: none;
}

.button-style-3{
    border: 1px solid #121212;
    color: #121212;
}
.button-style-4:hover{
    border: 1px solid #121212;
    color: #121212;
    background: white;
}
.button-style-3:hover{
    border: 1px solid #B7000E;
    color: white;
    background: #B7000E;
}


.pulse-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    position: relative;
}
.pulse-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background-color: #00EE34;
    border-radius: 50%;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #00EE34;
    border-radius: 50%;
    opacity: 0.6;
    animation: svgPulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes svgPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}
/*dropdown*/
/* General and Desktop flex setup to keep the link and arrow side by side */
.menu-item-has-children {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.menu_icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
    transform-origin: center center;
}

/* ----------------- DESKTOP (Hover + Styling + Animations) ----------------- */
@media (min-width: 1024px) {
    .menu-item-has-children {
        position: relative;
    }

    /* Dropdown styles with smooth fade-in and slide-down animation */
    .menu-item-has-children > .sub-menu {
        display: block !important;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease-in-out; /* Smooth appearance animation */

        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #ffffff;            /* Background color */
        border: 1px solid #e2e8f0;      /* Border color */
        border-radius: 8px;             /* Corner rounding */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); /* Shadow */
        padding: 10px 0;                /* Top and bottom padding */
        z-index: 99;
    }

    /* Submenu item link styling */
    .menu-item-has-children > .sub-menu li a {
        display: block;
        padding: 6px 16px;
        color: #333333;
        white-space: nowrap;
        transition: background 0.2s ease;
        font-size: 15px!important;
        font-weight: 500!important;
    }

    /* Hover background for submenu items */
    .menu-item-has-children > .sub-menu li a:hover {
        background: #f8fafc;
    }

    /* Trigger smooth animation on parent hover */
    .menu-item-has-children:hover > .sub-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    /* Rotate arrow icon smoothly on hover */
    .menu-item-has-children:hover > a .menu_icon {
        transform: rotate(180deg);
    }
}

/* ----------------- MOBILE (Click) ----------------- */
@media (max-width: 1023px) {
    .menu-item-has-children .sub-menu {
        display: none;
        width: 100%; /* Push submenu to a new line */
    }

    /* Open state triggered by jQuery (.open class) */
    .menu-item-has-children.open > .sub-menu {
        background: #f9fafb;
        padding-left: 15px;
        border-left: 2px solid #B7000E;
        margin-top: 5px;
    }

    /* Rotate arrow icon smoothly when open */
    .menu-item-has-children.open > .menu_icon {
        transform: rotate(180deg);
    }
}

/*Single page*/
.form-single-pages .wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.form-single-pages .wpcf7-form p {
    margin: 0;
    width: 100%;
}

.form-single-pages .wpcf7-form p:nth-of-type(1),
.form-single-pages .wpcf7-form p:nth-of-type(2) {
    width: calc(50% - 10px);
}
.form-single-pages .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.form-single-pages .wpcf7-form label {
    display: block;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.form-single-pages .wpcf7-form input[type="text"],
.form-single-pages .wpcf7-form input[type="email"],
.form-single-pages .wpcf7-form input[type="tel"],
.form-single-pages .wpcf7-form textarea {
    width: 100%;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    color: #333333;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    margin-top: 8px;
}

.form-single-pages .wpcf7-form input::placeholder,
.form-single-pages .wpcf7-form textarea::placeholder {
    color: #aaaaaa;
}

.form-single-pages .wpcf7-form textarea {
    resize: vertical;
    max-height: 80px;
}
.form-single-pages .wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    background-color: #B7000E;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.form-single-pages .wpcf7-spinner{
    height: 20px!important;
    width: 20px!important;
}
.form-single-pages .wpcf7-response-output{
    color: #FFF!important;
    margin-top: 0!important;
}
.form-single-pages .wpcf7-form input[type="submit"]:hover {
    background-color: #a30000;
}
.form-info a{
    transition: .3s all;
}
.form-info a:hover{
    color: #B7000E;
}

.content-title{
    font-family: 'Inter', sans-serif!important;
}
.content-block h4{
    font-family: 'Inter', sans-serif!important;
    font-size: 18px;
    font-weight: 600!important;
}
.content-block ul{
    list-style: disc;
    padding-left: 20px;
}
.content-block img{
    width: 100%;
    max-height: 300px;
}
.bg-content{
    background: #F5F5F5;
    padding: 20px;
    border-radius: 12px;
}
.bg-content a{
    margin-top: 0.75rem; /* mt-3 */
    background-color: #0A0A0A; /* bg-[#0A0A0A] */
    color: #ffffff; /* text-white */
    display: flex; /* flex */
    gap: 0.5rem; /* gap-2 */
    font-size: 16px; /* text-[16px] */
    font-weight: 500; /* !font-[500] */
    padding: 10px 20px; /* py-[10px] */
    align-items: center; /* items-center */
    width: -webkit-max-content;
    width: -moz-max-content;
    width: fit-content; /* w-fit */
    border-radius: 8px; /* rounded-[8px] */
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms; /* transition-colors */
}

.bg-content a:hover {
    background-color: #B7000E;

}


/*Single page*/

/*left sidebar form*/

.sidebar-form {
    background-color: #F5F5F5;
    border-radius: 10px;
    padding: 20px;
}

.sidebar-form .wpcf7-form p {
    margin: 0 0 16px 0;
}

.sidebar-form .wpcf7-form label br {
    display: none;
}
.sidebar-form .wpcf7-form label {
    display: block;
    color:#0A0A0A;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    width: 100%;
}

.sidebar-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.sidebar-form .wpcf7-form input[type="text"],
.sidebar-form .wpcf7-form input[type="email"],
.sidebar-form .wpcf7-form input[type="tel"],
.sidebar-form .wpcf7-form textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 8px 12px;
    color: #C8C8C8;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    margin-top: 4px;
    font-weight: 400!important;
}
.sidebar-form .wpcf7-form input[type="text"]:focus,
.sidebar-form .wpcf7-form input[type="email"]:focus,
.sidebar-form .wpcf7-form input[type="tel"]:focus,
.sidebar-form .wpcf7-form textarea:focus {
    outline: none;
}
.sidebar-form .wpcf7-form input::placeholder,
.sidebar-form .wpcf7-form textarea::placeholder {
    color: #a0a0a0;
    font-weight: 400!important;
}
.sidebar-form .wpcf7-form textarea {
    resize: vertical;
    max-height: 90px;
}
.sidebar-form .wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    background-color: #0A0A0A;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}
.sidebar-form .wpcf7-spinner{
    position: absolute;
}
.sidebar-form .wpcf7-form input[type="submit"]:hover {
    background-color: #B7000E;
}
/*left sidebar form*/








.wpcf7-not-valid-tip{
    font-size: 13px;
    position: absolute;
}
/*SIngle News*/
.active-link{
    background: #B7000E14;
    color: #B7000E;
    border-left: 2px solid #B7000E;
}
.active-link svg path{
    stroke: #B7000E;
}
#menu-header-menu .case-results-item{
    display: none;
}
@media (min-width: 1440px){
    .header-block,
    .top-bar{
        max-width: 95%;
    }
    .top-bar{
        padding-left: 16px;
        padding-right: 44px;
    }
}
@media (max-width: 1470px){
    #menu-header-menu{
        gap: 30px;
    }
}
@media (max-width: 1440px){
    .top-bar{
        max-width: 90%;
        margin: 0 auto;
        width: 100%;
    }
}
@media (max-width: 1370px){
    .top-bar{
        max-width:100%;
        padding-left: 16px;
        padding-right: 44px;
    }
}
@media (max-width: 1360px){
    .container{
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 1370px){
    .top-bar{
        padding-right: 20px;
    }
}
@media (max-width: 1200px){
    #menu-header-menu{
        gap: 20px;
    }
    #menu-header-menu a{
        font-size: 15px;
    }
}
@media (max-width: 1024px){
    .practices-item{
        /*max-width: 200px;*/
    }
    .practices-item-0{
        border-right: 1px solid #E1E1E1;
        border-bottom: 1px solid #E1E1E1;
        padding-bottom: 20px;
        padding-left: 0;
    }
    .practices-item-1{
        border-bottom: 1px solid #E1E1E1;
        padding-bottom: 20px;
    }
    .practices-item-2{
        border-right: 1px solid #E1E1E1;
        padding-top: 20px;
        padding-left: 0;
    }
    .practices-item-3{
        padding-top: 20px;
    }
    .menu-item-has-children a{
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    .menu_icon{
        width: 26px;
        height: 26px;
        padding: 6px;
    }
    .menu_icon svg{
        width: 14px;
        height: 14px;

    }
    .single-criminal_defense .get-a-free-section,
    .single-service_area .get-a-free-section,
    .single-immigration .get-a-free-section{
        padding-top: 20px;
    }
    .active-link{
        background: transparent;
        color: #B7000E;
        border-left: 0px solid #B7000E;
    }
    .toc-link{
        padding-left: 0;
    }
    .sub-menu .menu-item a{
        font-size: 16px;
    }
    .sub-menu .menu-item{
        margin: 8px 0;
    }

}
@media (max-width: 768px){
    .button-styles{
        width: 120px;
        padding: 12px 8px;
        font-size: 16px;
    }
}
@media (max-width: 640px){
    .practices-item-1,
    .practices-item-3{
        padding-left: 12px;
    }
    /*.practices-item{*/
    /*    padding-bottom: 20px;*/
    /*    border-bottom: 1px solid #E1E1E1;*/
    /*}*/
    /*.practices-item:last-child {*/
    /*    padding-bottom: 0;*/
    /*    border-bottom: none;*/
    /*}*/
}


@media (max-width: 480px){
    .founder-info{
        flex-direction: column;
        align-items: flex-start;
    }
    .founder-info-avatar{
        width: 100%;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .show-mobile{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hide-mobile{
        display: none;
    }
    .founder-description{
         max-width: 100%;
    }
    .button-styles{
        font-size: 14px;
    }
    .practices-item-icon{
        flex-direction: column;
        align-items: flex-start;
    }
    .practices-item a,
    .practices-item .practices-item-desc{
        font-size: 11px;
    }
}

