/* Queiroz & Mascarenhas — identidade visual */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #122c44;
    --navy-deep: #0b1e30;
    --navy-soft: #1b3d5b;
    --gold: #b9924a;
    --gold-light: #d9bd7c;
    --gold-pale: #f1e7d0;
    --white: #ffffff;
    --off-white: #f8f7f3;
    --ink: #172331;
    --muted: #61707d;
    --border: rgba(18, 44, 68, 0.12);
    --shadow-sm: 0 10px 30px rgba(10, 30, 47, 0.08);
    --shadow-lg: 0 24px 65px rgba(10, 30, 47, 0.14);
    --font-title: 'Playfair Display', Georgia, serif;
    --font-text: 'Raleway', Arial, sans-serif;
    --header-height: 92px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-text);
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    color: var(--navy-deep);
    background: var(--gold-light);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    line-height: 1.18;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 4px;
}

.section-title {
    position: relative;
    margin-bottom: 4rem;
    color: var(--navy);
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    text-align: center;
}

.section-title::before {
    content: 'Q&M';
    display: block;
    margin-bottom: 0.75rem;
    color: var(--gold);
    font: 600 0.72rem/1 var(--font-text);
    letter-spacing: 0.28em;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    margin: 1.1rem auto 0;
    background: var(--gold);
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(18, 44, 68, 0.08);
    transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    height: 76px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 35px rgba(10, 30, 47, 0.1);
    backdrop-filter: blur(14px);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    transition: width 0.3s ease, height 0.3s ease;
}

.header.scrolled .logo img { width: 60px; height: 60px; }
.nav-list { display: flex; align-items: center; gap: 2.25rem; }
.nav-list li { margin: 0; }

.nav-list a {
    position: relative;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-list a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-list a:hover { color: var(--gold); }
.nav-list a:hover::after { transform: scaleX(1); }

.mobile-menu {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: none;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.mobile-menu span {
    display: block;
    flex: 0 0 2px;
    width: 21px;
    height: 2px;
    min-height: 2px;
    margin: 3px auto;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu:hover {
    background: var(--off-white);
    border-color: var(--gold);
    box-shadow: none;
}

.mobile-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu.active span:nth-child(2) { opacity: 0; }
.mobile-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
    position: relative;
    min-height: 760px;
    height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(8, 26, 41, 0.95) 0%, rgba(18, 44, 68, 0.86) 48%, rgba(18, 44, 68, 0.48) 100%),
        url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=88') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    width: 1px;
    height: 110px;
    background: linear-gradient(transparent, var(--gold));
}

.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 760px; margin: 0; text-align: left; }

.hero-content::before {
    content: 'QUEIROZ & MASCARENHAS ADVOCACIA';
    display: block;
    margin-bottom: 1.6rem;
    color: var(--gold-light);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.26em;
}

