/* Nasr Jewelers — Home (from Claude Design "Home v2"). Shared styles: css/site.css */

@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── Search overlay ──────────────────────────────────────────── */
.scrim--light { z-index: 40; background: rgba(5,59,39,.18); }
.search-wrap { position: fixed; top: 86px; left: 0; right: 0; z-index: 45; display: flex; justify-content: center; padding: 0 16px; }
.search-panel {
  width: min(1120px, 100%); padding: 28px; border-radius: 32px;
  background: linear-gradient(115deg, rgba(255,255,255,.96), rgba(242,246,250,.9) 45%, rgba(255,255,255,.96));
  border: 1px solid #fff; box-shadow: 0 0 0 .5px rgba(196,154,86,.35), 0 20px 50px rgba(5,59,39,.16);
  display: flex; flex-direction: column; gap: 20px;
}
.search-row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(5,59,39,.15); padding-bottom: 14px; }
.search-row input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 24px; font-weight: 300; color: var(--ink);
}
.search-row input::-webkit-search-cancel-button { display: none; }
.search-popular { display: flex; flex-direction: column; gap: 12px; }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: var(--ink); padding: 8px; border-radius: 999px; display: flex; }
.chip--suggest { height: auto; padding: 9px 16px; font-size: 14px; }
.search-panel { max-height: calc(100vh - 104px); overflow: auto; }

