/*
|--------------------------------------------------------------------------
| Hemtabad Car Lab - Common Stylesheet
|--------------------------------------------------------------------------
*/


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --primary: #0d6efd;
    --primary-dark: #084298;
    --secondary: #0ea5e9;

    --dark: #0f172a;
    --dark-2: #1e293b;

    --text: #334155;
    --muted: #64748b;

    --white: #ffffff;
    --light: #f8fafc;
    --border: #e2e8f0;

    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0284c7;

    --shadow-sm:
        0 2px 8px
        rgba(15, 23, 42, 0.06);

    --shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.10);

    --shadow-lg:
        0 15px 40px
        rgba(15, 23, 42, 0.15);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --container: 1200px;

    --transition:
        all 0.3s ease;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    /*
    |--------------------------------------------------------------------------
    | Space for fixed header
    |--------------------------------------------------------------------------
    */

    padding-top: 76px;

    font-family:
        'Inter',
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;

    line-height: 1.6;

    color: var(--text);

    background: var(--white);

    -webkit-font-smoothing: antialiased;
}


img {
    max-width: 100%;

    height: auto;

    display: block;
}


a {
    color: inherit;

    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


ul,
ol {
    margin: 0;

    padding: 0;

    list-style: none;
}


p,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width:
        min(
            calc(100% - 32px),
            var(--container)
        );

    margin-inline: auto;
}


/* =========================================================
   SITE HEADER
   FIXED ON TOP
========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    z-index: 9999;

    background: var(--white);

    box-shadow:
        0 2px 15px
        rgba(15, 23, 42, 0.08);
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    width: 100%;

    background: var(--white);

    border-bottom:
        1px solid
        var(--border);

    box-shadow: var(--shadow-sm);
}


.navbar-container {

    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;
}


/* =========================================================
   BRAND
========================================================= */

.navbar-brand {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    flex-shrink: 0;
}


.brand-icon {

    width: 44px;
    height: 44px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    font-size: 21px;

    box-shadow:
        0 6px 16px
        rgba(13, 110, 253, 0.25);
}


.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.brand-text strong {

    color: var(--dark);

    font-size: 17px;

    font-weight: 800;
}


.brand-text small {

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.3px;
}


/* =========================================================
   NAVIGATION MENU
========================================================= */

.navbar-menu {

    display: flex;

    align-items: center;

    gap: 4px;

    margin-left: auto;
}


.nav-link {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 10px 13px;

    border-radius: 8px;

    color: var(--text);

    font-size: 14px;

    font-weight: 600;

    transition: var(--transition);
}


.nav-link i {
    font-size: 15px;
}


.nav-link:hover {

    color: var(--primary);

    background: #eff6ff;
}


.nav-link.active {

    color: var(--primary);

    background: #eff6ff;
}


.nav-link.active::after {

    content: '';

    position: absolute;

    left: 13px;
    right: 13px;

    bottom: 4px;

    height: 2px;

    border-radius: 5px;

    background: var(--primary);
}


/* =========================================================
   NAVBAR ACTIONS
========================================================= */

