/* ==========================================================================
   Kulwinder Bola — digital business card
   No framework, no build step, no external requests.
   ========================================================================== */

:root {
  /* RE/MAX brand */
  --red:        #DC1C2E;
  --red-dark:   #B01524;
  --blue:       #003DA5;
  --blue-deep:  #0A1B3D;

  --ink:        #0E1116;
  --ink-2:      #3A4250;
  --muted:      #6B7583;
  --line:       #E3E7ED;
  --surface:    #FFFFFF;
  --surface-2:  #F5F7FA;

  --wa:         #25D366;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(14,17,22,.06), 0 8px 24px rgba(14,17,22,.06);
  --shadow-lg:  0 2px 4px rgba(14,17,22,.06), 0 20px 48px rgba(14,17,22,.12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(64px + env(safe-area-inset-bottom)); /* room for mobile dock */
}
@media (min-width: 860px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }

/* ---------- Icons ---------- */
.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--lg { width: 24px; height: 24px; }
.ico--xl { width: 28px; height: 28px; }
/* The WhatsApp and Facebook glyphs are solid shapes — they carry their own
   fill/stroke presentation attributes inside the sprite, which override this. */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 650; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.975); }
.btn--red   { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(220,28,46,.28); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm    { padding: .55em 1.05em; font-size: .92rem; }
.btn--lg    { padding: 1em 1.5em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(20px, env(safe-area-inset-left));
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(14,17,22,.05); }

.topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.topbar__name { font-weight: 700; font-size: .98rem; line-height: 1.2; letter-spacing: -.015em; }
.topbar__name small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; }

.topbar__nav { display: none; gap: 26px; }
.topbar__nav a {
  text-decoration: none; font-size: .92rem; font-weight: 550; color: var(--ink-2);
  padding-block: 4px; border-bottom: 2px solid transparent;
}
.topbar__nav a:hover { color: var(--red); }
.topbar__nav a.is-active { color: var(--red); border-bottom-color: var(--red); }
@media (min-width: 860px) { .topbar__nav { display: flex; } }

/* ---------- Avatar ---------- */
.avatar {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%; object-fit: cover;
  background: var(--surface-2);
}
/* At 36px a white-background studio portrait has no visible edge and reads as a
   floating head, so the small variant gets a ring and a tinted backdrop. */
.avatar--sm {
  width: 38px; height: 38px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(14,17,22,.12);
}

/* ---------- Monogram (fallback when no photo is available) ---------- */
.monogram {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(140deg, var(--red), var(--blue-deep));
  color: #fff; font-weight: 800; letter-spacing: .02em; font-size: 1.05rem;
}
.monogram--sm { width: 36px; height: 36px; font-size: .8rem; }

/* ---------- Hero ---------- */
/* No overflow:hidden here — the action cards deliberately hang past the hero. */
.hero { position: relative; padding: clamp(40px, 7vw, 76px) 0 0; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(90% 70% at 15% 0%,  rgba(220,28,46,.92) 0%, rgba(220,28,46,0) 60%),
    radial-gradient(80% 80% at 95% 15%, rgba(0,61,165,.75) 0%, rgba(0,61,165,0) 62%),
    linear-gradient(180deg, #0E1116 0%, #16202F 55%, #0E1116 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
}

.hero__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 0 20px clamp(28px, 5vw, 44px);
  text-align: center; color: #fff;
}