/* Search results */
.search-results { display: flex; flex-direction: column; gap: 22px; }
.sr-group { display: flex; flex-direction: column; gap: 12px; }
.sr-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 14px; transition: background .2s;
}
.sr-chip:hover { background: var(--gold); color: #fff; }
.sr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.sr-item {
  display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(5,59,39,.08); color: var(--ink); min-width: 0; transition: border-color .2s, box-shadow .2s;
}
.sr-item:hover, .sr-item:focus-visible { color: var(--ink); border-color: var(--gold); box-shadow: 0 6px 18px rgba(5,59,39,.08); }
.sr-thumb { position: relative; flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #F1EEE8; }
.sr-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.sr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.sr-detail { font-size: 13px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 0; }
.sr-empty-title { font-size: 18px; }
.sr-empty-text { font-size: 15px; color: var(--muted-2); max-width: 56ch; }
@media (max-width: 520px) { .search-panel { padding: 20px; } .search-row input { font-size: 19px; } }

/* ── Hero ────────────────────────────────────────────────────── */

/* Hero carousel controls (built by js/home.js when the hero has several photos) */
.hero-ctl {                                          /* bottom center, under the headline */
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(clamp(18px, 3vh, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 3; display: flex; align-items: center; gap: 10px;
}
.hero-bars { display: flex; gap: 8px; }
.hero-bar { position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-bar::before, .hero-bar i { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px; }
.hero-bar::before { background: rgba(255,255,255,.35); }
.hero.is-light .hero-bar::before { background: rgba(5,59,39,.22); }     /* bright photo: darker track, gold progress */
.hero.is-light .hero-bar i { background: var(--gold); }
.hero-bar i { background: var(--champagne); transform-origin: left; transform: scaleX(0); }
.hero-bar.is-done i { transform: scaleX(1); }
.hero-bar.is-on i { animation: heroFill var(--slide-ms, 7000ms) linear forwards; }
.hero-ctl.is-paused .hero-bar.is-on i { animation-play-state: paused; }
@keyframes heroFill { to { transform: scaleX(1); } }
.hero-arrow, .hero-pause { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(3,30,20,.25);
  color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.hero-arrow:hover, .hero-pause:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.hero-pause .i-play { display: none; }
.hero-pause.is-play .i-play { display: block; }
.hero-pause.is-play .i-pause { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) {
  .hero-ctl { gap: 6px; }
  .hero-arrow { display: none; }                       /* phones: swipe instead */
  .hero-bar { width: 30px; }
  .hero-pause { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .hero-bar.is-on i { animation: none; transform: scaleX(1); } }

/* ── Services ────────────────────────────────────────────────── */
.services {
  background: var(--green); color: #F3EEE4; padding: var(--section-y) var(--gutter);
  display: flex; flex-direction: column; gap: 48px;
}
.services-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.services-title { color: #fff; }
.services-intro { font-size: 16px; line-height: 1.6; color: var(--mist); max-width: 380px; text-wrap: pretty; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.services-grid > #serviceLead { display: flex; }
.services-rest { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(230px, calc((100% - 16px) / 2)), 1fr)); gap: 16px; }
.svc {
  border-radius: 28px; overflow: hidden; background: var(--green-2);
  border: 1px solid rgba(196,154,86,.18); display: flex; flex-direction: column;
}
.svc-media { position: relative; width: 100%; aspect-ratio: 16/10; background: var(--green-3); flex: none; }
.svc-body {
  flex: 1; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  border-top: 1px solid rgba(196,154,86,.25);
}
.svc-n { font-size: 12px; color: var(--gold); letter-spacing: .08em; }
.svc-title { font-family: inherit; font-size: 21px; font-weight: 400; letter-spacing: -.01em; color: #fff; }
.svc-desc { margin-bottom: 8px; font-size: 14px; line-height: 1.55; color: var(--mist); text-wrap: pretty; }
.outline-gold {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(196,154,86,.7); color: #fff;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: background .2s;
}
.outline-gold:hover { background: var(--gold); color: #fff; }
.svc .outline-gold { margin-top: auto; height: 40px; }
.svc--lead { flex: 1; border-radius: 32px; }
.svc--lead .svc-media { flex: none; width: 100%; aspect-ratio: 1 / 1; }                                /* square photo */
.svc--lead .svc-body { flex: none; padding: 32px; gap: 12px; }
.svc--lead .svc-n { font-size: 13px; }
.svc--lead .svc-title { font-size: 30px; }
.svc--lead .svc-desc { margin: 0; font-size: 15px; line-height: 1.6; max-width: 48ch; }
.svc--lead .outline-gold { margin-top: 8px; height: 44px; }

/* ── Design Your Own ad ─────────────────────────────────────── */
.build { padding: clamp(48px, 8vw, 96px) var(--gutter); }
.build-card {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  border-radius: 40px; overflow: hidden; background: var(--green); color: #fff;
}
.build-card:hover { color: #fff; }
.build-copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; justify-content: center; }
.build-title { font-size: clamp(32px, 4vw, 56px); line-height: 1.04; color: #fff; text-wrap: balance; }
.build-text { font-size: 16px; line-height: 1.6; color: var(--mist); max-width: 42ch; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(196,154,86,.5); color: var(--mist-2); }
.build-cta { margin-top: 8px; }
.build-card:hover .build-cta { background: #fff; color: var(--green); }
/* 1600×1280 photo. The spacer keeps it at least 5:4; beside the text it stretches to the card's full height,
   so a tall text column never leaves a gap under it. */
.build-media { position: relative; width: 100%; background: var(--green-2); }
.build-media::before { content: ''; display: block; padding-top: 80%; }

/* ── Bridal break ───────────────────────────────────────────── */
.bridal { min-height: 520px; }
.bridal .feature-copy { max-width: 500px; }
.bridal .feature-title { font-size: clamp(36px, 4.6vw, 64px); }

/* ── Designers marquee ──────────────────────────────────────── */
.designers { padding: 56px 0; display: flex; flex-direction: column; gap: 28px; overflow: hidden; border-bottom: 1px solid rgba(5,59,39,.08); }
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 48px; padding-right: 48px; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track span {
  display: flex; align-items: center; gap: 48px; flex: none; white-space: nowrap;
  font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 600; letter-spacing: .04em; color: #2c3a33;
}
.marquee-track i { font-style: normal; color: var(--gold); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ── Shop ────────────────────────────────────────────────────── */
.shop { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: 40px; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.dept-grid > #deptLead { display: flex; }
.dept-rest { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(130px, calc((100% - 24px) / 3)), 1fr)); gap: 12px; }
.dept { display: flex; flex-direction: column; gap: 12px; color: var(--ink); min-width: 0; width: 100%; }
.dept:hover { color: var(--green); }
.dept-media { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; background: var(--stone); transition: box-shadow .2s; }
.dept:hover .dept-media { box-shadow: 0 0 0 2px var(--gold); }
.dept-name { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.dept--lead .dept-media { flex: 1; aspect-ratio: auto; min-height: 320px; }
.dept--lead .dept-name { font-size: 14px; }
.dept-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; transition: transform .6s ease; }
.dept:hover .dept-media img { transform: scale(1.05); }
.shop-all { align-self: center; }

.filters { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; border-radius: 32px; background: #fff; border: 1px solid rgba(5,59,39,.08); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6b6b6b; width: 96px; }
.filter-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(5,59,39,.08); }
.filter-foot-left { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.segmented { display: flex; padding: 3px; border-radius: 999px; background: var(--sand); }
.segmented button { height: 32px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--green); font-size: 13px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--green); color: #fff; }
.count { font-size: 14px; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort select { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(5,59,39,.2); background: #fff; color: var(--green); font-size: 13px; }
.text-link { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }

/* ── Timepieces / Men ───────────────────────────────────────── */
.half {
  width: 100%; aspect-ratio: 1 / 1; max-height: 100svh; display: block; color: #fff;      /* square photos: shown whole */
  border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left;
}
.half:hover { color: #fff; }
.half .slot { transition: transform 1.2s ease; }
.half:hover .slot { transform: scale(1.03); }
.half .shade { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(3,30,20,.65)); }
.half-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; }
.half-title { font-size: clamp(28px, 3vw, 40px); color: #fff; text-align: center; }
.half-sub { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }

/* ── Google reviews ─────────────────────────────────────────── */
.reviews { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); background: var(--sand); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.reviews-title { color: var(--ink); max-width: 16ch; }
.reviews-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.reviews-score { display: flex; align-items: center; gap: 18px; }
.reviews-num { font-family: var(--hfont); font-weight: 300; font-size: clamp(72px, 8vw, 112px); line-height: .9; color: var(--green); letter-spacing: -.02em; }
.reviews-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }

/* ── About ───────────────────────────────────────────────────── */
.about {
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 6vw, 96px);
}
.about-copy { display: flex; flex-direction: column; gap: 20px; max-width: 540px; }
.about-title { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; color: var(--ink); }
.about-copy p { font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* ── Locations ──────────────────────────────────────────────── */
.branches { padding: 0 var(--gutter) var(--section-y); display: flex; flex-direction: column; gap: 40px; }
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.branch { display: flex; flex-direction: column; border-radius: 32px; overflow: hidden; background: #fff; border: 1px solid rgba(5,59,39,.08); }
.branch-media { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--stone); }
/* A single showroom: one wide card, photo beside the details */
.branch:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.branch:only-child .branch-body { justify-content: center; padding: clamp(28px, 4vw, 56px); }
.branch:only-child .branch-city { font-size: clamp(26px, 2.6vw, 34px); }
@media (max-width: 760px) { .branch:only-child { display: flex; } }
.branch-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.branch-city { font-size: 22px; font-weight: 400; color: var(--green); }
.branch-addr { font-size: 15px; line-height: 1.6; color: var(--muted); }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
