/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #1d2e4c;
    --secondary-navy: #364859;
    --dark-gray: #5b5658;
    --light-gray: #f1f2f2;
    --white: #ffffff;
    --text-gray: #666;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-navy);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-small {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-small-business {
    max-width: 1200px;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.accessibility-btn {
    background: #793e34;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    background: var(--secondary-navy);
    width: 60px;
}

/* Header */
.header-top {
    background: #ffffff;
    color: #333;
    padding: 10px 0;
    text-align: right;
}

.phone-link {
    color: #793e34;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.phone-link:hover {
    color: #bd9e61
;
}

.header-main {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 100px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-navy);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.hero-business {
    position: relative;
    height: 550px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/Business-law-attorney.jpg);
    /*background-position: center;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.hero-partition {
    position: relative;
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/partition.jpg);
    /*background-position: center;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.hero-tenancy {
    position: relative;
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/Tenancy-in-common-california.jpeg);
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.hero-quiet {
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/quiet-title.png);
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}


.hero-real {
    position: relative;
    height: 550px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/real-state.jpg);
    /*background-position: center;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.hero-fraud {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/frauds-section-scaled.jpg);
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.hero-foreclosure  {
            position: relative;
            height: 300px;
            background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/foreclose.jpg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            background-size: cover;        
            background-repeat: no-repeat; 
            background-position: center;
        }

.hero-unlawful  {
            position: relative;
            height: 300px;
            background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/unlawful-4-scaled.jpg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            background-size: cover;        
            background-repeat: no-repeat; 
            background-position: center;
        }

.elementor-divided{
            border-block-start: var(--divider-border-width) var(--divider-border-style) var(--divider-color);

}

.hero-easement  {
            position: relative;
            height: 300px;
            background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/easement-scaled.jpg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            background-size: cover;        
            background-repeat: no-repeat; 
            background-position: center;
        }       

.hero-tenant  {
            position: relative;
            height: 300px;
            background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/tenants.jpg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            background-size: cover;        
            background-repeat: no-repeat; 
            background-position: center;
        }      

.hero-dispute {
    position: relative;
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/Dispute-resolution-attorneys.jpg);
    /*background-position: center;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}


/* Hero Section */
.hero {
    position: relative;
    height: 550px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(assets/home-banner.jpeg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.badge-dot img {
    width: 8px;
    height: 8px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
}

.live-chat-tab {
    position: fixed;
    right: -2px;
    top: 40%;
    background: #bd9e61;
    color: var(--white);
    padding: 12px 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 999;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.live-chat-tab:hover {
    right: 0;
    background: #bd9e61;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--white);
    color: #793e34;
}

.btn-primary:hover {
    background: transparent;
    border-color: #bd9e61;
    color: #bd9e61;
}

.btn-outline {
    background: transparent;
    border: 2px solid #bd9e61;
    color: #bd9e61;
}

.btn-outline:hover {
    background: #bd9e61;
    color: var(--white);
}

.btn-submit {
    background: #793e34;
    color: var(--white);
    width: 100%;
    border: none;
}

.btn-submit:hover {
    background: #9e834d;
}

.btn-chat {
    background: #9e834d;
    color: var(--white);
    width: 100%;
}

/* Intro Section */
.intro-section {
    padding: 60px 0;
    background: var(--white);
}

.intro-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
    font-family: "Gilroy", Sans-serif;
}

.intro-text a {
    color: #793e34;
    text-decoration: underline;
}

/* Awards Section */
.awards-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 400;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-navy);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: center;
    justify-items: center;
    margin-top: 60px;
}

.awards-grid img {
    max-height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.awards-grid img:hover {
    opacity: 1;
}

/* Practice Areas Section */
.practice-areas-section {
    padding: 80px 0;
    background: var(--white);
}

.section-intro {
    text-align: justify;
    max-width: 100%;
    margin: 20px auto 60px;
    color: var(--dark-gray);
    line-height: 1.8;
}

.section-intro a {
    color: #793e34;
    text-decoration: underline;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Modificado el minmax para 5 columnas */
    gap: 30px;
    margin-bottom: 60px;
}

.practice-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-navy);
}

.practice-icon {
    margin-bottom: 20px;
}

.practice-icon img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    filter: invert(16%) sepia(84%) saturate(1478%) hue-rotate(320deg) brightness(80%) contrast(100%); 
}

.practice-card h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
    line-height: 1.4;
}

