/* ==========================================================
   Mandiri Artha Sukses Group - responsive home page
   Same class names as the Figma export, so index.html is unchanged.
   ========================================================== */

:root {
  --blue: #252dad;
  --yellow: #dfd43b;
  --black: #000000;
  --white: #ffffff;
  --font-bold: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

[hidden] { display: none !important; }

/* ---------- Page shell ---------- */
.COMPANY-HOME-PAGE {
  background-color: var(--white);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-bold);
}

.COMPANY-HOME-PAGE main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---------- Header ---------- */
.COMPANY-HOME-PAGE .rectangle-2 {
  position: static;
  width: 100%;
  height: auto;
  min-height: 100px;
  margin: 0;
  padding: 16px 20px;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.COMPANY-HOME-PAGE .text-wrapper-5 {
  position: static;
  margin: 0;
  font-family: var(--font-bold);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(1.4rem, 3.5vw, 3.125rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0;
}

/* ---------- Two panels ---------- */
.COMPANY-HOME-PAGE section.rectangle,
.COMPANY-HOME-PAGE section.div {
  position: relative;
  width: auto;
  height: auto;
  min-height: 700px;
  margin: 0;
  padding: 98px 20px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.COMPANY-HOME-PAGE section.rectangle { background-color: var(--blue); }
.COMPANY-HOME-PAGE section.div       { background-color: var(--yellow); }

/* Everything except the decorative image sits above it */
.COMPANY-HOME-PAGE section.rectangle > *:not(.export),
.COMPANY-HOME-PAGE section.div > *:not(.img) {
  position: relative;
  z-index: 1;
}

/* ---------- Logos ---------- */
.COMPANY-HOME-PAGE .logo-MAS-WHITE,
.COMPANY-HOME-PAGE .MASM-final {
  position: static;
  display: block;
  width: min(410px, 80%);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* ---------- Titles ---------- */
.COMPANY-HOME-PAGE .text-wrapper,
.COMPANY-HOME-PAGE .text-wrapper-2 {
  position: static;
  margin: 0;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.125rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0;
}

.COMPANY-HOME-PAGE .text-wrapper   { color: var(--white); }
.COMPANY-HOME-PAGE .text-wrapper-2 { color: var(--black); }

/* ---------- MORE INFO buttons ---------- */
.COMPANY-HOME-PAGE .rectangle-3,
.COMPANY-HOME-PAGE .rectangle-4 {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(300px, 90%);
  height: 60px;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 84.5px;
  background-color: var(--white);
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
}

.COMPANY-HOME-PAGE .text-wrapper-3,
.COMPANY-HOME-PAGE .text-wrapper-4 {
  position: static;
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--font-bold);
  font-weight: 400;
  font-size: 25px;
  color: var(--black);
  line-height: 1;
  white-space: nowrap;
}

.COMPANY-HOME-PAGE .rectangle-3:focus-visible,
.COMPANY-HOME-PAGE .rectangle-4:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}
.COMPANY-HOME-PAGE .rectangle-3:hover,
.COMPANY-HOME-PAGE .rectangle-4:hover  { filter: brightness(0.96); }
.COMPANY-HOME-PAGE .rectangle-3:active,
.COMPANY-HOME-PAGE .rectangle-4:active { filter: brightness(0.9); }

/* ---------- Decorative images (pinned to bottom of each panel) ---------- */
.COMPANY-HOME-PAGE .export,
.COMPANY-HOME-PAGE .img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  aspect-ratio: auto;
  z-index: 0;
  pointer-events: none;
}

.COMPANY-HOME-PAGE .export { width: 100%; }
.COMPANY-HOME-PAGE .img    { width: min(490px, 70%); }

.COMPANY-HOME-PAGE img { display: block; }

/* ---------- Info sections (shown after clicking MORE INFO) ---------- */
.COMPANY-HOME-PAGE #insurance-information,
.COMPANY-HOME-PAGE #supplier-information {
  grid-column: 1 / -1;
  padding: 48px 24px;
}

/* ---------- Mobile: stack the two panels ---------- */
@media (max-width: 768px) {
  .COMPANY-HOME-PAGE main { grid-template-columns: 1fr; }

  .COMPANY-HOME-PAGE section.rectangle,
  .COMPANY-HOME-PAGE section.div {
    min-height: 620px;
    padding-top: 60px;
  }
}