/* Western Dollar Pawn Shop — Mayagüez, PR
   Concept: "la vitrina encendida" — the lit case in a dark room.
   The client's gold+green mark has no dark outline and dies on white, so the
   page is built on near-black. Palette and display face come from the client's
   own brand sheet (Carta-de-colores-tipo-de-letra.png). */

:root {
  --ink:     #0C0E0A;
  --ink-2:   #14170F;
  --ink-3:   #1D2116;
  --gold:    #C79317;
  --gold-lt: #EEE64A;
  --green:   #39B54A;
  --lime:    #8BC63B;
  --paper:   #F4F0E4;
  --muted:   #A9A492;

  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --bar: 60px;   /* sticky mobile call bar height */
  --r: 4px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-lt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); font-weight: 700;
  padding: 12px 18px; border-radius: 0 0 var(--r) 0; text-decoration: none;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

/* ── type ─────────────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; margin: 0; }

h1 { font-size: clamp(34px, 8.6vw, 60px); letter-spacing: -0.005em; }
h1 em { font-style: normal; color: var(--gold-lt); }

h2 { font-size: clamp(26px, 5.6vw, 38px); margin-bottom: 14px; }
h3 { font-size: clamp(19px, 2.4vw, 21px); line-height: 1.2; margin-bottom: 8px; color: var(--gold); }

p { margin: 0 0 14px; }

.eyebrow {
  font-family: var(--body);
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px; padding-bottom: 12px; position: relative;
}
/* THE SIGNATURE INTERACTION — a bar of gold drawn out from the left. */
.eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--gold-lt) 0 20%, var(--gold) 20% 100%);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .7s cubic-bezier(.2,.8,.2,1) .1s;
}
.is-in .eyebrow::after, .no-motion .eyebrow::after { transform: scaleX(1); }

.lede  { font-size: clamp(17px, 4.2vw, 21px); color: var(--paper); max-width: 46ch; }
.big   { font-size: clamp(17px, 4.2vw, 20px); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Unconfirmed facts ship as visible, self-naming placeholders — never as
   invented plausible content. */
.todo {
  display: inline-block;
  font-family: var(--body); font-weight: 700; font-size: 14px;
  letter-spacing: .04em; color: var(--gold-lt);
  background: rgba(199,147,23,.10);
  border: 1px dashed var(--gold);
  border-radius: var(--r); padding: 5px 10px;
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-block; font-family: var(--body); font-weight: 800;
  font-size: 17px; letter-spacing: .01em;
  background: var(--gold); color: var(--ink); text-decoration: none;
  padding: 15px 24px; border-radius: var(--r); min-height: 48px;
  border: 2px solid var(--gold);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 19px; padding: 17px 30px; }
.btn--sm { font-size: 15px; padding: 10px 15px; min-height: 42px; }

.tlink { font-weight: 700; text-decoration: none; white-space: nowrap; }
.tlink:hover { text-decoration: underline; }

/* ── header ───────────────────────────────────────────────────────────── */

.site-header {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink-3);
  background: var(--ink);
  position: relative; z-index: 5;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 156px; height: auto; }
.site-nav { display: none; margin-left: auto; gap: 22px; }
.site-nav a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.site-nav a:hover { color: var(--gold-lt); }
/* On a phone the sticky bottom bar is the loud call action, so the header's
   tel: link is present but visually subordinate — two shouting gold blocks
   compete with the hero CTA. */
.site-header .btn {
  margin-left: auto;
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.site-header .btn:hover { background: var(--gold); color: var(--ink); }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 44px 0 54px; overflow: hidden; }
.hero-light {
  position: absolute; left: 50%; top: -140px; transform: translateX(-50%);
  width: 900px; height: 640px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(199,147,23,.30), rgba(199,147,23,0) 72%);
  opacity: .40;
  animation: caselight 9s ease-in-out infinite;
}
@keyframes caselight { 0%,100% { opacity: .34; } 50% { opacity: .48; } }

.hero-inner { position: relative; text-align: center; }
.hero-mark { width: min(240px, 62vw); height: auto; margin: 0 auto 22px; }
.hero .eyebrow { display: inline-block; padding-bottom: 14px; }
.hero .eyebrow::after { left: 50%; transform: translateX(-50%) scaleX(0); }
.is-in .hero .eyebrow::after, .no-motion .hero .eyebrow::after { transform: translateX(-50%) scaleX(1); }
.hero .lede { margin: 16px auto 0; }

