/* ============================================================
   HMS Info Services - Main Stylesheet
   Professional IT / tech theme (blue + cyan)
   ============================================================ */

:root {
    --primary: #0b3d91;          /* deep corporate blue */
    --primary-dark: #082c6b;
    --primary-light: #1d4ed8;
    --accent: #06b6d4;           /* cyan */
    --accent-dark: #0891b2;
    --primary-gradient: linear-gradient(135deg, #0b3d91 0%, #1d4ed8 60%, #06b6d4 100%);
    --hero-gradient: linear-gradient(120deg, #082c6b 0%, #0b3d91 50%, #0e4fb0 100%);
    --dark-gradient: linear-gradient(135deg, #0a1a35 0%, #0b3d91 100%);

    --text: #1a2436;
    --muted: #64748b;
    --bg: #f6f9fe;
    --bg-alt: #eef3fb;
    --white: #ffffff;
    --line: #e2e8f3;

    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;
    --star: #f59e0b;

    --shadow-sm: 0 2px 10px rgba(11, 61, 145, 0.08);
    --shadow-md: 0 10px 30px rgba(11, 61, 145, 0.12);
    --shadow-lg: 0 20px 50px rgba(11, 61, 145, 0.18);
    --radius: 16px;
}

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

body {
    font-family: 'Jost', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

a { color: var(--primary); text-decoration: none; transition: all .25s ease; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn-hms {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(11, 61, 145, 0.30);
    transition: all .3s ease;
}
.btn-hms:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11, 61, 145, 0.40); }

.btn-outline-hms {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 11px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all .3s ease;
}
.btn-outline-hms:hover { background: var(--primary); color: var(--white); }

.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: #fff;
    padding: 13px 28px; border-radius: 50px; font-weight: 600;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
    transition: all .3s ease;
}
.btn-whatsapp:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(37, 211, 102, .45); }

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--dark-gradient);
    color: rgba(255,255,255,.92);
    font-size: 13.5px;
    padding: 9px 0;
}
.top-bar a { color: rgba(255,255,255,.92); }
.top-bar a:hover { color: var(--accent); }
.top-bar .tb-item { margin-right: 22px; display: inline-flex; align-items: center; gap: 7px; }
.top-bar .tb-social a { margin-left: 12px; }

/* ---------- Header / Nav ---------- */
.main-header {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--line);
}
.navbar-brand .brand-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800; font-size: 1.5rem; letter-spacing: -.5px;
}
.navbar-brand .brand-sub {
    display: block; font-size: 10.5px; font-weight: 500;
    color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase;
}
.navbar .nav-link {
    font-weight: 600; color: var(--text); padding: 10px 16px !important;
    position: relative;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
    height: 2.5px; background: var(--primary-gradient); border-radius: 3px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.dropdown-menu { border: none; box-shadow: var(--shadow-md); border-radius: 14px; padding: 10px; margin-top: 12px; }
.dropdown-item { border-radius: 8px; padding: 9px 14px; font-weight: 500; }
.dropdown-item:hover { background: var(--bg-alt); color: var(--primary); }
.dropdown-item i { width: 22px; color: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-gradient); color: #fff; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(6,182,212,.25) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(29,78,216,.35) 0%, transparent 45%);
}
.hero .carousel-item { min-height: 540px; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; padding: 70px 0; max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    padding: 7px 16px; border-radius: 50px; font-size: 13.5px; font-weight: 600;
    margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; margin-bottom: 30px; max-width: 600px; }
.hero .btn-light-cta { background: #fff; color: var(--primary); }
.hero .btn-light-cta:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- Section helpers ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 55px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dark-hms { background: var(--dark-gradient); color: #fff; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
    font-size: 13px; color: var(--accent-dark); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Service cards ---------- */
.service-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 26px; height: 100%; transition: all .35s ease; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: var(--primary-gradient); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--white); background: var(--primary-gradient); margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(11,61,145,.25);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.service-card .read-more { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.service-card .read-more i { transition: transform .25s ease; }
.service-card:hover .read-more i { transform: translateX(4px); }

/* ---------- Product cards ---------- */
.product-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; height: 100%; transition: all .35s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-thumb { position: relative; padding-top: 72%; background: var(--bg-alt); overflow: hidden; }
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.07); }
.product-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--primary-gradient); color: #fff; font-size: 11px; font-weight: 600;
    padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: .5px;
}
.product-tag.rental { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.product-body { padding: 18px; }
.product-body .brand { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); font-weight: 700; }
.product-body h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.product-body p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.product-price { font-weight: 700; color: var(--primary); }

