/* pengaturan utama warna, font, dan background */
:root {
  color-scheme: light;
  font-family: "Poppins", sans-serif;
  background: #f9f0d8;
  color: #1c1a18;
}

/* agar ukuran elemen tidak melebar aneh */
* {
  box-sizing: border-box;
}

/* menghapus jarak bawaan browser */
html,
body {
  margin: 0;
  min-height: 100%;
}

/* background halaman */
body {
 background: linear-gradient(90deg, #FEF5D7 0%, #EDEDED 100%);
}

/* pembungkus semua halaman */
.page-shell {
  min-height: 100vh;
  padding: 40px 60px;
}

/* bagian atas: bahasa kiri dan login kanan */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto 64px;
}

/* bagian kiri atas: bendera + teks bahasa */
.top-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #512810;
  font-size: 20px;
  line-height: 1;
}

/* ukuran icon bendera */
.flag {
  width: 44px;
  height: auto;
  display: block;
}

/* tombol login kanan atas */
.login-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #000;
  font-size: 19px;
}

/* ukuran icon login */
.login-icon {
  width: 47px;
  height: 47px;
  display: block;
}

/* isi tengah halaman */
.content {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

/* judul besar */
.content h1 {
  margin: 0;
  font-family: "Ibarra Real Nova", serif;
  font-size: clamp(3rem, 4vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: #000;
  margin-bottom: 80px;
}

/* area semua logo - JANGAN HAPUS */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 190px);
  justify-content: center;
  align-items: center;
  column-gap: 55px;
  margin-bottom: 42px;

  /* jangan geser semua */
  transform: none;
}

/* logo 1 geser lebih kiri */
.brand-grid .brand-card:nth-child(1) {
  transform: translateX(-250px);
}

/* logo 2 geser kiri */
.brand-grid .brand-card:nth-child(2) {
  transform: translateX(-100px);
}

/* logo 3 geser kanan sedikit */
.brand-grid .brand-card:nth-child(3) {
  transform: translateX(35px);
}

/* logo 4 geser lebih kanan */
.brand-grid .brand-card:nth-child(4) {
  transform: translateX(200px);
}

/* bentuk tempat logo */
.brand-card {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* logo 1 dan 2 tidak pakai background putih */
.brand-card--soft {
  background: transparent;
  box-shadow: none;
}

/* logo 3 dan 4 pakai background putih bulat */
.brand-card--white {
  background: #ffffff;
}

/* gambar logo di dalam lingkaran */
.brand-card img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ukuran logo Gessang Official */
.brand-grid .brand-card:nth-child(1) img {
  width: 350px;
}

/* ukuran logo Gessang Colours */
.brand-grid .brand-card:nth-child(2) img {
  width: 350px;
}

/* ukuran logo Urilabel */
.brand-grid .brand-card:nth-child(3) img {
  width: 400px;
}

/* ukuran logo Look Alike */
.brand-grid .brand-card:nth-child(4) img {
  width: 400px;
}

/* area tombol bawah logo */
.actions-row {
  display: grid;
  grid-template-columns: repeat(4, 210px);
  justify-content: center;
  column-gap: 55px;
  align-items: center;
  margin-top: 00;
  margin-bottom: 0;
}

/* tombol coklat di bawah logo 1 dan 2 */
.actions-row .brand-button:first-child {
  grid-column: 1 / span 2;
  justify-self: center;

  /* geser kiri/kanan + geser bawah */
  transform: translateX(-124px) translateY(25px);
}

/* tombol hitam di bawah logo 3 dan 4 */
.actions-row .brand-button:last-child {
  grid-column: 3 / span 2;
  justify-self: center;

  /* geser kiri/kanan + geser bawah */
  transform: translateX(124px) translateY(25px);
}

/* style umum tombol */
.brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 117px;
  height: 56px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
}

/* tombol warna coklat */
.brand-button--warm {
  background: #98602D;
}

/* tombol warna hitam */
.brand-button--dark {
  background: #000;
}

/* supaya website tidak melebar ke samping */
html,
body {
  overflow-x: hidden;
}