h3 {
    font-weight: 500;
    font-size: 21px;
    color: #191921;
    margin-bottom: 5px
}

/* Philosophy Section */
.philosophy-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.philosophy-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 400;
    position: relative;
    padding-bottom: 20px;
}

.philosophy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-navy);
}

.philosophy-section p {
    color: var(--dark-gray);
    line-height: 1.8;
}

.philosophy-image img,
.serve-image img,
.quality-image img,
.gavel-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.split-section {
    padding: 0;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide en dos columnas iguales */
    gap: 0; /* Eliminamos el espacio entre las columnas */
    max-width: 100%; /* Permite que el contenido tome el ancho completo, el límite es el container-small */
    padding: 0; /* Eliminamos el padding del container para que la imagen toque el borde */
}

.split-business {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Divide en dos columnas iguales */
    gap: 40px; /* Eliminamos el espacio entre las columnas */
    max-width: 100%; /* Permite que el contenido tome el ancho completo, el límite es el container-small */
    padding: 0; /* Eliminamos el padding del container para que la imagen toque el borde */
    align-items: start;
    justify-content: center;
    margin-left: 40px;
}

.blockquote {
    border-left: 5px solid #0C2250;
    font-style: normal;
    margin: 1.5em;
    border-color: rgba(0, 0, 0, .05);
    color: var(--ast-global-color-3);
    margin: 1.5em 1em 1.5em 3em;
    font-size: 1.1em;
    line-height: inherit;
    position: relative;
}

.split-col {
    min-height: 100%;
    background: var(--white);
}

.text-col {
    padding: 80px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.image-col img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
}
/* Who We Serve Section */
.who-we-serve-section {
    padding: 0px 0;
    background: var(--white);
}

.who-we-serve-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 400;
    position: relative;
    padding-bottom: 20px;
}

.who-we-serve-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-navy);
}

.who-we-serve-section p {
    color: var(--dark-gray);
    line-height: 1.8;
}

.who-we-serve-section a {
    color: #793e34;
    text-decoration: underline;
}

/* Quality Section */
.quality-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.quality-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.3;
    position: relative;
    padding-bottom: 20px;
}

.quality-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-navy);
}

.quality-section p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-navy);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #793e34;
}

.info-block p {
    color: var(--dark-gray);
    line-height: 1.8;
}

.info-block a {
    color: var(--primary-navy);
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 40px 0;
    background: var(--light-gray);
}

.disclaimer-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #9e834d;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 14px;
    color: #ccc;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #ccc;
}

.contact-list svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #ccc;
}

/* Live Chat Popup */
.live-chat-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
}

.live-chat-popup.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-header {
    background: var(--primary-navy);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-indicator {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.chat-content {
    padding: 20px;
}

.chat-message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.chat-message img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.chat-message p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 250px;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        height: calc(100vh - 90px);
        transition: right 0.3s ease;
        padding: 20px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .practice-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .live-chat-popup {
        width: calc(100% - 40px);
        right: 20px;
    }

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-badges {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 12px;
    }
}
/* Sidebar Menu Styles */
.sidebar-menu-block h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--primary-navy);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-menu li {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: var(--light-gray);
    color: #793e34; /* Color vino */
    padding-left: 20px;
}

/* Sub-menu styling (para el dropdown de Business Law) */
.sidebar-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fcfcfc;
}

.sidebar-menu li.current-menu-item > a {
    background: #793e34;
    color: var(--white);
    border-color: #793e34;
}

.sidebar-menu .sub-menu a {
    padding: 10px 15px 10px 30px; /* Indentación para sub-menú */
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 400;
    border-left: 4px solid transparent;
}

.sidebar-menu .sub-menu a:hover {
    background: #f1f1f1;
    color: #793e34;
    border-left-color: #bd9e61;
}

/* Estilos para el bloque de contacto dentro del sidebar */
.sidebar-contact-block h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-contact-block p {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-gray);
}


/* Media Query para el diseño responsivo (Para que las columnas se apilen en móvil) */
@media (max-width: 768px) {
    .split-content {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 40px;
    }
    
    /* En móvil, el sidebar (primera columna) debe aparecer primero por defecto.
       Si quieres que el contenido principal aparezca primero en móvil, usa:
       .split-content { display: flex; flex-direction: column-reverse; }
    */
    .split-col.text-col {
        padding: 0; /* Elimina padding excesivo en móvil si ya tienes padding en el container */
    }
}
