/* ============================================
   JADLOG - CLONE OFICIAL
   Cores e tipografia idênticas ao site oficial
   ============================================ */

:root {
    --jadlog-red: #E30613;
    --jadlog-red-dark: #B30410;
    --jadlog-red-light: #FF1A2C;
    --jadlog-black: #1A1A1A;
    --jadlog-gray-dark: #4A4A4A;
    --jadlog-gray: #6E6E6E;
    --jadlog-gray-light: #C4C4C4;
    --jadlog-gray-bg: #F5F5F5;
    --jadlog-white: #FFFFFF;
    --jadlog-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --jadlog-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --jadlog-font: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--jadlog-font);
    color: var(--jadlog-black);
    background: var(--jadlog-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .2s;
}

img {
    max-width: 100%;
    display: block;
}

ul { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============== HEADER ============== */
.site-header {
    background: var(--jadlog-white);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-desktop { height: 50px; }
.logo-mobile { height: 40px; display: none; }

.slogan {
    color: var(--jadlog-red);
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    padding-left: 20px;
    border-left: 1px solid #ddd;
    margin-left: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--jadlog-gray-dark);
    cursor: pointer;
}

.language-selector:hover { color: var(--jadlog-red); }

.search-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jadlog-gray);
    cursor: pointer;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jadlog-white);
    background: var(--jadlog-red);
    border-radius: 50%;
    font-size: 14px;
    transition: background .2s, transform .2s;
}

.social-icons a:hover {
    background: var(--jadlog-red-dark);
    transform: translateY(-2px);
}

.search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
    background: var(--jadlog-gray-bg);
}

.search-bar.open { max-height: 80px; }

.search-form {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 0;
    background: var(--jadlog-white);
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--jadlog-black);
}

.search-input::placeholder { color: var(--jadlog-gray-light); }

.search-btn {
    width: 50px;
    height: 44px;
    background: var(--jadlog-red);
    color: var(--jadlog-white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
}

.search-btn:hover { background: var(--jadlog-red-dark); }

/* ============== TRACKING BAR ============== */
.tracking-bar {
    background: linear-gradient(135deg, var(--jadlog-red) 0%, var(--jadlog-red-dark) 100%);
    padding: 14px 0;
}

.tracking-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tracking-icon-area {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--jadlog-white);
}

.tracking-icon-circle {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tracking-label {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.tracking-form {
    flex: 1;
    display: flex;
    background: var(--jadlog-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tracking-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 14px;
    font-family: inherit;
    color: var(--jadlog-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-form input::placeholder {
    color: var(--jadlog-gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.tracking-submit {
    background: var(--jadlog-red);
    color: var(--jadlog-white);
    font-weight: 600;
    padding: 0 32px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background .2s;
}

.tracking-submit:hover { background: var(--jadlog-red-dark); }

/* ============== NAV ============== */
.main-nav {
    background: var(--jadlog-white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 90;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-list li a {
    display: block;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--jadlog-gray-dark);
    transition: color .2s;
    position: relative;
}

.nav-list li a:hover { color: var(--jadlog-red); }

.nav-list li.active a {
    background: var(--jadlog-red);
    color: var(--jadlog-white);
    font-weight: 600;
}

.nav-list li.active a:hover { color: var(--jadlog-white); }

.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    color: var(--jadlog-red);
    padding: 8px;
}

/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: var(--jadlog-white);
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background: #ccc;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0;
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--jadlog-gray-dark);
    margin-bottom: 24px;
}

.hero-highlight {
    color: var(--jadlog-red);
    font-size: 28px;
    font-weight: 600;
}

.hero-icon-circle {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    background: var(--jadlog-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jadlog-white);
    font-size: 36px;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(227, 6, 19, 0.3);
}

/* ============== TRACKING RESULT ============== */
.tracking-result-section {
    padding: 60px 0;
    background: var(--jadlog-gray-bg);
}

.result-card {
    background: var(--jadlog-white);
    border-radius: 8px;
    box-shadow: var(--jadlog-shadow);
    overflow: hidden;
}

.result-header {
    background: var(--jadlog-red);
    color: var(--jadlog-white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.result-close {
    color: var(--jadlog-white);
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.result-close:hover { background: rgba(255,255,255,0.2); }

.result-body { padding: 32px 24px; }

.tracking-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.info-item .label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--jadlog-gray);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--jadlog-black);
}

.current-status {
    background: linear-gradient(135deg, var(--jadlog-red) 0%, var(--jadlog-red-dark) 100%);
    color: var(--jadlog-white);
    padding: 24px;
    border-radius: 6px;
    margin-bottom: 32px;
}

.current-status .status-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.current-status .status-text {
    font-size: 22px;
    font-weight: 700;
}

.current-status .status-meta {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.9;
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--jadlog-white);
    border: 3px solid var(--jadlog-gray-light);
    z-index: 1;
}

.timeline-item.active::before {
    background: var(--jadlog-red);
    border-color: var(--jadlog-red);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.2);
}

.timeline-item.completed::before {
    background: var(--jadlog-red);
    border-color: var(--jadlog-red);
}

.timeline-date {
    font-size: 13px;
    color: var(--jadlog-gray);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--jadlog-black);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 13px;
    color: var(--jadlog-gray-dark);
}

.timeline-local {
    font-size: 12px;
    color: var(--jadlog-gray);
    margin-top: 4px;
}

.auto-refresh-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--jadlog-gray-bg);
    border-radius: 6px;
    font-size: 13px;
    color: var(--jadlog-gray-dark);
    margin-bottom: 24px;
}

