/* ─── Hafiz Realty — Shared Styles ─── */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..900&display=swap');

/* ─── Variables ─── */
:root {
  --text:    #ffffff;
  --muted:   rgba(255,255,255,.82);
  --stroke:  rgba(255,255,255,.15);
  --card-bg: rgba(0,0,0,.18);
  --bg:      linear-gradient(135deg,#1e3c72,#2a5298,#6a11cb,#2575fc);
}

*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }

/* ─── Body ─── */
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-size: 400% 400%;
  animation: bgMove 15s ease infinite;
  min-height: 100vh;
}

body.pk {
  background: linear-gradient(135deg,#0f2027,#203a43,#2c5364,#00b09b);
  background-size: 400% 400%;
}

@keyframes bgMove {
  0%,100% { background-position: 0%   50%; }
  50%      { background-position: 100% 50%; }
}

/* ─── Layout ─── */
.container { width: min(1100px, 92vw); margin: auto; }

/* ─── Header ─── */
header {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
}

.logo {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.badge {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .3px;
}

/* ─── Nav ─── */
nav { display: flex; align-items: center; gap: 2px; }

nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  opacity: .85;
  transition: opacity .2s, background .2s;
}
nav a:hover  { opacity: 1; background: rgba(255,255,255,.12); }
nav a.active { opacity: 1; background: rgba(255,255,255,.18); font-weight: 700; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  margin-top: 10px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  position: relative;
}
.hero-inner { padding: 52px 28px 34px; }
.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -.8px;
  font-weight: 800;
}
.hero .sub {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.65;
}

/* ─── Chips ─── */
.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
}

/* ─── Stats (homepage) ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.stat {
  border: 1px solid var(--stroke);
  background: var(--card-bg);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
}
.stat .num { font-size: 34px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ─── Two-column grid ─── */
.grid2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  margin: 22px 0 10px;
  align-items: stretch;
}

/* ─── Panels ─── */
.panel {
  border: 1px solid var(--stroke);
  background: var(--card-bg);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.panel h2 { margin: 0; font-size: 18px; font-weight: 700; }
.panel p  { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ─── List items ─── */
.list { margin-top: 14px; display: grid; gap: 10px; }
.item {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 12px 14px;
}
.item .t { font-weight: 800; margin: 0; font-size: 14px; }
.item .d { margin: 5px 0 0; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.5; }

/* ─── Section title ─── */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin: 30px 0 14px;
}
.section-title h2   { margin: 0; font-size: 20px; font-weight: 700; }
.section-title span { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }

/* ─── Cards ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

/* Home 2-col card grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 4px 0 32px;
}

.card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  transition: transform .28s ease, box-shadow .28s ease;
  color: white;
  text-decoration: none;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 28px 80px rgba(0,0,0,.48); }

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.14));
}

.content { position: relative; z-index: 2; }
.content h2 { margin: 0; font-size: 24px; font-weight: 700; }
.content h3 { margin: 0; font-size: 20px; font-weight: 700; }
.content p  { margin: 8px 0 0; color: rgba(255,255,255,.84); font-size: 14px; line-height: 1.5; }

.tagrow { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
}

/* Arrow badge on home cards */
.card-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s;
}
.card:hover .card-arrow { background: rgba(255,255,255,.28); }

/* ─── Inline CTA button ─── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
  transition: background .2s;
  color: white;
  text-decoration: none;
}
.cta-btn:hover { background: rgba(255,255,255,.22); }

/* ─── Floating WhatsApp FAB ─── */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.6); }
.fab svg   { width: 28px; height: 28px; fill: white; }

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 28px 0 32px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 8px;
}
footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Fade-up scroll animation ─── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .grid2     { grid-template-columns: 1fr; }
  .cards     { grid-template-columns: 1fr 1fr; }
  .stats     { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12,20,48,.96);
    backdrop-filter: blur(14px);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 10px;
    gap: 4px;
    z-index: 50;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
  }
  nav.open { display: flex; }
  nav a { padding: 12px 16px; border-radius: 10px; font-size: 16px; }
}

@media (max-width: 640px) {
  .cards    { grid-template-columns: 1fr; }
  .stats    { grid-template-columns: 1fr; }
  .hero-inner { padding: 36px 18px 24px; }
}
