/* ARAH REALTY — CSS terformat.
   Cari PENGATURAN TAMPILAN ARAH untuk ukuran header, font menu dan logo.
   Urutan aturan dipertahankan agar tampilan terakhir tidak berubah.
   Aturan penyesuaian berada di bagian bawah dan menimpa aturan awal.
*/
/* ===== 01 WARNA DAN FONT DASAR ===== */
:root {
  --red: #b30d22;
  --ink: #181716;
  --paper: #f8f7f3;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper)
}

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

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

button {
  cursor: pointer
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400
}

em {
  font-style: normal;
  color: var(--red)
}

/* ===== 02 HEADER DAN NAVIGASI AWAL ===== */
#top {
  height: 78px;
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0 5%;
  justify-content: space-between;
  gap: 25px
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2.5px;
  white-space: nowrap
}

.brand small {
  display: block;
  font-size: 7px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 4px
}

.monogram {
  font: 700 43px Georgia;
  color: var(--red);
  letter-spacing: -8px;
  position: relative;
  padding-right: 8px
}

.monogram span {
  font-size: 13px;
  position: absolute;
  top: 5px;
  left: 15px
}

nav {
  display: flex;
  gap: 27px;
  align-items: center
}

nav a {
  font-size: 12px;
  transition: color .2s
}

nav a:hover {
  color: var(--red)
}

.navcta {
  border: 1px solid #292929;
  border-radius: 40px;
  padding: 12px 18px;
  font-size: 11px;
  white-space: nowrap;
  background: #ffffff80
}

.navcta span {
  margin-left: 12px
}

.menu {
  display: none
}

/* ===== 03 BERANDA ===== */
.hero {
  height: min(760px, 85vh);
  min-height: 625px;
  position: relative;
  overflow: hidden;
  background: #d8d4ce
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-villa.jpg') center 48%/cover no-repeat;
  filter: saturate(.83)
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 249, 246, .98) 0%, rgba(250, 249, 246, .9) 27%, rgba(250, 249, 246, .42) 49%, rgba(250, 249, 246, .02) 78%), linear-gradient(0deg, rgba(9, 9, 9, .48), transparent 23%)
}

.hero-copy {
  position: absolute;
  z-index: 3;
  top: 25%;
  left: 5.3%;
  max-width: 560px
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px
}

.red {
  color: var(--red)
}

.hero h1 {
  font-size: clamp(55px, 6.1vw, 100px);
  line-height: 1.06;
  letter-spacing: -2.6px;
  margin: 20px 0
}

.hero-copy p {
  max-width: 380px;
  line-height: 1.8;
  font-size: 13px
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 27px
}

.btn {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  background: var(--red);
  color: white;
  border: 0;
  padding: 17px 23px;
  font-size: 12px;
  transition: transform .2s, background .2s
}

.btn:hover {
  background: #840b1b;
  transform: translateY(-2px)
}

.text-cta {
  font-size: 12px;
  border-bottom: 1px solid var(--red);
  padding-bottom: 7px
}

.text-cta span {
  margin-left: 8px
}

.founders-hero {
  position: absolute;
  z-index: 2;
  height: 91%;
  width: auto;
  max-width: 52%;
  object-fit: contain;
  object-position: bottom;
  bottom: -3%;
  right: 7%;
  filter: drop-shadow(0 15px 18px #17171750)
}

.founder-caption {
  position: absolute;
  z-index: 4;
  right: 4%;
  bottom: 85px;
  color: white;
  background: #141414a8;
  padding: 19px 24px;
  backdrop-filter: blur(8px)
}

.accent-line {
  display: block;
  width: 35px;
  height: 2px;
  background: var(--red);
  margin-bottom: 12px
}

.founder-caption strong {
  display: block;
  font: 20px var(--serif)
}

.founder-caption small {
  display: block;
  margin-top: 4px;
  font-size: 10px
}

.hero-scroll {
  position: absolute;
  bottom: 27px;
  left: 5.3%;
  color: #fff;
  z-index: 4;
  letter-spacing: 2px;
  font-size: 9px
}

.hero-scroll span {
  margin-left: 15px
}

/* ===== 04 TIGA PILAR ===== */
.pillars {
  display: grid;
  grid-template-columns: 1.28fr repeat(3, 1fr);
  background: #121212;
  color: white;
  min-height: 420px
}

.pillar-intro {
  padding: 48px 13% 40px 17%
}

.pillar-intro h2 {
  font-size: clamp(36px, 3.5vw, 57px);
  line-height: 1.08;
  margin: 18px 0
}

.pillar-intro h2 i {
  font-style: normal
}

.pillar-intro p {
  font-size: 12px;
  line-height: 1.85;
  color: #bdbdbd
}

.pillar-intro a {
  display: inline-block;
  margin-top: 17px;
  border-bottom: 1px solid #aaa;
  padding-bottom: 7px;
  font-size: 11px
}

.pillar {
  position: relative;
  overflow: hidden;
  min-height: 420px
}

.pillar:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .67), rgba(0, 0, 0, .19) 60%, rgba(0, 0, 0, .67)), var(--bg);
  background-position: center;
  background-size: cover;
  transition: transform .7s
}

