/* ============================================================
   HCA — Henrique Carvalho Advogados | Custom CSS
   Paleta: preto, cinza escuro, cinza médio, prata, branco
   ============================================================ */

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
    --hca-black:       #0a0a0a;
    --hca-dark:        #141414;
    --hca-dark2:       #1e1e1e;
    --hca-gray-deep:   #2a2a2a;
    --hca-gray:        #3c3c3c;
    --hca-gray-mid:    #666666;
    --hca-gray-light:  #aaaaaa;
    --hca-silver:      #b8b4b0;
    --hca-silver-light:#d4d0cc;
    --hca-white:       #f5f5f5;
    --hca-pure-white:  #ffffff;
    --hca-font-display:'Cormorant Garamond', Georgia, serif;
    --hca-font-body:   'Raleway', sans-serif;
    --hca-transition:  all 0.3s ease;
    --hca-shadow:      0 4px 24px rgba(0,0,0,0.18);
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--hca-font-body);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--hca-gray-deep);
    background-color: var(--hca-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hca-font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--hca-dark);
}

a {
    color: var(--hca-silver);
    transition: var(--hca-transition);
    text-decoration: none;
}
a:hover { color: var(--hca-dark); text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ── Navbar ────────────────────────────────────────────────── */
.hca-navbar {
    background-color: rgba(10, 10, 10, 0.97) !important;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(184, 180, 176, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: var(--hca-transition);
}

.hca-navbar .navbar-brand img {
    height: 44px;
    transition: var(--hca-transition);
}
.hca-navbar .navbar-brand:hover img { opacity: 0.8; }

.hca-navbar .nav-link {
    font-family: var(--hca-font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.75) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--hca-transition);
}
.hca-navbar .nav-item.active .nav-link,
.hca-navbar .nav-link:hover {
    color: var(--hca-silver-light) !important;
}

/* Botão Área do Colaborador */
.hca-collab-link {
    border: 1px solid rgba(184, 180, 176, 0.4) !important;
    border-radius: 0 !important;
    margin-left: 0.5rem;
    color: var(--hca-silver) !important;
}
.hca-collab-link:hover {
    background: rgba(184, 180, 176, 0.1) !important;
    color: var(--hca-white) !important;
    border-color: var(--hca-silver) !important;
}
.collab-icon {
    font-size: 0.6rem;
    margin-right: 4px;
    vertical-align: middle;
}

.navbar-toggler {
    border: 1px solid rgba(184,180,176,0.3);
    color: var(--hca-silver);
}

/* ── Seções gerais ─────────────────────────────────────────── */
.hca-section {
    padding: 80px 0;
}
.hca-subheading {
    display: block;
    font-family: var(--hca-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hca-silver);
    margin-bottom: 0.75rem;
}
.hca-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--hca-dark);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}
.hca-title small {
    font-size: 1.1rem;
    display: block;
    color: var(--hca-gray-mid);
    margin-top: 4px;
    font-family: var(--hca-font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}
.hca-desc { color: var(--hca-gray); line-height: 1.8; }
.hca-link {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hca-silver);
    border-bottom: 1px solid var(--hca-silver);
    padding-bottom: 2px;
    transition: var(--hca-transition);
}
.hca-link:hover { color: var(--hca-dark); border-color: var(--hca-dark); }

/* Botão principal */
.btn-hca {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    font-family: var(--hca-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hca-white);
    background: transparent;
    border: 1px solid var(--hca-silver);
    cursor: pointer;
    transition: var(--hca-transition);
    text-decoration: none;
}
.btn-hca:hover {
    background: var(--hca-silver);
    color: var(--hca-black);
    text-decoration: none;
}

/* ── HERO (homepage) ───────────────────────────────────────── */
.hca-hero {
    position: relative;
    min-height: 100vh;
    background: var(--hca-dark);
    overflow: hidden;
}
.hca-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(90,90,90,0.18) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(60,60,60,0.12) 0%, transparent 60%);
}
.hca-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(20,20,20,0.5) 100%);
}
.hca-hero-content {
    position: relative;
    z-index: 2;
}
.hero-logo {
    max-width: 520px;
    width: 80%;
    filter: brightness(1.05);
}
.hero-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hca-silver), transparent);
    margin: 2rem auto;
}
.hero-tagline {
    font-family: var(--hca-font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--hca-silver-light);
}

/* ── Hero interno (páginas internas) ──────────────────────── */
.hca-page-hero {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hca-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.72);
}
.hca-page-hero .container { position: relative; z-index: 2; }
.hca-page-title {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--hca-white);
    letter-spacing: 0.06em;
    margin: 0;
}
.hca-title-line {
    width: 50px;
    height: 1px;
    background: var(--hca-silver);
    margin: 1.2rem auto 0;
}
.hca-page-hero-short { padding: 80px 0 50px; }