.auto-refresh-bar .refresh-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.error-box {
    background: #fff3f3;
    border: 1px solid #ffd0d0;
    color: #b30410;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.error-box i { font-size: 36px; margin-bottom: 12px; }

/* ============== QUEM SOMOS ============== */
.quem-somos {
    padding: 80px 0;
    background: var(--jadlog-white);
}

.quem-somos-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.quem-images {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hex {
    width: 220px;
    height: 250px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    background: #ccc;
}

.hex img { width: 100%; height: 100%; object-fit: cover; }

.hex-2 { margin-top: 40px; }

.quem-text h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--jadlog-gray-dark);
    margin-bottom: 20px;
}

.quem-text p {
    color: var(--jadlog-gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ============== TEXT BLOCKS ============== */
.text-blocks {
    padding: 60px 0 80px;
    background: var(--jadlog-white);
}

.text-blocks-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.text-block p {
    color: var(--jadlog-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.image-block img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ============== FOOTER ============== */
.site-footer {
    background: var(--jadlog-black);
    color: var(--jadlog-white);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--jadlog-white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: var(--jadlog-gray-light);
    font-size: 14px;
    transition: color .2s;
}

.footer-col ul li a:hover { color: var(--jadlog-red-light); }

.footer-social .social-icons { margin-bottom: 24px; }

.logo-footer img { max-width: 140px; }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
    color: var(--jadlog-gray-light);
    font-size: 13px;
}

/* ============== MODAL ============== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--jadlog-white);
    padding: 40px 60px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--jadlog-gray-bg);
    border-top-color: var(--jadlog-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.modal-content p { color: var(--jadlog-gray-dark); font-weight: 600; }

/* ============== TOAST ============== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--jadlog-black);
    color: var(--jadlog-white);
    padding: 14px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 10000;
    font-size: 14px;
    animation: slideUp .3s;
}

.toast.success { background: #4caf50; }
.toast.error { background: var(--jadlog-red); }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 992px) {
    .slogan { display: none; }
    .quem-somos-grid { grid-template-columns: 1fr; }
    .text-blocks-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-image { width: 50%; }
    .hero-text h1 { font-size: 26px; }
}

@media (max-width: 768px) {
    .header-top { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .logo-desktop { display: none; }
    .logo-mobile { display: block; }
    .header-actions { gap: 12px; }
    .language-selector span { display: none; }
    .social-icons { display: none; }
    .tracking-bar-inner { flex-direction: column; gap: 12px; }
    .tracking-form { width: 100%; }
    .nav-list { display: none; }
    .nav-list.open {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .mobile-menu-toggle { display: block; }
    .main-nav .container { flex-direction: row; }
    .hero { min-height: 380px; }
    .hero-image { width: 100%; clip-path: none; opacity: 0.25; }
    .hero-content { padding: 40px 0; }
    .hero-text h1 { font-size: 22px; }
    .hero-icon-circle { width: 60px; height: 60px; font-size: 24px; }
    .quem-images { flex-direction: column; }
    .text-blocks-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}