.pillar:hover:before {
  transform: scale(1.065)
}

.pillar-inner {
  position: relative;
  padding: 48px 24px
}

.pillar-inner span {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #ddd
}

.pillar-inner h3 {
  font-size: 32px;
  margin: 10px 0 13px
}

.line {
  width: 35px;
  height: 2px;
  background: var(--red);
  margin-bottom: 19px
}

.pillar-inner p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 230px
}

/* ===== 05 BAGIAN KONTEN DAN TENTANG ARAH ===== */
.section {
  padding: 110px 7%
}

.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 10%;
  align-items: center
}

.about-visual {
  height: 630px;
  position: relative;
  background: linear-gradient(150deg, #d6d2cc, #89827b);
  overflow: hidden
}

.about-visual .frame {
  position: absolute;
  inset: 25px;
  border: 1px solid #ffffff60
}

.about-visual img {
  height: 95%;
  width: 100%;
  object-fit: contain;
  object-position: bottom;
  position: absolute;
  bottom: 0;
  filter: drop-shadow(0 10px 12px #0003)
}

.about-visual>span {
  position: absolute;
  top: 40px;
  left: 40px;
  font-size: 9px;
  letter-spacing: 3px;
  color: white
}

.about-copy h2,
.section h2 {
  font-size: clamp(42px, 4.3vw, 70px);
  line-height: 1.15;
  margin: 17px 0 30px
}

.about-copy p {
  line-height: 1.9;
  color: #68645f;
  font-size: 14px
}

.about-copy .lead {
  color: #2b2927;
  font-size: 16px
}

.signature {
  font: 23px var(--serif);
  margin-top: 35px
}

.signature small {
  display: block;
  font: 10px var(--sans);
  letter-spacing: 2px;
  margin-top: 8px
}

/* ===== 06 FILOSOFI ===== */
.manifesto {
  text-align: center;
  background: #171717;
  color: #fff;
  padding: 100px 5%
}

.manifesto h2 {
  font-size: clamp(35px, 4vw, 65px);
  line-height: 1.3;
  margin: 28px 0
}

.manifesto em {
  color: #c49b77
}

.manifesto p {
  color: #bbb;
  line-height: 1.8;
  font-size: 14px
}

/* ===== 07 GALERI PROPERTI ===== */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px
}

.section-top p {
  max-width: 330px;
  color: #666;
  line-height: 1.8;
  font-size: 14px
}

.filterbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 25px;
  gap: 20px
}

.filterbar #filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap
}

.filterbar button {
  border: 1px solid #bbb;
  background: transparent;
  border-radius: 40px;
  padding: 10px 18px;
  font-size: 11px
}

.filterbar button.active {
  background: #1d1d1d;
  color: white;
  border-color: #1d1d1d
}

.arrows {
  display: flex;
  gap: 8px
}

.arrows button {
  font-size: 19px;
  width: 41px;
  height: 41px;
  padding: 0
}

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 14px
}

.property-card {
  flex: 0 0 calc((100% - 48px)/3);
  min-width: 265px;
  text-align: left;
  background: white;
  border: 0;
  padding: 0;
  scroll-snap-align: start;
  overflow: hidden
}

.property-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .4s
}

.property-card:hover img {
  transform: scale(1.035)
}

.property-meta {
  padding: 21px
}

.property-meta span,
.article-grid small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--red)
}

.property-meta h3 {
  font-size: 26px;
  margin: 10px 0
}

.property-meta p {
  font-size: 12px;
  color: #777
}

.property-meta b {
  font-size: 10px;
  letter-spacing: 1px
}

.beta-note {
  color: #888;
  font-size: 11px;
  margin-top: 14px
}

/* ===== 08 FORMULIR KONSULTASI ===== */
.search {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10%;
  background: #eae7e1
}

.search>div>p {
  line-height: 1.9;
  color: #666;
  max-width: 430px
}

.search-quote {
  font: italic 24px var(--serif);
  margin-top: 60px;
  color: #80766e
}

form {
  background: #fff;
  padding: 35px;
  box-shadow: 0 18px 60px #0000000b
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 20px
}

form input,
form select,
form textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 13px 12px;
  border: 1px solid #d8d5d1;
  border-radius: 0;
  background: #fff;
  outline: none;
  font-size: 12px;
  color: #333
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--red)
}

.form-hint {
  font-size: 11px;
  color: #777;
  line-height: 1.6
}

/* ===== 09 ARTIKEL ===== */
.articles {
  background: #f8f7f3
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px
}

.article-cover {
  height: 265px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 22px;
  color: white;
  font: 60px var(--serif);
  background-size: cover;
  background-position: center
}

.article-cover span {
  font: 10px var(--sans);
  letter-spacing: 2px
}