/* ── Services / Áreas de atuação (homepage) ────────────────── */
.hca-services {
    background: var(--hca-white);
}
.hca-service-card {
    background: var(--hca-pure-white);
    border: 1px solid #e4e4e4;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--hca-transition);
    height: 100%;
}
.hca-service-card:hover {
    border-color: var(--hca-silver);
    box-shadow: var(--hca-shadow);
    transform: translateY(-4px);
}
.hca-service-icon {
    font-size: 2rem;
    color: var(--hca-silver);
    margin-bottom: 1rem;
}
.hca-service-card h4 {
    font-size: 0.95rem;
    font-family: var(--hca-font-body);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--hca-dark);
    margin: 0;
}

/* ── Diferenciais ──────────────────────────────────────────── */
.hca-differentials {
    background: #f0efed;
}
.hca-diff-image {
    height: 460px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--hca-pure-white);
    box-shadow: var(--hca-shadow);
}
.hca-diff-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.diff-icon {
    font-size: 1.4rem;
    color: var(--hca-silver);
    min-width: 32px;
    margin-top: 4px;
}
.diff-body h4 {
    font-family: var(--hca-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hca-dark);
    margin-bottom: 0.4rem;
}
.diff-body p { font-size: 0.88rem; color: var(--hca-gray); margin: 0; }

/* ── News cards ────────────────────────────────────────────── */
.hca-news { background: var(--hca-white); }
.hca-news-card {
    background: var(--hca-pure-white);
    border: 1px solid #e4e4e4;
    overflow: hidden;
    transition: var(--hca-transition);
    height: 100%;
}
.hca-news-card:hover { box-shadow: var(--hca-shadow); transform: translateY(-4px); }
.hca-news-img {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: var(--hca-transition);
}
.hca-news-card:hover .hca-news-img { opacity: 0.9; }
.hca-news-body { padding: 1.4rem; }
.hca-news-date {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hca-silver);
    display: block;
    margin-bottom: 0.6rem;
}
.hca-news-body h5 { font-size: 0.95rem; font-weight: 500; color: var(--hca-dark); }
.hca-news-body h5 a { color: var(--hca-dark); }
.hca-news-body h5 a:hover { color: var(--hca-silver); }

/* ── Sobre nos ─────────────────────────────────────────────── */
.hca-about-img {
    height: 520px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--hca-shadow);
}

/* ── Offices cards ─────────────────────────────────────────── */
.hca-infra { background: #f0efed; }
.hca-office-card {
    padding: 2rem;
    background: var(--hca-pure-white);
    border-left: 3px solid var(--hca-silver);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    height: 100%;
}
.hca-office-card h4 {
    font-family: var(--hca-font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hca-dark);
    margin-bottom: 0.8rem;
}
.hca-office-card h4 span {
    font-weight: 300;
    color: var(--hca-gray-mid);
    text-transform: none;
    letter-spacing: 0;
}
.hca-office-card p { font-size: 0.85rem; color: var(--hca-gray); margin: 0; line-height: 1.7; }

/* ── Practice cards (atuacao.php) ─────────────────────────── */
.hca-practice-card {
    background: var(--hca-pure-white);
    border: 1px solid #e4e4e4;
    overflow: hidden;
    height: 100%;
    transition: var(--hca-transition);
}
.hca-practice-card:hover { box-shadow: var(--hca-shadow); transform: translateY(-4px); }
.hca-practice-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    filter: grayscale(40%);
    transition: var(--hca-transition);
}
.hca-practice-card:hover .hca-practice-img { filter: grayscale(0%); }
.hca-practice-body { padding: 1.4rem; }
.hca-practice-body h4 {
    font-family: var(--hca-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hca-dark);
    margin-bottom: 0.7rem;
}
.hca-practice-body p { font-size: 0.82rem; color: var(--hca-gray); margin: 0; line-height: 1.7; }

/* ── Contato ───────────────────────────────────────────────── */
.hca-contact-card {
    padding: 1.8rem 1.4rem;
    background: var(--hca-pure-white);
    border: 1px solid #e4e4e4;
    text-align: center;
    height: 100%;
    transition: var(--hca-transition);
}
.hca-contact-card:hover { border-color: var(--hca-silver); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.hca-contact-icon {
    font-size: 1.6rem;
    color: var(--hca-silver);
    display: block;
    margin-bottom: 0.8rem;
}
.hca-contact-card h5 {
    font-family: var(--hca-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hca-gray-mid);
    margin-bottom: 0.5rem;
}
.hca-contact-card p { font-size: 0.85rem; color: var(--hca-gray); margin: 0; line-height: 1.7; }

/* Formulário */
.hca-form-group { margin-bottom: 1.2rem; }
.hca-input {
    border: 0;
    border-bottom: 1px solid #d0d0d0;
    border-radius: 0;
    background: transparent;
    padding: 0.6rem 0;
    font-family: var(--hca-font-body);
    font-size: 0.88rem;
    color: var(--hca-dark);
    transition: var(--hca-transition);
}
.hca-input:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: var(--hca-silver);
    background: transparent;
}
.hca-input::placeholder { color: var(--hca-gray-light); }