.navbar-actions {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


.navbar-call {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 10px 14px;

    border-radius: 8px;

    color: var(--white);

    background: var(--primary);

    font-size: 13px;

    font-weight: 700;

    transition: var(--transition);
}


.navbar-call:hover {

    color: var(--white);

    background: var(--primary-dark);

    transform: translateY(-1px);
}


.navbar-whatsapp {

    width: 40px;
    height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background: #25d366;

    font-size: 19px;

    transition: var(--transition);
}


.navbar-whatsapp:hover {

    color: var(--white);

    transform: translateY(-2px);

    box-shadow: var(--shadow);
}


/* =========================================================
   MOBILE MENU BUTTONS
========================================================= */

.mobile-menu-toggle,
.mobile-menu-close {

    border: 0;

    background: transparent;
}


.mobile-menu-toggle {

    display: none;

    width: 42px;
    height: 42px;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    color: var(--dark);

    background: var(--light);

    font-size: 23px;
}


.mobile-menu-close {
    display: none;
}


/* =========================================================
   MAIN
========================================================= */

.site-main {

    min-height:
        calc(100vh - 76px);
}


/* =========================================================
   COMMON BUTTONS
========================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 10px 18px;

    border: 1px solid transparent;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 700;

    transition: var(--transition);
}


.btn:hover {
    transform: translateY(-1px);
}


.btn-primary {

    color: var(--white);

    background: var(--primary);
}


.btn-primary:hover {

    color: var(--white);

    background: var(--primary-dark);
}


.btn-secondary {

    color: var(--white);

    background: var(--dark-2);
}


.btn-success {

    color: var(--white);

    background: var(--success);
}


.btn-danger {

    color: var(--white);

    background: var(--danger);
}


.btn-outline {

    color: var(--primary);

    border-color: var(--primary);

    background: transparent;
}


.btn-outline:hover {

    color: var(--white);

    background: var(--primary);
}


/* =========================================================
   SECTION
========================================================= */

.section {
    padding: 70px 0;
}


.section-sm {
    padding: 45px 0;
}


.section-title {

    margin-bottom: 12px;

    color: var(--dark);

    font-size:
        clamp(28px, 4vw, 40px);

    line-height: 1.2;

    font-weight: 800;
}


.section-subtitle {

    max-width: 680px;

    margin-bottom: 35px;

    color: var(--muted);

    font-size: 15px;
}


/* =========================================================
   CARDS
========================================================= */

.card {

    background: var(--white);

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition: var(--transition);
}


.card:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow);
}


.card-body {
    padding: 22px;
}


/* =========================================================
   FORMS
========================================================= */

.form-group {
    margin-bottom: 18px;
}


.form-label {

    display: block;

    margin-bottom: 7px;

    color: var(--dark);

    font-size: 13px;

    font-weight: 700;
}


.form-control,
.form-select,
.form-textarea {

    width: 100%;

    padding: 11px 13px;

    border:
        1px solid
        var(--border);

    border-radius: 8px;

    outline: none;

    color: var(--dark);

    background: var(--white);

    transition: var(--transition);
}


.form-textarea {

    min-height: 120px;

    resize: vertical;
}


.form-control:focus,
.form-select:focus,
.form-textarea:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(13, 110, 253, 0.10);
}


/* =========================================================
   ALERTS
========================================================= */

.alert {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

    padding: 13px 16px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;
}


.alert-success {

    color: #166534;

    background: #dcfce7;

    border:
        1px solid
        #bbf7d0;
}


.alert-danger {

    color: #991b1b;

    background: #fee2e2;

    border:
        1px solid
        #fecaca;
}


.alert-warning {

    color: #92400e;

    background: #fef3c7;

    border:
        1px solid
        #fde68a;
}


.alert-info {

    color: #075985;

    background: #e0f2fe;

    border:
        1px solid
        #bae6fd;
}


/* =========================================================
   BADGES
========================================================= */

.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 4px 9px;

    border-radius: 50px;

    font-size: 11px;

    font-weight: 700;
}


.badge-success {

    color: #166534;

    background: #dcfce7;
}


.badge-warning {

    color: #92400e;

    background: #fef3c7;
}


.badge-danger {

    color: #991b1b;

    background: #fee2e2;
}


.badge-info {

    color: #075985;

    background: #e0f2fe;
}


.badge-secondary {

    color: #475569;

    background: #f1f5f9;
}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {

    width: 100%;

    overflow-x: auto;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius);

    background: var(--white);
}


.table {

    width: 100%;

    border-collapse: collapse;

    min-width: 700px;
}


.table th,
.table td {

    padding: 12px 14px;

    text-align: left;

    border-bottom:
        1px solid
        var(--border);

    font-size: 13px;
}


.table th {

    color: var(--dark);

    background: var(--light);

    font-weight: 700;
}


