/* =====================================================================
   Hana Roof — Custom Styles
   Palet: Biru Muda & Putih — bersih, modern, mudah dibaca
   ===================================================================== */

:root {
    --hr-blue-50:  #f0f8ff;
    --hr-blue-100: #dbeeff;
    --hr-blue-200: #b8ddff;
    --hr-blue-300: #86c5ff;
    --hr-blue-400: #4fa8f5;
    --hr-blue-500: #2b8ce8;
    --hr-blue-600: #1a6fc4;
    --hr-blue-700: #15579c;
    --hr-navy:     #0d3a63;
    --hr-white:    #ffffff;
    --hr-gray-50:  #f7fafc;
    --hr-gray-100: #eef2f6;
    --hr-gray-500: #64748b;
    --hr-gray-700: #334155;
    --hr-gray-900: #1e293b;

    --bs-primary: var(--hr-blue-500);
    --bs-primary-rgb: 43, 140, 232;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--hr-gray-700);
    --bs-body-bg: var(--hr-white);
}

body {
    color: var(--hr-gray-700);
    background-color: var(--hr-white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--hr-blue-600); }
a:hover { color: var(--hr-blue-700); }

h1, h2, h3, h4, h5, h6 {
    color: var(--hr-navy);
    font-weight: 700;
}

.text-hr-navy { color: var(--hr-navy) !important; }
.text-hr-blue { color: var(--hr-blue-500) !important; }
.bg-hr-blue-50 { background-color: var(--hr-blue-50) !important; }
.bg-hr-blue-100 { background-color: var(--hr-blue-100) !important; }
.bg-hr-navy { background-color: var(--hr-navy) !important; }

/* --- Buttons --- */
.btn-primary {
    background-color: var(--hr-blue-500);
    border-color: var(--hr-blue-500);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--hr-blue-600);
    border-color: var(--hr-blue-600);
}
.btn-outline-primary {
    color: var(--hr-blue-600);
    border-color: var(--hr-blue-400);
}
.btn-outline-primary:hover {
    background-color: var(--hr-blue-500);
    border-color: var(--hr-blue-500);
}
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
}
.btn-whatsapp:hover { background-color: #1ebc59; color:#fff; }

/* --- Navbar --- */
.navbar-hr {
    background-color: var(--hr-white);
    box-shadow: 0 2px 12px rgba(13, 58, 99, 0.06);
}
.navbar-hr .navbar-brand { font-weight: 800; color: var(--hr-navy); }
.navbar-hr .navbar-brand small { color: var(--hr-blue-500); font-weight: 600; }
.navbar-hr .nav-link {
    color: var(--hr-gray-700);
    font-weight: 500;
    padding: 0.6rem 0.9rem !important;
}
.navbar-hr .nav-link.active,
.navbar-hr .nav-link:hover {
    color: var(--hr-blue-600);
}
.navbar-hr .nav-link.active {
    font-weight: 700;
}

/* --- Hero --- */
.hero-section {
    background: linear-gradient(135deg, var(--hr-blue-50) 0%, var(--hr-white) 55%, var(--hr-blue-100) 100%);
    position: relative;
    overflow: hidden;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--hr-blue-100);
    color: var(--hr-blue-700);
    font-weight: 600;
    font-size: .85rem;
    padding: .4rem .9rem;
    border-radius: 999px;
}

/* --- Cards --- */
.card-hr {
    border: 1px solid var(--hr-gray-100);
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
    background: var(--hr-white);
}
.card-hr:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 58, 99, 0.10);
}
.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hr-blue-100);
    color: var(--hr-blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.section-pad { padding: 4rem 0; }
@media (max-width: 767.98px) {
    .section-pad { padding: 2.75rem 0; }
}

.section-title-eyebrow {
    color: var(--hr-blue-500);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .8rem;
}

/* --- Product cards --- */
.product-thumb {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    background: var(--hr-blue-50);
}
.badge-hero {
    background: var(--hr-blue-500);
}

/* --- Footer --- */
.footer-hr {
    background: var(--hr-navy);
    color: #cfe3f7;
}
.footer-hr a { color: #cfe3f7; text-decoration: none; }
.footer-hr a:hover { color: #fff; text-decoration: underline; }
.footer-hr h6 { color: #fff; font-weight: 700; }
.footer-hr .social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex; align-items: center; justify-content: center;
}
.footer-hr .social-icon:hover { background: var(--hr-blue-500); }

/* --- Forms --- */
.form-control:focus, .form-select:focus {
    border-color: var(--hr-blue-400);
    box-shadow: 0 0 0 .2rem rgba(43,140,232,.15);
}
.form-label { font-weight: 600; color: var(--hr-gray-900); }

/* --- Timeline (About) --- */
.timeline-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--hr-blue-500);
    border: 3px solid var(--hr-blue-100);
}

/* --- AI Chat Widget --- */
#hr-chat-toggle {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--hr-blue-500);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(43,140,232,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 1050;
    cursor: pointer;
    transition: transform .15s ease;
}
#hr-chat-toggle:hover { transform: scale(1.06); }

#hr-chat-window {
    position: fixed;
    bottom: 96px;
    right: 22px;
    width: 350px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(13,58,99,.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
}
#hr-chat-window.open { display: flex; }
.hr-chat-header {
    background: var(--hr-blue-500);
    color: #fff;
    padding: .9rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
}
.hr-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: .9rem;
    background: var(--hr-blue-50);
}
.hr-chat-msg {
    max-width: 85%;
    padding: .55rem .8rem;
    border-radius: .9rem;
    margin-bottom: .5rem;
    font-size: .92rem;
    line-height: 1.4;
}
.hr-chat-msg.bot {
    background: #fff;
    border: 1px solid var(--hr-blue-100);
    border-bottom-left-radius: .2rem;
}
.hr-chat-msg.user {
    background: var(--hr-blue-500);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: .2rem;
}
.hr-chat-footer {
    padding: .6rem;
    border-top: 1px solid var(--hr-gray-100);
    display: flex;
    gap: .4rem;
}
.hr-chat-footer input {
    flex: 1;
    border: 1px solid var(--hr-gray-100);
    border-radius: .6rem;
    padding: .5rem .7rem;
    font-size: .9rem;
}
.hr-chat-footer input:focus { outline: none; border-color: var(--hr-blue-400); }
.hr-chat-typing { font-size: .8rem; color: var(--hr-gray-500); font-style: italic; }

/* --- Utilities --- */
.rounded-hr { border-radius: 1rem !important; }
.shadow-hr { box-shadow: 0 8px 24px rgba(13,58,99,.08) !important; }
