/* ============================================================
   Rocha & Associados — Advocacia
   ============================================================ */

:root {
    --primary: #a67c3d;
    --primary-hover: #8b6531;
    --primary-soft: rgba(166, 124, 61, 0.1);

    --bg: #ffffff;
    --bg-alt: #faf8f5;
    --bg-dark: #0f1419;
    --bg-dark-alt: #161c22;
    --bg-dark-card: #1e252d;

    --text: #2b2b2b;
    --text-dim: #6b6b6b;
    --text-bright: #ffffff;
    --text-light: #d4d4d4;

    --border: #e8e3da;
    --border-strong: #d4c9b8;
    --border-dark: #2a323b;

    --font-head: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --radius: 4px;
    --radius-lg: 12px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

    --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-dark);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.top-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}
.top-info svg { color: var(--primary); }
.top-social {
    display: flex;
    gap: 8px;
}
.top-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--t);
}
.top-social a:hover {
    color: var(--primary);
    background: rgba(166, 124, 61, 0.15);
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 18px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-mark {
    width: 52px;
    height: 52px;
    background: var(--bg-dark);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 2px;
}
.logo-text strong {
    display: block;
    font-family: var(--font-head);
    font-size: 19px;
    color: var(--text);
    letter-spacing: 0.3px;
}
.logo-text span {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
}
.nav a {
    position: relative;
    color: var(--text);
    font-weight: 500;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--t);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.menu-toggle { display: none; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--t);
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 124, 61, 0.3);
}
.btn-ghost {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(166, 124, 61, 0.08);
}
.btn-outline {
    padding: 10px 22px;
    font-size: 12px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--text-bright);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.92) 0%, rgba(15, 20, 25, 0.75) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
    max-width: 900px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}
.hero-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--primary);
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 500;
}
.hero-title em {
    font-style: italic;
    color: var(--primary);
    font-weight: 400;
}
.hero-desc {
    font-size: 1.1rem;
    max-width: 620px;
    margin-bottom: 40px;
    color: var(--text-light);
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-stats {
    display: flex;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-stats > div strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}
.hero-stats > div span {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}
.section-header .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-top: 12px;
}

/* ---------- Sobre ---------- */
.sobre { background: var(--bg); }
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.sobre-media {
    position: relative;
}
.sobre-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}
.sobre-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: #fff;
    padding: 28px 32px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    min-width: 130px;
}
.sobre-badge span {
    font-family: var(--font-head);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
}
.sobre-badge em {
    font-style: normal;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.3;
}

.sobre-text .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}
.sobre-text h2 {
    color: var(--text);
    margin-bottom: 24px;
}
.sobre-text p {
    color: var(--text-dim);
    margin-bottom: 18px;
}
.sobre-text strong {
    color: var(--text);
    font-weight: 600;
}

.sobre-list {
    list-style: none;
    margin: 32px 0;
    display: grid;
    gap: 14px;
}
.sobre-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 15px;
}
.sobre-list svg {
    color: var(--primary);
    flex-shrink: 0;
    background: var(--primary-soft);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    padding: 6px;
}

/* ---------- Áreas ---------- */
.areas { background: var(--bg-alt); }

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.area-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}
.area-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.area-card:hover::before { transform: scaleX(1); }

.area-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all var(--t);
}
.area-card:hover .area-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}
.area-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text);
}
.area-card p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ---------- Equipe ---------- */
.equipe { background: var(--bg); }

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advogado { text-align: center; }
.advogado-foto {
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 24px;
    filter: grayscale(100%);
    transition: filter var(--t);
}
.advogado:hover .advogado-foto { filter: grayscale(0%); }

.advogado h3 {
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 4px;
}
.advogado > span {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}
.advogado p {
    color: var(--text-dim);
    font-size: 14.5px;
}

