/* ==========================================================================
   Jadlog Exact Clone CSS with Banners 1, 2, 3 & Modals Engine
   ========================================================================== */

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

body {
    font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f5f7;
    color: #333333;
    line-height: 1.5;
}

/* Header */
.header-site {
    background-color: #ffffff;
    height: 70px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-jadlog {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #777777;
    font-size: 0.9rem;
}

.dropdown-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.header-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.header-icons a {
    color: #777777;
    font-size: 1rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.header-icons a:hover {
    color: #dc0032;
}

/* Red Hero Section */
.hero-red-section {
    background-color: #dc0032;
    color: #ffffff;
    padding: 45px 20px 55px 20px;
    text-align: center;
}

.hero-red-container {
    max-width: 720px;
    margin: 0 auto;
}

.hero-truck-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 24px;
    font-weight: 400;
}

.tracking-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 14px;
}

.tracking-input-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 1.05rem;
    color: #222222;
    border-radius: 6px 0 0 6px;
    font-weight: 500;
}

.tracking-input-field::placeholder {
    color: #999999;
    font-size: 0.95rem;
    font-weight: 400;
}

.btn-search-submit {
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.btn-search-submit:hover {
    background-color: #000000;
}

.hero-foot-note {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Main Content & Banner Predict */
.main-content-section {
    padding: 40px 20px 60px 20px;
}

.main-container {
    max-width: 960px;
    margin: 0 auto;
}

.banner-card-predict {
    width: 100%;
    margin-bottom: 36px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

.banner-predict-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* 3 Feature Cards */
.feature-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 45px;
}

.card-feature {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.card-icon.red {
    color: #dc0032;
}

.card-feature h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.card-feature p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}

/* BANNERS CUSTOMIZADOS 1 E 2 */
.margin-top-40 { margin-top: 40px; }
.margin-top-20 { margin-top: 20px; }

.banner-section-custom {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f4;
}

.banner-custom-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: center;
}

.banner-custom-left {
    position: relative;
    text-align: center;
}

.img-hex-banner {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.img-delivery-woman {
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.badge-warehouse-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dc0032;
    color: #ffffff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(220, 0, 50, 0.3);
}

.banner-custom-right h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.1rem;
    font-weight: 400;
    color: #444444;
    line-height: 1.25;
    margin-bottom: 20px;
}

.font-size-28 {
    font-size: 1.9rem !important;
}

.jadlog-bullet-list {
    list-style: disc;
    padding-left: 20px;
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.jadlog-bullet-list li {
    margin-bottom: 6px;
}

.btn-saiba-mais-wrapper {
    display: flex;
    justify-content: flex-end;
}

.btn-saiba-mais {
    background-color: #8c001f;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-saiba-mais:hover {
    background-color: #dc0032;
}

/* BANNER 3: Predict Card */
.card-predict-box {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f4;
    max-width: 480px;
}

.predict-img-header {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.predict-pin-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #dc0032;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 0, 50, 0.3);
}

.predict-pin-icon i {
    transform: rotate(45deg);
    font-size: 1.4rem;
}

.predict-card-content {
    padding: 24px;
}

.predict-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.predict-card-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

/* Footer */
.footer-site {
    padding: 40px 20px 50px 20px;
    text-align: center;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-links a {
    color: #555555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: #dc0032;
}

.footer-security {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #999999;
}

/* --------------------------------------------------------------------------
   Modals Engine
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.btn-close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #777777;
    cursor: pointer;
    z-index: 10;
}

.btn-close-modal.white {
    color: #ffffff;
}

/* STEP 1: Modal Rastreando Encomenda */
.modal-loading-card {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-loading-header {
    background: #dc0032;
    color: #ffffff;
    padding: 36px 24px 30px 24px;
}

.loading-truck-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px auto;
}

.modal-loading-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.modal-loading-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modal-loading-body {
    padding: 36px 30px 40px 30px;
    background: #ffffff;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.loading-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dc0032;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots .dot:nth-child(1) { animation-delay: -0.32s; opacity: 0.4; }
.loading-dots .dot:nth-child(2) { animation-delay: -0.16s; opacity: 0.7; }
.loading-dots .dot:nth-child(3) { animation-delay: 0s; opacity: 1; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.loading-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
}

.loading-bar-wrapper {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    max-width: 180px;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    background: #dc0032;
    width: 0%;
    animation: loadFill 2.5s ease-in-out forwards;
}

@keyframes loadFill {
    0% { width: 0%; }
    50% { width: 65%; }
    100% { width: 100%; }
}

/* STEP 2: Modal Verificação Necessária (SEC-178) */
.modal-verification-card {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-verification-header {
    background: #dc0032;
    color: #ffffff;
    padding: 24px 24px 20px 24px;
}

.verification-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.warning-icon {
    font-size: 1.6rem;
    color: #ffffff;
}

.modal-verification-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.sec-code {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
}

.modal-verification-body {
    padding: 24px 24px 30px 24px;
    background: #ffffff;
}

.lead-data-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.lead-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 6px;
}

.lead-data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lead-data-row span {
    color: #64748b;
    font-weight: 500;
}

.lead-data-row strong {
    color: #1e293b;
    font-weight: 700;
    text-align: right;
}

.callout-action-required {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.callout-icon {
    color: #d97706;
    font-size: 1.2rem;
    margin-top: 2px;
}

.callout-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}

.callout-desc {
    font-size: 0.85rem;
    color: #b45309;
    line-height: 1.45;
}

.btn-download-app {
    background-color: #dc0032;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(220, 0, 50, 0.3);
    margin-bottom: 20px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-download-app:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
}

.verification-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-item.green {
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-item.gray {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .feature-cards-row, .banner-custom-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 1.8rem; }
    .tracking-search-box { flex-direction: column; }
    .tracking-input-field { width: 100%; text-align: center; }
    .btn-search-submit { width: 100%; justify-content: center; }
}