.art1 {
  background-image: linear-gradient(0deg, #0009, #0001), url('assets/hero-villa.jpg')
}

.art2 {
  background-image: linear-gradient(0deg, #0009, #0001), url('assets/mental.jpg')
}

.art3 {
  background-image: linear-gradient(0deg, #0009, #0001), url('assets/financial.jpg')
}

.article-grid small {
  display: block;
  margin-top: 21px
}

.article-grid h3 {
  font-size: 26px;
  line-height: 1.3;
  margin: 10px 0
}

.article-grid p {
  font-size: 13px;
  color: #777
}

/* ===== 10 KONTAK DAN FOOTER ===== */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  background: #141414;
  color: white;
  padding: 100px 7% 30px
}

.contact h2 {
  font-size: clamp(44px, 5vw, 80px);
  line-height: 1.15;
  margin: 20px 0
}

.contact em {
    color: var(--red);
}
.contact p {
  color: #aaa;
  line-height: 1.8
}

.contact .btn {
  margin-top: 20px
}

.contact-info {
  padding: 20px 0 0 20%
}

.contact-info h3 {
  font-size: 28px
}

.contact-info dl,
.detail-copy dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  font-size: 12px;
  margin-top: 30px
}

.contact-info dt {
  color: #888
}

.contact-info dd,
.detail-copy dd {
  margin: 0
}

.copyright {
  grid-column: 1/-1;
  border-top: 1px solid #444;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 11px;
  margin-top: 30px
}

/* ===== 11 DIALOG DETAIL ===== */
dialog {
  border: 0;
  padding: 0;
  max-width: 950px;
  width: 92vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #0005
}

dialog::backdrop {
  background: #080808bb
}

.close {
  position: absolute;
  right: 16px;
  top: 15px;
  z-index: 3;
  border: 0;
  background: #fff;
  padding: 12px
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr
}

.detail-grid>div:first-child {
  background: #ddd
}

.detail-grid #detailImg {
  width: 100%;
  height: 420px;
  object-fit: cover
}

.thumbs {
  display: flex;
  gap: 8px;
  padding: 12px
}

.thumbs button {
  border: 0;
  padding: 0;
  width: 80px;
  height: 65px
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.detail-copy {
  padding: 55px 35px
}

.detail-copy h2 {
  font-size: 38px;
  margin: 20px 0
}

.detail-copy p {
  line-height: 1.7;
  font-size: 13px;
  color: #666
}

.detail-copy dt {
  color: #888
}

.detail-copy .btn {
  margin-top: 30px
}

/* ===== 12 RESPONSIF DASAR ===== */
@media(max-width:1050px) {
  nav {
    gap: 13px
  }

  .navcta {
    display: none
  }

  .hero-copy {
    top: 23%
  }

  .founders-hero {
    right: 1%;
    height: 82%
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr)
  }

  .pillar-intro {
    grid-column: 1/-1;
    padding: 35px 6%
  }

  .pillar-intro p {
    max-width: 650px
  }

  .about {
    gap: 5%
  }
}

@media(max-width:760px) {
  #top {
    position: fixed;
    height: 66px;
    background: #f9f8f4f2;
    padding: 0 5%
  }

  .brand {
    font-size: 12px
  }

  .brand small {
    font-size: 6px
  }

  .monogram {
    font-size: 34px
  }

  .menu {
    display: block;
    border: 0;
    background: transparent;
    font-size: 24px;
    margin-left: auto
  }

  nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #f9f8f4;
    box-shadow: 0 20px 30px #0002;
    flex-direction: column;
    align-items: stretch;
    padding: 15px 7%;
    gap: 0
  }

  nav.open {
    display: flex
  }

  nav a {
    padding: 13px 0
  }

  .hero {
    height: 790px;
    min-height: 0
  }

  .hero-bg {
    background-position: 55% center
  }

  .hero-gradient {
    background: linear-gradient(180deg, #f8f7f2fa 0%, #f8f7f2db 38%, #e2ded28c 58%, #17171769 100%)
  }

  .hero-copy {
    top: 110px;
    left: 6%;
    right: 6%;
    max-width: none
  }

  .hero h1 {
    font-size: clamp(50px, 11vw, 76px)
  }

  .hero-copy p {
    max-width: 365px;
    font-size: 12px
  }

  .founders-hero {
    height: 43%;
    max-width: 90%;
    right: 2%;
    bottom: 0
  }

  .founder-caption {
    right: 4%;
    bottom: 30px;
    padding: 11px 14px
  }

  .founder-caption strong {
    font-size: 15px
  }

  .founder-caption small {
    font-size: 8px
  }

  .hero-scroll {
    display: none
  }

  .pillars {
    grid-template-columns: 1fr
  }

  .pillar-intro {
    grid-column: auto
  }

  .pillar {
    min-height: 280px
  }

  .pillar-inner {
    padding: 36px 6%
  }

  .pillar-inner p {
    max-width: 370px
  }

  .section {
    padding: 70px 6%
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .about-visual {
    height: 450px
  }

  .manifesto {
    padding: 80px 6%
  }

  .section-top {
    display: block
  }

  .property-card {
    flex-basis: 80%
  }

  .search {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .search-quote {
    margin-top: 25px
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 70px 6% 25px;
    gap: 25px
  }

  .contact-info {
    padding: 0
  }

  .copyright {
    display: block;
    line-height: 2
  }

  .copyright a {
    display: block
  }

  .detail-grid {
    grid-template-columns: 1fr
  }

  .detail-grid #detailImg {
    height: 260px
  }

  .detail-copy {
    padding: 30px 22px
  }
}

@media(max-width:430px) {
  .hero-actions {
    gap: 13px
  }

  .hero-actions .btn {
    padding: 14px;
    font-size: 10px
  }

  .text-cta {
    font-size: 10px
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0
  }

  form {
    padding: 25px
  }

  .property-card {
    flex-basis: 90%
  }
}

/* BETA 2: prominent luxury navigation and cinematic hero film */
@media(min-width:1051px) {
  #top {
    height: 96px;
    padding: 0 4.8%;
    gap: 16px
  }

  #top nav {
    gap: clamp(17px, 1.7vw, 34px)
  }

  #top nav a {
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 600
  }

  #top .navcta {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 600;
    padding: 17px 27px;
    border-radius: 40px;
    background: #b30d22;
    color: white;
    border: 1px solid #b30d22;
    box-shadow: 0 7px 24px #0002
  }
}

