/*
Theme Name:  Classic well automation
Theme URI:   https://cwa.co.mz
Author:      Lucas Fulano
Author URI:  https: //github.com/waplaf
Description: Tema WordPress baseado no layout Rockwell Automation com Tailwind CSS.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rockwell
Tags:        custom-menu, custom-logo, full-width-template, threaded-comments
*/

/* ── Reset base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Clip hexágono (logo) ── */
.clip-hex {
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

/* ── Navbar ── */
.nav-btn {
    height: 64px;
    padding: 0 16px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 3px solid transparent;
    transition: all .15s;
    white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.open {
    color: #CC0000;
    border-bottom-color: #CC0000;
}

/* ── Dropdown ── */
.dropdown {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #CC0000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    padding: 24px;
    gap: 24px;
    min-width: 440px;
    z-index: 200;
}

.dropdown.show {
    display: flex;
}

.drop-link:hover {
    color: #CC0000;
}

/* ── Quick links ── */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.ql-item:hover {
    border-bottom-color: #CC0000;
}

.ql-item:hover .ql-svg {
    stroke: #CC0000;
}

.ql-item:hover .ql-label {
    color: #CC0000;
}

/* ── Cards ── */
.card {
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.card:hover .card-img-inner {
    transform: scale(1.06);
}

.card:hover .arrow-icon {
    transform: translateX(3px);
}

.card-img-inner {
    transition: transform .3s;
}

.arrow-icon {
    transition: transform .15s;
}

/* ── Hero ── */
.hero-overlay {
    background: linear-gradient(105deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 40%, rgba(0, 0, 0, .15) 70%, transparent 85%);
}

.hero-bg {
    transition: opacity .4s;
}

.dot {
    height: 3px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all .25s;
    background: rgba(255, 255, 255, .35);
}

.dot.active {
    background: #fff;
    width: 28px !important;
}

/* ── Tabs ── */
.tab-btn.active,
.tab-btn:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
    font-weight: 700;
}

/* ── Footer ── */
.footer-link:hover {
    color: #CC0000;
}

/* ── Decorativos ── */
.tagline-bg {
    position: relative;
    overflow: hidden;
}

.tagline-bg::after {
    content: "×";
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 420px;
    font-weight: 900;
    color: #000;
    opacity: .03;
    pointer-events: none;
    line-height: 1;
}

.news-bg {
    position: relative;
    overflow: hidden;
}

.news-bg::after {
    content: "×";
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 440px;
    font-weight: 900;
    color: #000;
    opacity: .035;
    pointer-events: none;
    line-height: 1;
}

/* ── Photo mosaic clips ── */
.photo-a {
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.photo-b {
    clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%);
}

/* ── Responsivo ── */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
    }

    .photo-mosaic {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .nav-links-wrap,
    .nav-icons-wrap {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .topbar-wrap {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}