.hero h2 {
    max-width: 720px;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 6.3vw, 5.65rem);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -0.045em;
    text-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.hero p {
    margin-bottom: 2.35rem;
    color: rgba(255,255,255,.8);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.035em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.85rem 1.75rem;
    color: var(--navy-deep);
    background: var(--gold-light);
    border: 1px solid var(--gold-light);
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn::after { content: '→'; margin-left: 1rem; font-size: 1.1rem; }
.btn:hover { transform: translateY(-3px); background: var(--white); border-color: var(--white); box-shadow: 0 12px 30px rgba(0,0,0,.18); }

/* Advogados */
.about {
    position: relative;
    padding: 8rem 0;
    background: var(--off-white);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 7%;
    width: 24%;
    height: 1px;
    background: var(--gold);
}

.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.lawyer-card {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 610px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lawyer-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.lawyer-card.reveal, .area-card.reveal, .case-item.reveal { transition: opacity .65s ease, transform .65s ease, box-shadow .35s ease, border-color .3s ease; }
.lawyer-card.reveal.is-visible:hover { transform: translateY(-7px); }
.area-card.reveal.is-visible:hover { transform: translateY(-6px); }
.lawyer-image { min-height: 100%; overflow: hidden; background: var(--navy); }

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(.84) contrast(1.02);
    transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
}

.lawyer-card:hover .lawyer-image img { transform: scale(1.035); filter: saturate(1); }
.lawyer-info { padding: 2.75rem 2.35rem; }

.lawyer-info h3 {
    margin-bottom: 0.55rem;
    color: var(--navy);
    font-size: clamp(1.65rem, 2.3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.specialty {
    display: inline-block;
    margin-bottom: 1.4rem;
    padding-bottom: 0.35rem;
    color: var(--gold);
    border-bottom: 1px solid var(--gold-light);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.lawyer-info h4 {
    margin: 1.25rem 0 0.65rem;
    color: var(--navy);
    font: 700 0.78rem/1.4 var(--font-text);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.lawyer-info ul { margin: 0; }
.lawyer-info li {
    position: relative;
    margin-bottom: 0.65rem;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.6;
}

.lawyer-info li::before {
    content: '';
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* Áreas de atuação */
.practice-areas { padding: 8rem 0; background: var(--white); }
.practice-areas .section-title { margin-bottom: 1.5rem; }

.practice-areas-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    margin: 0 auto 3.25rem;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
}

.practice-areas-intro i {
    color: var(--gold);
    font-size: 1.05rem;
}

.areas-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }

.area-card {
    grid-column: span 2;
    position: relative;
    min-height: 315px;
    padding: 2.5rem 2rem;
    overflow: hidden;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 0;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.area-card:nth-child(7) { grid-column: 2 / span 2; }
.area-card:nth-child(8) { grid-column: 4 / span 2; }
.area-card::after {
    content: '';
    position: absolute;
    right: -35px;
    bottom: -35px;
    width: 100px;
    height: 100px;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    opacity: .42;
    transition: transform 0.35s ease;
}

.area-card:hover { transform: translateY(-6px); border-color: rgba(185,146,74,.48); box-shadow: var(--shadow-sm); }
.area-card:hover::after { transform: scale(1.25); }
.area-card i { margin-bottom: 1.6rem; color: var(--gold); font-size: 1.8rem; }
.area-card h3 { margin-bottom: 1rem; color: var(--navy); font-size: 1.45rem; }
.area-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.75; }
.lawyer-name { color: var(--gold); font-weight: 600; }

/* Depoimentos */
.testimonials {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background: var(--off-white);
}

.testimonials::before {
    content: '“';
    position: absolute;
    top: -6rem;
    right: 4%;
    color: rgba(185, 146, 74, .1);
    font: 400 30rem/1 var(--font-title);
}

.testimonials .container { position: relative; }

.testimonials-eyebrow {
    margin-bottom: .7rem;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-align: center;
    text-transform: uppercase;
}

.testimonials .section-title::before { display: none; }

.testimonials-summary {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.google-rating {
    width: min(100%, 440px);
    min-height: 240px;
    display: flex;
    align-items: center;
    padding: 2.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.google-rating { gap: 1.5rem; }
.rating-number { color: var(--navy); font: 700 clamp(3.4rem, 7vw, 5.2rem)/1 var(--font-title); }
.rating-stars { display: flex; gap: .28rem; margin-bottom: .65rem; color: var(--gold); font-size: 1rem; }
.google-rating p { color: var(--muted); font-size: .86rem; }
.google-rating div > span { display: block; margin-top: .2rem; color: var(--gold); font-size: .75rem; font-weight: 700; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(185,146,74,.48);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    margin-bottom: 1.25rem;
    color: var(--gold);
    font-size: .88rem;
    letter-spacing: .12em;
}

.testimonial-card blockquote {
    margin-bottom: 2rem;
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.75;
}

.testimonial-card footer {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--navy);
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.testimonial-card cite {
    display: block;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
}

.testimonial-card footer div > span { color: var(--muted); font-size: .7rem; }

.google-reviews-link {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 2rem auto 0;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.google-reviews-link:hover { color: var(--gold); }
.google-reviews-link i { font-size: .72rem; }

/* Casos (estrutura preservada para ativação futura) */
.relevant-cases { padding: 8rem 0; background: var(--off-white); }
.cases-tabs { overflow: hidden; margin-top: 3rem; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.tab-buttons { display: flex; border-bottom: 1px solid var(--border); }
.tab-btn { flex: 1; padding: 1.25rem; color: var(--muted); background: transparent; border: 0; cursor: pointer; font: 600 .85rem var(--font-text); }
.tab-btn.active { color: var(--navy); box-shadow: inset 0 -2px var(--gold); }
.tab-content { display: none; padding: 2rem; }
.tab-content.active { display: block; }
.case-item { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.case-item:last-child { border-bottom: 0; }
.case-item h3, .case-item span { color: var(--navy); }
.case-item h4 { margin: .75rem 0; color: var(--gold); }

/* Contato */
.contact {
    position: relative;
    padding: 8rem 0;
    color: var(--white);
    background: var(--navy);
    text-align: center;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .055;
    background: radial-gradient(circle at 50% 10%, var(--gold-light), transparent 45%);
}

.contact .container { position: relative; }
.contact .section-title { color: var(--white); }
.contact-grid { display: flex; justify-content: center; }

.contact-info {
    width: min(100%, 700px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info h3 { margin-bottom: 2rem; color: var(--white); font-size: clamp(1.55rem, 3vw, 2.2rem); }
.contact-info > p {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin-bottom: .75rem;
    color: rgba(255,255,255,.76);
    font-size: .95rem;
}

.contact-info i { width: 20px; margin: 0; color: var(--gold-light); text-align: center; }
.contact-info > p a { transition: color .2s ease; }
.contact-info > p a:hover { color: var(--gold-light) !important; }
.social-media { margin: 2.4rem 0; }
.social-media h4, .office-hours h4 { color: var(--gold-light); font: 600 .78rem var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.social-icons { display: flex; justify-content: center; gap: .8rem; margin-top: 1rem; }

.social-icons a,
.developer-links a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 1px solid rgba(217,189,124,.4);
    border-radius: 50%;
    transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}

.social-icons a i { width: auto; color: inherit; }
.social-icons a:hover, .developer-links a:hover { transform: translateY(-3px); color: var(--navy); background: var(--gold-light); border-color: var(--gold-light); }
.office-hours { padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12); }
.office-hours br { display: none; }
.office-hours p { margin-top: .8rem; color: rgba(255,255,255,.68); }

/* Rodapé */
.footer { padding: 4.5rem 0 1.75rem; color: var(--white); background: var(--navy-deep); }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; margin-bottom: 3.5rem; }
.footer-logo img { width: 150px; }
.footer-links { justify-self: end; min-width: 200px; }
.footer-links h4 { margin-bottom: 1.25rem; color: var(--gold-light); font-size: 1.15rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.62); font-size: .84rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold-light); }
.footer-divider { height: 1px; background: rgba(255,255,255,.1); }
.footer-credits { margin-top: 1.75rem; padding: 0; border: 0; text-align: center; }
.footer-credits img { width: auto; height: 34px; margin: 0 auto 1rem; opacity: .85; }
.developer-links { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; }
.developer-links a { width: 34px; height: 34px; font-size: .8rem; }
.credits-text { color: rgba(255,255,255,.45); font-size: .72rem; line-height: 1.6; }
.credits-text br + br { display: none; }

@media (max-width: 1080px) {
    .lawyer-card { grid-template-columns: 1fr; }
    .lawyer-image { height: 460px; min-height: auto; }
    .area-card { grid-column: span 3; }
    .area-card:nth-child(7),
    .area-card:nth-child(8) { grid-column: span 3; }
}

@media (max-width: 768px) {
    :root { --header-height: 76px; }
    .container { width: min(100% - 32px, 1180px); }
    .header.scrolled { height: 70px; }
    .logo img { width: 60px; height: 60px; }
    .nav { display: flex; align-items: center; margin-left: auto; }
    .mobile-menu { display: flex; position: relative; z-index: 2; flex-direction: column; align-items: center; justify-content: center; }
    .nav-list {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(86vw, 360px);
        height: 100dvh;
        padding: 8rem 2.25rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
        background: var(--white);
        box-shadow: -20px 0 50px rgba(10,30,47,.12);
        transform: translateX(105%);
        transition: transform .35s cubic-bezier(.2,.7,.2,1);
    }
    .nav-list.active { transform: translateX(0); }
    .nav-list a { font-size: .9rem; }
    .hero { min-height: 650px; text-align: left; background-position: 64% center; }
    .hero::after { left: 1rem; height: 72px; }
    .hero h2 { max-width: 590px; }
    .about, .practice-areas, .testimonials, .relevant-cases, .contact { padding: 6rem 0; }
    .section-title { margin-bottom: 3rem; }
    .lawyers-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .lawyer-card { grid-template-columns: 42% 58%; min-height: 540px; }
    .lawyer-image { height: auto; min-height: 100%; }
    .lawyer-info { padding: 2rem 1.5rem; }
    .areas-grid { grid-template-columns: 1fr; }
    .area-card,
    .area-card:nth-child(7),
    .area-card:nth-child(8) { grid-column: auto; min-height: auto; }
    .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-logo img { margin-inline: auto; }
    .footer-links { justify-self: center; }
}

@media (max-width: 560px) {
    .hero-content::before { max-width: 290px; line-height: 1.6; }
    .hero h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
    .hero p { max-width: 310px; }
    .lawyer-card { grid-template-columns: 1fr; }
    .lawyer-image { height: 470px; min-height: auto; }
    .google-rating { min-height: auto; padding: 2rem 1.5rem; }
    .google-rating { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { min-height: auto; }
    .contact-info > p { align-items: flex-start; font-size: .82rem; overflow-wrap: anywhere; }
    .contact-info > p i { margin-top: .3rem; flex: 0 0 20px; }
    .tab-buttons { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