.hero {
  height: clamp(620px, 72vh, 790px);
  min-height: 620px
}

.hero-gradient {
  background: linear-gradient(90deg, rgba(250, 248, 242, .98) 0%, rgba(250, 248, 242, .88) 24%, rgba(250, 248, 242, .45) 43%, rgba(0, 0, 0, .02) 69%), linear-gradient(0deg, rgba(0, 0, 0, .24), transparent 27%)
}

.hero-video-panel {
  position: absolute;
  z-index: 5;
  right: 5%;
  top: 24%;
  width: 37%;
  max-width: 650px;
  background: #121212;
  color: white;
  border: 1px solid #ffffff77;
  box-shadow: 0 24px 70px #0006;
  border-radius: 10px;
  overflow: hidden
}

.video-stage {
  aspect-ratio: 16/9;
  position: relative
}

.video-preview {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8%;
  color: white
}

.video-kicker {
  font-size: 10px;
  letter-spacing: 2.6px;
  margin-bottom: 15px
}

.video-brand {
  font: clamp(25px, 2.5vw, 42px)/1.15 var(--serif);
  text-shadow: 0 2px 14px #0009
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: 1px solid #fffc;
  border-radius: 50%;
  background: #ffffff18;
  color: white;
  font-size: 27px;
  backdrop-filter: blur(8px);
  transition: .25s
}

.video-play:hover {
  background: #b30d22;
  scale: 1.06
}

.video-hint {
  position: absolute;
  bottom: 17px;
  left: 8%;
  font-size: 9px;
  letter-spacing: 2px;
  color: #eee
}

.video-embed {
  position: absolute;
  inset: 0
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0
}

.video-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  font-size: 11px;
  letter-spacing: 1px;
  background: #141414
}

#videoCounter {
  color: #d9a9ae
}

.video-footer #videoTitle {
  flex: 1
}

.video-controls {
  display: flex;
  gap: 9px
}

.video-controls button {
  background: none;
  color: white;
  border: 1px solid #ffffff65;
  width: 34px;
  height: 30px
}

.pillars {
  min-height: 510px;
  grid-template-columns: 1.08fr repeat(3, 1fr)
}

.pillar {
  min-height: 510px
}

.pillar-inner {
  padding: 40px 25px
}

.pillar-inner h3 {
  font-size: clamp(29px, 2.4vw, 42px)
}

.pillar-inner p {
  font-size: 13px;
  line-height: 1.8
}

.pillar-intro {
  padding-top: 48px
}

@media(min-width:761px) and (max-width:1050px) {
  #top nav a {
    font-size: 14px
  }

  .hero-video-panel {
    right: 3%;
    width: 43%;
    top: 31%
  }

  .hero-copy {
    max-width: 52%
  }
}

@media(max-width:760px) {
  .hero {
    height: 850px
  }

  .hero-video-panel {
    top: auto;
    bottom: 38px;
    left: 6%;
    right: 6%;
    width: auto;
    max-width: none
  }

  .video-play {
    width: 58px;
    height: 58px;
    font-size: 22px
  }

  .video-footer {
    padding: 11px 14px
  }

  .pillars {
    min-height: 0
  }

  .pillar {
    min-height: 350px
  }
}


/* ===== PENGATURAN TAMPILAN ARAH ===== */
:root {
  --header-height: 96px;
  --font-menu: 15px;
  --font-brand: 21px;
  --font-tagline: 10px;
  --font-paragraf-hero: 16px;
}

/* Header tetap terlihat */
html {
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  padding-top: var(--header-height);
}

