/* ============================================================
   Cash Pawn & Gold — Villa Park, IL
   ============================================================ */

:root {
  --green:        #0c7a3a;
  --green-dark:   #075a2a;
  --green-deep:   #0a2e1c;
  --green-soft:   #e7f3ec;
  --gold:         #c8a24b;
  --gold-light:   #e3c878;
  --ink:          #1a1f1c;
  --ink-soft:     #46514b;
  --muted:        #6b756f;
  --line:         #e4e8e5;
  --bg:           #f4f6f4;
  --card:         #ffffff;
  --radius:       16px;
  --radius-sm:    11px;
  --shadow-sm:    0 1px 2px rgba(16,40,28,.06), 0 4px 14px rgba(16,40,28,.05);
  --shadow-md:    0 10px 30px rgba(16,40,28,.10);
  --shadow-lg:    0 24px 60px rgba(16,40,28,.16);
  --maxw:         1140px;
  --maxw-narrow:  760px;
  --header-h:     70px;
  --font-head:    'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
hr { border: 0; }

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}
.container--narrow { max-width: var(--maxw-narrow); }

/* section scroll offset under sticky header */
section[id], main { scroll-margin-top: calc(var(--header-h) + 10px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--gold  { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #3a2c06; box-shadow: var(--shadow-md); }
.btn--gold:hover { box-shadow: var(--shadow-lg); }
.btn--green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--green:hover { background: var(--green-dark); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--call  { background: var(--green); color: #fff; padding: .6rem 1.05rem; font-size: .9rem; }
.btn--call:hover { background: var(--green-dark); }
.btn--block { width: 100%; justify-content: center; padding-block: 1rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-deep); color: #cfe6d8;
  font-size: .82rem; letter-spacing: .01em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; padding-block: .35rem; }
.topbar a { color: #d9efe2; }
.topbar a:hover { color: #fff; }
.topbar__status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.topbar__status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
.topbar__status.is-open .dot   { background: #36d07a; box-shadow: 0 0 0 4px rgba(54,208,122,.2); }
.topbar__status.is-closed .dot { background: #e0683f; box-shadow: 0 0 0 4px rgba(224,104,63,.2); }
.topbar__links { display: inline-flex; align-items: center; gap: .6rem; }
.topbar__sep { opacity: .5; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(16,40,28,.08); background: rgba(255,255,255,.95); }
.header__inner { display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(150deg, var(--green), var(--green-dark)); color: var(--gold-light);
  box-shadow: var(--shadow-sm); flex: none;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; }
.brand__name em { color: var(--gold); font-style: normal; }
.brand__sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .96rem;
  padding: .5rem .8rem; border-radius: 9px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--green); background: var(--green-soft); text-decoration: none; }

.header__cta { margin-left: .4rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); margin: 4.5px 0; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 62%;
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,30,18,.55) 0%, rgba(7,30,18,.42) 38%, rgba(7,30,18,.86) 100%),
    radial-gradient(120% 90% at 18% 12%, rgba(10,46,28,.30), transparent 60%);
}
.hero__inner { padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3rem, 7vw, 5rem); max-width: 760px; }
.hero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em; font-size: .8rem;
  color: var(--gold-light); margin: 0 0 1rem;
  border: 1px solid rgba(227,200,120,.45); padding: .4rem .8rem; border-radius: 999px;
  background: rgba(10,46,28,.35);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; line-height: 1.04;
  margin: 0 0 1.1rem; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__title span { color: var(--gold-light); }
.hero__lead { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: #eaf1ec; max-width: 38em; margin: 0 0 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero__badges {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  font-weight: 500; font-size: .95rem; color: #e7efe9;
}
.hero__badges li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__badges span { color: var(--gold-light); font-weight: 800; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; margin: .4rem 0 .8rem; }
.section__intro { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.kicker {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: .8rem; color: var(--green); margin: 0;
}
.kicker--light { color: var(--gold-light); }

/* ---------- Intro / About ---------- */
.section--intro { background: var(--card); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section--intro .container--narrow { text-align: center; }
.section--intro .lead { font-size: clamp(1.12rem, 2.3vw, 1.4rem); color: var(--ink-soft); margin: 1rem 0 0; line-height: 1.6; }
.section--intro .lead strong { color: var(--ink); }
.rule {
  width: 64px; height: 3px; margin: 2.2rem auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px;
}

/* ---------- What We Buy: cards ---------- */
.section--buy { background: var(--bg); }
.cards {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4e0d8; }
.card__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--green-soft); color: var(--green); margin-bottom: 1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.card__lead { color: var(--ink); margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }
.card p + p { margin-top: .5rem; }
.card--cta {
  grid-column: 1 / -1;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(200,162,75,.16), transparent 55%),
    linear-gradient(120deg, var(--green-deep), var(--green-dark));
  color: #eaf6ee; border: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.6rem;
}
.card--cta .cta-text { flex: 1 1 360px; }
.card--cta .card__title { color: #fff; margin-bottom: .3rem; }
.card--cta p { color: #c7e2d3; margin-bottom: 0; }
.card--cta .btn { flex: none; }

.note {
  margin: 2rem auto 0; max-width: 880px; text-align: center;
  background: #fffdf5; border: 1px solid var(--gold-light); border-left: 4px solid var(--gold);
  color: var(--ink-soft); padding: 1.1rem 1.4rem; border-radius: var(--radius-sm);
  font-size: .98rem;
}
.note strong { color: var(--ink); }

/* ---------- Why Choose ---------- */
.section--why {
  background:
    radial-gradient(110% 120% at 85% -10%, rgba(200,162,75,.14), transparent 55%),
    linear-gradient(180deg, var(--green-deep), #0b3a22);
  color: #e7f1ea;
}
.section--why .section__title { color: #fff; }
.section--why .section__intro { color: #bfd9c9; }
.why-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}
.why-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 1.5rem 1.5rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.why-item:hover { background: rgba(255,255,255,.09); border-color: rgba(227,200,120,.45); transform: translateY(-3px); }
.why-item__num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  color: var(--green-deep); background: linear-gradient(180deg, var(--gold-light), var(--gold));
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
}
.why-item h3 { color: #fff; font-size: 1.18rem; margin-bottom: .35rem; }
.why-item p { color: #c4dccf; margin: 0; font-size: .98rem; }

/* ---------- Gallery ---------- */
.section--gallery { background: var(--card); }
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.gallery__item {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); grid-column: span 1; grid-row: span 1;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.1rem .9rem;
  color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(180deg, transparent, rgba(7,30,18,.85));
}

/* ---------- Visit / Contact ---------- */
.section--visit { background: var(--bg); }
.contact-cards {
  display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2.2rem;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.4rem; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.contact-card__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(160deg, var(--green), var(--green-dark)); color: #fff;
  margin-bottom: .5rem; box-shadow: 0 8px 18px rgba(12,122,58,.28);
}
.contact-card__icon svg { width: 28px; height: 28px; }
.contact-card__label { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.contact-card__detail { color: var(--ink-soft); font-size: .96rem; }

.visit-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.3rem; align-items: stretch; }
.visit-grid__map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.visit-grid__map a { display: block; height: 100%; }
.visit-grid__map img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.visit-grid__map-pill {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(255,255,255,.95); color: var(--ink); font-weight: 600; font-size: .9rem;
  padding: .7rem 1rem; border-radius: 11px; box-shadow: var(--shadow-md);
}

/* Hours box — distinct thick dark border per brief */
.hours-box {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 1.6rem 1.6rem; box-shadow: var(--shadow-sm);
}
.hours-box__title {
  font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; text-align: center;
  padding-bottom: .8rem; border-bottom: 2px dashed var(--line);
}
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem .6rem; border-radius: 8px; font-size: .98rem;
}
.hours li span:first-child { color: var(--ink-soft); font-weight: 500; }
.hours li span:last-child { font-weight: 600; }
.hours .closed { color: #c0492a; }
.hours li.is-today {
  background: var(--green-soft);
}
.hours li.is-today span:first-child { color: var(--green-dark); font-weight: 700; display: inline-flex; align-items: center; }
.today-badge {
  font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--green); padding: .14rem .5rem; border-radius: 999px;
  margin-left: .55rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: #b9d3c4; }
.footer__inner {
  display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.footer__brand .brand__name { color: #fff; font-size: 1.4rem; display: inline-block; margin-bottom: .6rem; }
.footer__brand .brand__name em { color: var(--gold-light); font-style: normal; }
.footer__brand p { color: #9cbcaa; max-width: 30ch; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.footer__col p { margin: 0 0 .5rem; font-size: .95rem; }
.footer a { color: #d7ece0; }
.footer a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-size: .85rem; color: #8fb2a0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .topbar__links { display: none; }
  .header__cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 0px) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1.2rem; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: .9rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery__item--wide { grid-column: span 1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .why-item:hover, .contact-card:hover { transform: none; }
  .gallery__item:hover img { transform: none; }
}
