/* ==============================================
   style.css — Global Shared Styles
   Trystan Residence
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── CSS Variables ── */
:root {
  --gold:         #B8822E;
  --gold-light:   #D4A455;
  --gold-dark:    #8B6220;
  --gold-pale:    #F5E8D0;
  --beige:        #F7F2EA;
  --beige-mid:    #EEE6D8;
  --beige-dark:   #E3D5C0;
  --beige-border: #DDD0B8;
  --cream-white:  #FDFAF5;
  --red-accent:   #B83232;
  --text-dark:    #2A1F0E;
  --text-body:    #3D2E1A;
  --text-muted:   #7A6A50;
  --text-light:   #A89880;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 12px rgba(100,70,20,.08);
  --shadow-md:    0 8px 32px rgba(100,70,20,.12);
  --shadow-lg:    0 20px 60px rgba(100,70,20,.15);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--beige);
  color: var(--text-body);
  overflow-x: hidden;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ── Navbar ── */
.navbar-custom {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: rgba(253,250,245,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184,130,46,.15);
  padding: 2px 0;
  transition: background .3s, box-shadow .3s;
}
.navbar-custom.scrolled {
  background: rgba(253,250,245,0.98);
  box-shadow: 0 2px 24px rgba(100,70,20,.1);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
    height: 70px; /* set tinggi fixed sesuai keinginan */
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 13px;
  text-decoration: none;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: var(--gold-pale); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--beige-border);
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: all .3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 14px 0 6px;
  border-top: 1px solid var(--beige-border);
  margin-top: 10px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-muted);
  font-size: .85rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 0; text-decoration: none;
  border-bottom: 1px solid var(--beige-mid);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn-gold { margin-top: 14px; text-align: center; }

/* ── Buttons ── */
.btn-gold {
  display: inline-block;
  background: var(--gold); color: var(--white) !important;
  font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  border: none; border-radius: 5px; padding: 11px 26px;
  text-decoration: none; cursor: pointer;
  transition: background .25s, transform .2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline-gold {
  display: inline-block;
  background: transparent; border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 5px; padding: 11px 26px;
  text-decoration: none; cursor: pointer;
  transition: all .25s;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white) !important; }

.btn-outline-dark {
  display: inline-block;
  background: transparent; border: 1.5px solid var(--beige-border);
  color: var(--text-muted) !important;
  font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 5px; padding: 11px 26px;
  text-decoration: none; cursor: pointer; transition: all .25s;
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold) !important; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: var(--white) !important;
  font-weight: 700; font-size: .88rem;
  padding: 12px 26px; border-radius: 5px; border: none;
  text-decoration: none; transition: background .25s, transform .2s;
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-wa .icon { width: 20px; height: 20px; }

/* ── Section Labels ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  display: inline-block; width: 26px; height: 1.5px;
  background: var(--gold); opacity: .5;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 700; line-height: 1.15; color: var(--text-dark);
}
.section-title em { font-style: italic; color: var(--gold); }

/* ── Property Card ── */
.property-card {
  background: var(--white); border: 1px solid var(--beige-border);
  border-radius: 12px; overflow: hidden;
  transition: border-color .3s, transform .35s, box-shadow .35s;
  height: 100%; display: flex; flex-direction: column;
}
.property-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.prop-img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
}
.prop-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s;
}
.property-card:hover .prop-img-wrap img { transform: scale(1.07); }
.prop-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.prop-badge.gold  { background: var(--gold); color: var(--white); }
.prop-badge.red   { background: var(--red-accent); color: var(--white); }
.prop-badge.green { background: #27ae60; color: var(--white); }
.prop-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.prop-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 5px;
}
.prop-loc {
  font-size: .78rem; color: var(--text-light);
  margin-bottom: 14px; display: flex; align-items: center; gap: 5px;
}
.prop-specs {
  display: flex; gap: 14px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--beige-mid);
}
.spec-item { text-align: center; }
.spec-val { font-size: .98rem; font-weight: 700; color: var(--text-dark); }
.spec-label { font-size: .67rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }
.prop-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold); margin-bottom: 3px;
}
.prop-cicilan { font-size: .75rem; color: var(--text-muted); }

/* ── Fade-up animation ── */
.fade-up {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── Page Breadcrumb ── */
.page-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: rgba(247,242,234,.4);
  margin-bottom: 16px;
}
.page-breadcrumb a {
  color: rgba(247,242,234,.4); text-decoration: none; transition: color .2s;
}
.page-breadcrumb a:hover { color: var(--gold-light); }
.page-breadcrumb .sep { color: rgba(247,242,234,.2); }

/* ── Footer ── */
.site-footer {
  background: var(--text-dark);
  border-top: 1px solid rgba(184,130,46,.12);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 28px;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--gold); margin-bottom: 8px;
}
.footer-brand span { color: var(--white); }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.38); margin-bottom: 22px; line-height: 1.65; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(184,130,46,.28); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); text-decoration: none; transition: all .25s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social a svg { width: 15px; height: 15px; }
.footer-heading {
  color: var(--gold); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-link {
  display: block; color: rgba(255,255,255,.42);
  font-size: .84rem; margin-bottom: 9px; text-decoration: none; transition: color .2s;
}
.footer-link:hover { color: var(--gold); }
.footer-contact {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,.42); font-size: .84rem; margin-bottom: 11px;
}
.footer-contact svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(184,130,46,.1);
  padding-top: 22px; margin-top: 40px;
  font-size: .76rem; color: rgba(255,255,255,.28);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ── Responsive: Tablet ── */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  .site-footer { padding: 48px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .prop-body { padding: 16px; }
  .prop-cta { flex-direction: column; }
  .prop-cta a { text-align: center; width: 100%; }
  .btn-gold, .btn-outline-gold, .btn-wa { font-size: .78rem; padding: 10px 18px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .footer-brand { font-size: 1.2rem; }
  .section-title { font-size: 1.7rem; }
}