#top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  padding: 0 4%;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}

/* Logo asli: proporsi gambar dipertahankan */
#top .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  letter-spacing: normal;
}

.brand-logo-window {
  position: relative;
  display: block;
  width: 66px;
  height: 62px;
  overflow: hidden;
  flex: 0 0 66px;
}

#top .brand-logo {
  position: absolute;
  width: 430px;
  height: auto;
  max-width: none;
  left: -45px;
  top: -90px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-name {
  font-family: var(--sans);
  font-size: var(--font-brand);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.15;
}

#top .brand-tagline {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--font-tagline);
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.4;
}

/* Menu merah saat hover, fokus, dan aktif */
#top nav {
  gap: 5px;
}

#top nav a {
  padding: 11px 13px;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: var(--font-menu);
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

#top nav a:hover,
#top nav a:focus-visible,
#top nav a.active {
  background: var(--red);
  color: #fff;
}

/* Tombol konsultasi */
#top .navcta {
  padding: 15px 22px;
  font-size: 14px;
}

/* Hero lebih ringkas agar pilar mulai terlihat */
.hero {
  height: clamp(560px,
      calc(var(--arah-screen-height, 100svh) - var(--header-height) - 150px),
      720px);
  min-height: 560px;
}

.hero-copy {
  top: 12%;
  max-width: 46%;
}

.hero h1 {
  font-size: clamp(54px, 5.1vw, 82px);
  line-height: 1.06;
  margin: 16px 0;
}

.hero-copy p {
  max-width: 430px;
  font-size: var(--font-paragraf-hero);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 20px;
}

.hero-video-panel {
  top: 19%;
}

.hero-scroll {
  bottom: 20px;
}

/* Laptop dan tablet */
@media (min-width: 761px) and (max-width: 1200px) {
  #top {
    padding-inline: 3%;
    gap: 12px;
  }

  #top nav a {
    padding-inline: 8px;
    font-size: 13px;
  }

  #top .navcta {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  #top .brand-tagline {
    font-size: 9px;
  }
}

/* Ponsel */
@media (max-width: 760px) {
  :root {
    --header-height: 80px;
    --font-brand: 17px;
    --font-tagline: 8px;
  }

  #top {
    height: var(--header-height);
    padding-inline: 5%;
  }

  #top .brand {
    gap: 8px;
  }

  .brand-logo-window {
    width: 53px;
    height: 51px;
    flex-basis: 53px;
  }

  #top .brand-logo {
    width: 350px;
    left: -37px;
    top: -73px;
  }

  #top nav {
    top: 100%;
    padding: 14px 5%;
    background: #fff;
    max-height: calc(var(--arah-screen-height, 100svh) - var(--header-height));
    overflow-y: auto;
  }

  #top nav a {
    font-size: 16px;
    padding: 13px 15px;
  }

  #top .navcta {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: 40px 6% 32px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .hero-copy {
    position: relative;
    inset: auto;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(48px, 10vw, 68px);
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-video-panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
  }

  .hero-scroll {
    display: none;
  }
}

/* Elemen video yang disembunyikan oleh app.js */
.video-preview[hidden],
.video-embed[hidden] {
  display: none;
}

/* ===== PENYESUAIAN TERAKHIR BERANDA ===== */
:root { --red: rgb(237, 28, 36); }
#top nav a.active { background: transparent; color: var(--ink); }
#top nav a:hover, #top nav a:active { background: var(--red); color: white; }
#top .navcta { background: var(--red); border-color: var(--red); color: white; }
.hero-actions { width:100%; max-width:430px; justify-content:flex-end; }
.hero-actions .btn, #top .navcta {font-family:var(--sans);font-size:14px;font-weight:600;line-height:1.4;letter-spacing:normal;}
@media(min-width:761px){ .hero {height:calc(var(--arah-screen-height, 100svh) - var(--header-height));min-height:560px;} }
.pillar-teaser {padding:65px 7%;background:#141414;color:white;display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center;}
.pillar-teaser h2{font-size:clamp(34px,3.4vw,54px);line-height:1.15;margin:18px 0 0;}
.pillar-teaser p{color:#ccc;line-height:1.85;font-size:16px;max-width:52ch;}
.pillar-teaser .btn{margin-top:10px;font-size:14px;font-weight:600;}
@media(max-width:760px){.pillar-teaser{grid-template-columns:1fr;padding:45px 6%;gap:24px;}}

/* ===== PILAR DALAM HALAMAN UTAMA ===== */
/* HALAMAN PILAR — pengaturan foto, teks dan tampilan ponsel */
.pillar-page {
    background: #fff;
}

.pillar-hero {
    min-height: 620px;
    height: calc(calc(var(--arah-screen-height, 100svh) * .9) - var(--header-height));
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px 8%;
    color: #fff;
    background: linear-gradient(90deg, rgba(8, 15, 12, .86), rgba(8, 15, 12, .28)), url('assets/spiritual.jpg') center 48%/cover;
}

.pillar-hero-copy {
    position: relative;
    max-width: 820px;
}

.pillar-hero h2 {
    font-size: clamp(68px, 8vw, 126px);
    line-height: 1.03;
    margin: 26px 0;
    letter-spacing: -3px;
}

.pillar-hero h2 em {
    color: #fff;
    font-style: italic;
}

.pillar-hero p {
    font-size: 20px;
    line-height: 1.7;
    max-width: 450px;
    color: #e5e8e4;
}

.pillar-jumps {
    display: flex;
    gap: 28px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.pillar-jumps a {
    font-size: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffffff70;
}

.pillar-jumps a:hover {
    border-color: var(--red);
}

.pillar-hero-note {
    position: absolute;
    bottom: 30px;
    right: 6%;
    font-size: 10px;
    letter-spacing: 3px;
}

.pillar-opening {
    padding: 90px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 9%;
    align-items: center;
}

.pillar-opening>.eyebrow {
    grid-column: 1/-1;
    margin-bottom: 24px;
}

.pillar-opening h2 {
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.25;
    margin: 0;
}

.pillar-opening p {
    color: #626262;
    font-size: 17px;
    line-height: 1.9;
    margin: 0;
}

.pillar-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
    scroll-margin-top: 12px;
}

.story-photo {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #242925;
}

.story-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0007, transparent 40%);
}