.table tbody tr:hover {

    background: #f8fafc;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    margin-top: 60px;

    padding: 60px 0 0;

    color: #cbd5e1;

    background: var(--dark);
}


.footer-grid {

    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1.2fr;

    gap: 40px;

    padding-bottom: 45px;
}


.footer-brand {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    color: var(--white);
}


.footer-brand-icon {

    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );
}


.footer-brand span:last-child {

    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.footer-brand strong {

    font-size: 16px;

    font-weight: 800;
}


.footer-brand small {

    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;
}


.footer-description {

    max-width: 330px;

    margin: 18px 0;

    color: #94a3b8;

    font-size: 13px;
}


.footer-column h3 {

    margin-bottom: 18px;

    color: var(--white);

    font-size: 15px;

    font-weight: 700;
}


.footer-links {

    display: flex;

    flex-direction: column;

    gap: 9px;
}


.footer-links a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #94a3b8;

    font-size: 13px;

    transition: var(--transition);
}


.footer-links a:hover {

    color: var(--white);

    padding-left: 3px;
}


.footer-links i {

    color: var(--primary);

    font-size: 10px;
}


.footer-social {

    display: flex;

    gap: 8px;
}


.footer-social a {

    width: 36px;
    height: 36px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #cbd5e1;

    background: #1e293b;

    transition: var(--transition);
}


.footer-social a:hover {

    color: var(--white);

    background: var(--primary);

    transform: translateY(-2px);
}


.contact-item {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-bottom: 18px;
}


.contact-icon {

    width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    color: #93c5fd;

    background: #1e293b;
}


.contact-item strong {

    display: block;

    margin-bottom: 2px;

    color: var(--white);

    font-size: 12px;
}


.contact-item p {

    margin: 0;

    color: #94a3b8;

    font-size: 12px;
}


.contact-item a:hover {

    color: var(--white);
}


.footer-bottom {

    min-height: 65px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid
        #1e293b;
}


.footer-bottom p {

    margin: 0;

    color: #64748b;

    font-size: 11px;
}


.footer-bottom-links {

    display: flex;

    gap: 18px;
}


.footer-bottom-links a {

    color: #64748b;

    font-size: 11px;
}


.footer-bottom-links a:hover {

    color: var(--white);
}


/* =========================================================
   FLOATING WHATSAPP
========================================================= */

.floating-whatsapp {

    position: fixed;

    right: 20px;

    bottom: 20px;

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 999;

    border-radius: 50%;

    color: var(--white);

    background: #25d366;

    font-size: 26px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.18);

    transition: var(--transition);
}


.floating-whatsapp:hover {

    color: var(--white);

    transform: scale(1.08);
}


/* =========================================================
   UTILITY
========================================================= */

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


.text-primary {
    color: var(--primary);
}


.text-muted {
    color: var(--muted);
}


.text-success {
    color: var(--success);
}


.text-danger {
    color: var(--danger);
}


.bg-light {
    background: var(--light);
}


.hidden {
    display: none !important;
}


/* =========================================================
   TABLET / MOBILE NAVBAR
========================================================= */

