/* =============================================
   HOME PREMIUM — Pina & Robaina Advogados
   /public/css/home-premium.css
   ============================================= */

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.home-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(100deg,
            rgba(12, 8, 7, 0.92) 0%,
            rgba(12, 8, 7, 0.78) 42%,
            rgba(12, 8, 7, 0.18) 100%),
        url('/imagens/site/hero-default.jpg') center 20% / cover no-repeat;
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 120px 0 100px;
    color: #fff;
}

.home-hero .hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--hp-accent, #d8b07a);
}

.home-hero .hero-kicker::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--hp-accent, #d8b07a);
}

.home-hero h1 {
    margin: 0 0 12px;
    font-size: 58px;
    line-height: 1.07;
    font-weight: 700;
    color: #fff;
}

.home-hero h1 em {
    font-style: normal;
    color: var(--hp-accent, #d8b07a);
}

.home-hero .hero-tags {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 22px 0 32px;
    flex-wrap: wrap;
}

.home-hero .hero-tags span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.home-hero .hero-tags .sep {
    margin: 0 12px;
    color: var(--hp-accent, #d8b07a);
    font-size: 10px;
}

.home-hero .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.home-hero .hero-highlights {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 28px;
    flex-wrap: wrap;
}

.home-hero .highlight-item {
    padding-right: 32px;
    margin-right: 32px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.home-hero .highlight-item:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.home-hero .highlight-item i {
    display: block;
    font-size: 18px;
    color: var(--hp-accent, #d8b07a);
    margin-bottom: 8px;
}

.home-hero .highlight-item p {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0;
}

/* --------------------------------------------------
   BOTÕES
-------------------------------------------------- */
.btn-primary-home {
    min-height: 52px;
    padding: 0 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: var(--hp-primary, #7b3131);
    color: #fff;
    border: 1px solid var(--hp-primary, #7b3131);
    transition: all .25s ease;
    font-family: inherit;
}

.btn-primary-home:hover {
    background: var(--hp-primary-hover, #672727);
    transform: translateY(-2px);
}

.btn-ghost-home {
    min-height: 52px;
    padding: 0 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.30);
    transition: all .25s ease;
    font-family: inherit;
}

.btn-ghost-home:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-2px);
}

.btn-text-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--hp-primary, #7b3131);
    transition: gap .2s ease;
    font-family: inherit;
}

.btn-text-home:hover { gap: 10px; }

.btn-outline-home {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--hp-primary, #7b3131);
    border: 1px solid rgba(123,49,49,0.28);
    background: transparent;
    transition: all .25s ease;
    font-family: inherit;
}

.btn-outline-home:hover {
    background: rgba(123,49,49,0.05);
    transform: translateY(-2px);
}

/* --------------------------------------------------
   SEÇÕES — base comum
-------------------------------------------------- */
.home-diferenciais,
.home-atuacao,
.home-advogados,
.home-blog,
.home-contato {
    padding: 96px 0;
}

.home-diferenciais { background: #f7f2ee; }
.home-atuacao      { background: #ffffff; }
.home-advogados    { background: #fbf8f5; }
.home-blog         { background: #ffffff; }
.home-contato      { background: #f4efea; }

.hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: #a77b4c;
}

.hp-kicker::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #a77b4c;
}

.hp-header { margin-bottom: 48px; }
.hp-header h2 {
    font-size: 38px;
    line-height: 1.18;
    margin-bottom: 14px;
    color: #2a1b17;
}

.hp-header p {
    font-size: 17px;
    line-height: 1.8;
    color: #6a5951;
    max-width: 660px;
}

.hp-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hp-header-row h2 {
    font-size: 38px;
    line-height: 1.18;
    margin: 0;
    color: #2a1b17;
}

/* --------------------------------------------------
   DIFERENCIAIS
-------------------------------------------------- */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.diferencial-card {
    padding: 30px 24px;
    background: #fff;
    border: 1px solid rgba(123,49,49,0.08);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(37,23,20,0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.diferencial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(37,23,20,0.09);
}

.diferencial-card .hp-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123,49,49,0.08);
    color: var(--hp-primary, #7b3131);
    font-size: 19px;
    flex-shrink: 0;
}

.diferencial-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: #2a1b17;
}

.diferencial-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #6a5951;
    margin: 0;
}

/* --------------------------------------------------
   ATUAÇÃO
-------------------------------------------------- */
.atuacao-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.atuacao-card {
    padding: 28px 24px;
    background: #fbf8f5;
    border: 1px solid rgba(123,49,49,0.08);
    border-radius: 20px;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}

.atuacao-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7b3131, #d8b07a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.atuacao-card:hover { transform: translateY(-4px); }
.atuacao-card:hover::before { transform: scaleX(1); }

.atuacao-card .atuacao-index {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #a77b4c;
    letter-spacing: .08em;
}

.atuacao-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2a1b17;
}

.atuacao-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #6a5951;
    margin: 0;
}

/* --------------------------------------------------
   ADVOGADOS
-------------------------------------------------- */
.advogados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.advogado-premium {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(123,49,49,0.08);
    box-shadow: 0 12px 32px rgba(37,23,20,0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.advogado-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(37,23,20,0.09);
}

.advogado-premium .adv-foto {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    background: #ede8e4;
}

.advogado-premium .adv-info h3 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #2a1b17;
    line-height: 1.2;
}

.advogado-premium .adv-oab {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #a77b4c;
    letter-spacing: .06em;
}

.advogado-premium .adv-info > p {
    font-size: 14px;
    line-height: 1.7;
    color: #6a5951;
    margin-bottom: 16px;
}

.advogado-premium .adv-info ul {
    padding-left: 16px;
    color: #6a5951;
    font-size: 13px;
    margin: 0 0 20px;
}

.advogado-premium .adv-info ul li { margin-bottom: 5px; }

/* --------------------------------------------------
   BLOG
-------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card-hp {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(123,49,49,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card-hp:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(37,23,20,0.09);
}

.blog-card-hp .bc-img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #ede8e4;
}

.blog-card-hp .bc-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-hp .bc-date {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #a77b4c;
    margin-bottom: 8px;
}

.blog-card-hp h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2a1b17;
    line-height: 1.35;
}

.blog-card-hp p {
    font-size: 14px;
    line-height: 1.7;
    color: #6a5951;
    margin: 0;
    flex: 1;
}

/* --------------------------------------------------
   CONTATO
-------------------------------------------------- */
.home-contato .contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.contato-info h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #2a1b17;
}

.contato-info .contato-sub {
    font-size: 16px;
    color: #6a5951;
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-list { display: grid; gap: 12px; }

.contact-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.80);
    border: 1px solid rgba(123,49,49,0.08);
    align-items: flex-start;
}

