/* =====================
   HLB EMAS SDN BHD
   site.css
   ===================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1b4332;
    background: #fff;
}

/* ---- NAVBAR ---- */
.navbar {
    background: #2d6a4f;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-box {
    background: #c8e6c0;
    color: #1b4332;
    font-weight: 600;
    font-size: 12px;
    padding: 5px 9px;
    border-radius: 6px;
    line-height: 1.3;
    text-align: center;
}
.nav-company { color: #d8f3dc; font-size: 13px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: #d8f3dc; font-size: 13px; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* ---- HERO (personal loan bg) ---- */
.hero {
    background-image: url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 40px 24px 48px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(240, 250, 244, 0.88);
    z-index: 0;
}
.hero-top, .hero-body { position: relative; z-index: 1; }
.hero-top { text-align: center; margin-bottom: 32px; }
.hero-top h1 { color: #1b4332; font-size: 26px; font-weight: 600; margin-bottom: 6px; letter-spacing: 1px; }
.hero-top h2 { color: #40916c; font-size: 12px; letter-spacing: 2px; font-weight: 400; margin-bottom: 4px; }
.hero-ssm { color: #52b788; font-size: 11px; }

.hero-body { display: flex; gap: 28px; align-items: flex-start; max-width: 760px; margin: 0 auto; flex-wrap: wrap; }
.hero-left { flex: 0 0 200px; display: flex; flex-direction: column; gap: 12px; }

.btn-wa1, .btn-wa2, .btn-call {
    display: block; text-align: center; text-decoration: none;
    border: none; border-radius: 8px; padding: 13px 16px;
    font-size: 13px; cursor: pointer; transition: opacity 0.2s;
}
.btn-wa1 { background: #25D366; color: #fff; }
.btn-wa2 { background: #128C7E; color: #fff; }
.btn-call { background: #fff; color: #2d6a4f; border: 1px solid #b7e4c7; }
.btn-wa1:hover, .btn-wa2:hover, .btn-call:hover { opacity: 0.88; }
.wa-note { color: #40916c; font-size: 10px; text-align: center; line-height: 1.6; }

.hero-right { flex: 1; min-width: 260px; }
.table-title { color: #2d6a4f; font-size: 12px; margin-bottom: 8px; text-align: center; font-weight: 500; }
.loan-table { width: 100%; border-collapse: collapse; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(45,106,79,0.12); }
.loan-table th { background: #b7e4c7; color: #1b4332; font-size: 12px; font-weight: 600; padding: 10px; text-align: center; }
.loan-table td { background: rgba(255,255,255,0.95); color: #2d6a4f; font-size: 13px; padding: 9px 10px; text-align: center; border-bottom: 1px solid #d8f3dc; }
.loan-table tr:nth-child(even) td { background: rgba(240,250,244,0.95); }
.loan-table td:first-child { color: #1b4332; font-weight: 600; }
.table-note { color: #74c69d; font-size: 10px; text-align: center; margin-top: 6px; }

/* ---- SECTIONS ---- */
.sec { padding: 40px 24px; background: #fff; }
.sec-alt { padding: 40px 24px; background: #f0faf4; }

/* Syarikat with handshake bg */
.sec-company {
    padding: 40px 24px;
    background-image: url('/images/handshake.jpg');
    background-size: cover;
    background-position: center top;
    position: relative;
}
.sec-company::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.92);
    z-index: 0;
}
.sec-company .sec-title,
.sec-company .sec-divider,
.sec-company .co-grid { position: relative; z-index: 1; }

.sec-title { font-size: 20px; font-weight: 600; color: #1b4332; text-align: center; margin-bottom: 8px; }
.sec-divider { width: 40px; height: 3px; background: #52b788; margin: 0 auto 24px; border-radius: 2px; }

/* ---- COMPANY ---- */
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 580px; margin: 0 auto; }
.co-card { background: rgba(255,255,255,0.96); border: 1px solid #b7e4c7; border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(45,106,79,0.07); }
.co-card h3 { font-size: 14px; font-weight: 600; color: #2d6a4f; margin-bottom: 8px; }
.co-card p { font-size: 13px; color: #444; line-height: 1.6; }

/* ---- KELAYAKAN ---- */
.kelay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin: 0 auto 28px; }
.kelay-item { background: #fff; border: 1px solid #b7e4c7; border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.kelay-dot { width: 10px; height: 10px; border-radius: 50%; background: #40916c; flex-shrink: 0; }
.kelay-text { font-size: 13px; color: #1b4332; font-weight: 500; flex: 1; }
.kelay-badge { background: #d8f3dc; color: #1b4332; font-size: 10px; padding: 3px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }

/* ---- FORM ---- */
.form-box { background: #fff; border: 1px solid #b7e4c7; border-radius: 12px; padding: 24px; max-width: 420px; margin: 0 auto; box-shadow: 0 2px 12px rgba(45,106,79,0.07); }
.form-title { font-size: 14px; font-weight: 600; color: #2d6a4f; margin-bottom: 16px; text-align: center; }
.form-row { margin-bottom: 12px; }
.form-row label { font-size: 12px; color: #555; display: block; margin-bottom: 4px; }
.form-row input { width: 100%; padding: 9px 12px; border: 1px solid #b7e4c7; border-radius: 7px; font-size: 13px; color: #1b4332; background: #f9fef9; outline: none; transition: border-color 0.2s; }
.form-row input:focus { border-color: #52b788; }
.form-submit { width: 100%; background: #2d6a4f; color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 13px; cursor: pointer; margin-top: 4px; transition: background 0.2s; }
.form-submit:hover { background: #1b4332; }
.form-note { font-size: 10px; color: #95d5b2; text-align: center; margin-top: 10px; }

/* ---- LOCATION ---- */
.loc-img-wrap { max-width: 640px; margin: 0 auto 18px; border-radius: 10px; overflow: hidden; border: 1px solid #b7e4c7; }
.loc-img-wrap img { width: 100%; display: block; }
.addr-text { font-size: 13px; color: #555; text-align: center; line-height: 1.8; margin-bottom: 18px; }
.phone-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.phone-btn { background: #2d6a4f; color: #fff; text-decoration: none; border-radius: 8px; padding: 11px 24px; font-size: 13px; transition: background 0.2s; }
.phone-btn:hover { background: #1b4332; }

/* ---- CONTACT ---- */
.contact-cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.c-card { background: #fff; border: 1px solid #b7e4c7; border-radius: 10px; padding: 16px 20px; text-align: center; min-width: 130px; }
.c-card strong { display: block; font-size: 12px; color: #2d6a4f; margin-bottom: 5px; font-weight: 600; }
.c-card span { font-size: 13px; color: #555; line-height: 1.6; }

/* ---- FOOTER ---- */
.footer { background: #1b4332; padding: 20px 24px; text-align: center; }
.footer p { color: #74c69d; font-size: 12px; line-height: 1.8; }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .hero-body { flex-direction: column; }
    .hero-left { flex: unset; width: 100%; }
    .co-grid { grid-template-columns: 1fr; }
    .kelay-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 12px; }
}
