/* Link-in-bio page for Jairo Montenegro. Self-contained so it can live at /preview-links/ now
   and at solutions.jmsellsnj.com later. */
@font-face {
  font-family: Mulish;
  src: url("fonts/mulish-var-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #141414;
  --black-2: #0b0b0b;
  --white: #ffffff;
  --gold: #c5a95e;
  --gold-hi: #e4c980;
  --tan: #e8dfc8;
  --tan-dim: #cfc3a6;
  --line: rgba(197, 169, 94, 0.35);
  --btn: #1c1c1c;
  --radius: 2.6rem;
  --col: 36.5rem;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: Mulish, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body {
  min-height: 100%;
  background: var(--black);
}

/* Full-page photo background. Locked to the large viewport so the iOS/Android
   URL bar showing or hiding does not resize or scroll the photo.
   Height is 100lvh. If the browser has no lvh, JS sets --lk-bg-h once
   from window.innerHeight and never updates it on resize or scroll.
   Do not use inset:0 / bottom:0, which would retie height to the small viewport. */
.lk-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  height: var(--lk-bg-h, 100lvh);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: none;
}
.lk-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  background-image: var(--lk-bg-image, url("images/bg-bar.webp"));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
}
.lk-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.74);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.lk {
  position: relative;
  z-index: 1;
  width: min(100%, var(--col));
  margin: 0 auto;
  padding: 1.15rem 1.15rem 3.25rem;
}

/* Language toggle, top right, no flags */
.lk-lang {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lk-lang a, .lk-lang span {
  color: var(--tan-dim);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lk-lang a:hover, .lk-lang a:focus-visible { color: var(--gold-hi); }
.lk-lang [aria-current="page"] {
  color: var(--gold);
  cursor: default;
}
.lk-lang-sep { color: var(--line); font-weight: 400; pointer-events: none; }
.lk-lang a:focus-visible, .lk-btn:focus-visible, .lk-card:focus-visible,
.lk-social a:focus-visible, .lk-form button:focus-visible,
.lk-form-toggle:focus-visible, .lk-office a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Profile */
.lk-profile { text-align: center; }
.lk-avatar {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(197, 169, 94, 0.12);
  background: var(--black-2);
}
.lk-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.lk-name {
  margin: 0 0 0.2rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}
.lk-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}
.lk-broker, .lk-license, .lk-serving {
  margin: 0;
  font-size: 0.98rem;
  color: var(--tan);
  line-height: 1.4;
}
.lk-license { color: var(--tan-dim); margin-top: 0.15rem; }
.lk-serving { margin-top: 0.25rem; font-weight: 600; }

.lk-bio {
  margin: 1.1rem 0 0;
  color: var(--tan);
  font-size: 1.05rem;
  line-height: 1.45;
}
.lk-hablo {
  margin: 0.45rem 0 0;
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 800;
}
.lk-profile, .lk-trust, .lk-h, .lk-footer {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* Stats */
.lk-stats {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0.9rem 0.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.lk-stats li { min-width: 0; }
.lk-stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lk-stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tan);
  line-height: 1.25;
}

/* Trust lines, text only, no review links */
.lk-trust {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.lk-trust li {
  margin: 0.2rem 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}
.lk-stars {
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-right: 0.35rem;
}

/* Social icons */
.lk-social {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}
.lk-social a {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--btn);
  color: var(--gold);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}
.lk-social a:hover, .lk-social a:focus-visible {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.lk-social svg { width: 1.2rem; height: 1.2rem; display: block; }

/* Link buttons */
.lk-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
}
.lk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0;
  border: 1.5px solid var(--gold);
  background: var(--btn);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
  transition: box-shadow 2.5s ease;
}
.lk-btn:active, .lk-btn.lk-pressed {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
.lk-btn:hover, .lk-btn:focus-visible {
  background: var(--gold);
  color: var(--black);
}
.lk-btn-primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.lk-btn-primary:hover, .lk-btn-primary:focus-visible {
  background: var(--gold-hi);
  border-color: var(--gold-hi);
  color: var(--black);
}
.lk-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

/* Section heads */
.lk-h {
  margin: 1.85rem 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* Compact thumbnail cards in the stack */
.lk-cards {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.lk-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 4.4rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  border-radius: 0;
  border: 1.5px solid var(--line);
  background: var(--btn);
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
  transition: box-shadow 2.5s ease;
}
.lk-card:active, .lk-card.lk-pressed {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
.lk-card:hover, .lk-card:focus-visible {
  border-color: var(--gold);
  background: #222;
}
.lk-card img, .lk-card-ph {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0;
  object-fit: cover;
  flex: 0 0 auto;
  background: #2a2a2a;
}
.lk-card-ph {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.lk-card-text { min-width: 0; flex: 1; }
.lk-card-kicker {
  display: block;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.lk-card-title {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Expandable lead form */
.lk-form-wrap { margin: 0.75rem 0 0; }
.lk-form-toggle {
  list-style: none;
  width: 100%;
}
.lk-form-toggle::-webkit-details-marker { display: none; }
.lk-form-wrap[open] .lk-form-toggle {
  margin-bottom: 0.75rem;
}
.lk-form-intro { margin: 0 0 0.9rem; color: var(--tan); }
.lk-form {
  border: 1.5px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.1rem 1rem 1.15rem;
  background: var(--btn);
}
.lk-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.lk-form p { margin: 0 0 0.75rem; }
.lk-form label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tan);
}
.lk-form input, .lk-form textarea, .lk-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--black);
  color: var(--white);
  padding: 0.65rem 0.75rem;
  min-height: 2.85rem;
}
.lk-form textarea { min-height: 5.5rem; resize: vertical; }
.lk-form input:focus, .lk-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.lk-form .hint {
  margin: -0.4rem 0 0.8rem;
  font-size: 0.92rem;
  color: var(--tan-dim);
}
.lk-form .consent {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: var(--tan-dim);
  line-height: 1.4;
}
.lk-form button[type="submit"] {
  width: 100%;
  min-height: 3.1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  cursor: pointer;
}
.lk-form button[type="submit"]:hover,
.lk-form button[type="submit"]:focus-visible { background: var(--gold-hi); }
.lk-form button[type="submit"]:disabled { opacity: 0.7; cursor: wait; }
.lk-form .status { color: #f0c9c9; font-weight: 600; }
.lk-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.lk-form-fields { position: relative; }

/* Footer */
.lk-footer {
  margin: 2.1rem 0 0;
  text-align: center;
  color: var(--tan-dim);
  font-size: 0.95rem;
}
.lk-footer p { margin: 0.3rem 0; }
.lk-office a { color: var(--tan); text-decoration: underline; text-underline-offset: 3px; }
.lk-office a:hover { color: var(--gold-hi); }
.lk-foot-brand { margin-top: 0.85rem; color: var(--tan); font-weight: 600; }

@media (max-width: 400px) {
  .lk-stat-num { font-size: 1.05rem; }
  .lk-stat-label { font-size: 0.72rem; }
  .lk-form .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
