/* =============================================================
   main.css – Ciao Burocracia
   Organização:
     1. Variáveis CSS (tokens de design)
     2. Reset / Base
     3. Tipografia
     4. Navbar
     5. Galeria
     6. Seção About
     7. Seção Serviços
     8. Footer
     9. Utilitários
    10. Responsividade
   ============================================================= */


/* ─── 1. VARIÁVEIS CSS ─────────────────────────────────────── */
:root {
    --color-brand-dark:     #163B1E;
    --color-brand-green:    #008C45;
    --color-brand-tan:      #fdf2f2;
    --color-brand-gray:     #f8f9fa7a;
    --color-bg:             #ffffff;
    --color-text:           #333333;
    --color-text-secondary: #444444;
    --color-border-light:   #f3f4f6;
    --color-border-card:    #f8f9fa;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

    --navbar-height:  58px;   /* Atualizado via JS em resize */
    --section-py:     6rem;

    /* Altura da galeria por breakpoint */
    --gallery-height-xs:  180px;   /* < 576px  – celular */
    --gallery-height-sm:  220px;   /* ≥ 576px  – celular grande / tablet retrato */
    --gallery-height-md:  320px;   /* ≥ 768px  – tablet paisagem */
    --gallery-height-lg:  380px;   /* ≥ 992px  – desktop */
}


/* ─── 2. RESET / BASE ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* Scroll suave nativo (sem jQuery) */
    scroll-behavior: smooth;
    /* Compensa a navbar fixa no scroll por âncora */
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h5 {
    font-size: 1.2rem; 
}

/* ─── 3. TIPOGRAFIA ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.brand-font {
    font-family: var(--font-display);
}

.text-brand-dark  { color: var(--color-brand-dark) !important; }
.bg-brand-tan     { background-color: var(--color-brand-tan); }
.bg-brand-dark    { background-color: #1a1a1a; }
.icon-primary     { color: var(--color-brand-green); }


/* ─── 4. NAVBAR ────────────────────────────────────────────── */
.navbar-custom {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    padding-top:    1.4rem;
    padding-bottom: 1.4rem;
    /* z-index explícito garante sobreposição correta */
    z-index: 1030;
}

/* Links do menu */
.nav-link-custom {
    position: relative;
    color:       var(--color-brand-dark) !important;
    font-weight: 500;
    font-size:   1.0625rem; /* ~17px */
    padding-bottom: 4px;
    margin: 0 0.75rem;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-link-custom:hover {
    color: var(--color-brand-green) !important;
}

/* Indicador de active: underline verde */
.nav-link-custom.active {
    color: var(--color-brand-green) !important;
}

.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-brand-green);
    border-radius: 1px;
}

/* Menu mobile: adiciona fundo e separador visual ao expandir */
@media (max-width: 991.98px) {
    #navbarNav {
        background-color: var(--color-bg);
        padding: 0.5rem 1rem 1rem;
        border-top: 1px solid var(--color-border-light);
        /* Garante que o menu expandido fique sobre o conteúdo */
        position: relative;
        z-index: 1031;
    }

    .nav-link-custom {
        margin: 0;
        padding: 0.5rem 6px;
        font-size: 1rem;
        display: block;
        border-bottom: 1px solid var(--color-border-light);
    }

    .navbar-nav .nav-item:last-child .nav-link-custom {
        border-bottom: none;
    }

    /* Underline no active em mobile (horizontal, à esquerda) */
    .nav-link-custom.active::after {
        width: 3px;
        height: 100%;
        top: 0;
        bottom: auto;
        border-radius: 0 2px 2px 0;
    }
}


/* ─── 5. GALERIA DE IMAGENS ────────────────────────────────── */
.gallery-img-container {
    /*
       Altura padrão (mobile-first): menor para não ocupar
       a tela inteira em celulares
    */
    height: var(--gallery-height-xs);
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Transição suave ao fazer hover (desktop) */
    transition: transform 0.4s ease;
}

.gallery-img-container:hover img {
    transform: scale(1.03);
}

