/* Nelson Cargo Express - Main Stylesheet */
:root {
    --primary-color: #0a2540;
    --secondary-color: #0052cc;
    --accent-red: #e63946;
    --accent-gold: #f4a261;
    --light-bg: #f8f9fa;
    --dark-bg: #071729;
    --text-color: #2b2d42;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #e9ecef;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-red);
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.text-gold { color: var(--accent-gold); }

/* Top Bar */
.top-bar {
    background-color: var(--dark-bg);
    color: #e0e6ed;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    font-size: 2rem;
    color: var(--accent-red);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.brand-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}
.nav-links a.active, .nav-links a:hover {
    color: var(--accent-red);
}
.btn-nav-cta {
    background-color: var(--accent-red);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 6px;
}
.btn-nav-cta:hover {
    background-color: #c1272d;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--accent-red);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #c1272d;
    color: var(--white);
}
.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
}
.btn-whatsapp:hover {
    background-color: #1eb857;
    color: var(--white);
}
.btn-dark {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-dark:hover {
    background-color: #051424;
}
.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.92), rgba(0, 82, 204, 0.85)), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 80px 0 60px 0;
    position: relative;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}
.hero h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 15px;
    max-width: 800px;
}
.hero-subtext {
    font-size: 1.2rem;
    color: #e0e6ed;
    max-width: 700px;
    margin-bottom: 30px;
}
.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}
.h-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.h-feature-item i {
    font-size: 2rem;
    color: var(--accent-gold);
}
.h-feature-item strong {
    display: block;
    font-size: 1rem;
}
.h-feature-item p {
    font-size: 0.85rem;
    color: #cfd8dc;
}

/* Tracker Section */
.tracker-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.tracker-card {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.tracker-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.tracker-form {
    display: flex;
    gap: 10px;
}
.tracker-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}
.tracker-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}
.tracking-result {
    margin-top: 15px;
    padding: 15px;
    background: #eef6ff;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

/* Sections */
.section {
    padding: 70px 0;
}
.bg-light {
    background-color: var(--light-bg);
}
.dark-section {
    background-color: var(--dark-bg);
    color: var(--white);
}
.dark-section h2, .dark-section h3 {
    color: var(--white);
}

.section-title {
    margin-bottom: 45px;
}
.sub-title {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: 1px;
}
.section-title h2 {
    font-size: 2.2rem;
    margin: 8px 0 12px 0;
}
.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 10px auto 20px auto;
    border-radius: 2px;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}
.service-card.highlight {
    border: 2px solid var(--secondary-color);
}
.badge-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
}
.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}
.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.service-card ul {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}
.service-card ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.service-card ul li i {
    color: #28a745;
    margin-right: 6px;
}
.card-link {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Category Grid */
.items-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.item-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.item-box i {
    font-size: 2.2rem;
    color: var(--accent-red);
    margin-bottom: 12px;
}
.item-box h4 {
    margin-bottom: 8px;
}
.item-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Calculator */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.calc-info p {
    color: #b0bec5;
    margin: 15px 0 25px 0;
}
.calc-highlights div {
    margin-bottom: 10px;
    font-weight: 600;
}
.calc-highlights i {
    color: #28a745;
    margin-right: 8px;
}

.calc-card {
    background: var(--white);
    color: var(--text-color);
    padding: 30px;
    border-radius: 10px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.form-group select, .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}
.calc-result-box {
    margin-top: 25px;
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed var(--secondary-color);
}
.result-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}
.result-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-red);
    margin: 5px 0;
}
.result-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Coverage Grid */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.cov-card {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}
.cov-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}
.step-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.step-number {
    width: 45px;
    height: 45px;
    background: var(--accent-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    margin: 0 auto 20px auto;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
}
.faq-header h4 {
    font-size: 1.05rem;
}
.faq-body {
    padding: 0 20px 20px 20px;
    display: none;
    color: var(--text-muted);
}
.faq-item.active .faq-body {
    display: block;
}
.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

/* Blog Previews */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.blog-img-placeholder {
    height: 180px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 3rem;
}
.blog-content {
    padding: 20px;
}
.blog-date {
    font-size: 0.75rem;
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
}
.blog-card h3 {
    font-size: 1.15rem;
    margin: 8px 0 12px 0;
}
.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
}
.contact-banner h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: #a0aec0;
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo .brand-name {
    color: var(--white);
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #a0aec0;
    font-size: 0.9rem;
}
.footer-col ul li a:hover {
    color: var(--white);
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    background: var(--accent-red);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 0.85rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2rem; }
    .hero-subtext { font-size: 1rem; }
    .tracker-form { flex-direction: column; }
}