/* ---------- Feature / why-us ---------- */
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .fi-icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--primary); background: var(--white); box-shadow: var(--shadow-sm);
}
.bg-dark-hms .feature-item .fi-icon { background: rgba(255,255,255,.1); color: var(--accent); }
.feature-item h4 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-item p { color: var(--muted); font-size: 14px; margin: 0; }
.bg-dark-hms .feature-item h4 { color: #fff; }
.bg-dark-hms .feature-item p { color: rgba(255,255,255,.75); }

/* ---------- Stats ---------- */
.stat-box { text-align: center; padding: 10px; }
.stat-box .num { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; }
.stat-box .lbl { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 8px; letter-spacing: .5px; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: 100%; }
.testimonial-card .stars { color: var(--star); margin-bottom: 14px; }
.testimonial-card .quote { color: var(--text); font-size: 15px; font-style: italic; margin-bottom: 20px; }
.testimonial-card .t-person { display: flex; align-items: center; gap: 14px; }
.testimonial-card .t-avatar {
    width: 50px; height: 50px; border-radius: 50%; background: var(--primary-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.testimonial-card .t-name { font-weight: 700; }
.testimonial-card .t-role { color: var(--muted); font-size: 13px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary-gradient); color: #fff; border-radius: 24px; padding: 50px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Page header ---------- */
.page-header { background: var(--dark-gradient); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(6,182,212,.25) 0%, transparent 45%); }
.page-header h1 { color: #fff; position: relative; }
.page-header .breadcrumb { position: relative; }
.page-header .breadcrumb a { color: rgba(255,255,255,.8); }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 34px; }
.form-control, .form-select { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(29,78,216,.12); }
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-gradient); color: rgba(255,255,255,.75); padding-top: 70px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(6,182,212,.12) 0%, transparent 40%); pointer-events: none; }
.footer-col { position: relative; }
.footer-title { color: #fff; font-size: 1.15rem; margin-bottom: 22px; position: relative; display: inline-block; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 38px; height: 3px; background: var(--primary-gradient); border-radius: 3px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: 14.5px; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; }
.footer-contact li i { color: var(--accent); margin-top: 4px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; margin-right: 9px; border: 1px solid rgba(255,255,255,.1);
}
.footer-social a:hover { background: var(--primary-gradient); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding: 22px 0; font-size: 14px; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Floating buttons ---------- */
.float-btns { position: fixed; right: 22px; bottom: 22px; z-index: 1050; display: flex; flex-direction: column; gap: 12px; }
.float-btns a {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: all .3s ease;
}
.float-btns a:hover { color: #fff; transform: scale(1.08); }
.float-btns .fb-whatsapp { background: #25d366; }
.float-btns .fb-call { background: var(--primary-gradient); }
.float-btns .fb-whatsapp { animation: hms-pulse 2.5s infinite; }
@keyframes hms-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; bottom: 22px; left: 22px; width: 46px; height: 46px; border-radius: 12px;
    background: var(--primary-gradient); color: #fff; border: none; display: none; align-items: center; justify-content: center;
    z-index: 1040; box-shadow: var(--shadow-md);
}
.back-to-top.show { display: flex; }

/* ---------- Utilities ---------- */
.divider-icon { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--accent); }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.list-check li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px; color: var(--success); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .section { padding: 56px 0; }
    .hero .carousel-item { min-height: 460px; }
    .navbar-collapse { background: #fff; padding: 14px; border-radius: 14px; margin-top: 12px; box-shadow: var(--shadow-md); }
}
@media (max-width: 575px) {
    .cta-band { padding: 34px 24px; }
    .form-card { padding: 24px; }
    .stat-box .num { font-size: 2rem; }
}
