/* =====================================================
   HR SOLUÇÕES - responsive.css
   Ajusta o site para tablet e celular.
   Este arquivo carrega DEPOIS do style.css.
===================================================== */


/* ---------- TABLET (até 1100px) ---------- */

@media (max-width: 1100px) {

    /* o cabeçalho deixa de grudar no topo */
    header.scrolled {
        position: static;
    }

    section[id],
    footer[id] {
        scroll-margin-top: 20px;
    }

    /* cabeçalho em duas linhas: logo + botão, depois a busca */
    .header {
        flex-wrap: wrap;
        gap: 20px;
    }

    .logo {
        order: 1;
    }

    .actions {
        order: 2;
    }

    .search {
        order: 3;
        flex: 1 1 100%;
    }

    .nav ul {
        gap: 22px;
        font-size: 14px;
    }

    .hero-slider h1 {
        font-size: 54px;
    }

    .benefits .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits .box {
        border-right: none;
    }

    .grid,
    .products-grid,
    .portfolio-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}


/* ---------- CELULAR (até 800px) ---------- */

@media (max-width: 800px) {

    .topbar {
        font-size: 12px;
        padding: 8px 0;
    }

    .topbar .left {
        gap: 4px 14px;
    }

    header {
        padding: 16px 0;
    }

    .header {
        gap: 14px;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .logo img {
        width: 190px;
    }

    /* botão do menu (três tracinhos) aparece só no celular */
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* o botão de orçamento do topo some; o do WhatsApp flutuante fica */
    .actions {
        display: none;
    }

    .search {
        height: 50px;
    }

    .search input {
        padding: 0 14px;
    }

    .search select {
        width: 120px;
        font-size: 13px;
        padding: 0 8px;
    }

    .search button {
        width: 56px;
    }

    /* menu fica escondido e abre ao tocar nos três tracinhos */
    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: auto;
        padding: 8px 0;
    }

    .nav li {
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .nav li:last-child {
        border-bottom: none;
    }

    .nav a {
        padding: 14px 4px;
    }

    /* banner */
    .hero-slider {
        height: auto;
    }

    .hero-slider .hero-content {
        height: auto;
        min-height: 600px;
        padding: 50px 0 70px;
    }

    .hero-slider h1 {
        font-size: 40px;
    }

    .hero-slider p {
        font-size: 17px;
        line-height: 1.7;
    }

    .hero-list {
        grid-template-columns: 1fr;
    }

    .buttons a {
        width: 100%;
        justify-content: center;
    }

    .hero-dots {
        bottom: 22px;
    }

    .benefits .container {
        padding: 24px;
    }

    /* seções */
    .services,
    .portfolio,
    .orcamento-online,
    .google-reviews,
    .stats,
    .featured-products,
    .clientes {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2,
    .featured-header h2,
    .clientes-title h2 {
        font-size: 30px;
    }

    .featured-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-box {
        padding: 36px 16px;
    }

    .stat-box h2 {
        font-size: 44px;
    }

    .cta-orcamento {
        padding: 80px 0;
    }

    .cta-content h2 {
        font-size: 30px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cliente-logo {
        min-width: 150px;
        height: 90px;
    }

    .footer-grid {
        padding: 56px 0;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        right: 16px;
        bottom: 16px;
    }

    .back-to-top {
        right: 20px;
        bottom: 84px;
    }
}


/* ---------- CELULAR PEQUENO (até 600px) ---------- */

@media (max-width: 600px) {

    .grid,
    .products-grid,
    .portfolio-grid,
    .stats-grid,
    .benefits .container {
        grid-template-columns: 1fr;
    }

    .hero-slider h1 {
        font-size: 34px;
    }

    .product-card img {
        height: 200px;
    }

    .portfolio-item img {
        height: 240px;
    }
}