/* Breakpoints progressivos */
@media (min-width: 576px) {
    .gallery-img-container { height: var(--gallery-height-sm); }
}

@media (min-width: 768px) {
    .gallery-img-container { height: var(--gallery-height-md); }
}

@media (min-width: 992px) {
    .gallery-img-container { height: var(--gallery-height-lg); }
}


/* Logo no hero */
.logo-img {
    height: 5rem;
    max-height: 75px;
    object-fit: contain;
}


/* ─── 6. SEÇÃO ABOUT ───────────────────────────────────────── */
.about-card {
    border-top-left-radius:     80px;
    border-bottom-right-radius: 80px;
    overflow: hidden;
    background-color: var(--color-brand-tan);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

.about-img {
    height: 700px;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    margin-top: 60px;
}

@media (max-width: 767.98px) {
    .about-card {
        border-top-left-radius:     40px;
        border-bottom-right-radius: 40px;
    }
    .about-img {
        height: 500px;
        margin-top: -100px;
    }
}


/* ─── 7. SEÇÃO SERVIÇOS ────────────────────────────────────── */
.service-card {
    border: 1px solid var(--color-border-card);
    background-color: var(--color-bg);
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 140, 69, 0.10);
    transform: translateY(-2px);
}

/* Grid com divisórias internas no desktop */
@media (min-width: 768px) {
    .services-grid {
        border: 1px solid var(--color-border-light);
        background-color: var(--color-bg);
    }

    .service-item {
        border-bottom: 1px solid var(--color-border-card);
        border-right:  1px solid var(--color-border-card);
    }

    /* Remove borda direita da 3ª coluna */
    .service-item:nth-child(3n) {
        border-right: none;
    }

    /* Remove borda inferior da última linha */
    .service-item:nth-last-child(-n+3) {
        border-bottom: none;
    }

    /* Sem borda interna no card (a borda é do grid) */
    .service-card {
        border: none;
        box-shadow: none;
    }

    .service-card:hover {
        box-shadow: none;
        transform: none;
    }
}


/* ─── 8. FOOTER ────────────────────────────────────────────── */
.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--color-brand-green) !important;
    text-decoration: underline;
}

.social-link {
    color: var(--color-brand-green);
    transition: color 0.25s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}


/* ─── 9. UTILITÁRIOS ───────────────────────────────────────── */
.section-padding {
    padding-top:    var(--section-py);
    padding-bottom: var(--section-py);
}

.conheca {
    margin-right: 8rem; margin-left: 8rem;
}@media (max-width: 575.98px) {
    .conheca {
        margin-right: 1rem;
        margin-left: 1rem;
    }
}


/* ─── 9b. SEÇÃO CONTATO ────────────────────────────────────── */
.contato-section {
    background-color: var(--color-brand-tan);
}
 
.contato-subtitulo {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}
 
/* Card base */
.contato-card {
    border: 1.5px solid transparent;
    background-color: #ffffff;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
 
.contato-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}
 
/* Ícone */
.contato-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
/* Variante WhatsApp */
.contato-card--whatsapp .contato-icon {
    background-color: #e8f5e9;
    color: #25D366;
}
 
.contato-card--whatsapp:hover {
    border-color: var(--color-brand-green);
}
 
.contato-card--whatsapp .contato-card__cta {
    color: var(--color-brand-green);
}
 
/* Variante E-mail */
.contato-card--email .contato-icon {
    background-color: #e8f0fe;
    color: var(--color-brand-green);
}
 
.contato-card--email:hover {
    border-color: var(--color-brand-green);
}
 
.contato-card--email .contato-card__cta {
    color: var(--color-brand-green);
}

/* Variante Instagram */
.contato-card--instagram .contato-icon {
    background-color: #fff7f7c9;
    color: #ffffff;
}
 
.contato-card--instagram:hover {
    border-color: var(--color-brand-green);
}
 
.contato-card--instagram .contato-card__cta {
    color: var(--color-brand-green);
}
 
