/* ===================================
   TEMA GRACIELI — baseado no template Lex
   Identidade visual: Gracieli Popenga & Advogados
   Paleta e tipografia da marca aplicadas ao sistema
   de composição, hierarquia e espaçamento do Lex.
   =================================== */

:root {
    --gp-primary: var(--color2, #4F1919);      /* vinho escuro */
    --gp-primary-light: #6b2323;               /* vinho escuro, variação clara */
    --gp-accent: var(--color1, #D1A47C);       /* dourado areia — uso em fundos escuros/claros de destaque */
    --gp-accent-strong: #9c7a4a;                /* dourado mais escuro — texto/ícone sobre fundo branco/claro (contraste AA) */
    --gp-accent-hover: #bd8f68;
    --gp-bg-main: #FFFFFF;
    --gp-bg-light: var(--color3, #EDE7DF);     /* off-white quente */
    --gp-border: #E4DCD1;
    --gp-text-dark: #2b2b2b;
    --gp-text-muted: #6f6660;
    --gp-white: #FFFFFF;

    --gp-font-heading: 'KoHo', sans-serif;
    --gp-font-body: 'Noto Sans', sans-serif;

    --gp-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --gp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.gp-section h1, .gp-section h2, .gp-section h3, .gp-section h4, .gp-section h5, .gp-section h6,
.gp-hero-title, .gp-section-title {
    font-family: var(--gp-font-heading);
    font-weight: 700;
    color: var(--gp-primary);
}

.gp-text-accent { color: var(--gp-accent-strong) !important; }
.gp-text-primary { color: var(--gp-primary) !important; }
.gp-bg-light { background-color: var(--gp-bg-light); }

/* NAVBAR */
.gp-navbar {
    background-color: var(--gp-white);
    border-bottom: 1px solid var(--gp-border);
    padding: 10px 0;
    box-shadow: var(--gp-shadow-sm);
}
.gp-navbar .nav-link {
    color: var(--gp-text-dark);
    font-family: var(--gp-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}
.gp-navbar .nav-link:hover,
.gp-navbar .nav-link.active {
    color: var(--gp-accent);
}
.gp-navbar .navbar-brand img { height: 36px; width: auto; }

/* BOTOES */
.btn-gp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: var(--gp-accent);
    color: var(--gp-primary);
    text-decoration: none;
    font-family: var(--gp-font-body);
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--gp-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.btn-gp:hover {
    background-color: var(--gp-accent-hover);
    border-color: var(--gp-accent-hover);
    color: var(--gp-primary);
}
.btn-gp-outline {
    background-color: transparent;
    color: var(--gp-white);
    border-color: rgba(255,255,255,0.6);
}
.btn-gp-outline:hover {
    background-color: var(--gp-white);
    color: var(--gp-primary);
    border-color: var(--gp-white);
}
.btn-gp-dark {
    background-color: var(--gp-primary);
    border-color: var(--gp-primary);
    color: var(--gp-white);
}
.btn-gp-dark:hover {
    background-color: var(--gp-primary-light);
    border-color: var(--gp-primary-light);
    color: var(--gp-white);
}

/* HERO SECTION */
.gp-hero {
    position: relative;
    padding: 170px 0 110px;
    min-height: 660px;
    display: flex;
    align-items: center;
    color: var(--gp-white);
    background-color: var(--gp-primary);
    overflow: hidden;
}
.gp-hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
}
.gp-hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% center;
}
.gp-hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--gp-primary) 0%, rgba(79,25,25,0.25) 100%);
    z-index: 1;
}
@media (max-width: 991px) {
    .gp-hero-image-wrapper { width: 100%; opacity: 0.18; }
    .gp-hero-image-wrapper::before { opacity: 0.9; }
}
.gp-hero-content { position: relative; z-index: 2; width: 100%; }
.gp-hero-line {
    width: 60px;
    height: 3px;
    background-color: var(--gp-accent);
    margin-bottom: 25px;
}
.gp-hero-title {
    color: var(--gp-white);
    font-size: clamp(2rem, 7.6vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 25px;
}
.gp-hero-subtitle {
    font-family: var(--gp-font-body);
    font-size: clamp(1rem, 3.4vw, 1.1rem);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    color: rgba(255,255,255,0.85);
}
.gp-hero-cta { min-width: 240px; justify-content: center; text-align: center; }

/* TÍTULOS DE SEÇÃO */
.gp-section-subtitle {
    display: block;
    color: var(--gp-accent-strong);
    font-family: var(--gp-font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.gp-section-title {
    font-size: clamp(1.7rem, 5.8vw, 2.8rem);
    margin-bottom: 40px;
}

/* PAGE TITLE (páginas internas) */
.gp-page-title {
    background-color: var(--gp-primary);
    padding: 75px 0;
    color: var(--gp-white);
    border-bottom: 3px solid var(--gp-accent);
}
.gp-page-title h1 {
    color: var(--gp-white);
    font-family: var(--gp-font-heading);
    font-weight: 700;
}
.gp-page-title .breadcrumb-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.gp-page-title .breadcrumb-list a { color: rgba(255,255,255,0.85); text-decoration: none; }
.gp-page-title .breadcrumb-list a:hover { color: var(--gp-accent); }
.gp-page-title .breadcrumb-list li + li::before { content: '/'; margin-right: 8px; color: var(--gp-accent); }
.gp-page-title .breadcrumb-list { flex-wrap: wrap; }
.gp-page-title .breadcrumb-list li { display: flex; gap: 8px; }

/* ABOUT SECTION */
.gp-about { padding: 100px 0; }
.gp-about-image { position: relative; }
.gp-about-image img {
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    width: 100%;
}
.gp-badge {
    position: absolute;
    bottom: -30px;
    left: -20px;
    background-color: var(--gp-primary);
    color: var(--gp-white);
    padding: 22px 28px;
    border-radius: 2px;
    border-bottom: 4px solid var(--gp-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    text-align: center;
}
.gp-badge strong {
    display: block;
    color: var(--gp-accent);
    font-size: 1.6rem;
    line-height: 1.2;
    font-family: var(--gp-font-heading);
}
.gp-badge span {
    display: block;
    font-family: var(--gp-font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.72rem;
    margin-top: 4px;
}

/* CARDS (áreas de atuação / diferenciais / missão-visão-valores) */
.gp-cards { padding: 100px 0; background-color: var(--gp-bg-light); }
.gp-card {
    background: var(--gp-white);
    padding: 40px;
    border-radius: 2px;
    border: 1px solid var(--gp-border);
    box-shadow: 0 2px 10px rgba(79,25,25,0.07);
    height: 100%;
    transition: all 0.3s ease;
}
.gp-card:hover {
    border-color: var(--gp-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.09);
    transform: translateY(-5px);
}
.gp-card-icon {
    font-size: 2.2rem;
    color: var(--gp-accent-strong);
    margin-bottom: 22px;
    display: inline-block;
}
.gp-card-title { font-size: 1.25rem; margin-bottom: 12px; }
.gp-card-desc { color: var(--gp-text-muted); margin-bottom: 0; }
.gp-card .btn-gp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--gp-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.gp-card .btn-gp-link:hover { color: var(--gp-accent); }

/* DIFERENCIAIS (barra escura) */
.gp-differentials {
    padding: 80px 0;
    background-color: var(--gp-primary);
    color: var(--gp-white);
}
.gp-diff-item h4 {
    color: var(--gp-accent);
    font-family: var(--gp-font-body);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.gp-diff-item p { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin-bottom: 0; }
.gp-diff-item + .gp-diff-item { border-left: 1px solid rgba(255,255,255,0.15); }

/* CTA FINAL — seção clara de propósito: depois dos Diferenciais (escuro) e antes
   do footer (escuro), evita empilhar 3 blocos vinho seguidos na base da página. */
.gp-cta {
    padding: 110px 0;
    position: relative;
    color: var(--gp-text-dark);
    text-align: center;
}
.gp-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(237,231,223,0.93) 0%, rgba(237,231,223,0.85) 100%);
}
.gp-cta .container { position: relative; z-index: 1; }
.gp-cta-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--gp-accent-strong);
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.gp-cta h2 { color: var(--gp-primary); font-family: var(--gp-font-heading); font-weight: 700; margin-bottom: 35px; }

/* FAQ + CONTATO */
.gp-faq { padding: 100px 0; }
.gp-faq .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--gp-border);
    border-radius: 0 !important;
}
.gp-faq .accordion-button {
    background-color: transparent !important;
    color: var(--gp-text-dark) !important;
    font-family: var(--gp-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 0;
    box-shadow: none !important;
}
.gp-faq .accordion-button::after { filter: sepia(1) saturate(2) hue-rotate(-10deg); }
.gp-faq .accordion-button:not(.collapsed) { color: var(--gp-accent-strong) !important; }
.gp-faq .accordion-body { padding: 0 0 20px; color: var(--gp-text-muted); }

.gp-contact-form {
    background-color: var(--gp-bg-light);
    padding: 3rem;
    border-radius: 2px;
    border: 1px solid var(--gp-border);
}
.gp-contact-form h3 { font-family: var(--gp-font-heading); font-weight: 700; color: var(--gp-primary); }
.gp-contact-form .form-control,
.gp-contact-form .form-select,
.gp-contact-form textarea {
    border-radius: 2px;
    border: 1px solid var(--gp-border);
}
.gp-contact-form .form-control:focus,
.gp-contact-form textarea:focus {
    border-color: var(--gp-accent);
    box-shadow: 0 0 0 0.2rem rgba(209,164,124,0.25);
}

.gp-contact-strip { padding: 50px 0; background-color: var(--gp-white); border-top: 1px solid var(--gp-border); }
.gp-contact-strip-item i { color: var(--gp-accent-strong); font-size: 1.4rem; margin-bottom: 10px; display: block; }
.gp-contact-strip-item h6 { font-family: var(--gp-font-heading); color: var(--gp-primary); font-weight: 700; margin-bottom: 6px; }
.gp-contact-strip-item p { color: var(--gp-text-muted); margin-bottom: 0; }

/* FOOTER */
.gp-footer {
    background-color: var(--gp-primary);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
    border-top: 4px solid var(--gp-accent);
}
.gp-footer .footer-title {
    color: var(--gp-white);
    font-size: 1.15rem;
    margin-bottom: 22px;
    font-family: var(--gp-font-heading);
    font-weight: 700;
}
.gp-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.gp-footer .footer-links li { margin-bottom: 12px; }
.gp-footer .footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.gp-footer .footer-links a:hover { color: var(--gp-accent); }
.gp-footer .footer-bottom {
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.82rem;
    text-align: center;
}
.gp-footer .footer-bottom a { color: rgba(255,255,255,0.75); }
.gp-footer .footer-bottom a:hover { color: var(--gp-accent); }
.gp-footer .footer-social a {
    color: rgba(255,255,255,0.75);
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.gp-footer .footer-social a:hover { color: var(--gp-accent); }

/* WHATSAPP FLUTUANTE */
a.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

a.float-whatsapp:hover {
    background-color: #128c7e;
    color: #FFF;
}

a.float-whatsapp:active {
    background-color: #075e54;
    color: #FFF;
}

a.float-whatsapp i {
    margin-top: 16px;
}

/* RESPONSIVO */
@media (max-width: 991.98px) {
    .gp-hero { padding: 130px 0 70px; min-height: 0; }
    section[class*="gp-"] { padding-top: 60px; padding-bottom: 60px; }
    .gp-card { padding: 30px 24px; }
    .gp-badge { position: relative; bottom: 0; left: 0; margin-top: -20px; margin-left: 20px; margin-right: 20px; }
    .gp-diff-item + .gp-diff-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; margin-top: 10px; }
    .gp-navbar .navbar-nav .nav-link { min-height: 44px; display: flex; align-items: center; }
    .gp-footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 575.98px) {
    .gp-hero { padding: 110px 0 50px; }
    .gp-about, .gp-cards, .gp-faq { padding: 48px 0; }
    .gp-cta { padding: 60px 0; }
}
