/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 85px; /* evita sobreposição da navbar */
    background: linear-gradient(135deg, #001f3f, #007bff, #00c6ff);
    background-attachment: fixed; /* faz o degradê acompanhar o scroll */
    background-size: cover;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #003399, #007BFF);
    color: #fff;
    backdrop-filter: blur(10px);
    border-radius: 0 0 25px 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: background 0.3s ease;
}

.logo img {
    width: 130px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: #ffdd00e8; /* amarelo da logo */
    transform: translateY(-3px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffde00;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Ícone do menu mobile */
.menu-icon {
    display: none;
    cursor: pointer;
}
.menu-icon i {
    font-size: 26px;
    color: #fff;
}

/* ================= MENU MOBILE ================= */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, #003399, #007BFF);
        border-radius: 0 0 25px 25px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        padding: 1rem 0;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: all 1.0s ease;
        border-radius: 10%;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-icon {
        display: block;
    }
}

/* ================= HERO ================= */
.hero {
    text-align: center;
    padding: 180px 20px 60px;
}

.hero h1 {
    font-size: 3rem;
    color: #fafafa;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.hero .btn {
    padding: 0.75rem 1.5rem;
    background-color: #ffde00;
    color: #fefeff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.hero .btn:hover {
    background-color: #f1c500;
    transform: translateY(-3px);
}

/* ================= FERRAMENTAS ================= */
.ferramentas {
    padding: 4rem 2rem;
    text-align: center;
}

.ferramentas h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.ferramentas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ferramenta-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ferramenta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.ferramenta-card h3 {
    margin-bottom: 1rem;
    color: #007BFF;
}

.ferramenta-card p {
    margin-bottom: 1.5rem;
    color: #555;
}

.ferramenta-card .btn {
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: #fff;
    border-radius: 6px;
}
.ferramenta-card .btn:hover {
    background-color: #0056b3;
}

/*carrosel*/
  
/* Container principal para alinhar os três carrosséis em linha */
.carousel-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Estilo para cada carrossel */
.carousel-container, .carousel-container2, .carousel-container3 {
  width: 100%;
  overflow: hidden;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-image {
  width: 100%;
  flex: 0 0 100%;
  cursor: pointer;
  border-radius: 15px;
  z-index: 100;
}

@media (min-width: 768px) {
    .carousel-wrapper > div {
        width: 32%;
    }
}
@media (max-width: 767px) {
    .carousel-wrapper > .carousel-container2,
    .carousel-wrapper > .carousel-container3 {
        display: none;
    }
}

/* ================= PLANO DE CORTE ================= */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.titulop {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #043fff;
}

#pieceForm {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

#pieceForm input,
#pieceForm select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-size: 16px;
    width: 100%;
    max-width: 200px;
}

button {
    background-color: #0447ff;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
button:hover {
    background-color: #032ccc;
    transform: translateY(-2px);
}

/* ================= FITAMENTO ================= */
.fitamento-options {
    display: flex;
    gap: 15px;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.fitamento-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}
.fitamento-options input[type="checkbox"] {
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 5px;
    accent-color: #043fff;
}

/* ================= TABELA ================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px;
    border: 1px solid #ddd;
}
th {
    background-color: #043fff;
    color: #fff;
}
tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
    #pieceForm {
        flex-direction: column;
    }
    button {
        width: 100%;
    }
    .fitamento-options {
        flex-direction: column;
    }
    th, td {
        font-size: 14px;
        padding: 8px;
    }
}

/* ================= PDF E PRODUTOS ================= */
.pdf-viewer {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100% - 75px);
    border: none;
    z-index: 1;
}

.pdfbutton button {
    background-color: #007BFF;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: 0.3s;
}
.pdfbutton button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.pdfbutton button:active {
    transform: translateY(1px);
    background-color: #004494;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.product-item {
    flex: 1 1 200px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.product-item img {
    width: 100%;
    height: auto;
}


/* 🦋 Footer atualizado */
footer {
  background: linear-gradient(135deg, #003399, #007bff);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 3rem;
}

footer .footer-text {
  color: white;
  margin-bottom: 20px;
}

footer .footer-section h4 {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  margin: 10px 0;
}

footer .footer-section p {
  color: #f0f0f0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 16px;
}

:root{
--bg1: #0f172a;
--bg2: #0ea5e9;
--card-bg: rgba(255,255,255,0.06);
--glass: rgba(255,255,255,0.06);
--accent: rgba(255,255,255,0.9);
}
*{box-sizing:border-box;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial}
html,body{height:100%;margin:0}
body{
background: linear-gradient(135deg, #001f3f, #007bff, #00c6ff);
color:#e6f6ff;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
padding:32px;
}
.wrap{max-width:1100px;margin:0 auto}
header{
display:flex;align-items:center;gap:18px;margin-bottom:22px
}
.logo{
width:72px;height:72px;border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,0.06),rgba(255,255,255,0.02));display:flex;align-items:center;justify-content:center;font-size:28px;box-shadow:0 6px 18px rgba(8,32,50,0.35)
}
h1{margin:0;font-size:22px;letter-spacing:0.3px}
p.lead{margin:6px 0 0;color:rgba(230,246,255,0.85)}


.controls{display:flex;gap:12px;margin-top:18px}
.search{flex:1;min-width:220px}
input[type="search"]{width:100%;padding:12px 14px;border-radius:10px;border:0;background:rgba(255,255,255,0.06);color:var(--accent);outline:none;font-size:14px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:22px}


.card{background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));padding:18px;border-radius:14px;backdrop-filter: blur(6px);box-shadow:0 8px 30px rgba(2,6,23,0.35);transition:transform .18s ease,box-shadow .18s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(2,6,23,0.45)}
.card h3{margin:0 0 8px;display:flex;align-items:center;gap:10px;font-size:16px}
.day-badge{background:linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));padding:8px 12px;border-radius:999px;font-weight:600}
ul.routes{margin:8px 0 0;padding-left:18px}
ul.routes li{margin:6px 0;line-height:1.25;color:rgba(230,246,255,0.95)}


.small{font-size:13px;color:rgba(230,246,255,0.7)}
footer{margin-top:26px;color:rgba(230,246,255,0.6);font-size:13px}


@media (max-width:520px){header{flex-direction:column;align-items:flex-start}.controls{flex-direction:column}}
/* ===== Fundo corrigido sem sombra extra ===== */
body {
background: linear-gradient(135deg, #001f3f, #007bff, #00c6ff);
margin: 0;
padding: 0;
min-height: 100vh;
}


/* ===== Remoção de qualquer sombra no fim da página ===== */
body::after {
display: none !important;
}

