/* ================================================================
   Jewellers Reviews — Homepage  (home.css)
   Uses tokens defined in theme.css: --gold, --gold-d, --gold-l,
   --dark, --mid, --muted, --border, --bg, --white, --max, --px, --ease
   ================================================================ */

/* local extras layered on theme tokens */
.jr-home {
  --gold-pale: rgba(200,169,81,.10);
  --bg-2:      #f4f1eb;
  --border-l:  #ece8e0;
  --sh-sm:     0 1px 4px rgba(0,0,0,.06);
  --sh-md:     0 4px 20px rgba(0,0,0,.09);
  --sh-lg:     0 12px 48px rgba(0,0,0,.13);
  --sh-gold:   0 4px 24px rgba(200,169,81,.25);
  --sec-py:    clamp(56px, 8vw, 96px);
}

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

.jr-container { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }

.jr-section { padding: var(--sec-py) 0; }
.jr-section-header { text-align: center; margin-bottom: clamp(32px,5vw,56px); }
.jr-section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px,4vw,44px); font-weight: 600; color: var(--dark); margin: 0 0 10px; letter-spacing: -.5px; line-height: 1.15; }
.jr-section-sub { font-size: clamp(14px,1.8vw,16px); color: var(--muted); margin: 0 auto; max-width: 520px; }
.jr-section-link { display: inline-block; margin-top: 12px; color: var(--gold-d); font-size: 14px; font-weight: 500; letter-spacing: .3px; transition: color .2s; }
.jr-section-link:hover { color: var(--dark); }

/* ── Buttons ── */
.jr-home .jr-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; border: 2px solid transparent; cursor: pointer; transition: all .22s var(--ease); letter-spacing: .2px; }
.jr-btn--gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.jr-btn--gold:hover { background: var(--gold-d); border-color: var(--gold-d); color: var(--dark); transform: translateY(-1px); box-shadow: var(--sh-gold); }
.jr-btn--outline { background: transparent; color: var(--dark); border-color: var(--border); }
.jr-btn--outline:hover { border-color: var(--gold); color: var(--gold-d); }
.jr-btn--lg { padding: 16px 40px; font-size: 16px; }

/* ═══════════ HERO ═══════════ */
.jr-hero { position: relative; background: var(--dark); min-height: 600px; display: flex; align-items: center; overflow: hidden; padding: clamp(80px,12vw,130px) var(--px) clamp(60px,8vw,100px); }
.jr-hero-grain { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E"); background-size: 256px; pointer-events: none; z-index: 1; }
.jr-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.jr-orb--1 { width: 500px; height: 500px; background: rgba(200,169,81,.12); top: -150px; right: -100px; animation: jr-float 8s ease-in-out infinite; }
.jr-orb--2 { width: 350px; height: 350px; background: rgba(200,169,81,.07); bottom: -100px; left: 5%; animation: jr-float 10s ease-in-out infinite reverse; }
.jr-orb--3 { width: 200px; height: 200px; background: rgba(200,169,81,.05); top: 40%; left: 40%; animation: jr-float 12s ease-in-out infinite; }
@keyframes jr-float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.05); } }

.jr-hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.jr-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,169,81,.12); border: 1px solid rgba(200,169,81,.25); color: var(--gold-l); font-size: 12.5px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 24px; animation: jr-fade-up .6s var(--ease) both; }
.jr-badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: jr-pulse 2s ease infinite; }
@keyframes jr-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

.jr-hero-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(40px,7vw,76px); font-weight: 700; color: var(--white); line-height: 1.08; margin: 0 0 18px; letter-spacing: -1.5px; animation: jr-fade-up .65s .08s var(--ease) both; }
.jr-hero-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.jr-hero-subtitle { font-size: clamp(15px,2vw,18px); color: rgba(255,255,255,.7); line-height: 1.65; margin: 0 auto 36px; max-width: 540px; animation: jr-fade-up .65s .16s var(--ease) both; }

