/**
 * WEB ARCHI
 * Home Page Styles
 *
 * Presentation layer for the WEB ARCHI homepage.
 * Namespace: wa-home-
 */

/* =========================================================
   HOME — GLOBAL
========================================================= */

.wa-home {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Metropolis", sans-serif;
}

.wa-home-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* =========================================================
   HOME — HERO
========================================================= */

.wa-home-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #16201d;
}

.wa-home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: #16201d;
}

.wa-home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center center;
  vertical-align: middle;
}

/* Hero overlay — desktop */
.wa-home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.68) 20%, rgba(0, 0, 0, 0.48) 38%, rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0.05) 72%, rgba(0, 0, 0, 0) 85%);
  pointer-events: none;
}

.wa-home-hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(1200px, calc(100% - 48px));
  height: 100%;
  min-height: 620px;
  margin: 0 auto;
  box-sizing: border-box;
}

.wa-home-hero-content {
  width: 100%;
  margin: 0;
  padding: 48px 0 56px;
  box-sizing: border-box;
  pointer-events: auto;
}

.wa-home-hero .wa-home-eyebrow {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wa-home-title {
  max-width: 580px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.wa-home-description {
  max-width: 500px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.6;
}

.wa-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.wa-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 62px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 0;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 250ms ease,
    color 250ms ease,
    border-color 250ms ease;
}

/* Hero and About CTA arrow — SVG mask keeps every stroke the same thickness. */
.wa-home-button-arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 60px;
  width: 60px;
  height: 40px;
  background-color: currentColor;
  -webkit-mask-image: url("../images/arrow-right.svg");
  mask-image: url("../images/arrow-right.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: translateX(0);
  transition: transform 250ms ease;
}

.wa-home-button:hover .wa-home-button-arrow,
.wa-home-button:focus-visible .wa-home-button-arrow {
  transform: translateX(16px);
}

.wa-home-button-primary {
  background: #009572;
  border-color: #009572;
  color: #ffffff;
}

.wa-home-button-primary:hover,
.wa-home-button-primary:focus-visible {
  background: #007f62;
  border-color: #007f62;
  color: #ffffff;
}

.wa-home-button-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
  color: #16201d;
}

.wa-home-button-secondary:hover,
.wa-home-button-secondary:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: #009572;
}

/* =========================================================
   HERO — DESKTOP IMAGE RATIO
========================================================= */

@media (min-width: 641px) {
  .wa-home-hero {
    aspect-ratio: 1600 / 903;
    min-height: 0;
    height: auto;
  }

  .wa-home-hero-container {
    min-height: 0;
    height: 100%;
  }

  .wa-home-hero-media img {
    object-fit: contain;
    object-position: center center;
  }
}

/* =========================================================
   HERO — TABLET
========================================================= */

@media (min-width: 641px) and (max-width: 1000px) {
  .wa-home-hero-container {
    width: calc(100% - 40px);
  }

  .wa-home-hero-content {
    width: 62%;
    padding: 40px 30px 40px 32px;
  }

  .wa-home-title {
    max-width: 500px;
    font-size: clamp(42px, 6vw, 62px);
  }

  .wa-home-description {
    max-width: 430px;
    font-size: 16px;
  }

  .wa-home-hero-media::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.65) 25%, rgba(0, 0, 0, 0.4) 48%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0) 85%);
  }
}

/* Tablet positioning */
@media (min-width: 701px) and (max-width: 1000px) {
  .wa-home-hero-content {
    transform: translateY(28px);
  }
}

@media (min-width: 641px) and (max-width: 700px) {
  .wa-home-hero-content {
    transform: translateY(65px);
  }
}

/* =========================================================
   HERO — TABLET PORTRAIT REFINEMENT
========================================================= */

@media (min-width: 641px) and (max-width: 800px) {
  .wa-home-hero {
    aspect-ratio: auto;
    min-height: 620px;
  }

  .wa-home-hero-container {
    min-height: 620px;
    height: auto;
    align-items: center;
  }

  .wa-home-hero-content {
    width: 72%;
    padding: 100px 24px 40px;
    transform: none;
  }
}

/* =========================================================
   HERO — MOBILE
========================================================= */

@media (max-width: 640px) {
  .wa-home-hero,
  .wa-home-hero-container {
    min-height: 680px;
  }

  .wa-home-hero-container {
    align-items: flex-start;
    width: calc(100% - 48px);
  }

  .wa-home-hero-media {
    height: 100%;
  }

  .wa-home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
  }

  .wa-home-hero-media::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.65) 25%, rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0) 90%);
  }

  .wa-home-hero-content {
    width: 100%;
    padding: 200px 0 40px;
    transform: none;
  }

  .wa-home-hero .wa-home-eyebrow {
    max-width: 240px;
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.12em;
  }

  .wa-home-title {
    max-width: 330px;
    font-size: clamp(38px, 10.5vw, 46px);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .wa-home-description {
    max-width: 310px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .wa-home-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }

  .wa-home-button {
    min-height: 48px;
    gap: 12px;
    padding: 0 17px;
    font-size: 14px;
  }

  .wa-home-button-arrow {
    flex-basis: 60px;
    width: 60px;
    height: 40px;
  }
}

