/*
Theme Name: J. Sobrinho Advogados RJ
Theme URI: https://sobrinhoadvogados.com.br
Description: Tema WordPress para J. Sobrinho Advogados - Filial RJ, compatível com Bootstrap 5
Version: 1.0
Author: J. Sobrinho Advogados
Author URI: https://sobrinhoadvogados.com.br
Text Domain: sobrinho-rj
*/

:root {
    --gold: #c79a3a;
    --gold-strong: #ddb45c;
    --gold-soft: #f0ddaf;
    --gold-line: rgba(199, 154, 58, .85);
    --bg-dark: #080807;
    --bg-dark-2: #0c0c0a;
    --bg-light: #ece6db;
    --text-light: #f3efe7;
    --text-muted: rgba(243, 239, 231, .72);
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, Arial, sans-serif;
}

*,
::after,
::before {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    transition: color .2s, background .2s, border-color .2s, transform .2s;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 9999;
    background: #fff;
    color: #000;
    padding: .75rem 1rem;
    border-radius: .5rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .005em;
}

.display-serif {
    font-family: var(--font-display);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .75rem 1.6rem;
    background: var(--gold);
    color: #111;
    border: 1px solid var(--gold);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    border-radius: 0;
}

.btn-gold:hover {
    background: var(--gold-strong);
    border-color: var(--gold-strong);
    color: #111;
    transform: translateY(-1px);
}

.divider-gold {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 1.25rem;
}

header.nav-shell {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    background: rgba(8, 8, 7, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.navbar {
    padding-block: .85rem;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: #fff;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, .85) !important;
    font-size: .85rem;
    font-weight: 400;
    padding: .5rem .85rem !important;
    letter-spacing: .02em;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--gold-soft) !important;
}

.navbar-toggler {
    border: 1px solid rgba(199, 154, 58, .55);
    padding: .35rem .55rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(199, 154, 58, .18);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c79a3a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.4em;
    height: 1.4em;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    color: var(--text-light);
    background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .35) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    letter-spacing: .005em;
}

.hero p {
    color: rgba(243, 239, 231, .82);
    font-size: clamp(.95rem, 1.1vw, 1.05rem);
    max-width: 32rem;
    margin-bottom: 1.85rem;
    font-family: var(--font-body);
}

.section {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.quem-somos {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .78));
}

.quem-somos h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--text-light);
    margin-bottom: 1rem;
}

.quem-somos p {
    color: var(--text-muted);
    max-width: 48ch;
}

.areas-section {
    position: relative;
    background: linear-gradient(180deg, rgba(8, 7, 6, .85), rgba(8, 7, 6, .92));
}

.areas-inner {
    position: relative;
    z-index: 1;
}

.areas-heading h2 {
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: .75rem;
}

.areas-heading p {
    color: rgba(255, 255, 255, .72);
    max-width: 60ch;
    margin-inline: auto;
}

.area-card {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-line);
    color: var(--text-light);
    text-align: center;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, .18);
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .01em;
    text-decoration: none;
}

.area-card:hover {
    background: rgba(199, 154, 58, .1);
    transform: translateY(-2px);
    color: var(--gold-soft);
}

.equipe-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .92));
}

.team-title {
    color: var(--gold-soft);
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 2.5rem;
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.team-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s ease;
}

.team-card:hover img {
    transform: scale(1.03);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    transition: height .4s ease, background .3s ease;
}

.team-card:hover .team-overlay {
    background: rgba(0, 0, 0, .75);
}