.jr-hero-search-wrap { position: relative; max-width: 600px; margin: 0 auto 16px; animation: jr-fade-up .65s .24s var(--ease) both; }
.jr-search-box { position: relative; display: flex; align-items: center; background: var(--white); border-radius: 10px; box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(200,169,81,.2); overflow: hidden; transition: box-shadow .2s; }
.jr-search-box:focus-within { box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 2px var(--gold); }
.jr-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; z-index: 2; }
.jr-home .jr-search-box .jr-search-input { flex: 1; border: none; outline: none; padding: 18px 14px 18px 52px !important; text-indent: 0 !important; font-family: 'DM Sans', sans-serif; font-size: 15.5px; color: var(--dark); background: transparent; min-width: 0; -webkit-appearance: none; appearance: none; margin: 0; }
.jr-search-input::placeholder { color: #aaa; }
.jr-search-input::-webkit-search-decoration,
.jr-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.jr-search-btn { flex-shrink: 0; background: var(--gold); color: var(--dark); border: none; padding: 0 28px; height: 56px; font-family: 'DM Sans', sans-serif; font-size: 14.5px; font-weight: 600; cursor: pointer; letter-spacing: .3px; transition: background .2s; white-space: nowrap; }
.jr-search-btn:hover { background: var(--gold-d); }

.jr-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border-radius: 10px; box-shadow: var(--sh-lg); border: 1px solid var(--border-l); overflow: hidden auto; z-index: 100; max-height: 340px; }
.jr-search-results:not([hidden]) { display: block; }
.jr-sr-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; color: var(--dark); transition: background .15s; border-bottom: 1px solid var(--border-l); }
.jr-sr-item:last-child { border-bottom: none; }
.jr-sr-item:hover, .jr-sr-item:focus { background: var(--bg); outline: none; }
.jr-sr-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.jr-sr-thumb-fallback { width: 36px; height: 36px; border-radius: 6px; background: var(--gold-pale); color: var(--gold-d); font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jr-sr-info { display: flex; flex-direction: column; min-width: 0; }
.jr-sr-name { font-size: 14.5px; font-weight: 500; }
.jr-sr-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.jr-sr-rating { margin-left: auto; font-size: 12.5px; color: var(--gold-d); font-weight: 600; white-space: nowrap; }
.jr-sr-loading { padding: 20px; text-align: center; color: var(--muted); font-size: 13.5px; }

.jr-search-add { margin-top: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(200,169,81,.2); border-radius: 8px; padding: 10px 16px; align-items: center; gap: 10px; justify-content: center; font-size: 13.5px; color: rgba(255,255,255,.7); }
.jr-search-add:not([hidden]) { display: flex; }
.jr-add-link { color: var(--gold); font-weight: 500; }
.jr-add-link:hover { text-decoration: underline; color: var(--gold-l); }

.jr-hero-hint { font-size: 13px; color: rgba(255,255,255,.45); margin: 0; animation: jr-fade-up .65s .32s var(--ease) both; }
.jr-hero-hint a { color: rgba(255,255,255,.65); transition: color .2s; }
.jr-hero-hint a:hover { color: var(--gold-l); }

@keyframes jr-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════ STATS BAR ═══════════ */
.jr-stats-bar { background: var(--white); border-bottom: 1px solid var(--border-l); box-shadow: var(--sh-sm); }
.jr-stats-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.jr-stat { display: flex; flex-direction: column; align-items: center; padding: 24px 40px; gap: 4px; }
.jr-stat-num { font-family: 'Cormorant Garamond', serif; font-size: clamp(24px,3.5vw,34px); font-weight: 700; color: var(--dark); letter-spacing: -1px; line-height: 1; }
.jr-stat-label { font-size: 12.5px; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; font-weight: 500; }
.jr-stat-divider { width: 1px; height: 40px; background: var(--border-l); flex-shrink: 0; }

/* ═══════════ CATEGORIES ═══════════ */
.jr-categories { background: var(--bg-2); }
.jr-cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.jr-cat-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border-l); border-radius: 10px; padding: 18px 20px; color: var(--dark); transition: all .22s var(--ease); position: relative; overflow: hidden; }
.jr-cat-card::before { content: ''; position: absolute; inset: 0; background: var(--gold-pale); opacity: 0; transition: opacity .2s; }
.jr-cat-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--dark); }
.jr-cat-card:hover::before { opacity: 1; }
.jr-cat-icon { font-size: 22px; flex-shrink: 0; position: relative; z-index: 1; }
.jr-cat-label { font-size: 14px; font-weight: 500; position: relative; z-index: 1; flex: 1; }
.jr-cat-arrow { font-size: 13px; color: var(--muted); transition: transform .2s, color .2s; position: relative; z-index: 1; }
.jr-cat-card:hover .jr-cat-arrow { transform: translateX(4px); color: var(--gold-d); }