.contact-item i {
    color: var(--hp-primary, #7b3131);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: #2a1b17;
}

.contact-item p,
.contact-item a {
    font-size: 14px;
    color: #6a5951;
    text-decoration: none;
    margin: 0;
}

.contato-mapa .map-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}

.contato-mapa .map-frame iframe { display: block; }

.contato-info .contato-cta { margin-top: 24px; }

/* --------------------------------------------------
   RESPONSIVO
-------------------------------------------------- */
@media (max-width: 1100px) {
    .diferenciais-grid,
    .atuacao-grid    { grid-template-columns: repeat(2, 1fr); }
    .blog-grid       { grid-template-columns: repeat(2, 1fr); }
    .advogados-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .home-hero h1              { font-size: 40px; }
    .hp-header h2,
    .hp-header-row h2,
    .contato-info h2           { font-size: 28px; }
    .home-contato .contato-grid { grid-template-columns: 1fr; }
    .advogado-premium          { grid-template-columns: 1fr; }
    .advogado-premium .adv-foto { aspect-ratio: 4/3; }
    .home-hero .hero-highlights { gap: 18px; }
    .home-hero .highlight-item {
        padding-right: 18px;
        margin-right: 18px;
    }
     .home-hero {
        min-height: 100vh;
        text-align: center;

        background:
        linear-gradient(
            180deg,
            rgba(12,8,7,.78) 0%,
            rgba(12,8,7,.55) 35%,
            rgba(12,8,7,.92) 100%
        ),
        url('/imagens/site/hero-default.jpg');

        background-size: cover;
        background-repeat: no-repeat;

        /* MOSTRA OS DOIS */
        background-position: center top;
    }

    .home-hero .hero-content{
        max-width: 100%;
        padding: 110px 18px 55px;
    }

    .home-hero .hero-kicker,
    .home-hero .hero-tags,
    .home-hero .hero-actions,
    .home-hero .hero-highlights{
        justify-content:center;
    }

    .home-hero h1{
        font-size: 34px !important;
        line-height: 1.08 !important;
        margin-bottom: 18px;
    }

    .home-hero .hero-tags{
        gap:8px;
        margin:18px 0 24px;
    }

    .home-hero .hero-tags span{
        font-size:10px;
    }

    .home-hero .hero-highlights{
        margin-top:22px;
        gap:12px;
        border-top: 1px solid rgba(255,255,255,.08);
        padding-top:18px;
        flex-wrap:wrap;
    }

    .home-hero .highlight-item{
        border:none;
        margin:0;
        padding:6px 10px;
    }
}

@media (max-width: 600px) {
    .home-hero h1               { font-size: 32px; }
    .diferenciais-grid,
    .atuacao-grid,
    .blog-grid                  { grid-template-columns: 1fr; }
    .home-hero .hero-actions    { flex-direction: column; }
    .btn-primary-home,
    .btn-ghost-home             { width: 100%; justify-content: center; }
}

/* --------------------------------------------------
   OVERRIDES — corrige conflitos com styles.css e
   components.css do layout global
-------------------------------------------------- */