.story-photo>span {
    position: absolute;
    z-index: 1;
    bottom: 35px;
    left: 40px;
    color: white;
    font-size: 12px;
    letter-spacing: 3px;
}

.story-copy {
    padding: 70px clamp(32px, 5vw, 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-copy h2 {
    font-size: clamp(34px, 3.2vw, 53px);
    line-height: 1.18;
    margin: 23px 0;
}

.story-line {
    width: 44px;
    height: 3px;
    background: var(--red);
    margin-bottom: 25px;
}

.story-copy p {
    font-size: 15px;
    line-height: 1.85;
    color: #686868;
    max-width: 52ch;
}

.story-copy .story-lead {
    font-size: 19px;
    line-height: 1.75;
    color: #262626;
}

.story-reverse {
    background: #151515;
    color: white;
}

.story-reverse .story-photo {
    order: 2;
}

.story-reverse .story-copy {
    order: 1;
}

.story-reverse .story-lead {
    color: #f2f2f2;
}

.story-reverse p {
    color: #bdbdbd;
}

.pillar-closing {
    padding: 100px 8%;
    text-align: center;
    color: white;
    background: linear-gradient(#0b0b0be8, #0b0b0be8), url('assets/hero-villa.jpg') center/cover;
}

.pillar-closing h2 {
    font-size: clamp(44px, 5vw, 78px);
    line-height: 1.15;
    margin: 26px 0;
}

.pillar-closing h2 em {
    color: var(--red);
    font-style: italic;
}

.pillar-closing p {
    max-width: 580px;
    margin: 0 auto 30px;
    color: #ccc;
    line-height: 1.9;
}

.pillar-closing>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.pillar-closing .btn {
    font-size: 14px;
    font-weight: 600;
}

.closing-link {
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #aaa;
}

.pillar-footer {
    background: #101010;
    color: #aaa;
    padding: 28px 7%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

@media(max-width:1050px) {
    .story-copy {
        padding: 45px 30px;
    }

    .story-copy .story-lead {
        font-size: 17px;
    }
}

@media(max-width:760px) {
    .pillar-hero {
        min-height: 580px;
        height: auto;
        padding: 70px 6% 95px;
    }

    .pillar-hero h2 {
        font-size: 68px;
        letter-spacing: -2px;
    }

    .pillar-hero p {
        font-size: 17px;
    }

    .pillar-jumps {
        gap: 20px;
    }

    .pillar-hero-note {
        left: 6%;
        font-size: 9px;
        letter-spacing: 2px;
    }

    .pillar-opening {
        grid-template-columns: 1fr;
        padding: 60px 6%;
        gap: 22px;
    }

    .pillar-opening>.eyebrow {
        margin: 0;
    }

    .pillar-opening p {
        font-size: 16px;
    }

    .pillar-story {
        grid-template-columns: 1fr;
    }

    .story-photo {
        min-height: 390px;
    }

    .story-copy {
        padding: 48px 6%;
    }

    .story-reverse .story-photo,
    .story-reverse .story-copy {
        order: initial;
    }

    .story-copy h2 {
        font-size: 37px;
    }

    .pillar-closing {
        padding: 70px 6%;
    }

    .pillar-footer {
        flex-direction: column;
        line-height: 1.7;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}

.pillars-expanded {background:#fff;}
.pillars-expanded, .pillar-story {scroll-margin-top:calc(var(--header-height, 96px) + 16px);}

/* ===== REVISI PEMBUKA PILAR: SATU LAYAR ===== */
#pillars { scroll-margin-top: var(--header-height, 96px); }
#pillars .pillar-hero {
  min-height: calc(100vh - var(--header-height, 96px));
  min-height: calc(var(--arah-screen-height, 100svh) - var(--header-height, 96px));
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  padding: 75px 8% 95px;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(7,12,9,.78), rgba(7,12,9,.62)), url('assets/spiritual.jpg');
}
#pillars .pillar-heading h2 { font-size: clamp(72px, 7.7vw, 126px); line-height: 1.05; margin: 25px 0 0; letter-spacing: -3px; }
#pillars .pillar-heading h2 em { color: var(--red); font-style: normal; }
#pillars .pillar-summary p { max-width: 600px; margin: 0; font-size: clamp(17px,1.35vw,22px); line-height: 1.85; color: #f2f2f2; }
#pillars .pillar-summary strong { color: #fff; font-weight: 700; }
#pillars .pillar-jumps { margin-top: 32px; gap: 25px; }
#pillars .pillar-jumps a { font-size: 14px; }
@media(max-width:760px) {
  #pillars .pillar-hero { grid-template-columns:1fr; gap:30px; padding:55px 6% 90px; }
  #pillars .pillar-heading h2 { font-size:clamp(60px,14vw,90px); letter-spacing:-2px; }
  #pillars .pillar-summary p { font-size:16px; line-height:1.75; }
  #pillars .pillar-jumps { gap:18px; }
  #pillars .pillar-jumps a { font-size:12px; }
}

/* ===== TAMPILAN SATU LAYAR DAN POSISI NAVIGASI ===== */
html { scroll-padding-top: var(--header-height, 96px); }
main section[id], #pillars, .pillar-story { scroll-margin-top: 0; }
main > section:not(#pillars), #pillars .pillar-hero,
#pillars .pillar-story, #pillars .pillar-closing {
  min-height: calc(100vh - var(--header-height, 96px));
  min-height: calc(var(--arah-screen-height, 100svh) - var(--header-height, 96px));
  height: auto;
  box-sizing: border-box;
}
#home { position: relative; }
#about, #search, #contact { align-content: center; }
#philosophy { display:flex; flex-direction:column; justify-content:center; }
#pillars .story-photo { min-height:100%; }
#about .about-copy p {
  font-family:var(--sans); font-size:16px; font-weight:400;
  line-height:1.85; color:#333; margin-bottom:18px;
}
@media(min-width:761px) {
  #about { padding-top:55px; padding-bottom:55px; }
  #about .about-visual {
    height:clamp(390px, calc(var(--arah-screen-height, 100svh) - var(--header-height) - 110px), 630px);
  }
}
@media(max-width:760px) {
  #pillars .story-photo { min-height:390px; }
}

/* Pemutar video: konten utuh di dalam kotak horizontal */
.video-preview[hidden],
.video-embed[hidden] {
    display: none !important;
}
.video-embed video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #111;
}
#home .video-footer {
    gap: 8px;
    padding: 12px;
    flex-wrap: wrap;
}
#home #videoTitle { font-size: 10px; }
@media (max-width: 760px) {
    #home.hero {
        height: auto;
        min-height: 0;
        padding: 45px 6%;
    }
    #home .hero-copy {
        position: relative;
        inset: auto;
        max-width: none;
    }
}

