/*
Theme Name: Ideal Pisos
Theme URI: https://idealpisos.com.br
Author: IHFA Advocacia
Author URI: https://ihfa.com.br
Description: Tema customizado para a Ideal Pisos — pisos e pergolados de madeira maciça. Compatível com Elementor e WPForms.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ideal-pisos
Tags: one-page, custom-logo, elementor-ready
*/

/* ===========================================
   Reset
   =========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

/* ===========================================
   Header fixo
   =========================================== */
#ip-header {
    background: #900;
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* Hamburger */
#menu_compact {
    width: 65px;
    height: 50px;
    position: relative;
    background-color: #900;
    cursor: pointer;
    z-index: 10000;
}
.burger {
    background-color: #FFF;
    display: inline-block;
    transition: 0.4s;
    width: 35px;
    height: 5px;
    margin-left: 13px;
    position: absolute;
}
#b1 { top: 13px; }
#b2 { top: 23px; }
#b3 { top: 33px; }

/* Overlay de navegação */
.overlay {
    height: 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: rgba(242, 242, 242, 0.95);
    overflow-y: hidden;
    transition: 0.5s;
    z-index: 9999;
}
.overlay-content {
    position: relative;
    top: 25%;
    height: 100%;
    text-align: center;
    margin-top: 30px;
}
.overlay-content a {
    padding: 8px;
    text-decoration: none;
    font: bold 36px Arial;
    color: #900;
    display: block;
    transition: 0.5s;
}
.overlay-content a:hover,
.overlay-content a:focus {
    color: #FFF;
    background-color: #900;
}
.overlay .closebtn {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 60px;
    text-decoration: none;
    color: #900;
    z-index: 10000;
}
@media screen and (min-height: 1024px) {
    .overlay-content a { font: bold 20px Arial; }
}

/* Info de contato no header */
#main_info {
    width: 80%;
    height: 50px;
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    font: bold 16px Arial;
}
#phone a, #mail a {
    text-decoration: none;
    color: #FFF;
}
#ip-header ul {
    display: block;
    position: relative;
    top: -37px;
    right: 50px;
    text-align: right;
    float: right;
    list-style: none;
}
#ip-header ul li {
    display: inline;
    font: 16px Arial;
    color: #FFF;
    padding: 0 10px;
}
#clock.mob { display: none; }
@media screen and (min-width: 858px) {
    #clock.mob { display: inline-block; }
}
@media screen and (max-width: 554px) {
    #mail.mob { display: none; }
}
#phone::before { content: url(img/phone.png); padding: 5px; }
#mail::before  { content: url(img/mail.png);  padding: 5px; }
#clock::before { content: url(img/clock.png); padding: 5px; }
#insta {
    right: 0;
    padding: 10px;
}

/* ===========================================
   Botão voltar ao topo
   =========================================== */
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 9998;
    border: none;
    outline: none;
    background-color: #FFF;
    color: #900;
    cursor: pointer;
    border-radius: 10px;
    font: bold 30px Arial;
    transition: 0.5s;
    width: 50px;
    height: 50px;
    transform: rotate(-90deg);
    padding-bottom: 2px;
    padding-right: 2px;
    box-shadow: #999 -2px 0px 8px 1px;
}
#myBtn:hover {
    background-color: #900;
    color: #FFF;
}

/* ===========================================
   Botão WhatsApp
   =========================================== */
#WApp {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 90px;
    z-index: 9998;
    outline: none;
    border: none;
    background-color: #FFF;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.5s;
    width: 50px;
    height: 50px;
    padding: 1px;
    text-align: center;
    box-shadow: #999 -2px 0px 8px 1px;
}
#WApp:hover {
    background-color: #CCC;
}

/* ===========================================
   Seções genéricas (Elementor herda estas)
   =========================================== */