@media (max-width: 900px) {


    /* -----------------------------------------------------
       Fixed header height
    ----------------------------------------------------- */

    body {
        padding-top: 68px;
    }


    .site-main {
        min-height:
            calc(100vh - 68px);
    }


    .navbar-container {

        min-height: 68px;
    }


    /* -----------------------------------------------------
       Mobile menu
    ----------------------------------------------------- */

    .navbar-menu {

        position: fixed;

        top: 0;

        right: -100%;

        width:
            min(
                320px,
                88vw
            );

        height: 100vh;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 4px;

        margin: 0;

        padding:
            75px 18px 25px;

        background: var(--white);

        box-shadow:
            -10px 0 35px
            rgba(15, 23, 42, 0.15);

        overflow-y: auto;

        transition:
            right 0.3s ease;
    }


    .navbar-menu.active {
        right: 0;
    }


    .nav-link {

        width: 100%;

        padding: 13px 14px;

        border-radius: 8px;
    }


    .nav-link.active::after {
        display: none;
    }


    /* -----------------------------------------------------
       Close button
    ----------------------------------------------------- */

    .mobile-menu-close {

        position: absolute;

        top: 18px;

        right: 18px;

        width: 40px;
        height: 40px;

        display: flex;

        align-items: center;

        justify-content: center;

        border-radius: 8px;

        color: var(--dark);

        background: var(--light);

        font-size: 18px;
    }


    /* -----------------------------------------------------
       Menu toggle
    ----------------------------------------------------- */

    .mobile-menu-toggle {

        display: inline-flex;
    }


    /* -----------------------------------------------------
       Call button
    ----------------------------------------------------- */

    .navbar-call span {

        display: none;
    }


    .navbar-call {

        width: 40px;
        height: 40px;

        padding: 0;

        justify-content: center;

        border-radius: 50%;
    }


    /* -----------------------------------------------------
       Footer
    ----------------------------------------------------- */

    .footer-grid {

        grid-template-columns:
            1fr 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {


    .container {

        width:
            min(
                calc(100% - 24px),
                var(--container)
            );
    }


    .brand-text strong {

        font-size: 15px;
    }


    .brand-text small {

        font-size: 9px;
    }


    .brand-icon {

        width: 40px;
        height: 40px;

        border-radius: 10px;

        font-size: 18px;
    }


    .navbar-actions {

        gap: 5px;
    }


    .navbar-whatsapp,
    .navbar-call,
    .mobile-menu-toggle {

        width: 38px;
        height: 38px;
    }


    .section {

        padding: 50px 0;
    }


    .section-title {

        font-size: 28px;
    }


    .footer-grid {

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-bottom {

        flex-direction: column;

        justify-content: center;

        padding: 20px 0;

        text-align: center;
    }


    .footer-bottom-links {

        flex-wrap: wrap;

        justify-content: center;
    }


    .floating-whatsapp {

        right: 15px;

        bottom: 15px;

        width: 50px;
        height: 50px;

        font-size: 23px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 380px) {


    .brand-text {
        display: none;
    }


    .navbar-container {

        gap: 8px;
    }

}

/* =========================================================
   HEMTABAD CAR LAB
   FORCE FIXED HEADER
========================================================= */

html {
    scroll-padding-top: 76px;
}

body {
    padding-top: 76px !important;
}

.site-header {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    margin: 0 !important;

    z-index: 2147483647 !important;

    transform: none !important;

    visibility: visible !important;

    opacity: 1 !important;
}

.site-header .navbar {
    width: 100%;
}


/* Main content must stay below header */

.site-main {
    position: relative;

    z-index: 1;

    min-height: calc(100vh - 76px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    body {
        padding-top: 68px !important;
    }

    html {
        scroll-padding-top: 68px;
    }

    .site-header {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        z-index: 2147483647 !important;

        transform: none !important;
    }

    .site-main {
        min-height: calc(100vh - 68px);
    }

}

/* =========================================================
   HEMTABAD CAR LAB
   NAVBAR LOGO - FINAL
========================================================= */

.navbar-brand .brand-logo {
    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    min-height: 44px !important;

    max-width: 44px !important;
    max-height: 44px !important;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 12px;
}

.navbar-brand .brand-logo img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
}

/*
| Prevent a logo image from becoming a full-page image
| when it is accidentally placed directly inside navbar-brand.
*/
.navbar-brand > img {
    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    min-height: 44px !important;

    max-width: 44px !important;
    max-height: 44px !important;

    object-fit: contain !important;
}

/* Mobile */
@media (max-width: 600px) {

    .navbar-brand .brand-logo {
        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;
        min-height: 40px !important;

        max-width: 40px !important;
        max-height: 40px !important;

        flex-basis: 40px;
    }

    .navbar-brand .brand-logo img,
    .navbar-brand > img {
        width: 40px !important;
        height: 40px !important;

        max-width: 40px !important;
        max-height: 40px !important;
    }

}