.hero__photo { position: relative; width: 156px; margin: 0 auto 20px; }
.hero__photo img {
  width: 156px; height: 156px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  background: var(--surface-2);
}
.hero__badge {
  position: absolute; right: -6px; bottom: 4px;
  background: #fff; color: var(--red);
  font-size: .64rem; font-weight: 800; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.hero__badge sup { font-size: .5em; }

.hero__eyebrow {
  margin: 0 0 8px; font-size: .78rem; font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.hero__name {
  font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 800;
  margin: 0 0 14px; letter-spacing: -.035em;
}
.hero__tagline { font-size: clamp(1.05rem, 3.2vw, 1.35rem); color: rgba(255,255,255,.9); margin-bottom: 22px; }
.hero__tagline span { color: rgba(255,255,255,.6); font-weight: 400; }

.hero__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.hero__chips li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
}
.hero__chips .ico { width: 15px; height: 15px; }

/* ---------- Quick actions ---------- */
.actions {
  position: relative; z-index: 5;
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  transform: translateY(28px);
}
@media (min-width: 720px) { .actions { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px){ .actions { grid-template-columns: repeat(6, 1fr); } }

.action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center;
  padding: 18px 10px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none; font: inherit; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.action:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.action:active { transform: translateY(0) scale(.98); }
.action span  { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.action small { font-size: .74rem; color: var(--muted); }
.action .ico  { color: var(--ink-2); }

.action--primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 10px 26px rgba(220,28,46,.32); }
.action--primary .ico, .action--primary small { color: rgba(255,255,255,.88); }
.action--wa { background: var(--wa); color: #06331a; border-color: var(--wa); box-shadow: 0 10px 26px rgba(37,211,102,.3); }
.action--wa .ico { color: #06331a; }
.action--wa small { color: rgba(6,51,26,.7); }
.action--save { border-color: var(--ink); }
.action--save .ico { color: var(--ink); }

/* ---------- Stats ---------- */
.stats { padding: 62px 0 44px; background: var(--surface); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; text-align: center; }
@media (min-width: 720px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat b {
  display: block; font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 800;
  color: var(--red); letter-spacing: -.04em; line-height: 1;
}
.stat b span { font-size: .6em; vertical-align: super; }
.stat > span { display: block; margin-top: 6px; font-size: .88rem; color: var(--muted); font-weight: 550; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section--alt  { background: var(--surface-2); }
.section--dark { background: var(--blue-deep); color: #fff; }
.section--dark p { color: rgba(255,255,255,.74); }

.kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 10px;
}
.kicker--light { color: #FF7A88; }
.section__title { margin-bottom: 8px; }
.section__sub { color: var(--muted); max-width: 56ch; margin-bottom: 36px; }

.lead { font-size: 1.08rem; color: var(--ink-2); }

.grid-2 { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.35fr .85fr; gap: 56px; } }
@media (min-width: 900px) { .grid-2--contact { grid-template-columns: 1fr 1fr; } }

/* ---------- Ticks ---------- */
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Languages ---------- */
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.langs__label { font-weight: 650; margin-right: 4px; }
.pill {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}

.card--profile { position: sticky; top: 84px; }
.card--profile__top { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card--profile__top strong { display: block; font-size: 1.05rem; letter-spacing: -.015em; }
.card--profile__top span { font-size: .85rem; color: var(--muted); }

.deflist { margin: 18px 0 22px; display: grid; gap: 14px; }
.deflist dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.deflist dd { margin: 3px 0 0; font-size: .93rem; line-height: 1.5; }
.deflist dd em { color: var(--muted); font-size: .85em; font-style: normal; }
.deflist a { color: var(--red); font-weight: 600; text-decoration: none; }
.deflist a:hover { text-decoration: underline; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card--svc { transition: transform .18s ease, box-shadow .22s ease; }
.card--svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--svc .ico--xl {
  color: var(--red); margin-bottom: 14px;
  padding: 10px; width: 48px; height: 48px;
  background: rgba(220,28,46,.08); border-radius: 12px;
}
.card--svc p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Areas ---------- */
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.areas li {
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.areas li:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Listings ---------- */
.listings { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .listings { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.listings__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.listings__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 520px) { .listings__facts { grid-template-columns: repeat(2, 1fr); } }
.listings__facts li {
  padding: 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.listings__facts b { display: block; font-size: .98rem; }
.listings__facts span { font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- Form ---------- */
.form { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,28,46,.14);
}
.field input.is-invalid { border-color: var(--red); background: rgba(220,28,46,.03); }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
.form__note.is-error { color: var(--red); font-weight: 600; }

/* ---------- Contact side ---------- */
.contact-side { display: grid; gap: 12px; align-content: start; }
.contact-row {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 19px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .2s ease;
}
.contact-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-row .ico { color: var(--red); }
.contact-row b { display: block; font-size: 1rem; letter-spacing: -.01em; }
.contact-row small { color: var(--muted); font-size: .82rem; }

.note-card {
  padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.note-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.note-card strong { color: var(--ink); font-weight: 650; }
.note-card__title { font-size: .98rem !important; font-weight: 700; color: var(--ink) !important; margin-bottom: 7px !important; letter-spacing: -.01em; }
.note-card--red {
  background: linear-gradient(140deg, var(--red), #A5122A);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 26px rgba(220,28,46,.24);
}
.note-card--red p, .note-card--red .note-card__title { color: rgba(255,255,255,.88) !important; }
.note-card--red .note-card__title { color: #fff !important; }

.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease, transform .16s ease;
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 46px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer strong { color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__nav a { text-decoration: none; color: rgba(255,255,255,.72); font-weight: 550; }
.footer__nav a:hover { color: #fff; }
.footer__legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer__legal p { font-size: .72rem; line-height: 1.55; color: rgba(255,255,255,.45); }
.footer .muted { color: rgba(255,255,255,.5); }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 10px 4px; text-decoration: none;
  font-size: .7rem; font-weight: 650; color: var(--ink-2);
}
.dock a:active { background: var(--surface-2); }
.dock a:nth-child(1) .ico { color: var(--red); }
.dock a:nth-child(2) .ico { color: var(--wa); }
.dock__save .ico { color: var(--blue); }
@media (min-width: 860px) { .dock { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Print ---------- */
@media print {
  .topbar, .dock, .actions, .form, .socials { display: none !important; }
  .hero__bg { background: none; }
  body { color: #000; padding: 0; }
}
