/* =============================================
   BeliHomeStay — Global Shared Stylesheet
   global.css
   Colour System: 60-30-10 Rule
     60% → Warm Sand  #F5F5DC  (backgrounds, cleanliness)
     30% → Vivid Green #00b052 + Teal #02b6c8  (branding)
     10% → Slate Blue  #4A6274  (direction, text accents)
   Fonts: Quicksand (headings) + DM Sans (body)
   ============================================= */

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

/* ─── Design Tokens ─── */
:root {
  /* Brand Colours */
  --green:          #00b052;
  --green-dark:     #009044;
  --green-light:    rgba(0, 176, 82, 0.10);
  --teal:           #02b6c8;
  --teal-light:     rgba(2, 182, 200, 0.10);

  /* Neutrals */
  --sand:           #F5F5DC;
  --sand-dark:      #EAEAC8;
  --slate:          #4A6274;
  --dark:           #1C2B36;
  --muted:          #6b8394;
  --border:         rgba(74, 98, 116, 0.13);
  --border-subtle:  rgba(74, 98, 116, 0.06);

  /* White */
  --white:          #ffffff;

  /* Typography */
  --font-heading:   'Quicksand', sans-serif;
  --font-body:      'DM Sans', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ─── Base Body ─── */
body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  color: inherit;
}

/* =============================================
   NAVIGATION (shared across all pages)
   ============================================= */

.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(245, 245, 220, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 176, 82, 0.12);
}

.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;   /* adjust ikut suka */
  height: 40px;
  object-fit: contain;
} 

.nav-logo em {
  font-style: italic;
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-cta-pill {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.35rem;
  border-radius: 100px;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta-pill:hover {
  background: var(--green-dark) !important;
  box-shadow: 0 4px 16px rgba(0, 176, 82, 0.28) !important;
}

/* =============================================
   SECTION UTILITY CLASSES
   ============================================= */

.section {
  padding: 7rem 2rem;
}

.section-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 3.5rem;
}

/* =============================================
   BUTTONS (shared)
   ============================================= */

.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.25s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 28px rgba(0, 176, 82, 0.28);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid var(--border);
  transition: all 0.25s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--slate);
  color: var(--slate);
}

.btn-white {
  background: var(--white);
  color: var(--green);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
  display: inline-block;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline-white:hover {
  border-color: var(--white);
}

/* =============================================
   PROPERTY CARD (used on homepage + listings)
   ============================================= */

.property-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: block;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.09);
}

.property-card-image {
  height: 210px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}

.property-card-featured-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
}

.property-card-body {
  padding: 1.4rem;
}

.property-card-location {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.property-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.property-card-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.chip {
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(74, 98, 116, 0.07);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}

.property-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.property-card-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}

.property-card-price small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
  display: block;
}

.property-card-roi {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
}

/* =============================================
   FOOTER (shared)
   ============================================= */

.site-footer {
  background: var(--dark);
  padding: 5rem 2rem 2.5rem;
}

.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo em {
  font-style: italic;
  color: var(--green);
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.85;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
}

/* =============================================
   SCROLL FADE-IN ANIMATION
   ============================================= */

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
