/* =========================================================
   HIMALAYA MEDICAL SERVICES
   GLOBAL CSS
   ========================================================= */


/* =========================================================
   1. COLOR VARIABLES
   ========================================================= */

:root {

    /* Primary Colors */
    --primary-color: #123B70;
    --secondary-color: #1769C2;
    --accent-color: #2F80ED;

    /* Backgrounds */
    --background-color: #F7FAFD;
    --surface-color: #FFFFFF;

    /* Text */
    --text-color: #172B4D;
    --muted-text-color: #5B6B82;

    /* Border */
    --border-color: #D8E5F2;

    /* Status */
    --success-color: #32C48D;

    /* Additional UI Colors */
    --white: #FFFFFF;
    --black: #000000;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(18, 59, 112, 0.06);
    --shadow-md: 0 10px 30px rgba(18, 59, 112, 0.10);
    --shadow-lg: 0 20px 50px rgba(18, 59, 112, 0.14);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Container */
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

}


/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;
    font-size: 16px;

}


body {

    min-height: 100vh;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background-color);

    color: var(--text-color);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}


body.menu-open {

    overflow: hidden;

}


/* =========================================================
   3. COMMON ELEMENTS
   ========================================================= */

img {

    display: block;

    max-width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
textarea,
select {

    font: inherit;

}


button {

    border: none;

    cursor: pointer;

}


ul,
ol {

    list-style: none;

}


/* =========================================================
   4. CONTAINER
   ========================================================= */

.container {

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

    margin-inline: auto;

}


/* =========================================================
   5. SECTION
   ========================================================= */

.section {

    padding: 100px 0;

}


.section-label {

    display: inline-block;

    margin-bottom: 14px;

    color: var(--secondary-color);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


.section-title {

    color: var(--primary-color);

    font-size: clamp(
        32px,
        4vw,
        48px
    );

    font-weight: 800;

    line-height: 1.15;

    margin-bottom: 20px;

}


.section-title span {

    color: var(--accent-color);

}


.section-description {

    max-width: 700px;

    margin-inline: auto;

    color: var(--muted-text-color);

    font-size: 16px;

    line-height: 1.8;

}


.section-header {

    max-width: 800px;

    margin: 0 auto 55px;

    text-align: center;

}


/* =========================================================
   6. BUTTONS
   ========================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 48px;

    padding: 12px 24px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        transform var(--transition-normal),
        background var(--transition-normal),
        color var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);

}


.btn:hover {

    transform: translateY(-2px);

}


.btn-primary {

    background: var(--accent-color);

    color: var(--white);

    box-shadow:
        0 8px 20px rgba(47, 128, 237, 0.20);

}


.btn-primary:hover {

    background: var(--secondary-color);

    box-shadow:
        0 12px 25px rgba(47, 128, 237, 0.28);

}


.btn-outline {

    background: transparent;

    color: var(--primary-color);

    border: 1.5px solid var(--border-color);

}


.btn-outline:hover {

    background: var(--primary-color);

    color: var(--white);

    border-color: var(--primary-color);

}


.btn-white {

    background: var(--white);

    color: var(--primary-color);

}


.btn-white:hover {

    background: var(--background-color);

}


.btn-whatsapp {

    background: var(--success-color);

    color: var(--white);

}


.btn-whatsapp:hover {

    background: #27B77E;

}


/* =========================================================
   7. HEADER
   ========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(255, 255, 255, 0.96);

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

    backdrop-filter: blur(12px);

    transition:
        box-shadow var(--transition-normal),
        background var(--transition-normal);

}


.site-header.scrolled {

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

}


/* =========================================================
   8. NAVBAR
   ========================================================= */

.navbar {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


/* =========================================================
   9. BRAND
   ========================================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

}


.brand-logo {

    width: 88px;

    height: 78px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


.brand-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.1;

}


.brand-name {

    color: var(--primary-color);

    font-size: 20px;

    font-weight: 800;

}


.brand-subtitle {

    margin-top: 4px;

    color: var(--muted-text-color);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1.2px;

    text-transform: uppercase;

}


/* =========================================================
   10. NAVIGATION
   ========================================================= */

.main-navigation {

    margin-left: auto;

}


.nav-list {

    display: flex;

    align-items: center;

    gap: 34px;

}


.nav-link {

    position: relative;

    display: inline-flex;

    align-items: center;

    min-height: 78px;

    color: var(--text-color);

    font-size: 14px;

    font-weight: 600;

    transition:
        color var(--transition-normal);

}


.nav-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 20px;

    width: 0;

    height: 2px;

    border-radius: 10px;

    background: var(--accent-color);

    transition:
        width var(--transition-normal);

}


.nav-link:hover,
.nav-link.active {

    color: var(--accent-color);

}


.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;

}


/* =========================================================
   11. NAVBAR ACTIONS
   ========================================================= */

.navbar-actions {

    display: flex;

    align-items: center;

}


.navbar-actions .btn {

    min-height: 44px;

    padding: 10px 20px;

}


/* =========================================================
   12. MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {

    display: none;

    width: 44px;

    height: 44px;

    padding: 10px;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    background: transparent;

}


.mobile-menu-toggle span {

    width: 23px;

    height: 2px;

    background: var(--primary-color);

    border-radius: 10px;

    transition:
        transform var(--transition-normal),
        opacity var(--transition-normal);

}


.mobile-menu-toggle.active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}


.mobile-menu-toggle.active span:nth-child(2) {

    opacity: 0;

}


.mobile-menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* =========================================================
   13. TEXT LINK
   ========================================================= */

.text-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--secondary-color);

    font-size: 14px;

    font-weight: 700;

    transition:
        gap var(--transition-normal),
        color var(--transition-normal);

}


