/* =========================================================================
   P&A PERFURATRIZES - CLEAN & READABLE STYLESHEET
   ========================================================================= */

:root {
    /* Bright, clean colors */
    --clr-primary: #0265DC; /* Stronger corporate blue */
    --clr-primary-dark: #014392;
    --clr-primary-light: #e6f0fa;
    --clr-accent: #f59e0b;
    
    --clr-dark: #0f172a;
    --clr-dark-bg: #1e293b;
    
    --clr-light: #ffffff;
    --clr-bg: #f8fafc;
    /* High contrast text grays */
    --clr-text-main: #334155; 
    --clr-text-light: #64748b;
    --clr-gray-light: #e2e8f0;
    --clr-border: #cbd5e1;

    /* Fonts increased for readability */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Features */
    --container-max: 1280px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

/* ================== RESET & BASE ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 17px; /* Increased base font size for better reading */
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--clr-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ================== UTILITIES ================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 5rem 0; }
.bg-light { background-color: var(--clr-light); }
.bg-dark { background-color: var(--clr-dark); color: white; }
.bg-gray { background-color: var(--clr-bg); }

.text-center { text-align: center; }
.text-accent { color: var(--clr-primary); }
.text-white { color: white !important; }
.text-light { color: #cbd5e1; }
.text-gray { color: var(--clr-text-light); }

.mb-5 { margin-bottom: 3.5rem; }
.mt-5 { margin-top: 3.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 101, 220, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}
.btn-outline:hover {
    background-color: var(--clr-primary-light);
}

.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* Typography */
.section-title { font-size: 2.75rem; margin-bottom: 1rem; }
.lead { font-size: 1.25rem; color: var(--clr-text-light); margin-bottom: 2rem; font-weight: 400; }

/* ================== HEADER & TOPBAR ================== */
.topbar {
    background-color: var(--clr-dark-bg);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    transition: var(--transition);
}
.topbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left { display: flex; gap: 1.5rem; align-items: center; }
.topbar-left i { color: var(--clr-primary); margin-right: 0.3rem;}
.topbar-right { display: flex; gap: 1.5rem; align-items: center; }
.topbar-socials { display: flex; gap: 0.8rem; }
.topbar-socials a { color: #cbd5e1; font-size: 1rem; }
.topbar-socials a:hover { color: white; }
.lang-selector span { cursor: pointer; padding: 0 0.3rem; transition: color 0.2s;}
.lang-selector span.active, .lang-selector span:hover { color: white; font-weight: 600; }
.lang-separator { color: #475569; }

.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 0;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar .nav-container { padding: 1rem 2rem; transition: var(--transition); }
.navbar.scrolled .topbar { display: none; }
.navbar.scrolled .subnav-industrial { display: none; }
.navbar.scrolled .nav-container { padding: 0.8rem 2rem; }

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 45px; }

.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu ul { display: flex; gap: 1rem; align-items: center; }
.nav-menu .btn { padding: 0.4rem 1.2rem; font-size: 0.95rem; border-radius: 4px; }
.nav-link { font-weight: 600; font-size: 1rem; color: var(--clr-text-main); }
.nav-link:hover, .nav-link.active { color: var(--clr-primary); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--clr-primary); }

/* ================== SWIPER HERO (NEW LOGIC) ================== */
.hero-slider {
    width: 100%;
    height: 90vh; /* Good display aspect */
    margin-top: 110px; /* header offset */
    position: relative;
    background: var(--clr-dark); /* fallback */
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Removed thick glass, used clean dark overlay to ensure text contrast */
.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Deep dark blue overlay */
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.slide-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.slide-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Swiper navigation colors */
.swiper-button-next, .swiper-button-prev { color: white !important; }
.swiper-pagination-bullet-active { background: var(--clr-primary) !important; }

/* ================== EMPRESA ================== */
.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.empresa-text p { margin-bottom: 1.5rem; font-size: 1.1rem; }

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}
.check-list i { color: var(--clr-primary); font-size: 1.3rem; }

.empresa-image img { border-radius: 8px; box-shadow: var(--shadow-lg); width: 100%; }

/* ================== DIFERENCIAIS ================== */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Clean cards instead of glass */
.clean-card {
    background: white;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.clean-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--clr-primary-light); }

.diff-icon {
    width: 65px; height: 65px;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; margin-bottom: 1.5rem;
}

.clean-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.clean-card p { color: var(--clr-text-light); }

/* ================== PRODUTOS ================== */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.produto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
}

.produto-img {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.produto-img img { width: 100%; height: auto; object-fit: contain; display: block; }

.produto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.produto-card:hover .produto-overlay {
    opacity: 1;
}

.produto-info { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.produto-info h3 { font-size: 1.6rem; color: var(--clr-primary); margin-bottom: 0.5rem; }
.produto-info p { color: var(--clr-text-main); margin-bottom: 1.5rem; flex-grow: 1; }

/* ================== CONTATO ================== */
.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-border);
    overflow: hidden;
}

.contato-info { padding: 4rem; background: var(--clr-bg); border-right: 1px solid var(--clr-border); }
.contato-info h2 { margin-bottom: 1rem; }
.contato-list { margin-top: 2rem; }
.contato-list li { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.5rem; }
.contato-list i { font-size: 1.5rem; color: var(--clr-primary); margin-top: 0.2rem; }
.contato-list span { display: block; font-size: 0.9rem; color: var(--clr-text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.contato-list strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--clr-dark); }

