
/*
Theme Name: JY Transport Premium v4
Theme URI: https://jy-transport.com
Author: JY Transport
Description: Lightweight logistics WordPress theme with hero slider, WhatsApp, quote and contact forms, organized pages, and transparent content panels.
Version: 4.0
Text Domain: jytransport
*/

/* Base Reset */
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;color:#0f172a;background:#f6f8fb}
a{color:#0ea5e9;text-decoration:none} a:hover{opacity:.9}
.container{width:min(1200px,92%);margin:0 auto}
.btn{display:inline-block;padding:.8rem 1.1rem;border-radius:14px;background:#0ea5e9;color:#fff;font-weight:600;transition:transform .2s,box-shadow .2s}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(14,165,233,.25)}
.btn-outline{background:transparent;border:2px solid #0ea5e9;color:#0ea5e9}
.badge{padding:.25rem .6rem;background:#e2f6ff;border-radius:999px;color:#0369a1;font-weight:600;font-size:.8rem}

/* Header */
.site-header{position:sticky;top:0;background:rgba(255,255,255,.9);backdrop-filter:saturate(140%) blur(8px);z-index:1000;border-bottom:1px solid rgba(2,6,23,.06)}
.brand{display:flex;align-items:center;gap:.7rem}
.brand img{height:42px;width:auto}
.brand .title{font-weight:800;letter-spacing:.2px}
.nav{display:flex;align-items:center;gap:1rem}
.nav a{padding:.8rem .6rem;border-radius:10px;color:#0f172a;font-weight:600}
.nav a.active{background:#eaf6ff}
.header-cta{display:flex;gap:.6rem;align-items:center}

/* Hero Slider */
.hero{position:relative;min-height:76vh;display:grid;place-items:center;overflow:hidden}
.slide{position:absolute;inset:0;background-position:center;background-size:cover;opacity:0;transform:scale(1.06);transition:opacity 900ms ease, transform 12000ms ease}
.slide.active{opacity:1;transform:scale(1)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,6,23,.25),rgba(2,6,23,.50))}
.hero-content{position:relative;z-index:2;text-align:center;color:#fff;padding:2rem}
.hero h1{font-size:clamp(2rem,4vw,3rem);margin:.4rem 0 1rem}
.hero p{opacity:.95;max-width:900px;margin:0 auto 1.2rem}
.hero .cta{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}

/* Transparent cards */
.section{padding:64px 0;position:relative}
.card{background:rgba(255,255,255,.78);border:1px solid rgba(2,6,23,.06);border-radius:18px;padding:22px;box-shadow:0 10px 30px rgba(2,6,23,.06)}
.grid{display:grid;gap:20px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.icon{width:42px;height:42px;border-radius:10px;background:#e0f2fe;display:grid;place-items:center;font-weight:800;color:#0369a1}

/* Footer */
.site-footer{background:#0b1220;color:#cbd5e1;padding:42px 0;margin-top:30px}
.site-footer a{color:#93c5fd}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}
.copy{margin-top:18px;border-top:1px solid rgba(255,255,255,.08);padding-top:12px;text-align:center;font-size:.9rem;color:#94a3b8}

/* Forms */
form .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
form .row.single{grid-template-columns:1fr}
input,textarea,select{width:100%;padding:.9rem;border-radius:12px;border:1px solid #cbd5e1;background:#fff}
textarea{min-height:140px;resize:vertical}
label{font-size:.9rem;color:#334155;font-weight:600;margin:.2rem 0 .3rem;display:block}

/* WhatsApp floating */
.whatsapp-float{position:fixed;right:16px;bottom:16px;z-index:1100}
.whatsapp-float a{display:inline-grid;place-items:center;width:54px;height:54px;background:#22c55e;border-radius:50%;color:#fff;font-weight:900;box-shadow:0 10px 22px rgba(34,197,94,.35)}

/* Responsive */
@media (max-width: 720px){
 .nav{display:none}
 .site-header .menu-toggle{display:inline-block}
 .hero{min-height:68vh}
}


/* Modern Slider Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
    background: #000;
}
.slider-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
    height: 100%;
}
.slide {
    min-width: 100%;
    height: 100%;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}
.slider-controls span {
    cursor: pointer;
    font-size: 2rem;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    border-radius: 50%;
    user-select: none;
    transition: background 0.3s;
}
.slider-controls span:hover {
    background: rgba(0,0,0,0.8);
}


/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Quick Quote Form */
.quick-quote {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
.quick-quote h3 {
    margin-top: 0;
    font-weight: 600;
}
.quick-quote input, .quick-quote select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.quick-quote button {
    background: #0ea5e9;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.quick-quote button:hover {
    background: #0284c7;
}


/* Fundos diferenciados para seções */
.section-locals {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/locals-24h.webp') center/cover no-repeat;
    color: #fff;
}
.section-gps {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/gps.webp') center/cover no-repeat;
    color: #fff;
}
.section-qa {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/qa.webp') center/cover no-repeat;
    color: #fff;
}


/* Fundos diferenciados para seções */
.section-locals {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/locals-24h.webp') center/cover no-repeat;
    color: #fff;
}
.section-gps {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/gps.webp') center/cover no-repeat;
    color: #fff;
}
.section-qa {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/qa.webp') center/cover no-repeat;
    color: #fff;
}


/* Overlay de boas-vindas */
#welcome-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.welcome-circle {
  background: #ffcc00;
  padding: 50px;
  border-radius: 50%;
  text-align: center;
}
.welcome-text {
  font-size: 1.8rem;
  color: #000;
  font-weight: bold;
}

/* Cursor personalizado */
#custom-cursor {
  position: fixed;
  width: 20px; height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffcc00;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
}
body:hover #custom-cursor {
  transform: scale(1.2);
}



/* Overlay de boas-vindas elegante */
#welcome-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.welcome-text {
  font-size: 2.5rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.6);
  animation: glowText 2s ease-in-out infinite alternate;
}
@keyframes glowText {
  from { text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.3); }
  to { text-shadow: 0 0 20px rgba(255,255,255,1), 0 0 40px rgba(255,255,255,0.8); }
}