.team-name {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(.9rem, 1.8vw, 1.1rem);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.team-bio-area {
    display: none;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.team-bio-area.visible {
    opacity: 1;
}

.team-bio-desktop {
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(199, 154, 58, .3);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-height: 120px;
}

.team-bio-text {
    color: rgba(255, 255, 255, .85);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
    opacity: 1;
    transition: opacity .15s ease;
}

.team-bio-text.fade-out {
    opacity: 0;
}

.team-bio-mobile {
    display: none;
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(199, 154, 58, .2);
    border-radius: 0 0 8px 8px;
    border-top: none;
    padding: 1rem 1.25rem;
    margin-top: -8px;
}

.team-bio-mobile p {
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 992px) {
    .team-bio-area {
        display: block;
        opacity: 0;
    }
    
    .team-bio-area.visible {
        opacity: 1;
    }
    
    .team-bio-mobile {
        display: none !important;
    }
    
    .team-card.active .team-overlay {
        background: var(--gold);
    }
    
    .team-card.active .team-name {
        color: #111;
    }
}

@media (max-width: 991.98px) {
    .team-bio-area {
        display: none !important;
    }
    
    .team-bio-mobile {
        display: block;
    }
    
    .team-bio-mobile.collapsed {
        display: none;
    }
}

.midia-section {
    position: relative;
    background: linear-gradient(180deg, rgba(6, 5, 4, .92), rgba(6, 5, 4, .96));
}

.midia-inner {
    position: relative;
    z-index: 1;
}

.midia-title {
    color: var(--gold-soft);
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
}

.midia-shell {
    max-width: 760px;
    margin: 0 auto;
}

.carousel-media {
    background: #0f0f0e;
    border: 0px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .5);
    aspect-ratio: 16/9;
    overflow: hidden;
}

.carousel-media .carousel-item,
.carousel-media .carousel-item img {
    height: 100%;
}

.carousel-media img {
    width: 100%;
    object-fit: cover;
    background: #151515;
}

.carousel-control-next,
.carousel-control-prev {
    opacity: 1;
    width: auto;
}

.carousel-control-prev {
    left: -3.5rem;
}

.carousel-control-next {
    right: -3.5rem;
}

.arrow-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .18);
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, .32);
    font-size: 1.25rem;
}

.arrow-btn:hover {
    background: rgba(199, 154, 58, .18);
    border-color: var(--gold);
    color: var(--gold);
}

.carousel-indicators {
    margin-bottom: -2.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .4);
    margin: 0 .35rem;
}

.carousel-indicators .active {
    background: var(--gold);
}

.blog-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .95));
}

.blog-title {
    color: var(--gold-soft);
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 2rem;
}

.blog-card {
    background: #fff;
    color: #1d2526;
    border-radius: 14px;
    padding: 1.1rem 1.1rem 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    position: relative;
    overflow: hidden;
}

.blog-card h3 {
    font-family: var(--font-body);
    font-size: .92rem;
    line-height: 1.3;
    font-weight: 600;
    color: #1a2526;
    margin: 0 0 .9rem;
}

.blog-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(180deg, #dfe7e6, #b7c5c4);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: #1d2f4a;
    color: #fff;
    text-decoration: none;
    padding: .6rem 1rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-top: auto;
    align-self: flex-start;
    width: 100%;
    text-align: center;
}

.blog-link:hover {
    background: #2a456b;
    color: #fff;
}

.blog-page {
    background: linear-gradient(180deg, rgba(8, 8, 7, .96), rgba(4, 4, 4, .98));
}