.text-link:hover {

    gap: 12px;

    color: var(--accent-color);

}


.text-link span {

    font-size: 18px;

}


/* =========================================================
   14. FOOTER
   ========================================================= */

.site-footer {

    background: var(--primary-color);

    color: var(--white);

}


.footer-grid {

    display: grid;

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

    gap: 50px;

    padding: 70px 0;

}


.footer-company {

    max-width: 360px;

}


.footer-brand {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 22px;

}


.footer-brand img {

    width: 50px;

    height: 50px;

    object-fit: contain;

}


.footer-brand div {

    display: flex;

    flex-direction: column;

    line-height: 1.2;

}


.footer-brand strong {

    font-size: 20px;

    font-weight: 800;

}


.footer-brand span {

    margin-top: 4px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.footer-company p {

    margin-bottom: 14px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;

    line-height: 1.8;

}


.footer-column h3 {

    margin-bottom: 20px;

    color: var(--white);

    font-size: 16px;

    font-weight: 700;

}


.footer-column ul {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.footer-column li {

    color: rgba(255, 255, 255, 0.68);

    font-size: 14px;

}


.footer-column a {

    transition:
        color var(--transition-normal);

}


.footer-column a:hover {

    color: var(--white);

}


.footer-contact {

    display: flex;

    flex-direction: column;

    gap: 16px !important;

}


.footer-contact li {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.footer-contact li span {

    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.8px;

}


/* =========================================================
   15. FOOTER BOTTOM
   ========================================================= */

.footer-bottom {

    border-top: 1px solid rgba(255, 255, 255, 0.12);

}


.footer-bottom .container {

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.footer-bottom p {

    color: rgba(255, 255, 255, 0.55);

    font-size: 13px;

}


/* =========================================================
   16. FLOATING CHAT
   ========================================================= */

.floating-chat {

    position: fixed;

    right: 24px;

    bottom: 24px;

    z-index: 2000;

}


.chat-toggle {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--accent-color);

    color: var(--white);

    font-size: 24px;

    box-shadow:
        0 10px 30px rgba(47, 128, 237, 0.30);

    transition:
        transform var(--transition-normal),
        background var(--transition-normal);

}


.chat-toggle:hover {

    transform: scale(1.06);

    background: var(--secondary-color);

}


.chat-panel {

    position: absolute;

    right: 0;

    bottom: 72px;

    width: 350px;

    overflow: hidden;

    background: var(--surface-color);

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

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

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

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px)
        scale(0.97);

    transform-origin: bottom right;

    transition:
        opacity var(--transition-normal),
        visibility var(--transition-normal),
        transform var(--transition-normal);

}


.chat-panel.active {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);

}


.chat-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    padding: 20px;

    background: var(--primary-color);

    color: var(--white);

}


