/* ================= TYPOGRAPHY SYSTEM (IMPROVED) ================= */

:root {
    --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;

    /* Light background text */
    --text-dark: #0f2236; /* headings */
    --text-body: #1f3a56; /* paragraph */
    --text-muted: #6b7f94; /* secondary */

    /* On dark background text (Hero/Tracking) */
    --text-on-dark: #ffffff;
    --text-on-dark-body: rgba(255, 255, 255, 0.9);
    --text-on-dark-muted: rgba(255, 255, 255, 0.75);

    --line-normal: 1.6;
    --line-relaxed: 1.75;
}

/* GLOBAL BASE */
html {
    font-family: var(--font-main);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    line-height: var(--line-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADINGS ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 10px; /* ✅ biar rapi & tidak nempel */
}

h1 {
    font-size: clamp(28px, 3.2vw, 44px);
}
h2 {
    font-size: clamp(22px, 2.4vw, 34px);
}
h3 {
    font-size: clamp(18px, 1.8vw, 22px);
}
h4 {
    font-size: 18px;
}

/* ===== PARAGRAPH ===== */
p {
    font-family: var(--font-main);
    font-size: 15px;
    line-height: var(--line-relaxed);
    color: var(--text-body);
    margin: 0 0 12px; /* ✅ default spacing nyaman */
}

/* ===== SMALL TEXT ===== */
small,
.text-muted {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== LINKS ===== */
a {
    font-family: var(--font-main);
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Utility link style kalau mau link terlihat jelas */
.link {
    color: #0b63ce;
    font-weight: 600;
}
.link:hover {
    text-decoration: underline;
}

/* ===== FORM & BUTTON ===== */
button,
.btn,
input,
select,
textarea {
    font-family: var(--font-main);
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 900;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: var(--line-relaxed);
    margin: 0 auto 18px;
}

/* ===== ON DARK MODE (Hero/Tracking) ===== */
/* Pakai: tambahkan class="on-dark" di section/slide */
.on-dark,
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark p,
.on-dark span,
.on-dark small,
.on-dark a {
    color: var(--text-on-dark);
}

.on-dark p {
    color: var(--text-on-dark-body);
}

.on-dark .text-muted,
.on-dark small {
    color: var(--text-on-dark-muted);
}

/* Optional: text shadow supaya makin kebaca di background foto */
.text-shadow-soft {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