.contato-form { padding: 4rem; }
.contato-form h3 { font-size: 2rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--clr-text-main); }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem;
    border: 1px solid var(--clr-border); border-radius: 6px;
    font-family: var(--font-body); font-size: 1rem; background: #fff;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--clr-primary); box-shadow: 0 0 0 3px var(--clr-primary-light);
}

/* ================== TABELAS TÉCNICAS (CHIC) ================== */
.table-wrapper {
    overflow-x: auto;
    margin-top: 4rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--clr-border);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.tech-table th {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 1.2rem;
    text-align: left;
    border-bottom: 2px solid var(--clr-primary);
}

.tech-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-light);
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table tbody tr:hover {
    background-color: #f8fafc; 
}

.tech-table td:first-child {
    font-weight: 600;
    color: var(--clr-dark);
    width: 40%;
}

/* ================== DIFERENCIAIS ================== */
.diferenciais-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 992px) {
    .diferenciais-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
.diferencial-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.dif-icon-box {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.dif-icon-box i {
    font-size: 2.2rem;
    color: var(--clr-dark);
}
.dif-content {
    flex-grow: 1;
}
.dif-content h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}
.dif-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ================== FOOTER ================== */
footer { background-color: var(--clr-dark); color: white; padding-top: 4rem; }
.footer-top { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 1.5rem; }
.footer-brand p { color: #94a3b8; max-width: 400px; margin-bottom: 1.5rem; font-size: 1rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 45px; height: 45px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 1.2rem; }
.social-links a:hover { background: var(--clr-primary); }

.footer-col h4 { font-family: var(--font-heading); color: white; font-size: 1.25rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--clr-primary); border-radius: 2px; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #94a3b8; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-links a:hover { color: var(--clr-primary); transform: translateX(5px); }
.footer-contact li { display: flex; gap: 1rem; margin-bottom: 1.2rem; color: #94a3b8; align-items: flex-start; }
.footer-contact i { color: var(--clr-primary); font-size: 1.2rem; margin-top: 0.2rem; }

.footer-bottom { padding: 2rem 0; text-align: center; color: #64748b; font-size: 0.95rem; }

/* ================== NEW PRESENTATION SPEC PAGES ================== */
.machine-hero {
    position: relative;
    min-height: 50vh;
    display: flex; align-items: center;
    background: var(--clr-bg);
    padding-top: 115px;
    overflow: hidden;
    border-bottom: 1px solid var(--clr-border);
}
.machine-hero img {
    position: absolute;
    right: 5%; bottom: 0;
    max-height: 90%; object-fit: contain;
    z-index: 1;
}
.machine-hero-content {
    position: relative; z-index: 2; max-width: 600px; padding: 4rem 0;
}
.machine-hero-content h1 { font-size: 4rem; color: var(--clr-dark); margin-bottom: 0.5rem; line-height: 1; }
.machine-hero-content p { color: var(--clr-text-main); font-size: 1.2rem; }

.specs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem;
}
.spec-item {
    background: white; padding: 2rem; border-radius: 8px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--clr-border);
    border-left: 5px solid var(--clr-primary);
}
.spec-item span { display: block; font-size: 0.85rem; color: var(--clr-text-light); text-transform: uppercase; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 0.5px; }
.spec-item strong { font-family: var(--font-heading); font-size: 1.4rem; color: var(--clr-dark); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 2rem 0; border-top: 1px solid var(--clr-border); margin-top: 4rem; }


/* ================== ANIMATIONS ================== */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: all 0.6s ease; }
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ================== FLOATING & UTILS ================== */
.floating-wa {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 65px; height: 65px;
    background: #25D366; color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000; transition: var(--transition);
}
.floating-wa:hover { transform: scale(1.1); background: #128C7E; color: white; }

.floating-btt {
    position: fixed; bottom: 2rem; left: 2rem;
    width: 50px; height: 50px;
    background: var(--clr-primary); color: white;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 1000; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.floating-btt.show { opacity: 1; visibility: visible; }
.floating-btt:hover { background: var(--clr-dark); transform: translateY(-3px); }

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .empresa-grid, .contato-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .contato-info { border-right: none; border-bottom: 1px solid var(--clr-border); }
    .machine-hero img { opacity: 0.3; right: -20%; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .topbar { display: none; } /* Hide topbar on mobile for cleaner look */
    .nav-menu {
        position: fixed; top: 75px; left: -100%;
        width: 100%; background: white;
        flex-direction: column; padding: 2rem;
        box-shadow: var(--shadow-md); transition: 0.3s ease;
        border-top: 1px solid var(--clr-border);
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; width: 100%; gap: 1.5rem; margin-bottom: 2rem; }
    .d-mobile-none { display: none; }
    .section { padding: 4rem 0; }
    .slide-content h1 { font-size: 2.5rem; }
    .slide-content p { font-size: 1.1rem; }
    .contato-info, .contato-form { padding: 2rem; }
    .pagination { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
}

.subnav-industrial a:hover { color: var(--clr-primary) !important; text-decoration: underline !important; }

@media (min-width: 993px) { .d-desktop-none { display: none !important; } }
@media (max-width: 992px) { .d-desktop-none { display: block !important; } }