/* Títulos e textos internos dos cards */
.contato-card h3 {
    color: var(--color-brand-dark);
}
 
.contato-card__desc {
    color: #6b7280;
    line-height: 1.5;
}
 
.contato-card__number {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    word-break: break-all;
}
 
.contato-card__cta {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: letter-spacing 0.2s ease;
}
 
.contato-card:hover .contato-card__cta {
    letter-spacing: 0.05em;
}
 
/* Nota de rodapé da seção */
.contato-nota {
    font-size: 0.9rem;
    color: #6b7280;
}


/* ─── 9c. SEÇÃO FEEDBACKS ──────────────────────────────────── */
.feedbacks-section {
    background-color: var(--color-bg);
}

.feedbacks-subtitulo {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

/* Wrapper com overflow oculto (mascara o track) */
.feedbacks-track-outer {
    overflow: hidden;
    /* Margem lateral para os botões de nav não sobrepostos */
    margin: 0 2.5rem;
}

/* Track deslizante */
.feedbacks-track {
    display: flex;
    column-gap: 1.5rem;            /* 24px entre cards */
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Cada card ocupa 1/3 menos gaps no desktop */
    --card-gap: 1.5rem;
}

/* Card individual */
.feedback-card {
    flex: 0 0 calc((100% - 2 * var(--card-gap)) / 3);
    min-width: 0;
    background-color: var(--color-brand-gray);
    border: 1px solid #eee8e8;
    border-radius: 16px;
    padding: 0.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feedback-card:hover {
    box-shadow: 0 6px 20px rgba(0, 140, 69, 0.10);
    transform: translateY(-3px);
}

.feedback-contato {
    display: flex;
    width: 100%; 
}

/* Avatar circular com letra(s) inicial(is) */
.feedback-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--color-brand-dark);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    margin-top: 0.85em;
}

/* Texto do depoimento */
.feedback-text {
    border-top: 1px solid #e8e2e2;
    font-size: 0.775rem;       /* 14px – pequena, clara */
    line-height: 1.65;
    color: #555555;
    font-style: normal;
    margin: 0;
    flex: 1;
    /* Limita em ~7 linhas com reticências no overflow */
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rodapé do card: nome + badge + estrelas */
.feedback-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 1.85rem;
    padding-top: 0.85rem;
    margin-top: auto;
}

.feedback-meta a{
    text-decoration: none;
    color: var(--color-brand-dark); 
}

.feedback-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-brand-dark);
}

/* Badge "Cliente verificado" */
.feedback-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    color: var(--color-brand-green);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Estrelas */
.feedback-stars {
    color: #f59e0b;             /* âmbar */
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

/* ── Botões de navegação ────── */
.feedback-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border-card);
    background-color: #ffffff;
    color: var(--color-brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.feedback-nav:hover {
    background-color: var(--color-brand-green);
    color: #ffffff;
    border-color: var(--color-brand-green);
    box-shadow: 0 4px 12px rgba(0, 140, 69, 0.25);
}

.feedback-nav--prev { left: 0; }
.feedback-nav--next { right: 0; }

/* ── Dots indicadores ────────── */
.feedbacks-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.feedback-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #d1d5db;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.feedback-dot.is-active {
    background-color: var(--color-brand-green);
    width: 24px;
    border-radius: 4px;
}

/* ── Responsividade dos cards ── */
@media (max-width: 991.98px) {
    .feedback-card {
        /* 2 cards visíveis em tablet */
        flex: 0 0 calc((100% - 1 * var(--card-gap)) / 2);
    }
}

@media (max-width: 639px) {
    .feedback-card {
        /* 1 card visível em mobile */
        flex: 0 0 100%;
    }

    .feedbacks-track-outer {
        margin: 0 2rem;
    }
}


/* ─── 10. RESPONSIVIDADE GLOBAL ────────────────────────────── */
@media (max-width: 575.98px) {
    .section-padding {
        padding-top:    3rem;
        padding-bottom: 3rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .display-6 {
        font-size: 1.2rem;
    }
}