/* =========================================================
   HOME — INTRODUCTION
========================================================= */

.wa-home-intro {
  padding: 96px 0 88px;
  background: #ffffff;
}

.wa-home-intro-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.wa-home-eyebrow,
.wa-home-section-eyebrow {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wa-home-intro-title {
  max-width: 850px;
  margin: 18px 0 0;
  color: #16201d;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.wa-home-intro-text {
  width: 100%;
  max-width: 1100px;
  margin: 26px 0 0;
  color: #56635f;
  font-size: 17px;
  line-height: 1.7;
}

/* Compatibility aliases for current markup */
.wa-home-section-title {
  margin: 18px 0 0;
  color: #16201d;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.wa-home-section-text {
  width: 100%;
  max-width: 1100px;
  margin: 26px 0 0;
  color: #56635f;
  font-size: 17px;
  line-height: 1.7;
}

/* =========================================================
   HOME — QUICK ACCESS BASE
========================================================= */

.wa-home-quick-access {
  padding: 88px 0 96px;
  background: #f3f6f4;
}

.wa-home-quick-access-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.wa-home-quick-access-title {
  margin: 16px 0 36px;
  color: #16201d;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.wa-home-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #d9e0dd;
  border-left: 1px solid #d9e0dd;
}

.wa-home-access-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 220px;
  padding: 28px;
  box-sizing: border-box;
  background: #ffffff;
  border-right: 1px solid #d9e0dd;
  border-bottom: 1px solid #d9e0dd;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.wa-home-access-card:hover {
  background: #fbfcfb;
}

.wa-home-access-number {
  color: #009572;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.wa-home-access-title {
  margin: 32px 0 0;
  color: #16201d;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.wa-home-access-description {
  margin: 12px 0 0;
  color: #66726e;
  font-size: 14px;
  line-height: 1.6;
}

.wa-home-access-card.is-disabled {
  cursor: default;
  background: #ffffff;
}

.wa-home-access-card.is-disabled:hover {
  background: #ffffff;
}

/* =========================================================
   HOME — CLOSING
========================================================= */

.wa-home-closing {
  padding: 96px 0;
  background: #ffffff;
}

.wa-home-closing-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.wa-home-closing-title {
  max-width: 900px;
  margin: 18px 0 0;
  color: #16201d;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.wa-home-closing-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: #56635f;
  font-size: 17px;
  line-height: 1.7;
}

/* =========================================================
   HOME — TABLET
========================================================= */

@media (max-width: 1000px) {
  .wa-home-container,
  .wa-home-intro-inner,
  .wa-home-quick-access-inner,
  .wa-home-closing-inner {
    width: calc(100% - 40px);
  }

  .wa-home-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wa-home-intro {
    padding: 80px 0 72px;
  }

  .wa-home-closing {
    padding: 80px 0;
  }
}

/* =========================================================
   HOME — MOBILE
========================================================= */

@media (max-width: 640px) {
  .wa-home-container,
  .wa-home-intro-inner,
  .wa-home-quick-access-inner,
  .wa-home-closing-inner {
    width: calc(100% - 32px);
  }

  .wa-home-intro {
    padding: 68px 0;
  }

  .wa-home-intro-title,
  .wa-home-section-title {
    font-size: 34px;
  }

  .wa-home-intro-text,
  .wa-home-section-text {
    font-size: 16px;
  }

  .wa-home-quick-access {
    padding: 64px 0;
  }

  .wa-home-quick-access-title {
    margin-bottom: 28px;
    font-size: 34px;
  }

  .wa-home-access-grid {
    grid-template-columns: 1fr;
  }

  .wa-home-access-card {
    min-height: 180px;
    padding: 24px;
  }

  .wa-home-access-title {
    font-size: 22px;
  }

  .wa-home-closing {
    padding: 68px 0;
  }

  .wa-home-closing-title {
    font-size: 36px;
  }

  .wa-home-closing-text {
    font-size: 16px;
  }
}

/* =========================================================
   SHARED EXTENDED ARROWS — QUICK ACCESS & LATEST NEWS
   Arrow geometry only; existing tiles and link layout remain intact.
========================================================= */

.wa-home-access-arrow,
.wa-home-news-view-all-arrow,
.wa-home-news-arrow {
  position: relative;
  font-size: 0;
}

