/* CORPORATE CLEAN CSS (Arena Transautos Style) */
:root {
    --primary: #1E4E8C; /* Corporate Blue */
    --primary-hover: #153a6b;
    --secondary: #e2e8f0;
    --bg-body: #F4F7FB; /* Very light blue/grey background */
    --surface: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --border-color: #cbd5e1;
    
    /* Status Colors */
    --status-pending: #f59e0b;
    --status-transit: #3b82f6;
    --status-delivered: #10b981;
    
    --shadow-soft: 0 10px 25px rgba(30, 78, 140, 0.08);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
}

h1, h2, h3, h4, h5, h6, .logo, .btn-primary {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-heading);
}

body {
    background-color: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.text-center { text-align: center; }

/* Header */
.top-header {
    background-color: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero & Tracking Section */
.rastreio-section {
    padding: 6rem 0;
    background-color: var(--primary);
    /* Subtle geometric/map pattern overlay to mimic transport companies */
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.rastreio-section h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.rastreio-section .subtitle {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tracking Box - Floating style like Arena Transautos */
.tracking-box {
    background: var(--surface);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 78, 140, 0.1);
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-heading);
    font-weight: 600;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Tracking Results */
.tracking-result {
    background: var(--surface);
    border-radius: 8px;
    margin: 3rem auto 0;
    max-width: 800px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: left;
}

.result-header {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}
.status-badge.pendente { background-color: var(--status-pending); }
.status-badge.em-trânsito { background-color: var(--status-transit); }
.status-badge.entregue { background-color: var(--status-delivered); }

.result-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.info-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-group p {
    font-size: 1.1rem;
    color: var(--text-heading);
}

/* Visual Route Display */
.route-group {
    grid-column: 1 / -1; /* Span full width */
}

.route-display {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--secondary);
}

.route-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.route-point i {
    font-size: 1.5rem;
    color: var(--primary);
}

.route-point span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.route-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 1.5rem;
    position: relative;
    top: -12px;
}

.route-line::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -3px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--border-color);
}

/* Informational Section */
.info-section {
    padding: 5rem 0;
    background: var(--bg-body);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(30, 78, 140, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-circle i {
    font-size: 2rem;
    color: var(--primary);
}

.info-card h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Alerts */
.alert {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    text-align: left;
}

.alert.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
    background-color: var(--text-heading);
    color: #cbd5e1;
    padding: 4rem 0 0;
    margin-top: auto;
}

.site-footer * {
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.logo-footer {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-about p {
    line-height: 1.7;
    max-width: 400px;
}

.site-footer h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer ul li i {
    color: #94a3b8;
}

.footer-address p {
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .rastreio-section { padding: 4rem 0; }
    .rastreio-section h1 { font-size: 2rem; }
    
    .tracking-box { padding: 1.5rem; }
    
    .input-wrapper { flex-direction: column; border: none; }
    .input-wrapper input { border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 1rem; }
    .btn-primary { padding: 1.2rem; border-radius: 6px; }
    
    .result-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    
    .route-display { flex-direction: column; gap: 1rem; }
    .route-line { width: 3px; height: 30px; margin: 0; top: 0; }
    .route-line::after { border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--border-color); right: auto; left: -4px; top: auto; bottom: -2px; }
}