/* ========================= */
/* TABLET / LAYAR KECIL */
/* aktif 1024px ke bawah */
/* ========================= */
@media (max-width: 1024px) {
  .page-shell {
    padding: 28px 24px;
  }

  .top-bar {
    max-width: 760px;
    margin-bottom: 38px;
  }

  .top-left {
    font-size: 16px;
    gap: 10px;
  }

  .flag {
    width: 36px;
  }

  .login-link {
    font-size: 15px;
  }

  .login-icon {
    width: 38px;
    height: 38px;
  }

  .content {
    max-width: 760px;
  }

  .content h1 {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    letter-spacing: 0.04em;
    margin-bottom: 35px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 230px);
    justify-content: center;
    column-gap: 26px;
    row-gap: 28px;
    margin-bottom: 28px;
  }

  .brand-card {
    width: 230px;
    height: 230px;
    margin: 0 auto;
  }

  /* reset geser logo */
  .brand-grid .brand-card:nth-child(1),
  .brand-grid .brand-card:nth-child(2),
  .brand-grid .brand-card:nth-child(3),
  .brand-grid .brand-card:nth-child(4) {
    transform: none;
  }

  /* POSISI DIBALIK SESUAI TANDA MERAH */
  .brand-grid .brand-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .brand-grid .brand-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-grid .brand-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .brand-grid .brand-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  /* ukuran logo tablet */
  .brand-grid .brand-card:nth-child(1) img,
  .brand-grid .brand-card:nth-child(2) img {
    width: 250px;
  }

  .brand-grid .brand-card:nth-child(3) img {
    width: 255px;
  }

  .brand-grid .brand-card:nth-child(4) img {
    width: 270px;
  }

  .actions-row {
    grid-template-columns: repeat(2, 230px);
    justify-content: center;
    column-gap: 26px;
    row-gap: 18px;
  }

  .actions-row .brand-button:first-child,
  .actions-row .brand-button:last-child {
    grid-column: auto;
    justify-self: center;
    transform: none;
  }

  .brand-button {
    width: 92px;
    height: 42px;
    font-size: 18px;
  }
}

/* ========================= */
/* HP / LAYAR SANGAT KECIL */
/* aktif 700px ke bawah */
/* ========================= */
@media (max-width: 700px) {
  .page-shell {
    padding: 20px 16px;
  }

  .top-bar {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
  }

  .top-left {
    font-size: 14px;
    gap: 8px;
  }

  .flag {
    width: 32px;
  }

  .login-link {
    font-size: 14px;
    gap: 5px;
  }

  .login-icon {
    width: 32px;
    height: 32px;
  }

  .content h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 28px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 22px;
    margin-bottom: 22px;
  }

  .brand-card {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  /* POSISI DIBALIK DI HP */
  .brand-grid .brand-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .brand-grid .brand-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-grid .brand-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .brand-grid .brand-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .brand-grid .brand-card:nth-child(1) img,
  .brand-grid .brand-card:nth-child(2) img {
    width: 195px;
  }

  .brand-grid .brand-card:nth-child(3) img {
    width: 200px;
  }

  .brand-grid .brand-card:nth-child(4) img {
    width: 210px;
  }

  .actions-row {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 14px;
  }

  .brand-button {
    width: 82px;
    height: 38px;
    font-size: 16px;
  }
}

/* ========================= */
/* HP KECIL BANGET */
/* aktif 480px ke bawah */
/* ========================= */
@media (max-width: 480px) {
  .content h1 {
    font-size: 1.8rem;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    width: 210px;
    height: 210px;
  }

  .brand-grid .brand-card:nth-child(1),
  .brand-grid .brand-card:nth-child(2),
  .brand-grid .brand-card:nth-child(3),
  .brand-grid .brand-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .brand-grid .brand-card:nth-child(1) img,
  .brand-grid .brand-card:nth-child(2) img {
    width: 225px;
  }

  .brand-grid .brand-card:nth-child(3) img {
    width: 230px;
  }

  .brand-grid .brand-card:nth-child(4) img {
    width: 240px;
  }

  .actions-row {
    grid-template-columns: 1fr;
  }
}