﻿/* =============================================
   NAVIQUE EXPRESS — MATERIAL DESIGN SYSTEM
   Global tokens, typography, components
   ============================================= */

/* ── Google Fonts (loaded in _Layout) ── */

/* ── DESIGN TOKENS ── */
:root {
    /* Brand */
    --md-primary: #0b1f4d;
    --md-primary-light: #1a3a7a;
    --md-on-primary: #ffffff;
    --md-secondary: #f57c00;
    --md-secondary-dark: #e06900;
    --md-on-secondary: #ffffff;

    /* Surfaces */
    --md-surface: #ffffff;
    --md-surface-dim: #f2f4f8;
    --md-surface-container: #eceef3;
    --md-surface-container-high: #e3e6ec;
    --md-on-surface: #1c1b1f;
    --md-on-surface-variant: #49454f;
    --md-outline: #79747e;
    --md-outline-variant: #c4c1cb;

    /* Elevation (Material 3 tonal) */
    --md-elevation-1: 0 1px 3px 1px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .3);
    --md-elevation-2: 0 2px 6px 2px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .3);
    --md-elevation-3: 0 4px 8px 3px rgba(0, 0, 0, .15), 0 1px 3px rgba(0, 0, 0, .3);

    /* Shape */
    --md-shape-sm: 8px;
    --md-shape-md: 12px;
    --md-shape-lg: 16px;
    --md-shape-xl: 28px;
    --md-shape-full: 9999px;

    /* Spacing */
    --md-space-xs: 4px;
    --md-space-sm: 8px;
    --md-space-md: 16px;
    --md-space-lg: 24px;
    --md-space-xl: 32px;
    --md-space-2xl: 48px;
    --md-space-3xl: 64px;

    /* Typography */
    --md-font: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --md-font-display: 'Roboto', system-ui, sans-serif;

    /* Transition */
    --md-motion: cubic-bezier(.2, 0, 0, 1);
    --md-duration: .3s;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--md-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--md-on-surface);
    background-color: var(--md-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--md-primary);
    text-decoration: none;
    transition: color var(--md-duration) var(--md-motion);
}

a:hover {
    color: var(--md-secondary);
}

/* ── TYPOGRAPHY (Material 3 scale) ── */
.md-display-large {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.md-display-medium {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
}

.md-headline-large {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
}

.md-headline-medium {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.md-title-large {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.md-title-medium {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.md-body-large {
    font-size: 1rem;
    line-height: 1.6;
}

.md-body-medium {
    font-size: 0.875rem;
    line-height: 1.5;
}

.md-label-large {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* ── BUTTONS (Material 3) ── */
.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--md-shape-full);
    font-family: var(--md-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all var(--md-duration) var(--md-motion);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.md-btn-filled {
    background: var(--md-secondary);
    color: var(--md-on-secondary);
    box-shadow: var(--md-elevation-1);
}

.md-btn-filled:hover {
    background: var(--md-secondary-dark);
    box-shadow: var(--md-elevation-2);
    transform: translateY(-1px);
    color: var(--md-on-secondary);
}

.md-btn-primary {
    background: var(--md-primary);
    color: var(--md-on-primary);
    box-shadow: var(--md-elevation-1);
}

.md-btn-primary:hover {
    background: var(--md-primary-light);
    box-shadow: var(--md-elevation-2);
    transform: translateY(-1px);
    color: var(--md-on-primary);
}

.md-btn-outlined {
    background: transparent;
    color: var(--md-primary);
    border: 1.5px solid var(--md-outline);
}

.md-btn-outlined:hover {
    background: rgba(11, 31, 77, 0.08);
    border-color: var(--md-primary);
    color: var(--md-primary);
}

.md-btn-tonal {
    background: var(--md-surface-container-high);
    color: var(--md-on-surface);
}

.md-btn-tonal:hover {
    background: var(--md-outline-variant);
    box-shadow: var(--md-elevation-1);
}

/* ── CARDS (Material 3) ── */
.md-card {
    background: var(--md-surface);
    border-radius: var(--md-shape-lg);
    overflow: hidden;
    transition: transform var(--md-duration) var(--md-motion),
        box-shadow var(--md-duration) var(--md-motion);
}

.md-card-elevated {
    box-shadow: var(--md-elevation-1);
}

.md-card-elevated:hover {
    box-shadow: var(--md-elevation-3);
    transform: translateY(-4px);
}

.md-card-filled {
    background: var(--md-surface-container);
    border: none;
}

.md-card-outlined {
    border: 1px solid var(--md-outline-variant);
    box-shadow: none;
}

/* ── FORM INPUTS (Material outlined style) ── */
.md-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--md-outline);
    border-radius: var(--md-shape-sm);
    font-family: var(--md-font);
    font-size: 15px;
    color: var(--md-on-surface);
    background: var(--md-surface);
    transition: border-color var(--md-duration) var(--md-motion),
        box-shadow var(--md-duration) var(--md-motion);
    outline: none;
}

.md-input:focus {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 2px rgba(11, 31, 77, 0.12);
}

.md-input::placeholder {
    color: var(--md-on-surface-variant);
}

select.md-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2349454f' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.md-input {
    resize: vertical;
    min-height: 100px;
}

.form-control:focus {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(11, 31, 77, 0.12);
}

/* ── NAVBAR (Material Surface) ── */
.nx-navbar {
    background: var(--md-surface) !important;
    border-bottom: 3px solid var(--md-secondary);
    box-shadow: var(--md-elevation-1);
    padding: 0;
    transition: box-shadow var(--md-duration) var(--md-motion);
}

.nx-navbar .nav-link {
    color: var(--md-on-surface) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px !important;
    border-radius: var(--md-shape-full);
    transition: all var(--md-duration) var(--md-motion);
}

.nx-navbar .nav-link:hover {
    color: var(--md-secondary) !important;
    background: rgba(245, 124, 0, 0.08);
}

.nx-navbar .navbar-brand {
    padding: 6px 0;
}

.navbar-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    transition: transform var(--md-duration) var(--md-motion);
}

.navbar-logo:hover {
    transform: scale(1.03);
}

.btn-nx-secondary {
    background: var(--md-primary);
    color: var(--md-on-primary) !important;
    border: none;
    border-radius: var(--md-shape-full);
    padding: 10px 22px;
    font-weight: 500;
    font-size: 13px;
    transition: all var(--md-duration) var(--md-motion);
}

.btn-nx-secondary:hover {
    background: var(--md-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--md-elevation-1);
}

.btn-nx-primary {
    background: var(--md-secondary);
    color: var(--md-on-secondary);
    border: none;
    border-radius: var(--md-shape-full);
    padding: 12px 28px;
    font-weight: 500;
    transition: all var(--md-duration) var(--md-motion);
}

.btn-nx-primary:hover {
    background: var(--md-secondary-dark);
    transform: translateY(-1px);
    box-shadow: var(--md-elevation-2);
}

/* Mobile navbar toggle */
.navbar-toggler {
    border: 1.5px solid var(--md-outline-variant);
    border-radius: var(--md-shape-sm);
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%230b1f4d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ── FOOTER CTA BANNER ── */
.footer-cta {
    background: #0b0f3f;
    padding: 48px 20px;
    text-align: center;
}

.footer-cta h2 {
    color: #fff;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 22px;
}

.footer-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f7941d, #e8742e);
    color: #fff;
    padding: 13px 36px;
    border-radius: var(--md-shape-full);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--md-duration) var(--md-motion);
    box-shadow: 0 4px 16px rgba(247, 148, 29, 0.35);
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247, 148, 29, 0.5);
    color: #fff;
}