.ip-section-light {
    width: 100%;
    height: auto;
    background-color: #FFF;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 60px;
}
.ip-section-dark {
    width: 100%;
    height: auto;
    background-color: #F2F2F2;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 60px;
}
.ip-section-title {
    font: bold 60px Arial;
    color: #900;
    text-align: center;
    text-transform: uppercase;
}
@media screen and (max-width: 1024px) {
    .ip-section-title { font: bold 36px Arial; }
}
.ip-content-block {
    width: 60%;
    margin: 50px auto 0;
    text-align: justify;
    font: 16px Arial;
    color: #000;
}
@media screen and (max-width: 1024px) {
    .ip-content-block { width: 80%; }
}

/* ===========================================
   Accordion (Produtos e Serviços)
   Usar com Elementor HTML Widget ou Accordion
   =========================================== */
.ip-accordion .tab {
    position: relative;
    margin-bottom: 1px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: #FFF;
    overflow: hidden;
}
.ip-accordion .tab input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
.ip-accordion .tab label {
    position: relative;
    display: block;
    padding: 18px 0 18px 20px;
    background-color: #900;
    height: 24px;
    cursor: pointer;
    font: bold 24px Arial;
    text-transform: uppercase;
    text-align: left;
}
.ip-accordion .tab-content {
    max-height: 0;
    overflow: hidden;
    background: #FFF;
    transition: max-height 0.5s;
    font: 16px Arial;
    color: #000;
    text-align: justify;
}
.ip-accordion .tab-content p { margin: 1em; }
.ip-accordion .tab input:checked ~ .tab-content { max-height: 150vh; }
.ip-accordion .tab label::after {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    padding: 18px 0 18px 1px;
    text-align: center;
    transition: all 0.5s;
}
.ip-accordion .tab input[type=checkbox] + label::after { content: "+"; }
.ip-accordion .tab input[type=checkbox]:checked + label::after { transform: rotate(315deg); }
@media screen and (min-width: 1024px) {
    .ip-accordion .tab { width: 60%; }
}
@media screen and (max-width: 425px) {
    .ip-accordion .tab label { font: bold 20px Arial; }
}
@media screen and (max-width: 375px) {
    .ip-accordion .tab label { font: bold 18px Arial; }
}
@media screen and (max-width: 320px) {
    .ip-accordion .tab label { font: bold 14px Arial; }
}

/* ===========================================
   Clientes — logos
   =========================================== */
.ip-clients-grid {
    width: 80%;
    margin: 50px auto 0;
    text-align: center;
}
.ip-clients-grid img {
    width: 100px;
    padding: 0 40px;
}
@media screen and (min-width: 1024px) {
    .ip-clients-grid { width: 50%; }
}

/* ===========================================
   Fotos — iframe social feed
   =========================================== */
.ip-photos-frame {
    width: 80%;
    height: 768px;
    margin: 20px auto 0;
}
@media screen and (max-width: 2560px) {
    .ip-photos-frame { width: 1152px; height: 768px; }
}
@media screen and (max-width: 1440px) {
    .ip-photos-frame { width: 80%; height: 768px; }
}
@media screen and (max-width: 1024px) {
    .ip-photos-frame { width: 100%; height: 1128px; }
}
@media screen and (max-width: 425px) {
    .ip-photos-frame { width: 100%; height: 2248px; }
}

/* ===========================================
   Formulário (caso WPForms precise override)
   =========================================== */
.ip-form-wrapper {
    width: 80%;
    margin: 50px auto 0;
    font: 16px Arial;
    color: #000;
    text-align: justify;
}
@media screen and (min-width: 1024px) {
    .ip-form-wrapper { width: 60%; }
}
.ip-form-wrapper .wpforms-container input[type=text],
.ip-form-wrapper .wpforms-container input[type=email],
.ip-form-wrapper .wpforms-container input[type=tel],
.ip-form-wrapper .wpforms-container textarea {
    border: solid 3px #F2F2F2;
    border-radius: 6px;
    padding: 5px;
    transition: 0.5s;
    font: 16px Arial;
    color: #000;
    resize: none;
}
.ip-form-wrapper .wpforms-container input:focus,
.ip-form-wrapper .wpforms-container textarea:focus {
    background-color: #FFF;
    border: solid 3px #900;
}
.ip-form-wrapper .wpforms-container .wpforms-submit {
    background-color: #FFF;
    color: #900;
    font: bold 16px Arial;
    border: #900 solid 1px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.5s;
    padding: 6px 24px;
}
.ip-form-wrapper .wpforms-container .wpforms-submit:hover {
    background-color: #900;
    color: #FFF;
    border: none;
}