.chat-header div {

    display: flex;

    flex-direction: column;

}


.chat-header strong {

    font-size: 16px;

}


.chat-header span {

    margin-top: 3px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 11px;

}


.chat-header button {

    width: 28px;

    height: 28px;

    background: transparent;

    color: var(--white);

    font-size: 24px;

    line-height: 1;

}


.chat-options {

    display: flex;

    flex-direction: column;

    padding: 12px;

    gap: 4px;

}


.chat-option {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 15px;

    border-radius: 10px;

    transition:
        background var(--transition-normal);

}


.chat-option:hover {

    background: var(--background-color);

}


.chat-option-icon {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #EAF3FF;

    font-size: 19px;

}


.chat-option > span:last-child {

    display: flex;

    flex-direction: column;

}


.chat-option strong {

    color: var(--text-color);

    font-size: 13px;

}


.chat-option small {

    margin-top: 3px;

    color: var(--muted-text-color);

    font-size: 11px;

}


/* =========================================================
   17. FORMS
   ========================================================= */

.form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.form-label {

    color: var(--text-color);

    font-size: 13px;

    font-weight: 600;

}


.form-control {

    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

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

    border-radius: 8px;

    outline: none;

    background: var(--surface-color);

    color: var(--text-color);

    font-size: 14px;

    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);

}


.form-control:focus {

    border-color: var(--accent-color);

    box-shadow:
        0 0 0 3px rgba(47, 128, 237, 0.10);

}


textarea.form-control {

    min-height: 130px;

    resize: vertical;

}


.form-control::placeholder {

    color: #91A0B4;

}


/* =========================================================
   18. ACCESSIBILITY
   ========================================================= */

:focus-visible {

    outline: 3px solid rgba(47, 128, 237, 0.35);

    outline-offset: 3px;

}


/* =========================================================
   19. TABLET RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .container {

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

    }


    .navbar {

        min-height: 72px;

    }


    .main-navigation {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        padding: 15px 20px;

        background: var(--surface-color);

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

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

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity var(--transition-normal),
            visibility var(--transition-normal),
            transform var(--transition-normal);

    }


    .main-navigation.active {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);

    }


    .nav-list {

        flex-direction: column;

        align-items: stretch;

        gap: 0;

    }


    .nav-link {

        min-height: 50px;

        width: 100%;

    }


    .nav-link::after {

        bottom: 5px;

    }


    .navbar-actions {

        margin-left: auto;

    }


    .mobile-menu-toggle {

        display: flex;

    }


    .footer-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 40px;

    }

}


/* =========================================================
   20. MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {

    .container {

        width: calc(100% - 28px);

    }


    .section {

        padding: 70px 0;

    }


    .section-title {

        font-size: 32px;

    }


    .section-description {

        font-size: 14px;

    }


    .brand-name {

        font-size: 17px;

    }


    .brand-subtitle {

        font-size: 8px;

    }


    .brand-logo {

        width: 42px;

        height: 42px;

    }


    .navbar-actions {

        display: none;

    }


    .footer-grid {

        grid-template-columns: 1fr;

        gap: 35px;

        padding: 50px 0;

    }


    .footer-bottom .container {

        min-height: auto;

        padding: 20px 0;

        flex-direction: column;

        align-items: flex-start;

    }


    .floating-chat {

        right: 15px;

        bottom: 15px;

    }


    .chat-panel {

        right: 0;

        bottom: 68px;

        width: min(
            350px,
            calc(100vw - 30px)
        );

    }


    .chat-toggle {

        width: 54px;

        height: 54px;

    }

}


/* =========================================================
   21. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }


    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}

/* =========================================================
   PROFESSIONAL SERVICES MEGA MENU
========================================================= */

.services-nav-item {
    position: relative;
}


/* SERVICES LINK */

.services-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.services-arrow {
    transition: transform 0.25s ease;
}

.services-nav-item:hover .services-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   MEGA MENU CONTAINER
========================================================= */

