/* =========================================================
   GILGIT BALTISTAN REAL ESTATE — GLOBAL STYLESHEET
   Base palette, typography and shared components.
   Loaded on every page BEFORE the page-specific stylesheet.
   ========================================================= */

:root{
  /* Brand palette — matched to the reference layout (green/dark navy) */
  --color-primary:#1f7a4d;      /* HomeVista-style green */
  --color-primary-dark:#155c39;
  --color-primary-light:#e8f5ee;
  --color-gold:#c9a227;         /* accent pulled from the GB Real Estate logo */
  --color-gold-dark:#a9841c;
  --color-dark:#0e2a25;         /* footer / dark sections */
  --color-text:#1b1f1d;
  --color-text-muted:#5b655f;
  --color-border:#e4e8e5;
  --color-bg:#ffffff;
  --color-bg-alt:#f6f8f6;

  --font-display:'Poppins', 'Segoe UI', sans-serif;
  --font-body:'Inter', 'Segoe UI', sans-serif;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;

  --shadow-sm:0 2px 8px rgba(14,42,37,.06);
  --shadow-md:0 10px 30px rgba(14,42,37,.10);
  --shadow-lg:0 20px 50px rgba(14,42,37,.16);

  --container:1240px;
  --transition:all .25s ease;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--color-text);
  background:var(--color-bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0 0 .5em; line-height:1.2; color:var(--color-text); }
p{ margin:0 0 1em; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.section{ padding:80px 0; }
.section-alt{ background:var(--color-bg-alt); }

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:36px;
  flex-wrap:wrap;
}
.section-head .eyebrow{
  display:inline-block;
  color:var(--color-primary);
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.section-head h2{ font-size:clamp(1.6rem,3vw,2.1rem); margin:0; }
.section-head .view-all{
  color:var(--color-primary);
  font-weight:600;
  white-space:nowrap;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 26px;
  border-radius:var(--radius-sm);
  font-weight:600;
  font-size:.95rem;
  border:1px solid transparent;
  transition:var(--transition);
  white-space:nowrap;
}
.btn-primary{ background:var(--color-primary); color:#fff; }
.btn-primary:hover{ background:var(--color-primary-dark); }
.btn-outline{ background:#fff; color:var(--color-text); border-color:var(--color-border); }
.btn-outline:hover{ border-color:var(--color-primary); color:var(--color-primary); }
.btn-gold{ background:var(--color-gold); color:#1a1500; }
.btn-gold:hover{ background:var(--color-gold-dark); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 16px; font-size:.85rem; }

/* Cards / badges shared across pages */
.badge{
  display:inline-block;
  padding:4px 12px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.02em;
}
.badge-sale{ background:#e8f5ee; color:var(--color-primary-dark); }
.badge-rent{ background:#fdf1e0; color:#a9631c; }
.badge-pending{ background:#f1eefc; color:#5c3fb0; }

.card{
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
}
.card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }

/* Forms */
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-weight:600; font-size:.88rem; margin-bottom:6px; }
.form-control{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--color-border);
  border-radius:var(--radius-sm);
  font-size:.95rem;
  font-family:inherit;
  background:#fff;
  transition:var(--transition);
}
.form-control:focus{ outline:none; border-color:var(--color-primary); box-shadow:0 0 0 3px var(--color-primary-light); }
textarea.form-control{ resize:vertical; min-height:120px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }

/* Utility */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.flex{ display:flex; }
.flex-center{ display:flex; align-items:center; justify-content:center; }
.gap-8{ gap:8px; }
.gap-12{ gap:12px; }
.hidden{ display:none !important; }

/* Breadcrumb / page header used on inner pages */
.page-hero{
  background:linear-gradient(180deg, var(--color-primary-light), #fff);
  padding:60px 0 40px;
  border-bottom:1px solid var(--color-border);
}
.page-hero h1{ font-size:clamp(1.8rem,4vw,2.6rem); }
.breadcrumb{ color:var(--color-text-muted); font-size:.9rem; }
.breadcrumb a{ color:var(--color-primary); font-weight:600; }
.breadcrumb span{ margin:0 6px; }

/* Accordion (FAQ) */
.accordion-item{
  border:1px solid var(--color-border);
  border-radius:var(--radius-sm);
  margin-bottom:12px;
  overflow:hidden;
}
.accordion-header{
  width:100%;
  background:#fff;
  border:none;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:600;
  text-align:left;
  font-size:1rem;
}
.accordion-header .icon{ transition:var(--transition); font-size:1.2rem; color:var(--color-primary); }
.accordion-item.active .icon{ transform:rotate(45deg); }
.accordion-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
  padding:0 20px;
  color:var(--color-text-muted);
}
.accordion-item.active .accordion-body{ padding:0 20px 18px; }

/* Reveal-on-scroll animation helper */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }

@media (max-width:900px){
  .section{ padding:56px 0; }
}

/* Floating WhatsApp button (site-wide, injected by main.js) */
.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.7rem;
  box-shadow:var(--shadow-md);
  z-index:999;
  transition:var(--transition);
}
.whatsapp-float:hover{ background:#1ebe5b; transform:scale(1.08); color:#fff; }
@media (max-width:520px){
  .whatsapp-float{ width:48px; height:48px; font-size:1.4rem; right:16px; bottom:16px; }
}