/* Impede que o components.css sobrescreva os h1/h2/h3 da home */
.home-hero h1 {
    font-size: 58px !important;
    line-height: 1.07 !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.home-hero h1 em {
    color: var(--hp-accent, #d8b07a) !important;
}

.hp-header h2,
.hp-header-row h2,
.contato-info h2 {
    font-size: 38px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
}

.diferencial-card h3,
.atuacao-card h3,
.advogado-premium .adv-info h3,
.blog-card-hp h3 {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
}

/* Corrige links azuis herdados do browser nas seções da home */
.home-diferenciais a,
.home-atuacao a,
.home-advogados a,
.home-blog a,
.home-contato a {
    color: inherit;
    text-decoration: none;
}

.btn-text-home,
.btn-outline-home {
    color: var(--hp-primary, #7b3131) !important;
}

.btn-primary-home {
    color: #fff !important;
}

.btn-ghost-home {
    color: #fff !important;
}

/* =============================================
   HOME PREMIUM — Pina & Robaina Advogados
   Refined Version
   ============================================= */

:root {
    --hp-primary: #7b3131;
    --hp-primary-hover: #672727;
    --hp-accent: #d8b07a;
    --hp-text-dark: #2a1b17;
    --hp-text-muted: #6a5951;
    --hp-bg-light: #fbf8f5;
    --hp-shadow: 0 10px 30px rgba(37, 23, 20, 0.06);
    --hp-shadow-hover: 0 20px 40px rgba(37, 23, 20, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --------------------------------------------------
   HERO - Fluidez e Elegância
-------------------------------------------------- */
.home-hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg,
            rgba(12, 8, 7, 0.96) 0%,
            rgba(12, 8, 7, 0.85) 30%,
            rgba(12, 8, 7, 0.2) 100%),
        url('/imagens/site/hero-default.jpg') center center / cover no-repeat;
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 120px 0 100px;
    color: #fff;
    animation: fadeInUp 1.2s ease;
}

.home-hero h1 {
    margin: 0 0 15px;
    font-size: clamp(38px, 5vw, 62px) !important; /* Fluido */
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.home-hero .hero-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 35px;
}

.home-hero .hero-tags span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/* --------------------------------------------------
   BOTÕES - Micro-interações
-------------------------------------------------- */
.btn-primary-home, .btn-ghost-home {
    min-height: 54px;
    padding: 0 35px;
    border-radius: 8px; /* Menos arredondado = mais sério/premium */
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary-home:hover, .btn-ghost-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* --------------------------------------------------
   DIFERENCIAIS & CARDS
-------------------------------------------------- */
.diferencial-card, .atuacao-card, .blog-card-hp, .advogado-premium {
    border: 1px solid rgba(123, 49, 49, 0.05);
    transition: var(--transition);
    box-shadow: var(--hp-shadow);
}

.diferencial-card:hover, .atuacao-card:hover, .blog-card-hp:hover, .advogado-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--hp-shadow-hover);
    border-color: rgba(123, 49, 49, 0.15);
}

.diferencial-card .hp-icon {
    transition: var(--transition);
}

.diferencial-card:hover .hp-icon {
    background: var(--hp-primary);
    color: #fff;
    transform: rotateY(10deg);
}

/* --------------------------------------------------
   ATUAÇÃO - Efeito de Linha
-------------------------------------------------- */
.atuacao-card::before {
    height: 4px; /* Mais visível */
    background: var(--hp-accent);
}

/* --------------------------------------------------
   ADVOGADOS - Refinamento
-------------------------------------------------- */
.advogado-premium {
    padding: 30px;
    align-items: center;
}

.advogado-premium .adv-foto {
    filter: grayscale(20%); /* Estilo mais editorial */
    transition: var(--transition);
}

.advogado-premium:hover .adv-foto {
    filter: grayscale(0%);
}

/* --------------------------------------------------
   SEÇÕES - Respiro (Padding)
-------------------------------------------------- */
.home-diferenciais, .home-atuacao, .home-advogados, .home-blog, .home-contato {
    padding: 120px 0; /* Mais espaço entre seções = mais luxo */
}

/* --------------------------------------------------
   ANIMAÇÕES
-------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------
   RESPONSIVO REFINADO
-------------------------------------------------- */
@media (max-width: 860px) {
    .home-hero {
        background: 
            linear-gradient(0deg, rgba(12,8,7,1) 45%, rgba(12,8,7,0.5) 100%),
            url('/imagens/site/hero-default.jpg') center center / cover no-repeat;
        text-align: center;
        min-height: 100vh;
    }
    
    .home-hero .hero-kicker, .home-hero .hero-tags {
        justify-content: center;
    }
    
    .home-hero .hero-highlights {
        justify-content: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .home-hero .highlight-item {
        border-right: none;
        padding: 10px;
        margin: 0;
    }
}