.services-mega-menu {
    position: absolute;

    top: calc(100%);
    left: 50%;

    width: min(920px, 92vw);

    background: #ffffff;

    border: 1px solid rgba(12, 73, 117, 0.10);

    border-radius: 12px;

    box-shadow:
        0 25px 70px rgba(8, 48, 82, 0.18),
        0 5px 20px rgba(8, 48, 82, 0.08);

    transform:
        translateX(-50%)
        translateY(12px);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 9999;

    overflow: hidden;
}


/* TOP ARROW */

.services-mega-menu::before {
    content: "";

    position: absolute;

    top: -7px;
    left: 50%;

    width: 14px;
    height: 14px;

    background: #ffffff;

    border-left: 1px solid rgba(12, 73, 117, 0.10);
    border-top: 1px solid rgba(12, 73, 117, 0.10);

    transform:
        translateX(-50%)
        rotate(45deg);
}


/* SHOW MENU */

.services-nav-item:hover .services-mega-menu,
.services-nav-item:focus-within .services-mega-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   INNER CONTENT
========================================================= */

.services-menu-inner {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    padding: 26px 28px 20px;
}


/* =========================================================
   COLUMNS
========================================================= */

.services-column {

    padding: 0 20px;

    border-right:
        1px solid #e8eef3;
}

.services-column:first-child {
    padding-left: 0;
}

.services-column:last-child {
    padding-right: 0;
    border-right: none;
}


/* =========================================================
   SERVICE ITEM
========================================================= */

.mega-service {

    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 82px;

    padding: 10px 12px;

    color: #122b43;

    text-decoration: none;

    border-radius: 9px;

    transition:
        background-color 0.22s ease,
        transform 0.22s ease;
}


.mega-service:hover {

    background: #f3f9fc;

    transform: translateX(4px);

}


/* =========================================================
   ICON
========================================================= */

.mega-service-icon {

    flex-shrink: 0;

    width: 48px;
    height: 48px;

    display: flex;

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

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #f3f9fc,
            #e9f3f7
        );

    color: #087e95;

    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}


.mega-service-icon svg {

    width: 25px;
    height: 25px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.mega-service:hover .mega-service-icon {

    background: #087e95;

    color: #ffffff;

    transform: scale(1.05);
}


/* =========================================================
   SERVICE CONTENT
========================================================= */

.mega-service-content {

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;
}


/* NUMBER */

.mega-service-number {

    color: #07869d;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.02em;
}


/* TITLE */

.mega-service-title {

    color: #13283d;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.35;

}


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

.services-menu-footer {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 54px;

    border-top:
        1px solid #e8eef3;

    background: #fbfdfe;
}


.services-menu-footer a {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #073f73;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition: gap 0.2s ease;
}


.services-menu-footer a:hover {
    gap: 15px;
}


.services-menu-footer svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   DESKTOP NAV IMPROVEMENTS
========================================================= */

@media (min-width: 901px) {

    .services-nav-item {
        height: 100%;
    }

    .services-nav-link {
        height: 100%;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .services-mega-menu {
        width: min(820px, 90vw);
    }

    .services-menu-inner {
        padding: 22px 20px 16px;
    }

    .services-column {
        padding: 0 12px;
    }

    .mega-service {
        gap: 10px;
        padding: 8px;
    }

    .mega-service-icon {
        width: 42px;
        height: 42px;
    }

    .mega-service-icon svg {
        width: 22px;
        height: 22px;
    }

    .mega-service-title {
        font-size: 13px;
    }

}


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

@media (max-width: 900px) {

    .services-mega-menu {

        position: static;

        width: 100%;

        transform: none;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        display: none;

        margin-top: 10px;

        border-radius: 8px;

        box-shadow: none;

        border: 1px solid #e5edf2;
    }


    .services-nav-item.mobile-open
    .services-mega-menu {

        display: block;
    }


    .services-mega-menu::before {
        display: none;
    }


    .services-menu-inner {

        grid-template-columns: 1fr;

        padding: 10px;
    }


    .services-column {

        padding: 0;

        border-right: none;

        border-bottom:
            1px solid #e8eef3;
    }


    .services-column:last-child {
        border-bottom: none;
    }


    .mega-service {
        min-height: 64px;
    }


    .services-menu-footer {
        min-height: 50px;
    }

}