/* Kotak video horizontal untuk beranda */
#home .hero-video-panel {
    position: absolute;
    width: 42%;
    max-width: 650px;
    top: 50%;
    right: 5%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    margin: 0;
}

#home .video-stage {
    aspect-ratio: 16 / 9;
}

#home .video-embed video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

@media (min-width: 761px) {
    #home.hero {
        height: auto;
        min-height: max(
            620px,
            calc(var(--arah-screen-height, 100svh) - var(--header-height, 96px))
        );
    }
}

@media (max-width: 760px) {
    #home .hero-video-panel {
        position: relative;
        inset: auto;
        transform: none;
        width: 100%;
        max-width: 650px;
        margin: 35px auto 0;
    }
}

/* Dropdown menu Pilar */
.nav-dropdown {
    position: relative;
}

.pillar-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-family: var(--sans);
    font-size: var(--font-menu, 15px);
    font-weight: 600;
    cursor: pointer;
}

.pillar-menu-toggle:hover,
.pillar-menu-toggle[aria-expanded="true"] {
    background: var(--red);
    color: #fff;
}

.pillar-menu-toggle span {
    transition: transform .25s ease;
}

.pillar-menu-toggle[aria-expanded="true"] span {
    transform: rotate(180deg);
}

.pillar-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 110;
    min-width: 210px;
    padding: 8px;
    background: #fff;
    color: #181716;
    border: 1px solid #00000012;
    border-radius: 8px;
    box-shadow: 0 12px 30px #0000001f;
}

#nav .pillar-submenu a {
    display: block;
    padding: 12px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}

#nav .pillar-submenu a:hover {
    background: var(--red);
    color: #fff;
}

.pillar-submenu[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .pillar-menu-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 13px 0;
    }

    .pillar-submenu {
        position: static;
        margin: 5px 0 12px;
        min-width: 0;
        box-shadow: none;
    }
}