.blog-page-heading {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.blog-page-label {
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: .75rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: .3rem;
}

.blog-page-title {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    color: var(--gold-soft);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-card {
    background: rgba(15, 15, 15, .95);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .55);
}

.post-thumb {
    width: 100%;
    max-height: 360px;
    overflow: hidden;
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.post-thumb img:hover {
    transform: scale(1.02);
}

.post-content {
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.post-meta {
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.post-meta span {
    color: rgba(255, 255, 255, .4);
}

.post-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
}

.post-title a {
    color: #fff;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--gold-soft);
}

.post-link {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--gold);
    color: #111;
    padding: .65rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .15em;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.post-link:hover {
    transform: translateY(-1px);
    background: var(--gold-strong);
}

.pagination-wrapper {
    padding-top: 2rem;
}

.pagination {
    justify-content: center;
}

.pagination .page-numbers {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0 .25rem;
    border: 1px solid rgba(255, 255, 255, .2);
    background: transparent;
    color: #fff;
}

.pagination .page-numbers.current {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

.pagination .page-numbers:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-sidebar-widget {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(10, 10, 10, .9);
    color: rgba(255, 255, 255, .85);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .45);
}

.blog-sidebar-title {
    margin-top: 0;
    font-size: 1rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-soft);
    font-family: var(--font-body);
}

.no-posts-message {
    color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 1.5rem;
    border-radius: 16px;
}

@media (max-width: 991.98px) {
    .blog-page-title {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }

    .post-card {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .post-link {
        width: 100%;
        justify-content: center;
    }
}

.contato-section {
    background: var(--bg-light);
    color: #2a261f;
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.contato-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    color: #3a3328;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-city {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: .75rem;
    font-weight: 600;
}

.contact-address {
    font-size: .9rem;
    line-height: 1.6;
    color: #3c372e;
    margin-bottom: .5rem;
}

.contact-phone {
    font-size: .9rem;
    line-height: 1.6;
    color: #3c372e;
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .8rem;
    color: #3c372e;
    font-size: .92rem;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold);
}

.contact-item p {
    margin: 0;
    line-height: 1.5;
}

.contact-whatsapp {
    color: inherit;
    text-decoration: none;
}

.contact-whatsapp:hover {
    color: inherit;
    font-weight: 600;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 50%;
    color: #8d6f2f;
    text-decoration: none;
    background: transparent;
}

.social-link:hover {
    background: #fff;
    border-color: var(--gold);
    color: var(--gold);
}

footer.site-footer {
    background: #050402;
    color: rgba(255, 255, 255, .45);
    padding: 1rem 0;
    font-size: .78rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Search Page */
.search-page {
    background: linear-gradient(180deg, rgba(8, 8, 7, .96), rgba(4, 4, 4, .98));
}

.search-page-heading {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.search-page-label {
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: .75rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: .3rem;
}

.search-page-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--gold-soft);
}

.search-page-title span {
    color: #fff;
}

.search-form-wrapper {
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 0;
    max-width: 100%;
}

.search-form .search-field {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, background .2s;
}

.search-form .search-field::placeholder {
    color: rgba(255, 255, 255, .4);
}

.search-form .search-field:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, .08);
}

.search-form .search-submit {
    padding: 1rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 0 8px 8px 0;
    background: var(--gold);
    color: #111;
    cursor: pointer;
    transition: background .2s, transform .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form .search-submit:hover {
    background: var(--gold-strong);
    transform: translateY(-1px);
}

.search-results-count {
    color: rgba(255, 255, 255, .6);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
}

.no-results-message {
    color: rgba(255, 255, 255, .7);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Widget Search Form Styles */
.widget_search .search-form,
.blog-sidebar-widget .search-form {
    display: flex;
    gap: 0;
}

.widget_search .search-field,
.blog-sidebar-widget .search-field {
    flex: 1;
    padding: .75rem 1rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: .9rem;
    outline: none;
    transition: border-color .2s, background .2s;
}

.widget_search .search-field::placeholder,
.blog-sidebar-widget .search-field::placeholder {
    color: rgba(255, 255, 255, .4);
}

.widget_search .search-field:focus,
.blog-sidebar-widget .search-field:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, .08);
}

.widget_search .search-submit,
.blog-sidebar-widget .search-submit {
    padding: .75rem 1rem;
    border: 1px solid var(--gold);
    border-radius: 0 8px 8px 0;
    background: var(--gold);
    color: #111;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s;
}

.widget_search .search-submit:hover,
.blog-sidebar-widget .search-submit:hover {
    background: var(--gold-strong);
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 76px;
    }
    
    .hero {
        min-height: auto;
        padding-block: 6rem 3rem;
    }
    
    .carousel-control-prev {
        left: .5rem;
    }
    
    .carousel-control-next {
        right: .5rem;
    }
    
    .arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.6rem);
        max-width: 100%;
    }
    
    .hero p {
        font-size: .95rem;
    }
    
    .blog-card h3 {
        font-size: .88rem;
    }
    
    .navbar-collapse {
        margin-top: .75rem;
        padding-block: .5rem;
    }
    
    .navbar-nav .nav-link {
        padding: .65rem 0 !important;
    }

    .search-form {
        flex-direction: column;
        gap: .5rem;
    }

    .search-form .search-field {
        border-right: 1px solid rgba(255, 255, 255, .15);
        border-radius: 8px;
    }

    .search-form .search-submit {
        border-radius: 8px;
        width: 100%;
    }
}
