/* =========================================================
   PT MUDA JAYA MULTINIAGA
   GLOBAL DESIGN SYSTEM
   ========================================================= */


/* =========================================================
   01. RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  font-family: var(--font-primary);

  background-color: var(--color-white);
  color: var(--color-black);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img,
video {
  width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

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

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


/* =========================================================
   02. DESIGN TOKENS
   ========================================================= */

:root {

  /* -------------------------
     TYPOGRAPHY
     ------------------------- */

  --font-primary:
    "Plus Jakarta Sans",
    Arial,
    sans-serif;


  /* -------------------------
     BRAND COLORS
     ------------------------- */

  --color-gold: #a78b4f;
  --color-gold-soft: #c4ad78;

  --color-green: #003b2f;
  --color-green-hover: #064b3d;

  --color-black: #0a0a0a;
  --color-dark: #1d1b19;
  --color-dark-soft: #272522;

  --color-white: #ffffff;
  --color-off-white: #f7f6f3;

  --color-grey-100: #f1f1ef;
  --color-grey-200: #e5e5e2;
  --color-grey-300: #c7c7c3;
  --color-grey-500: #888884;
  --color-grey-700: #555550;


  /* -------------------------
     LAYOUT
     ------------------------- */

  --container-max: 1200px;

  --header-height: 88px;

  --page-padding-desktop: 48px;
  --page-padding-tablet: 32px;
  --page-padding-mobile: 20px;


  /* -------------------------
     SECTION SPACING
     ------------------------- */

  --section-space-sm: 72px;
  --section-space-md: 100px;
  --section-space-lg: 128px;
  --section-space-xl: 160px;


  /* -------------------------
     BORDER RADIUS
     ------------------------- */

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 999px;


  /* -------------------------
     SHADOW
     ------------------------- */

  --shadow-soft:
    0 12px 40px rgba(0, 0, 0, 0.08);

  --shadow-card:
    0 10px 30px rgba(0, 0, 0, 0.06);


  /* -------------------------
     MOTION
     ------------------------- */

  --ease-standard:
    cubic-bezier(0.22, 1, 0.36, 1);

  --ease-smooth:
    cubic-bezier(0.4, 0, 0.2, 1);

  --duration-fast: 220ms;
  --duration-normal: 420ms;
  --duration-slow: 700ms;
}


/* =========================================================
   03. GLOBAL CONTAINER
   ========================================================= */

.container {
  width: min(
    calc(100% - (var(--page-padding-desktop) * 2)),
    var(--container-max)
  );

  margin-inline: auto;
}


/* =========================================================
   04. GLOBAL SECTION
   ========================================================= */

.section {
  position: relative;

  width: 100%;

  padding-block: var(--section-space-lg);
}

.section--small {
  padding-block: var(--section-space-md);
}

.section--large {
  padding-block: var(--section-space-xl);
}

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

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


/* =========================================================
   05. TYPOGRAPHY FOUNDATION
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;

  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: -0.015em;

  color: inherit;
}

h1 {
  font-size: clamp(3rem, 5.4vw, 5.25rem);
  line-height: 1.10;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.5rem, 2.3vw, 2.35rem);
  line-height: 1.08;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  font-size: 1rem;
  line-height: 1.65;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.55;
}

.text-muted {
  color: var(--color-grey-500);
}


/* =========================================================
   06. SECTION LABEL
   ========================================================= */

.section-label {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  color: var(--color-gold);

  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.section-label::before {
  content: "";

  width: 30px;
  height: 1px;

  background-color: currentColor;
}


/* =========================================================
   07. BUTTON FOUNDATION
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  min-height: 42px;

  padding-inline: 20px;

  border-radius: var(--radius-pill);

  font-size: 0.875rem;
  font-weight: 500;

  transition:
    background-color var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-standard);
}

.btn--primary {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-green-hover);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid currentColor;
  background-color: transparent;
}

.btn__arrow {
  display: inline-block;

  transition:
    transform var(--duration-fast) var(--ease-standard);
}

.btn:hover .btn__arrow {
  transform: translateX(5px);
}


/* =========================================================
   08. MEDIA FOUNDATION
   ========================================================= */

.media-cover {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.media-rounded {
  overflow: hidden;

  border-radius: var(--radius-lg);
}


/* =========================================================
   09. ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-white);
}


/* =========================================================
   10. RESPONSIVE GLOBAL
   ========================================================= */

@media (max-width: 1024px) {

  .container {
    width: min(
      calc(100% - (var(--page-padding-tablet) * 2)),
      var(--container-max)
    );
  }

  .section {
    padding-block: var(--section-space-md);
  }

}


@media (max-width: 640px) {

  .container {
    width: calc(
      100% - (var(--page-padding-mobile) * 2)
    );
  }

  .section {
    padding-block: var(--section-space-sm);
  }

  p {
    font-size: 0.9375rem;
  }

}


/* =========================================================
   11. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
