@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --grad-purple: linear-gradient(135deg, #7b2ff7 0%, #4b6cf7 100%);
  --grad-purple-deep: linear-gradient(135deg, #5b21b6 0%, #3730a3 100%);
  --grad-green: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  --grad-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --grad-red: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  --purple: #6d28d9;
  --purple-deep: #4c1d95;
  --orange: #f5a623;
  --green: #22c55e;
  --bg: #f4f4f9;
  --paper: #ffffff;
  --ink: #1e1b2e;
  --ink-soft: #6b6880;
  --line: #ece9f5;
  --radius: 16px;
  --pill: 999px;
  --max: 480px; /* mobile-first single column, matches the digital card reference */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.4em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: var(--purple); text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.page-shell { max-width: var(--max); margin: 0 auto; background: var(--bg); min-height: 100vh; padding-bottom: 90px; position: relative; }

/* ---- Minimal top bar (non-home pages) --------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; max-width: var(--max); }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--purple); }
.nav { display: flex; gap: 16px; }
.nav a { color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; }

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  color: #fff;
}
.btn-navy, .btn-purple { background: var(--grad-purple); color: #fff; }
.btn-gold, .btn-green { background: var(--grad-green); color: #063d1c; }
.btn-red { background: var(--grad-red); color: #fff; }
.btn-blue { background: var(--grad-blue); color: #fff; }
.btn-outline { background: #fff; color: var(--purple); border: 1.5px solid var(--line); }
.btn-block { display: block; width: 100%; }
.btn:active { transform: scale(0.98); }

/* ---- Profile / hero card ------------------------------------------- */
.profile-section { padding: 0 0 10px; text-align: center; }
.eye-count { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; margin-bottom: 14px; }

.cover-banner {
  background: var(--grad-purple);
  height: 108px;
  border-radius: 0 0 32px 32px;
  position: relative;
}
.cover-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 55%);
  border-radius: inherit;
}

.profile-photo {
  width: 108px; height: 108px; border-radius: 50%;
  object-fit: cover; border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(30,20,60,0.2);
  margin: -54px auto 0;
  display: block;
  background: var(--grad-purple);
  position: relative;
  z-index: 2;
}
.profile-photo.placeholder { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.2rem; font-weight: 700; }

.name-block { padding: 14px 20px 6px; }
.name-block .agent-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.name-block .agency-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad-purple); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px;
  padding: 5px 14px; border-radius: var(--pill);
  margin-bottom: 8px;
}
.name-block .agent-title { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }

/* ---- Quick action icons -------------------------------------------- */
.quick-actions { display: flex; justify-content: center; gap: 30px; margin: 22px 0; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.quick-action .icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.quick-action .icon-circle.call { background: var(--grad-blue); }
.quick-action .icon-circle.whatsapp { background: var(--grad-purple); }
.quick-action .icon-circle.mail { background: var(--grad-red); }
.quick-action span.label { font-size: 0.8rem; font-weight: 600; color: var(--ink); }

/* ---- Address block (centered, full width) ----------------------------- */
.address-block {
  text-align: center;
  padding: 6px 24px 4px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
}
.address-block i { color: var(--purple); margin-right: 8px; }

/* ---- Share / save row ------------------------------------------------ */
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad-green); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 14px; margin: 18px 0; border-radius: var(--radius); text-decoration: none;
}
.save-share-row { display: flex; gap: 12px; padding: 0 0 20px; }
.save-share-row .btn { flex: 1; }

/* ---- Section banner (purple gradient bar) ----------------------------- */
.section-banner {
  background: var(--grad-purple);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 22px;
  border-radius: 50px 50px 0 50px;
  margin: 26px 0 16px;
}

/* ---- QR block ---------------------------------------------------------- */
.qr-block { text-align: center; padding: 4px 18px 8px; }
.qr-block img { width: 190px; height: 190px; border: 8px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-radius: 8px; }

/* ---- About text --------------------------------------------------- */
.about-text { padding: 0 18px; color: var(--ink-soft); font-size: 0.94rem; }