/* ═══════════ FEATURED ═══════════ */
.jr-featured { background: var(--bg); }
.jr-biz-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.jr-biz-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border-l); overflow: hidden; transition: all .25s var(--ease); }
.jr-biz-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border); }
.jr-biz-card-link { display: flex; align-items: center; gap: 16px; padding: 22px 22px 18px; color: var(--dark); flex-wrap: wrap; position: relative; }
.jr-biz-logo-wrap { position: relative; flex-shrink: 0; }
.jr-biz-logo { width: 60px; height: 60px; border-radius: 10px; object-fit: contain; background: var(--bg-2); padding: 4px; }
.jr-biz-logo-fallback { width: 60px; height: 60px; border-radius: 10px; background: linear-gradient(135deg,#2a2a2a,#242424); color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.jr-verified-badge { position: absolute; bottom: -4px; right: -4px; width: 18px; height: 18px; background: #22a559; color: #fff; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
.jr-biz-body { flex: 1; min-width: 0; }
.jr-biz-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-biz-location { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.jr-biz-rating { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.jr-stars { display: flex; gap: 1px; line-height: 1; }
.jr-star { font-size: 13px; }
.jr-star--full { color: var(--gold); }
.jr-star--half { color: var(--gold); opacity: .6; }
.jr-star--empty { color: var(--border); }
.jr-rating-score { font-size: 13.5px; font-weight: 600; color: var(--dark); }
.jr-rating-count { font-size: 12px; color: var(--muted); }
.jr-biz-cta { display: block; width: 100%; padding: 11px 22px; border-top: 1px solid var(--border-l); font-size: 13px; font-weight: 500; color: var(--gold-d); transition: background .2s; text-align: right; }
.jr-biz-card:hover .jr-biz-cta { background: var(--gold-pale); }

/* ═══════════ HOW IT WORKS ═══════════ */
.jr-how { background: #161616; position: relative; overflow: hidden; }
.jr-how::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(200,169,81,.10) 0%, transparent 70%); pointer-events: none; }
.jr-how .jr-section-title { color: var(--white); }
.jr-how .jr-section-sub { color: rgba(255,255,255,.65); }
.jr-how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.jr-how-step { padding: 32px 26px; border: 1px solid rgba(200,169,81,.22); border-radius: 14px; position: relative; transition: border-color .25s, transform .25s, box-shadow .25s; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); }
.jr-how-step:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.jr-how-num { font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 700; color: var(--gold); opacity: .45; line-height: 1; margin-bottom: 6px; letter-spacing: -1px; }
.jr-how-icon { font-size: 30px; margin-bottom: 14px; }
.jr-how-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; color: var(--white); margin: 0 0 10px; }
.jr-how-desc { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.65; margin: 0; }

/* ═══════════ RECENT REVIEWS ═══════════ */
.jr-recent-reviews { background: var(--bg-2); }
.jr-reviews-ticker { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.jr-review-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border-l); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .22s, transform .22s; }
.jr-review-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.jr-rc-stars { display: flex; gap: 2px; }
.jr-rc-text { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-style: italic; color: var(--dark); margin: 0; line-height: 1.55; flex: 1; }
.jr-rc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.jr-rc-author { font-weight: 600; color: var(--dark); }
.jr-rc-sep { color: var(--border); }
.jr-rc-biz { color: var(--gold-d); }
.jr-rc-biz:hover { text-decoration: underline; }
.jr-rc-date { color: var(--muted); margin-left: auto; }

