/* Custom CSS para o projeto Django */

/* Variáveis CSS personalizadas */
:root {
    --primary-color: #500b0b;
    --secondary-color: #8a7431;
    --tertiary-color: #F0F0F0;
    --quaternary-color: #000000;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --primary-text-color: #000000;
    --secondary-text-color: #ffffff;
    --tertiary-text-color: #500b0b;
    --quaternary-text-color: #9B9B9B;
    --primary-title-color: #000000;
    --secondary-title-color: #500b0b;
    --terciary-title-color: #ffffff;
    --primary-link-color: #003FFE;
    --primary-bg-color: #500b0b;
    --secondary-bg-color: #8a7431;
    --tertiary-bg-color: #060505;
    --quaternary-bg-color: #f7e5bf;
}

/* Estilos personalizados */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navbar customizada */
.navbar-brand {
    font-weight: 600;
}

/* Ícones de redes sociais na navbar */
.navbar-social {
    font-size: 1.15rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-social:hover {
    transform: translateY(-2px);
}

.navbar-social--whatsapp:hover  { color: #25D366 !important; }
.navbar-social--linkedin:hover  { color: #0A66C2 !important; }
.navbar-social--facebook:hover  { color: #1877F2 !important; }
.navbar-social--instagram:hover { color: #E4405F !important; }

.bgprincipal {
    background-color: var(--primary-bg-color);
}

.bgsecundario {
    background-color: var(--secondary-bg-color);
}

.bgterciario {
    background-color: var(--tertiary-bg-color);
}

.bgquartenario {
    background-color: var(--quaternary-bg-color);
}

.bgquaternario {
    background-color: var(--quaternary-bg-color);
}

.primary-text {
    color: var(--primary-text-color);
}

.secondary-text {
    color: var(--secondary-text-color);
}

.primary-link {
    color: var(--primary-link-color);
    text-decoration: none;
}

.primary-title {
    color: var(--primary-title-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.secondary-title {
    color: var(--secondary-title-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.terciary-title {
    color: var(--terciary-title-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.primary-subtitle {
    color: var(--secondary-text-color) !important;
    font-weight: light;
}

.primary-link {
    color: var(--primary-link-color) !important;
}

/* Cards com hover effect */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Jumbotron customizado */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsividade para ícones */
@media (max-width: 768px) {
    .card-body i {
        font-size: 2rem !important;
    }
}

/* Animações suaves */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   Componente: Áreas de Especialização
   ============================================= */

.pgear-areas {
    background-color: var(--primary-color);
    padding: 2rem 2rem;
}

.pgear-areas__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 0.75rem;
}

.pgear-areas__badge i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.pgear-areas__badge span {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

/* =============================================
   Fim do componente Áreas de Especialização
   ============================================= */

/* =============================================
   Componente: Animação de Engrenagens
   ============================================= */

.pgear-gears {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.pgear-gear {
    position: absolute;
    color: var(--secondary-color);
    opacity: 0.75;
    line-height: 1;
}

.pgear-gear--xl {
    font-size: 130px;
    top: 0;
    left: 0;
    animation: gear-cw 10s linear infinite;
}

.pgear-gear--md {
    font-size: 80px;
    top: 20px;
    right: 0px;
    animation: gear-ccw 5.6s linear infinite;
}

.pgear-gear--sm {
    font-size: 58px;
    bottom: 14px;
    left: 22px;
    animation: gear-ccw 3.4s linear infinite;
}

.pgear-gear--xs {
    font-size: 42px;
    bottom: 0;
    right: 42px;
    animation: gear-cw 2.5s linear infinite;
    opacity: 0.45;
}

@keyframes gear-cw {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes gear-ccw {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

/* =============================================
   Fim do componente Animação de Engrenagens
   ============================================= */

/* =============================================
   Componente: Hero de Página Interna (fs-hero)
   ============================================= */

.fs-hero {
    background-color: var(--primary-color);
    padding: 5rem 2rem;
}

.fs-hero__phrases {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fs-hero__phrases span {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.fs-hero__phrases span:nth-child(even) {
    color: var(--secondary-color);
}

.fs-hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 600px;
}

.fs-hero__icon-wrap {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-hero__icon {
    font-size: 7rem;
    color: var(--secondary-color);
    opacity: 0.85;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.06); }
}

/* =============================================
   Fim do componente: Hero de Página Interna
   ============================================= */

/* =============================================
   Componente: Cards de Serviços (fs-card)
   ============================================= */

.fs-servicos {
    background-color: #fff;
    padding: 5rem 2rem;
}

.fs-servicos__heading {
    font-size: 2rem !important;
}

.fs-servicos__intro {
    font-size: 1.05rem;
    color: var(--quaternary-text-color);
}

.fs-card {
    background-color: var(--tertiary-color);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    height: 100%;
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.fs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fs-card__icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.fs-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-title-color);
    margin-bottom: 0.75rem;
}

.fs-card__text {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.75;
    margin: 0;
}

/* =============================================
   Fim do componente: Cards de Serviços
   ============================================= */

/* =============================================
   Componente: Detalhes dos Serviços (fs-detalhe)
   ============================================= */

.fs-detalhe {
    background-color: #0d0d0d;
    padding: 5rem 2rem;
}

.fs-detalhe__intro {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Card --- */
.fs-detalhe__card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

.fs-detalhe__card:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.65);
}

/* --- Imagem com overlay --- */
.fs-detalhe__img-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.fs-detalhe__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fs-detalhe__card:hover .fs-detalhe__img {
    transform: scale(1.06);
}

.fs-detalhe__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(80, 11, 11, 0.72) 0%, rgba(10, 4, 4, 0.88) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-detalhe__icon {
    font-size: 4.5rem;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 12px rgba(138, 116, 49, 0.5));
    transition: transform 0.4s ease;
}

.fs-detalhe__card:hover .fs-detalhe__icon {
    transform: scale(1.1);
}

/* --- Corpo do card --- */
.fs-detalhe__body {
    padding: 1.75rem 1.75rem 2rem;
    border-left: 4px solid var(--secondary-color);
}

.fs-detalhe__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-title-color);
    margin-bottom: 0.35rem;
}

.fs-detalhe__tagline {
    font-size: 0.98rem;
    font-style: italic;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.85rem;
}

.fs-detalhe__text {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.78;
    margin: 0;
}

/* --- Animações de scroll reveal --- */
.fs-reveal {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fs-reveal--left {
    transform: translateX(-50px);
}

.fs-reveal--right {
    transform: translateX(50px);
}

/* Stagger: item par atrasa levemente para criar ritmo dentro da row */
.fs-reveal:nth-child(even) {
    transition-delay: 0.12s;
}

.fs-reveal.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   Fim do componente: Detalhes dos Serviços
   ============================================= */

/* =============================================
   Componente: Seção Limitações (fs-limitacoes)
   ============================================= */

.fs-limitacoes {
    background-color: var(--primary-color);
    padding: 5rem 2rem;
}

.fs-limitacoes__bolt {
    font-size: 9rem;
    color: var(--secondary-color);
    opacity: 0.85;
}

.fs-limitacoes__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
}

.fs-limitacoes__text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.fs-limitacoes__text em {
    color: var(--secondary-color);
    font-style: normal;
    font-weight: 600;
}

.fs-limitacoes__cta {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}

.fs-limitacoes__btn {
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.fs-limitacoes__btn:hover {
    background-color: #7a6629;
    color: #fff;
    transform: translateY(-2px);
}

/* =============================================
   Fim do componente: Seção Limitações
   ============================================= */

/* =============================================
   Componente: Temas em Alta (tc-temas)
   ============================================= */

.tc-temas {
    padding: 5rem 2rem;
}

.tc-temas__intro {
    font-size: 1.05rem;
    color: var(--quaternary-text-color);
}

.tc-tema-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    height: 100%;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-tema-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tc-tema-item__icon {
    font-size: 1.75rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    line-height: 1.3;
}

.tc-tema-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-title-color);
    margin-bottom: 0.35rem;
}

.tc-tema-item__text {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* =============================================
   Fim do componente: Temas em Alta
   ============================================= */

/* =============================================
   Responsividade mobile (max-width: 768px)
   ============================================= */

@media (max-width: 768px) {
    .card-body i {
        font-size: 2rem !important;
    }

    /* --- Hero --- */
    .fs-hero {
        padding: 2.5rem 0.75rem;
    }

    .fs-hero__phrases span {
        font-size: 1.45rem;
    }

    /* --- Cards de Serviços --- */
    .fs-servicos {
        padding: 2.5rem 0.75rem;
    }

    /* --- Temas em Alta --- */
    .tc-temas {
        padding: 2.5rem 0.75rem;
    }

    /* --- Detalhes dos Serviços --- */
    .fs-detalhe {
        padding: 2.5rem 0.75rem;
    }

    /* --- Limitações --- */
    .fs-limitacoes {
        padding: 2.5rem 0.75rem;
    }

    .fs-limitacoes__title {
        font-size: 1.7rem;
    }

    .fs-limitacoes__bolt {
        font-size: 6rem;
    }

    /* --- Override Bootstrap container gutters --- */
    .fs-hero .container,
    .fs-servicos .container,
    .tc-temas .container,
    .fs-detalhe .container,
    .fs-limitacoes .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .fs-servicos .row,
    .tc-temas .row,
    .fs-detalhe .row {
        --bs-gutter-x: 0.75rem;
    }

    .fs-card {
        margin-left: 0;
        margin-right: 0;
    }
}

/* =============================================
   Fim da responsividade mobile
   ============================================= */

/* =============================================
   Componente: Footer (pgear-footer)
   ============================================= */

.pgear-footer {
    background-color: var(--tertiary-bg-color);
    color: rgba(255, 255, 255, 0.75);
    margin-top: auto;
}

.pgear-footer__logo {
    max-height: 64px;
    width: auto;
}

.pgear-footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.pgear-footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.pgear-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pgear-footer__list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.pgear-footer__list a:hover {
    color: var(--secondary-color);
}

.pgear-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pgear-footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
}

.pgear-footer__contact li i {
    font-size: 1rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.pgear-footer__contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pgear-footer__contact a:hover {
    color: var(--secondary-color);
}

.pgear-footer__socials {
    display: flex;
    gap: 0.85rem;
}

.pgear-footer__social {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.pgear-footer__social:hover {
    transform: translateY(-3px);
}

.pgear-footer__social--linkedin:hover  { color: #0A66C2; }
.pgear-footer__social--facebook:hover  { color: #1877F2; }
.pgear-footer__social--instagram:hover { color: #E4405F; }
.pgear-footer__social--tiktok:hover    { color: #ffffff; }

.pgear-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.pgear-footer__bottom a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pgear-footer__bottom a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .pgear-footer__logo {
        max-height: 52px;
    }
}

/* =============================================
   Fim do componente: Footer
   ============================================= */