/* ---- Video cards ---------------------------------------------------- */
.video-card {
  background: #111; border-radius: var(--radius); overflow: hidden; margin: 0 18px 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.video-card .thumb-wrap { position: relative; }
.video-card img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.video-card .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; background: #ff0000; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem;
}
.video-card .meta { background: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.video-card .meta .who { font-size: 0.82rem; }
.video-card .meta .who .name { font-weight: 700; display: block; }
.video-card .watch-btn { background: var(--grad-red); color: #fff; padding: 9px 14px; border-radius: var(--pill); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

/* ---- Product / poster cards ------------------------------------------ */
.product-card {
  border: 2.5px solid var(--orange); border-radius: 18px;
  margin: 0 18px 22px; padding: 14px; text-align: center;
  background: #fff;
}
.product-card img { width: 100%; border-radius: 10px; display: block; margin-bottom: 6px; }
.product-card h3 { font-size: 1rem; margin: 10px 0 4px; }
.product-card p { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 14px; }
.enquiry-btn { background: var(--grad-green); color: #04331a; font-weight: 700; padding: 12px 30px; border-radius: var(--pill); display: inline-block; border: none; font-size: 0.9rem; cursor: pointer; }

/* ---- Gallery ----------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 18px 8px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* ---- Map ---------------------------------------------------------------- */
.map-wrap { padding: 0 18px 8px; }
.map-wrap iframe { width: 100%; height: 220px; border: 0; border-radius: var(--radius); }

/* ---- Contact form ------------------------------------------------------ */
.contact-form-wrap { padding: 0 18px 8px; }
.contact-form .field { margin-bottom: 12px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: 0.92rem; background: #faf9fd;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.send-btn {
  width: 100%; background: var(--grad-red); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 15px; border-radius: var(--pill); border: none; cursor: pointer;
}

/* ---- CTA banners (bottom, before nav) --------------------------------- */
.cta-banner {
  background: #14121f; color: #fff; text-align: center; font-weight: 600; font-size: 0.9rem;
  padding: 15px 18px; margin: 4px 18px;
  border-radius: 10px; display: block; text-decoration: none;
}
.cta-banner .dot { color: #ef4444; margin-right: 6px; }

/* ---- Bottom sticky nav -------------------------------------------------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max);
  background: var(--grad-purple);
  display: flex; justify-content: space-around;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  z-index: 30;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.65rem; font-weight: 600;
  flex: 1; padding: 4px 2px;
}
.bottom-nav a.active { color: #fff; }
.bottom-nav a i { font-size: 1.05rem; }

/* ---- Alerts -------------------------------------------------------- */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 0.88rem; margin-bottom: 16px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ---- Generic sections reused on blog/calculator/contact pages -------- */
section { padding: 32px 0; }
.section-head { margin-bottom: 20px; }
.section-head .kicker { color: var(--purple); font-weight: 700; font-size: 0.8rem; display: block; margin-bottom: 4px; }
.section-head p { color: var(--ink-soft); font-size: 0.92rem; }

.post-list-page { border-top: 1px solid var(--line); }
.post-row { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-row .date { color: var(--ink-soft); font-size: 0.78rem; }
.post-row h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.post-row p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

.post-detail { padding-top: 20px; }
.post-detail .meta { color: var(--ink-soft); font-size: 0.8rem; margin-bottom: 6px; }
.post-body { font-size: 0.96rem; margin-top: 18px; }

.calc-panel { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.calc-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.calc-form .field { margin-bottom: 16px; }
.calc-form input, .calc-form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 0.95rem; font-family: inherit; background: #faf9fd;
}
.calc-result { background: var(--grad-purple-deep); color: #f2ede2; border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.calc-result .amount { font-size: 2rem; font-weight: 800; color: #fde68a; margin: 4px 0 0; }
.calc-result .label { color: #d8d3f0; font-size: 0.85rem; }
.calc-result .row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.88rem; }
.calc-disclaimer { font-size: 0.78rem; color: var(--ink-soft); margin-top: 16px; }

.lead-panel { background: var(--grad-purple-deep); color: #f2ede2; border-radius: var(--radius); padding: 26px; }
.lead-panel h2, .lead-panel .lede { color: #fff; }
.lead-form .field { margin-bottom: 14px; }
.lead-form label { display: block; font-size: 0.82rem; margin-bottom: 6px; color: #d8d3f0; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: #fff; font-family: inherit; font-size: 0.92rem;
}

/* ---- Footer (kept minimal; bottom nav is primary nav now) ------------ */
.site-footer { text-align: center; padding: 24px 18px; color: var(--ink-soft); font-size: 0.76rem; }