/* ===== 09 DROPDOWN MENU PILAR ===== */
(() => {
    const toggle = document.getElementById('pillarMenuToggle');
    const submenu = document.getElementById('pillarSubmenu');
    const dropdown = toggle?.closest('.nav-dropdown');

    if (!toggle || !submenu || !dropdown) return;

    function setOpen(open) {
        toggle.setAttribute('aria-expanded', String(open));
        submenu.hidden = !open;
    }

    toggle.addEventListener('click', () => {
        setOpen(toggle.getAttribute('aria-expanded') !== 'true');
    });

    // Tutup setelah memilih bagian.
    submenu.addEventListener('click', event => {
        if (event.target.closest('a')) setOpen(false);
    });

    // Tutup saat klik atau fokus berpindah ke luar dropdown.
    document.addEventListener('click', event => {
        if (!dropdown.contains(event.target)) setOpen(false);
    });

    document.addEventListener('focusin', event => {
        if (!dropdown.contains(event.target)) setOpen(false);
    });

    document.addEventListener('keydown', event => {
        if (
            event.key === 'Escape' &&
            toggle.getAttribute('aria-expanded') === 'true'
        ) {	
            setOpen(false);
            toggle.focus();
        }
    });

    document.getElementById('menu')?.addEventListener('click', () => {
        setOpen(false);
    });
})();

/* Font tombol WhatsApp sama dengan Konsultasi Sekarang */
#requestForm button.btn {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
}

/* Samakan font ketiga tombol */
#top .navcta,
#requestForm button.btn,
#contact .btn {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
}
/* Nama brand dan tagline lebih dekat */
#contact .contact-info h3 {
    margin: 0 0 6px;
    line-height: 1.2;
}

#contact .contact-tagline {
    margin: 0;
    line-height: 1.4;
    font-size: 14px;
    color: #bdbdbd;
}

/* Kontak dengan ikon */
.contact-links {
    display: grid;	
    gap: 18px;
    margin-top: 30px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    color: #fff;
    font-size: 14px;
    transition: color .2s ease;
}

.contact-links a:hover {
    color: var(--red);
}

.contact-links svg {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-links span {
    overflow-wrap: anywhere;
}

/* Perjelas teks Home pada HP */
@media (max-width: 760px) {
    #home .hero-gradient {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .97) 0%,
            rgba(255, 255, 255, .95) 35%,
            rgba(255, 255, 255, .88) 55%,
            rgba(255, 255, 255, .35) 78%,
            rgba(255, 255, 255, .08) 100%
        );
    }

    #home .hero-copy p {
        color: #181716;
    }
}

/* Tautan sumber artikel */
.article-link {
    display: inline-block;
    margin-top: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    color: var(--red);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    transition: opacity .2s ease;
}

.article-link:hover {
    opacity: .7;
}


/* Gambar artikel Bank Indonesia */
.art1 {
    background-image:
        linear-gradient(0deg, #0009, #0001),
        url('assets/artikel-harga-rumah.jpg');
}

/* Gambar artikel OJK */
.art2 {
    background-image:
        linear-gradient(0deg, #0009, #0001),
        url('assets/artikel-kpr.jpg');
}

/* Gambar artikel DJP */
.art3 {
    background-image:
        linear-gradient(0deg, #0009, #0001),
        url('assets/artikel-ppn.jpg');
}

/* Gambar artikel utuh dengan gradasi hitam–emas */
#articles .article-cover {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #171512;

    /* Hapus lapisan gradasi lama dari background */
    background-size: 0 0, contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Lapisan gradasi di depan gambar */
#articles .article-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: linear-gradient(
        125deg,
        rgba(0, 0, 0, .45) 0%,
        rgba(0, 0, 0, .08) 50%,
        rgba(168, 124, 50, .25) 100%
    );
}

/* Pemutar YouTube mengikuti ukuran kotak */
#home .video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ===== STABILITAS SCROLL DESKTOP DAN PONSEL ===== */
/* Header tetap terlihat tanpa lapisan fixed di atas seluruh halaman. */
body { padding-top: 0; }
#top {
    position: sticky;
    top: 0;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.hero-bg,
.about-visual img,
.founders-hero {
    filter: none;
}
.video-play,
.founder-caption {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* Layar sentuh tidak memerlukan pembesaran gambar saat hover. */
@media (hover: none), (pointer: coarse) {
    .property-card img, .pillar::before { transition: none; }
    .property-card:hover img, .pillar:hover::before { transform: none; }
    .btn:hover { transform: none; }
}


#contact h2 em {
  color: var(--red);
}

#contact h2 {
  font-size: clamp(35.2px, 4vw, 64px);
}

/* Hilangkan panah pada tombol konsultasi dan properti */
.navcta > span,
.hero-actions .btn > span {
  display: none;
}

/* Rapikan posisi tulisan setelah panah dihapus */
.navcta,
.hero-actions .btn {
  gap: 0;
  justify-content: center;
}