/* =========================================================
   Jerco Digital Solusi Website
   File: css/style.css
   Purpose: Global base style, layout, typography, utilities
   Note: Component-specific styles go to css/components.css
   ========================================================= */

/* ---------- Root Variables ---------- */
:root {
    --jerco-blue: #0F3C5C;
    --jerco-blue-dark: #082032;
    --jerco-cyan: #1BA0D7;
    --jerco-orange: #F97316;

    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-border: #e2e8f0;

    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition-fast: 160ms ease;
    --transition-base: 240ms ease;
}

.dark {
    --color-bg: #020617;
    --color-surface: #0f172a;
    --color-text: #f8fafc;
    --color-muted: #cbd5e1;
    --color-border: #1e293b;

    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.28);
    --shadow-medium: 0 18px 45px rgba(0, 0, 0, 0.38);
}

/* ---------- Global Reset ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(27, 160, 215, 0.22);
    color: var(--color-text);
}

/* ---------- Accessibility ---------- */
:focus-visible {
    outline: 3px solid rgba(27, 160, 215, 0.55);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 9999;
    border-radius: 999px;
    background: var(--jerco-blue);
    color: #ffffff;
    padding: 10px 16px;
    font-weight: 700;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Layout ---------- */
.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section-padding {
    padding-block: 96px;
}

.section-padding-sm {
    padding-block: 64px;
}

.section-padding-lg {
    padding-block: 128px;
}

/* ---------- Section Typography ---------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--jerco-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-description {
    margin-top: 18px;
    max-width: 720px;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-title {
    letter-spacing: -0.065em;
}

/* ---------- Text Utilities ---------- */
.gradient-text {
    background: linear-gradient(90deg, var(--jerco-cyan), #2563eb, var(--jerco-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* ---------- Background Utilities ---------- */
.bg-grid-soft {
    background-image:
        linear-gradient(rgba(15, 60, 92, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 60, 92, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

.dark .bg-grid-soft {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
}

.bg-radial-jerco {
    background:
        radial-gradient(circle at top left, rgba(27, 160, 215, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 32%);
}

/* ---------- Process Number Utility ---------- */
.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(27, 160, 215, 0.12);
    color: var(--jerco-cyan);
    font-size: 0.95rem;
    font-weight: 900;
}

.dark .process-number {
    background: rgba(27, 160, 215, 0.18);
}

/* ---------- Table Base ---------- */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--color-border);
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(15, 60, 92, 0.06);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dark th {
    background: rgba(148, 163, 184, 0.08);
}

tr:last-child td {
    border-bottom: 0;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.45);
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(27, 160, 215, 0.7);
    background-clip: content-box;
}

/* ---------- Motion Safety ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