@media (max-width: 576px) {
    .footer-cta {
        padding: 36px 16px;
    }

    .footer-cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ── FOOTER ── */
.footer {
    background: #ffffff;
    font-family: var(--md-font);
    border-top: 1px solid #e0e0e0;
    padding: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 32px;
}

/* Brand column */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 12.5px;
    color: #444;
    line-height: 1.65;
    margin: 0 0 16px;
}

/* Social icons row */
.footer-socials {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-socials a {
    display: inline-flex;
}

.footer-socials img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform var(--md-duration) var(--md-motion);
}

.footer-socials img:hover {
    transform: scale(1.1);
}

/* Column headings */
.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--md-primary);
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

/* List items with bullet */
.footer-col ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 7px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.footer-col ul li a {
    color: #555;
    text-decoration: none;
    transition: color var(--md-duration);
}

.footer-col ul li a:hover {
    color: var(--md-secondary);
}

/* Contact list (no bullets, plain text) */
.footer-contact {
    list-style: disc !important;
}

/* Bottom copyright bar */
.footer-bottom {
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding: 14px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #555;
    font-style: italic;
}

/* ── FOOTER RESPONSIVE ── */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        padding: 32px 20px 24px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-col ul {
        padding-left: 0;
        list-style-position: inside;
    }
}

/* ── MODAL (Material) ── */
.modal-content {
    border-radius: var(--md-shape-xl);
    border: none;
    box-shadow: var(--md-elevation-3);
    overflow: hidden;
}

.modal-header {
    background: var(--md-primary);
    color: var(--md-on-primary);
    border-bottom: none;
    padding: 16px 24px;
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--md-outline-variant);
    padding: 12px 24px;
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    border-radius: var(--md-shape-full);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: var(--md-elevation-2);
    z-index: 1050;
    transition: all var(--md-duration) var(--md-motion);
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--md-elevation-3);
}

/* ── SECTION UTILITIES ── */
.section {
    padding: 64px 0;
}

.section-light {
    background-color: var(--md-surface-dim);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--md-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--md-secondary);
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ── RESPONSIVE FOOTER ── */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .brand {
        max-width: 100%;
    }

    .cta-banner {
        padding: 40px 16px;
    }
}

/* ── RESPONSIVE NAVBAR ── */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--md-surface);
        padding: 16px;
        border-radius: 0 0 var(--md-shape-lg) var(--md-shape-lg);
        box-shadow: var(--md-elevation-2);
        margin-top: 8px;
    }

    .nx-navbar .nav-link {
        padding: 12px 16px !important;
        border-radius: var(--md-shape-sm);
    }

    .btn-nx-secondary {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}