/* ===========================================
   Botões "Saiba mais / Ver menos"
   =========================================== */
.show_button, .hide_button {
    background-color: #FFF;
    border: solid 1px #900;
    color: #900;
    text-align: center;
    display: block;
    font: 16px Arial;
    height: 40px;
    width: 160px;
    transition: 0.5s;
    border-radius: 5px;
    margin: 10px auto 0;
    cursor: pointer;
}
.hide_button { display: none; margin-top: 20px; }
.show_button:hover, .hide_button:hover {
    background-color: #900;
    color: #FFF;
    border: solid 1px #000;
}
@media screen and (min-width: 1024px) {
    .show_button, .hide_button { display: none; }
}

/* ===========================================
   Footer
   =========================================== */
#ip-footer {
    width: 100%;
    background-color: #900;
    color: #FFF;
    padding: 50px 0 60px;
    position: relative;
}
#ip-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 30px;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col-brand img { max-width: 200px; }
.footer-col-brand .footer-social {
    margin-top: 15px;
}
.footer-col-brand .footer-social a { margin-right: 8px; }
.footer-col-about {
    font: 12px Arial;
    color: #CCC;
    text-align: justify;
    padding-top: 20px;
    border-top: solid 1px #FFF;
    max-width: 280px;
}
.footer-col-info {
    font: 12px Arial;
    color: #CCC;
    text-align: left;
}
.footer-col-info .footer-heading,
.footer-col-map .footer-heading {
    font: bold 14px Arial;
    color: #FFF;
    text-decoration: underline;
    margin-bottom: 15px;
}
.footer-col-info a {
    font: 12px Arial;
    color: #CCC;
    text-decoration: none;
}
.footer-col-info a:hover { color: #FFF; }
.footer-col-info .footer-phone {
    font: bold 16px Arial;
    color: #F2F2F2;
}
.footer-col-info .footer-email {
    font: bold 14px Arial;
    color: #F2F2F2;
}
.footer-col-map {
    font: 12px Arial;
    color: #CCC;
}
.footer-col-map a {
    font: 12px Arial;
    color: #CCC;
    text-decoration: none;
    display: block;
    line-height: 1.8;
}
.footer-col-map a:hover { color: #FFF; }

@media screen and (max-width: 768px) {
    #ip-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col { text-align: center; }
    .footer-col-about { text-align: center; }
    .footer-col-info { text-align: center; }
    .footer-col-map { display: none; }
}

/* Cartões aceitos */
#ip-cards {
    width: 100%;
    height: 50px;
    text-align: center;
    background-color: #900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Copyright */
#ip-copyright {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    padding: 18px 0;
    font: 12px Arial;
    color: #CCC;
    background-color: darkred;
}

/* ===========================================
   Cookie consent
   =========================================== */
#cookie-message {
    width: 100%;
    padding: 15px 10px;
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    text-align: center;
    font: bold 16px Arial;
    color: #FFF;
    background-color: #900;
    z-index: 99999;
}
#accept {
    border: none;
    outline: none;
    background-color: #FFF;
    color: #900;
    border-radius: 5px;
    font: bold 16px Arial;
    padding: 6px 20px;
    cursor: pointer;
    margin-left: 15px;
    box-shadow: #999 -2px 0px 8px 1px;
    transition: 0.3s;
}
#accept:hover {
    background-color: #F2F2F2;
}

/* ===========================================
   WordPress / Elementor overrides
   =========================================== */
body.page-template-default { padding-top: 50px; }
.elementor-page { padding-top: 50px; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }

/* Highlight color */
.ip-highlight { color: #900; }

/* Link padrão no conteúdo */
.ip-content-block a { color: #900; text-decoration: underline; }
.ip-content-block a:hover { color: #600; }

/* Admin bar offset */
.admin-bar #ip-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #ip-header { top: 46px; }
}