/* ---------- Diferenciais ---------- */
.diferenciais { background: var(--bg-alt); }

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.diferencial {
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border-radius: var(--radius);
    transition: all var(--t);
}
.diferencial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.diferencial-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}
.diferencial:hover .diferencial-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(5deg) scale(1.05);
}
.diferencial h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
}
.diferencial p {
    color: var(--text-dim);
    font-size: 14.5px;
}

/* ---------- Depoimentos ---------- */
.depoimentos { background: var(--bg-dark); color: var(--text-light); }

.depoimentos .section-header .eyebrow { color: var(--primary); }
.depoimentos .section-header h2 { color: #fff; }

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.depoimento {
    background: var(--bg-dark-alt);
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border-dark);
    transition: all var(--t);
    position: relative;
}
.depoimento::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: var(--font-head);
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}
.depoimento:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}
.depoimento .stars {
    color: var(--primary);
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    position: relative;
}
.depoimento p {
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--text-light);
    position: relative;
}
.depoimento strong {
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ---------- CTA Contato ---------- */
.cta-contato {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2129 100%);
    color: var(--text-light);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cta-text .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}
.cta-text h2 {
    color: #fff;
    margin-bottom: 16px;
}
.cta-text > p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contato-list {
    list-style: none;
    display: grid;
    gap: 24px;
}
.contato-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.contato-list svg {
    color: var(--primary);
    background: rgba(166, 124, 61, 0.12);
    width: 44px;
    height: 44px;
    padding: 12px;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.contato-list strong {
    display: block;
    color: #fff;
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.contato-list span {
    font-size: 14.5px;
    color: var(--text-light);
}

/* ---------- Formulário ---------- */
.contato-form {
    background: #fff;
    padding: 44px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.contato-form h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 8px;
}
.contato-form > p {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-bottom: 28px;
}

.form-field {
    margin-bottom: 20px;
}
.form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text);
    transition: all var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-top: 16px;
    text-align: center;
    justify-content: center;
}
.form-privacy svg { color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-dark);
}
.footer-desc {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    color: var(--text-light);
}
.footer h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer li {
    padding: 5px 0;
    font-size: 14px;
}
.footer a:hover { color: var(--primary); }
.logo-footer .logo-mark {
    background: var(--primary);
    color: #fff;
}
.logo-footer .logo-text strong { color: #fff; }
.logo-footer .logo-text span { color: var(--text-light); }
.footer-bottom {
    padding: 24px 0;
    font-size: 13px;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom a { color: var(--primary); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all var(--t);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

/* ---------- Demo banner ---------- */
.demo-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--bg-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    z-index: 90;
}
.demo-banner a {
    color: var(--primary);
    font-weight: 600;
}
.demo-banner a:hover { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .header-actions { display: none; }
    .header-inner { gap: 20px; padding: 14px 20px; }

    .sobre-grid { grid-template-columns: 1fr; gap: 60px; }
    .sobre-badge { bottom: -20px; right: 20px; padding: 20px 24px; }
    .sobre-badge span { font-size: 2.4rem; }

    .hero { min-height: auto; padding: 80px 0; }
    .hero-stats { gap: 30px; }
    .hero-stats > div strong { font-size: 1.8rem; }

    .equipe-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .depoimentos-grid { grid-template-columns: 1fr; gap: 20px; }
    .cta-inner { grid-template-columns: 1fr; gap: 50px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 575px) {
    .container { padding: 0 18px; }
    .section { padding: 60px 0; }

    .top-info { display: none; }
    .top-social { margin: 0 auto; }

    .hero-content { padding: 60px 18px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .hero-stats > div strong { font-size: 1.6rem; }

    .areas-grid { grid-template-columns: 1fr; }
    .equipe-grid { grid-template-columns: 1fr; }
    .contato-form { padding: 32px 24px; }
    .cta-inner { gap: 40px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }

    .demo-banner { bottom: 12px; left: 12px; right: 90px; font-size: 11.5px; }
    .whatsapp-float { bottom: 12px; right: 12px; width: 52px; height: 52px; }
}