.actions {
  margin: 24px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.facts {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.facts li {
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--paper);
  border: 1px solid var(--ink-3); background: var(--ink-2);
  border-radius: 999px; padding: 8px 14px;
}
.facts li:nth-child(2) { border-color: rgba(57,181,74,.55); }

/* ── sections ─────────────────────────────────────────────────────────── */

.section { padding: 54px 0; border-top: 1px solid var(--ink-3); }
.section--sell { background: var(--ink-2); }
.section--scale { background: var(--ink-2); }
.section--visit { border-bottom: 1px solid var(--ink-3); }

.will-in { opacity: 0; transform: translateY(14px); }
.is-in { opacity: 1; transform: none; transition: opacity .52s ease, transform .52s cubic-bezier(.2,.8,.2,1); }

.quote {
  font-family: var(--display); font-size: clamp(19px, 4.6vw, 25px);
  line-height: 1.3; color: var(--gold);
  border-left: 3px solid var(--lime); padding: 4px 0 4px 18px;
  margin: 0 0 28px; max-width: 30ch;
}

/* steps */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.steps li {
  background: var(--ink); border: 1px solid var(--ink-3);
  border-radius: var(--r); padding: 22px 20px 20px; position: relative;
}
.step-n {
  font-family: var(--display); font-size: 15px; color: var(--gold);
  display: block; margin-bottom: 10px; letter-spacing: .06em;
}
.steps p { margin: 0; color: var(--paper); }

/* cards */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--ink-2); border: 1px solid var(--ink-3);
  border-radius: var(--r); padding: 22px 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.section--sell .card, .section--scale .card { background: var(--ink); }
.card:hover { border-color: rgba(199,147,23,.55); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); }

/* chips */
.chips { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--ink-3); background: var(--ink-2);
  border-radius: var(--r); padding: 8px 13px; color: var(--paper);
}

/* licence block — required by Ley 23-2011 Art. 17(a)(5) and Art. 18(18) */
.licence {
  margin-top: 26px; padding: 18px 20px;
  border: 1px solid var(--ink-3); border-left: 3px solid var(--gold);
  border-radius: var(--r); background: var(--ink);
  font-size: 15px; color: var(--muted); line-height: 1.6;
}
.licence .todo { margin-top: 8px; }

/* visit */
.visit { display: grid; gap: 34px; }
.visit-facts { display: grid; gap: 14px; }
.panel {
  background: var(--ink-2); border: 1px solid var(--ink-3);
  border-radius: var(--r); padding: 18px 20px;
}
.panel h3 { font-size: 13px; font-family: var(--body); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }
/* Comfortable tap targets — the audience is older and phone-first. */
.panel a, .footer-txt a { display: inline-block; padding: 6px 0; min-height: 32px; }
.panel--todo { border-left: 3px solid var(--green); }
.big-link { font-family: var(--display); font-size: 25px; text-decoration: none; color: var(--gold-lt); }
.big-link:hover { color: var(--paper); text-decoration: underline; }

/* ── footer ───────────────────────────────────────────────────────────── */

.site-footer { padding: 38px 0 34px; background: var(--ink); }
.footer-in { display: grid; gap: 20px; align-items: start; }
.footer-in img { width: 150px; opacity: .9; }
.footer-txt p { margin: 0 0 6px; font-size: 15.5px; color: var(--muted); }
.footer-txt b { color: var(--paper); }
.footer-txt .small { margin-top: 12px; }

/* ── sticky call bar (mobile) ─────────────────────────────────────────── */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: stretch;
  background: var(--gold);
  border-top: 2px solid var(--gold-lt);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.callbar-main {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
  min-height: var(--bar);
  font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none;
}
.callbar-alt {
  flex: 0 0 auto; display: flex; align-items: center;
  padding: 0 18px; min-height: var(--bar);
  font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none;
  border-left: 1px solid rgba(12,14,10,.28);
}
.callbar a:active { transform: translateY(1px); }

/* ── ≥620px ───────────────────────────────────────────────────────────── */

@media (min-width: 620px) {
  .actions { flex-direction: row; justify-content: center; gap: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .visit-facts { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: auto 1fr; gap: 28px; }
}

/* ── ≥900px — desktop is the adaptation, not the origin ───────────────── */

@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 19px; }
  .callbar { display: none; }
  .site-nav { display: flex; }
  /* No sticky bar on desktop, so the header tel: link becomes the solid one. */
  .site-header .btn {
    margin-left: 0;
    background: var(--gold); color: var(--ink); border-color: var(--gold);
  }
  .site-header .btn:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
  .brand img { width: 178px; }
  .section { padding: 78px 0; }
  .hero { padding: 62px 0 76px; }
  .hero-mark { width: 340px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .visit { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
  .visit-facts { grid-template-columns: 1fr; }
}

/* ── reduced motion — mandatory ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .will-in { opacity: 1; transform: none; }
  .eyebrow::after { transform: scaleX(1); }
  .hero .eyebrow::after { transform: translateX(-50%) scaleX(1); }
  .hero-light { animation: none; }
}