/* ═══════════ OWNERS ═══════════ */
.jr-owners { background: var(--bg); }
.jr-owners-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,80px); align-items: center; }
.jr-owners-eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-d); margin-bottom: 14px; }
.jr-owners-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,4vw,44px); font-weight: 700; color: var(--dark); line-height: 1.1; letter-spacing: -.5px; margin: 0 0 16px; }
.jr-owners-desc { font-size: 15.5px; color: var(--mid); line-height: 1.7; margin: 0 0 20px; max-width: 440px; }
.jr-owners-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 8px; }
.jr-owners-list li { font-size: 14.5px; color: var(--dark); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.jr-owners-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.jr-owners-visual { display: flex; justify-content: center; align-items: center; }
.jr-owners-card { background: var(--white); border-radius: 16px; border: 1px solid var(--border); padding: 28px; width: 100%; max-width: 340px; box-shadow: var(--sh-lg); }
.jr-oc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.jr-oc-logo { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg,#2a2a2a,#242424); color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jr-oc-name { font-weight: 600; font-size: 15px; }
.jr-oc-loc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.jr-oc-badge { margin-left: auto; background: #e8f8ef; color: #22a559; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.jr-oc-stars { font-size: 20px; color: var(--gold); margin-bottom: 10px; }
.jr-oc-stars span { font-size: 16px; font-weight: 700; color: var(--dark); }
.jr-oc-bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.jr-oc-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-l)); border-radius: 3px; }
.jr-oc-stat { font-size: 12.5px; color: var(--muted); }

/* ═══════════ FINAL CTA ═══════════ */
.jr-cta-final { background: linear-gradient(135deg, var(--dark) 0%, #242424 100%); position: relative; overflow: hidden; }
.jr-cta-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(200,169,81,.1) 0%, transparent 65%); pointer-events: none; }
.jr-cta-inner { position: relative; z-index: 1; text-align: center; max-width: 600px; margin: 0 auto; padding: clamp(48px,6vw,72px) 0; }
.jr-cta-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,4vw,44px); font-weight: 700; color: var(--white); margin: 0 0 14px; letter-spacing: -.5px; }
.jr-cta-sub { font-size: 16px; color: rgba(255,255,255,.55); margin: 0 0 32px; }

.jr-empty-state { color: var(--muted); font-size: 15px; text-align: center; padding: 40px 0; }
.jr-empty-state a { color: var(--gold-d); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .jr-biz-grid { grid-template-columns: repeat(2,1fr); }
  .jr-how-grid { grid-template-columns: repeat(2,1fr); }
  .jr-reviews-ticker { grid-template-columns: repeat(2,1fr); }
  .jr-owners-inner { grid-template-columns: 1fr; }
  .jr-owners-visual { order: -1; }
  .jr-owners-card { max-width: 100%; }
}
@media (max-width: 768px) {
  .jr-hero { min-height: unset; }
  .jr-search-btn { padding: 0 18px; font-size: 14px; }
  .jr-stat { padding: 18px 20px; }
  .jr-stat-divider { height: 30px; }
  .jr-cat-grid { grid-template-columns: repeat(2,1fr); }
  .jr-biz-grid { grid-template-columns: 1fr; }
  .jr-how-grid { grid-template-columns: 1fr 1fr; }
  .jr-reviews-ticker { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  /* Stack input over button; icon must align to the INPUT row only */
  .jr-search-box { display: block; padding: 0; }
  .jr-home .jr-search-box .jr-search-input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 16px 0 46px !important;
    line-height: 56px;
  }
  .jr-search-icon { top: 28px; left: 16px; transform: translateY(-50%); }
  .jr-search-btn {
    display: block;
    width: 100%;
    height: 48px;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid var(--border-l);
    font-size: 15px;
  }
  .jr-stats-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .jr-stat { padding: 14px 12px; }
  .jr-stat-divider { display: none; }
  .jr-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .jr-cat-card { padding: 14px 12px; gap: 10px; }
  .jr-how-grid { grid-template-columns: 1fr; }
  .jr-owners-btns { flex-direction: column; }
  .jr-owners-btns .jr-btn { width: 100%; justify-content: center; }
  .jr-hero-badge { font-size: 11px; }
  .jr-hero-hint { font-size: 12px; }
}