/* LGPD consent */
.hca-lgpd-consent {
    background: #f8f7f6;
    border: 1px solid #e4e4e4;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}
.hca-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--hca-gray);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}
.hca-checkbox-label input[type=checkbox] {
    margin-top: 3px;
    min-width: 16px;
    accent-color: var(--hca-silver);
}

/* Alertas */
.hca-alert {
    padding: 1rem 1.4rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    border-left: 3px solid;
}
.hca-alert-success { background: #f0f0ee; border-color: var(--hca-silver); color: var(--hca-dark); }
.hca-alert-error   { background: #fdf4f4; border-color: #c0393a; color: #8a2121; }

/* ── Política de privacidade ───────────────────────────────── */
.hca-privacy-text h3 {
    font-family: var(--hca-font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hca-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #e4e4e4;
    padding-bottom: 0.5rem;
}
.hca-privacy-text p, .hca-privacy-text li { font-size: 0.9rem; color: var(--hca-gray); line-height: 1.8; }
.hca-privacy-text ul { padding-left: 1.2rem; }

/* ── Footer ────────────────────────────────────────────────── */
.hca-footer {
    background: var(--hca-dark);
    padding: 60px 0 30px;
}
.footer-inner { color: rgba(245,245,245,0.65); }
.footer-logo { text-align: center; margin-bottom: 2.5rem; }
.footer-logo img { height: 56px; opacity: 0.85; }
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,180,176,0.3), transparent);
    margin: 2rem 0;
}
.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
}
.footer-col h5 {
    font-family: var(--hca-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hca-silver);
    margin-bottom: 0.7rem;
}
.footer-col p, .footer-col a {
    font-size: 0.82rem;
    color: rgba(245,245,245,0.55);
    line-height: 1.8;
}
.footer-col a:hover { color: var(--hca-silver-light); }
.footer-bottom {
    text-align: center;
}
.footer-copy {
    font-size: 0.76rem;
    color: rgba(245,245,245,0.35);
    margin: 0 0 0.4rem;
}
.footer-lgpd a {
    font-size: 0.72rem;
    color: rgba(245,245,245,0.4);
    letter-spacing: 0.05em;
}
.footer-lgpd a:hover { color: var(--hca-silver); }

/* ── LGPD Banner ───────────────────────────────────────────── */
.lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(14,14,14,0.97);
    border-top: 1px solid rgba(184,180,176,0.25);
    padding: 1.2rem 0;
}
.lgpd-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.lgpd-content p {
    flex: 1;
    font-size: 0.78rem;
    color: rgba(245,245,245,0.65);
    margin: 0;
    line-height: 1.6;
}
.lgpd-content a { color: var(--hca-silver); text-decoration: underline; }
.lgpd-actions { display: flex; gap: 0.8rem; flex-shrink: 0; }
.btn-lgpd-accept {
    padding: 0.5rem 1.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--hca-font-body);
    background: var(--hca-silver);
    color: var(--hca-black);
    border: 1px solid var(--hca-silver);
    cursor: pointer;
    transition: var(--hca-transition);
}
.btn-lgpd-accept:hover { background: var(--hca-silver-light); border-color: var(--hca-silver-light); }
.btn-lgpd-reject {
    padding: 0.5rem 1.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--hca-font-body);
    background: transparent;
    color: rgba(245,245,245,0.5);
    border: 1px solid rgba(184,180,176,0.3);
    cursor: pointer;
    transition: var(--hca-transition);
}
.btn-lgpd-reject:hover { color: var(--hca-white); border-color: var(--hca-silver); }

/* ── Loader ────────────────────────────────────────────────── */
#ftco-loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hca-dark);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
#ftco-loader.show {
    display: flex;
}
.circular { animation: rotate 2s linear infinite; transform-origin: center center; }
.path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0%   { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50%  { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
    100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; }
}

/* ── AOS overrides ─────────────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Responsivo ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hca-section { padding: 50px 0; }
    .hca-page-title { font-size: 2rem; }
    .hca-title { font-size: 1.8rem; }
    .hca-hero { min-height: 90vh; }
    .hero-logo { max-width: 300px; }
    .hero-tagline { font-size: 0.7rem; letter-spacing: 0.15em; }
    .hca-diff-image { height: 260px; margin-bottom: 2rem; }
    .lgpd-content { flex-direction: column; gap: 1rem; text-align: center; }
    .lgpd-actions { justify-content: center; }
    .footer-info { flex-direction: column; gap: 1.5rem; }
}
