/* ==========================================================
   Mandiri Artha Sukses Group - responsive home page (v2)
   Works with the Anima export HTML (group, export, div, rectangle-2...).
   Do NOT re-export from Anima over this file.
   ========================================================== */

:root {
  --blue: #252dad;
  --navy: #213972;
  --yellow: #dfd43b;
  --black: #000000;
  --white: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Page shell ---------- */
.COMPANY-HOME-PAGE {
  display: block;
  width: 100%;
  min-height: 100vh;
  background-color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
}

/* Outer section = 2-column grid: hero row on top, panels row below */
.COMPANY-HOME-PAGE > section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---------- Hero (black background + two illustrations) ---------- */
.COMPANY-HOME-PAGE > section > .rectangle {
  grid-column: 1 / -1;
  grid-row: 1;
  background-color: var(--black);
}

.COMPANY-HOME-PAGE > section > .export,
.COMPANY-HOME-PAGE > section > .group {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 669;
  object-fit: cover;
  align-self: start;
  grid-row: 1;
}

.COMPANY-HOME-PAGE > section > .export { grid-column: 1; }
.COMPANY-HOME-PAGE > section > .group  { grid-column: 2; }

/* ---------- Two tinted panels ---------- */
.COMPANY-HOME-PAGE > section > section {
  position: relative;
  grid-row: 2;
  min-height: 455px;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  overflow: hidden;
}

.COMPANY-HOME-PAGE > section > section:nth-of-type(1) { grid-column: 1; }
.COMPANY-HOME-PAGE > section > section:nth-of-type(2) { grid-column: 2; }

/* Tint layers (the Figma blocks at 50% opacity) */
.COMPANY-HOME-PAGE .div,
.COMPANY-HOME-PAGE .rectangle-2 {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  z-index: 0;
}
.COMPANY-HOME-PAGE .div         { background-color: var(--blue); }
.COMPANY-HOME-PAGE .rectangle-2 { background-color: var(--yellow); }

/* Content sits above the tint */
.COMPANY-HOME-PAGE > section > section > *:not(.div):not(.rectangle-2) {
  position: relative;
  z-index: 1;
}

/* ---------- Logos ---------- */
.COMPANY-HOME-PAGE .logo-MAS-fix-banget,
.COMPANY-HOME-PAGE .artboard-copy {
  display: block;
  height: auto;
  object-fit: contain;
}
.COMPANY-HOME-PAGE .logo-MAS-fix-banget { width: min(500px, 85%); }
.COMPANY-HOME-PAGE .artboard-copy       { width: min(403px, 85%); }

/* ---------- Titles ---------- */
.COMPANY-HOME-PAGE .text-wrapper,
.COMPANY-HOME-PAGE .text-wrapper-2 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3.125rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
}
.COMPANY-HOME-PAGE .text-wrapper   { color: var(--blue); }
.COMPANY-HOME-PAGE .text-wrapper-2 { color: var(--navy); }

/* ---------- MORE INFO buttons ----------
   The button itself is the white pill; the separate decorative
   pill divs (rectangle-3 / rectangle-4) are hidden. */
.COMPANY-HOME-PAGE .rectangle-3,
.COMPANY-HOME-PAGE .rectangle-4 {
  display: none;
}

.COMPANY-HOME-PAGE .text-wrapper-3,
.COMPANY-HOME-PAGE .text-wrapper-4 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(300px, 90%);
  height: 60px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 84.5px;
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 400;
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.COMPANY-HOME-PAGE .text-wrapper-3:hover,
.COMPANY-HOME-PAGE .text-wrapper-4:hover  { filter: brightness(0.96); }
.COMPANY-HOME-PAGE .text-wrapper-3:active,
.COMPANY-HOME-PAGE .text-wrapper-4:active { filter: brightness(0.9); }

.COMPANY-HOME-PAGE .text-wrapper-3:focus-visible,
.COMPANY-HOME-PAGE .text-wrapper-4:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

/* ---------- Footer bar ---------- */
.COMPANY-HOME-PAGE .rectangle-5 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 109px;
  margin: 0;
  padding: 16px 20px;
  background-color: var(--black);
}

.COMPANY-HOME-PAGE .text-wrapper-5 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 3.125rem);
  line-height: 1.1;
  color: var(--white);
  text-align: center;
  letter-spacing: 0;
}

/* ---------- Mobile: stack everything in one column ---------- */
@media (max-width: 768px) {
  .COMPANY-HOME-PAGE > section { grid-template-columns: 1fr; }

  .COMPANY-HOME-PAGE > section > .rectangle { grid-column: 1; grid-row: 1 / 3; }
  .COMPANY-HOME-PAGE > section > .export    { grid-column: 1; grid-row: 1; }
  .COMPANY-HOME-PAGE > section > .group     { grid-column: 1; grid-row: 2; }

  .COMPANY-HOME-PAGE > section > section:nth-of-type(1) { grid-column: 1; grid-row: 3; }
  .COMPANY-HOME-PAGE > section > section:nth-of-type(2) { grid-column: 1; grid-row: 4; }
}