/* ==========================================================================
   PT. ADI DHARMA ABADI — Design System & Foundation (base.css)
   Corporate Identity 2026 | Facility Management & Security Services
   ========================================================================== */

:root {
  /* Core Brand Palette (derived from Official 2026 Company Profile) */
  --navy-950: #0a102e;
  --navy-900: #111b47;
  --navy-800: #1a2761;
  --brand-indigo: #29166f;
  --brand-indigo-hover: #201059;
  --brand-sky: #0088cc;
  --brand-sky-light: #e6f5fc;
  --brand-sky-subtle: #f0f9ff;
  --accent-gold: #c98a18;
  --accent-gold-bg: #fef9ec;
  --accent-emerald: #0f766e;
  --accent-emerald-bg: #ecfdf5;

  /* Architectural Neutrals */
  --bg-canvas: #f7f9fc;
  --bg-white: #ffffff;
  --bg-subtle: #eef2f7;
  --bg-warm: #faf5ef;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;

  /* Hairlines & Borders */
  --border-light: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-on-dark: rgba(255, 255, 255, 0.12);

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 16, 46, 0.04);
  --shadow-sm: 0 2px 8px -2px rgba(10, 16, 46, 0.06), 0 1px 3px rgba(10, 16, 46, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(10, 16, 46, 0.09), 0 4px 12px -4px rgba(10, 16, 46, 0.05);
  --shadow-lg: 0 24px 56px -12px rgba(10, 16, 46, 0.16), 0 8px 20px -6px rgba(10, 16, 46, 0.08);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography Families */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout Metrics */
  --container-max: 1240px;
  --header-height: 84px;
  --section-py: clamp(4.5rem, 7vw, 7rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
.display-heading {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

p {
  color: var(--text-secondary);
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--section-py);
  position: relative;
}

.section-white {
  background-color: var(--bg-white);
}

.section-subtle {
  background-color: var(--bg-subtle);
}

.section-warm {
  background-color: var(--bg-warm);
}

.section-dark {
  background-color: var(--navy-950);
  color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-on-dark);
}

.section-dark p {
  color: var(--text-on-dark-muted);
}

/* Editorial Section Header */
.section-header {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-header.split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-header.split .section-header-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-indigo);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--brand-sky);
  flex-shrink: 0;
}

.section-header.centered .eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--brand-sky);
  flex-shrink: 0;
}

.section-dark .eyebrow {
  color: #7dd3fc;
}

.section-header h2 + p {
  margin-top: 1rem;
  font-size: 1.06rem;
}

/* Accessibility & Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy-950);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xs);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 3px;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
