/*
Theme Name: Madeireira Ipê
Theme URI: https://madeireiraipe.com.br
Author: Luiz Eduardo Teixeira Malta
Author URI: https://madeireiraipe.com.br
Description: Tema para Madeireira Ipê - Salvador/BA
Version: 1.0
License: GPL v2 or later
Text Domain: madeireira-ipe
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f7e2bc;
    --secondary-color: #d4b589;
    --dark-color: #2c2c2c;
    --light-color: #fef5e7;
    --white: #ffffff;
    --text-color: #333;
    --hover-color: #b8935e;
}

html, body {
    width: 100%;
    height: auto;
}

body {
    font-family: 'Verdana', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 182px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Franklin Gothic Medium Condensed', 'Franklin Gothic Condensed', 'Trebuchet MS', sans-serif;
    font-style: italic;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* TOP BAR */
.top-bar {
    background: linear-gradient(135deg, #f7e2bc, #d4b589);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--dark-color);
    font-size: 16px;
}

.social-links a:hover {
    color: var(--white);
}

/* HEADER */
.main-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--hover-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #ffffff;
    z-index: 1;
    margin-bottom: 0;
}

.slider-container {
    position: relative;
    height: 100%;
    background: #ffffff;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active,
.indicator:hover {
    background: var(--white);
}

/* PRODUCTS SECTION */
.products-highlight {
    padding: 80px 0;
    background: var(--light-color);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.products-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-column {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.product-icon {
    font-size: 48px;
    color: var(--hover-color);
    margin-bottom: 20px;
}

.product-column h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-column p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.btn-product {
    display: inline-block;
    padding: 10px 25px;
    background: var(--hover-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
}

.btn-product:hover {
    background: var(--dark-color);
}

/* BRANDS SECTION */
.brands-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.brands-slider-wrapper {
    margin-top: 50px;
    overflow: hidden;
    position: relative;
}

.brands-slider-track {
    display: flex;
    gap: 60px;
    animation: scroll 15s linear infinite;
}

.brands-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-slide {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--light-color);
    border-radius: 10px;
}

.brand-slide img {
    max-width: 150px;
    height: auto;
    opacity: 0.8;
}

.brand-slide:hover img {
    opacity: 1;
}

/* LOCATIONS SECTION */
.locations-section {
    padding: 80px 0;
    background: var(--light-color);
}

.location-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin: 50px 0;
    align-items: start;
}

.location-image-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    height: 300px;
}

.location-image-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.location-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.location-icon {
    font-size: 48px;
    color: var(--hover-color);
    margin-bottom: 20px;
}

.location-card h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.location-card p {
    color: var(--text-color);
    line-height: 1.8;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-card i {
    font-size: 40px;
    color: var(--hover-color);
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-color);
    line-height: 1.8;
}

/* QUOTE SECTION */
.quote-section {
    padding: 80px 0;
    background: var(--white);
}

.quote-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 40px;
}

.quote-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Verdana', Arial, sans-serif;
}

.quote-form input:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--hover-color);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--hover-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--dark-color);
}

/* FOOTER */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-top {
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-phone {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-phone i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 968px) {
    body { padding-top: 160px; }
    .mobile-menu-toggle { display: block; }
    .nav-menu { flex-direction: column; gap: 15px; }
    .products-columns { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .location-main-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 350px; }
}

@media (max-width: 768px) {
    body { padding-top: 140px; }
    .section-title { font-size: 28px; }
    .products-columns { grid-template-columns: 1fr; }
    .hero-slider { height: 280px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 25px; bottom: 20px; right: 20px; }
    .main-nav ul { gap: 15px; }
}
