/* ============================================
   Main Stylesheet - Mobile Truck Clinic
   ============================================ */

/* Import all CSS files */
@import url('variables.css');
@import url('reset.css');
@import url('typography.css');
@import url('components.css');
@import url('animations.css');

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-black);
    border-bottom: 1px solid var(--color-border);
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.header.is-scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.header__logo {
    height: 70px;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.header.is-scrolled .header__logo {
    height: 50px;
}

.nav__list {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-red);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--color-accent-red);
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.nav__toggle-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

.nav__toggle.is-active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.nav__toggle.is-active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.is-active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

@media (max-width: 1024px) {
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-black);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-2xl);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .nav__list.is-active {
        transform: translateX(0);
    }

    .nav__link {
        font-size: var(--font-size-xl);
    }
}

.header__logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.header__text {
    display: flex;
    flex-direction: column;
}

.header__title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.header__slogan {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-red);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

@media (max-width: 480px) {
    .header__title {
        font-size: 0.9rem;
    }

    .header__slogan {
        font-size: 0.55rem;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 11, 11, 0.8), rgba(42, 42, 42, 0.6));
    z-index: -1;
}

.hero__content {
    text-align: center;
    max-width: 900px;
    padding: 0 var(--container-padding);
    z-index: 1;
}

.hero__title {
    font-size: clamp(var(--font-size-4xl), 6vw, var(--font-size-7xl));
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s var(--ease-out);
}

.hero__subtitle {
    font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-2xl));
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

/* ===== Trust Bar ===== */
.trust-bar {
    background-color: var(--color-charcoal);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-bar__title {
    text-align: center;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.trust-bar__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.trust-bar__logo {
    height: 60px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    filter: grayscale(100%);
}

.trust-bar__logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-black);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-lg);
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__logo {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer__section-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__link {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-accent-red);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ===== Chatbot ===== */
.chatbot {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-chatbot);
}

.chatbot__button {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent-red);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.chatbot__button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-strong);
}

.chatbot__window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 2rem);
    height: 600px;
    max-height: calc(100vh - 200px);
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.3s var(--ease-out);
}

.chatbot__window.is-active {
    display: flex;
}

.chatbot__header {
    padding: var(--space-md);
    background-color: var(--color-accent-red);
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.chatbot__input-area {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-sm);
}

/* ===== Utility Classes ===== */
.mt-0 {
    margin-top: 0;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mt-2xl {
    margin-top: var(--space-2xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mb-2xl {
    margin-bottom: var(--space-2xl);
}

.pt-0 {
    padding-top: 0;
}

.pt-sm {
    padding-top: var(--space-sm);
}

.pt-md {
    padding-top: var(--space-md);
}

.pt-lg {
    padding-top: var(--space-lg);
}

.pt-xl {
    padding-top: var(--space-xl);
}

.pb-0 {
    padding-bottom: 0;
}

.pb-sm {
    padding-bottom: var(--space-sm);
}

.pb-md {
    padding-bottom: var(--space-md);
}

.pb-lg {
    padding-bottom: var(--space-lg);
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    box-shadow: 3px 3px 5px #777;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}