.wa-home-news-view-all-arrow {
  display: inline-block;
  flex: 0 0 26px;
  width: 26px;
  height: 14px;
  vertical-align: middle;
}

/* Quick Access: retain the existing arrow tile dimensions and position. */
.wa-home-access-arrow::before,
.wa-home-access-arrow::after,
.wa-home-news-view-all-arrow::before,
.wa-home-news-view-all-arrow::after,
.wa-home-news-arrow::before,
.wa-home-news-arrow::after {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
  color: currentColor;
  pointer-events: none;
}

.wa-home-access-arrow::before,
.wa-home-news-view-all-arrow::before,
.wa-home-news-arrow::before {
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-75%, -50%);
  transition:
    width 250ms ease,
    transform 250ms ease;
}

.wa-home-access-arrow::after,
.wa-home-news-view-all-arrow::after,
.wa-home-news-arrow::after {
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(-20%, -50%) rotate(45deg);
  transition: transform 250ms ease;
}

.wa-home-access-card:hover .wa-home-access-arrow::before,
.wa-home-access-card:focus-visible .wa-home-access-arrow::before,
.wa-home-news-view-all:hover .wa-home-news-view-all-arrow::before,
.wa-home-news-view-all:focus-visible .wa-home-news-view-all-arrow::before,
.wa-home-news-arrow:hover::before,
.wa-home-news-arrow:focus-visible::before {
  width: 22px;
}

.wa-home-access-card:hover .wa-home-access-arrow::after,
.wa-home-access-card:focus-visible .wa-home-access-arrow::after,
.wa-home-news-view-all:hover .wa-home-news-view-all-arrow::after,
.wa-home-news-view-all:focus-visible .wa-home-news-view-all-arrow::after,
.wa-home-news-arrow:hover::after,
.wa-home-news-arrow:focus-visible::after {
  transform: translate(35%, -50%) rotate(45deg);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .wa-home-button,
  .wa-home-access-card,
  .wa-home-button-arrow,
  .wa-home-access-arrow::before,
  .wa-home-access-arrow::after,
  .wa-home-news-view-all-arrow::before,
  .wa-home-news-view-all-arrow::after,
  .wa-home-news-arrow::before,
  .wa-home-news-arrow::after {
    transition: none;
  }
}

/* =========================================================
   LATEST NEWS — SVG ARROWS
   Keep the existing card layout and link placement.
   The text and arrow are displayed on one horizontal line.
========================================================= */

/* View All News: use the approved SVG as one complete arrow. */
section.wa-home-news .wa-home-news-view-all-arrow {
  display: inline-block;
  flex: 0 0 36px;
  width: 36px;
  height: 24px;
  margin: 0;
  padding: 0;
  overflow: visible;
  background-color: currentColor;
  -webkit-mask-image: url("../images/arrow-right.svg");
  mask-image: url("../images/arrow-right.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  font-size: 0;
  line-height: 0;
  transform: translateX(0);
  transition: transform 250ms ease;
}

section.wa-home-news .wa-home-news-view-all-arrow::before,
section.wa-home-news .wa-home-news-view-all-arrow::after {
  content: none;
}

section.wa-home-news .wa-home-news-view-all:hover .wa-home-news-view-all-arrow,
section.wa-home-news .wa-home-news-view-all:focus-visible .wa-home-news-view-all-arrow {
  transform: translateX(16px);
}

/* Read link: preserve its bilingual label, followed by the same SVG. */
section.wa-home-news .wa-home-news-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

section.wa-home-news .wa-home-news-arrow::before {
  content: "Read More";
  position: static;
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: currentColor;
  font-size: 14px;
  line-height: 1.4;
  transform: none;
  transition: none;
}

:lang(id) section.wa-home-news .wa-home-news-arrow::before {
  content: "Baca Selengkapnya";
}

section.wa-home-news .wa-home-news-arrow::after {
  content: "";
  position: static;
  display: inline-block;
  flex: 0 0 36px;
  width: 36px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: currentColor;
  -webkit-mask-image: url("../images/arrow-right.svg");
  mask-image: url("../images/arrow-right.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: translateX(0);
  transition: transform 250ms ease;
}

section.wa-home-news .wa-home-news-arrow:hover::before,
section.wa-home-news .wa-home-news-arrow:focus-visible::before {
  transform: none;
}

section.wa-home-news .wa-home-news-arrow:hover::after,
section.wa-home-news .wa-home-news-arrow:focus-visible::after {
  transform: translateX(16px);
}

@media (prefers-reduced-motion: reduce) {
  section.wa-home-news .wa-home-news-view-all-arrow,
  section.wa-home-news .wa-home-news-arrow::after {
    transition: none;
  }
}
