/* David Jewelers — Glen Rock, NJ
   Palette: black and white, navy accent. */

:root {
  --ink:       #0E1116;  /* near-black — text, dark bands, footer */
  --ink-soft:  #2A2F36;  /* body copy */
  --steel:     #5A6472;  /* secondary text, labels */
  --paper:     #FFFFFF;  /* page ground */
  --mist:      #F4F6F8;  /* alternating band / input wells */
  --line:      #D8DDE3;  /* hairlines */
  --line-dk:   #262C34;  /* hairlines on dark */

  --navy:      #17315C;  /* the accent */
  --navy-deep: #0F2242;  /* accent, pressed */
  --navy-lt:   #8AA9E0;  /* accent on dark grounds */

  --disp: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  border-top: 3px solid var(--navy);
}

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

a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  border-radius: 2px;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--gut);
}
.wrap-narrow { max-width: 720px; }

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: .9rem var(--gut) .55rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: .01em;
  text-decoration: none;
}

.bar-tel {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
  white-space: nowrap;
}
.bar-tel:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- nav ---------- */

.nav {
  border-top: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}

.nav-a {
  display: inline-block;
  padding: .7rem 0;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-a:hover { color: var(--ink); }

.nav-a.is-on {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
}

/* ---------- shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}

.tick {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  flex: none;
}

.eyebrow-light { color: var(--navy-lt); }
.eyebrow-light .tick { background: var(--navy-lt); }

.h-display {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 1.5rem;
}

.h-sec {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 2.4rem;
}
.h-sec-light { color: var(--paper); }

/* ---------- gradation rule (signature) ----------
   Reads as the edge of a ring mandrel / sizing gauge.
   Minor ticks every 8px, major ticks every 48px. */

.gradrule {
  height: 15px;
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--navy) 0 1px, transparent 1px 48px);
  background-size: 100% 6px, 100% 13px;
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  border-bottom: 1px solid var(--line);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(3.5rem, 11vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
}

.lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 0 0 1.6rem;
}

.hero-note {
  margin: 0;
  font-size: .93rem;
  color: var(--steel);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .78rem 1.5rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-line {
  background: transparent;
  color: var(--ink);
}
.btn-line:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-accent {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-accent:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: #3B434E;
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--navy-lt); color: var(--navy-lt); }

.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }

/* ---------- bands ---------- */

.band { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }

.band-dark {
  background: var(--ink);
  color: var(--paper);
}

.band-mist { background: var(--mist); }

.band-tight { padding-top: 0; }

/* ---------- service cards (home) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.card {
  display: block;
  position: relative;
  background: var(--paper);
  padding: 1.9rem 1.8rem;
  text-decoration: none;
  color: inherit;
  transition: background-color .18s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.card:hover { background: var(--mist); }
.card:hover::before,
.card:focus-visible::before { transform: scaleX(1); }

.card-h {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.25;
  margin: 0 0 .7rem;
}

.card-p {
  margin: 0 0 1.1rem;
  font-size: .96rem;
  color: var(--ink-soft);
}

.card-go {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}
.card:hover .card-go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- interior page hero ---------- */

.page-hero { padding: clamp(2.6rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem); }

.h-page {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(2.05rem, 5.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 1.3rem;
}

/* ---------- prose ---------- */

.prose-sec { margin-bottom: 2.6rem; }
.prose-sec:last-child { margin-bottom: 0; }

.h-sub {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 .9rem;
  padding-left: .9rem;
  border-left: 3px solid var(--navy);
}

.prose p { margin: 0 0 1rem; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

.checklist {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border-top: 1px solid var(--line);
}
.checklist li {
  padding: .62rem 0 .62rem 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: .98rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 10px;
  height: 2px;
  background: var(--navy);
}

.tag {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- related links ---------- */

.rel { display: flex; flex-wrap: wrap; gap: .6rem; }

.rel-a {
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .5rem 1rem;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.rel-a:hover { border-color: var(--navy); color: var(--navy); background: var(--mist); }

/* ---------- dark CTA band ---------- */

.center { text-align: center; }
.actions-center { justify-content: center; }

.cta-note {
  margin: 1.3rem 0 0;
  font-size: .88rem;
  color: #97A0AE;
}

/* ---------- visit / plates ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.plate {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  padding: 1.8rem;
}

.plate-h {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 1.1rem;
}

.addr { margin: 0 0 1rem; line-height: 1.6; }

.lnk {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
}
.lnk:hover { color: var(--ink); border-bottom-color: var(--ink); }

.hours { margin: 0; font-size: .96rem; }

.hrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .42rem 0;
  border-bottom: 1px dotted var(--line);
}
.hrow:last-child { border-bottom: 0; }
.hrow dt { color: var(--steel); }
.hrow dd { margin: 0; font-variant-numeric: tabular-nums; }
.hrow-off dd { color: var(--steel); }

/* ---------- about ---------- */

.about-copy {
  font-size: clamp(1.05rem, 2.1vw, 1.18rem);
  color: #C4CAD3;
  margin: 0 0 1.3rem;
}
.about-copy:last-child { margin-bottom: 0; }

/* ---------- form ---------- */

.form-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.form-note { margin: 0 0 1.6rem; max-width: 42em; color: var(--ink-soft); }

.form { max-width: 34rem; }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: .4rem;
}

.opt { text-transform: none; letter-spacing: normal; font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .7rem .85rem;
}

.field input:focus,
.field textarea:focus {
  background: var(--paper);
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 49, 92, .15);
}

.field textarea { resize: vertical; }

.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: #97A0AE;
  padding: 3rem 0 2rem;
  font-size: .93rem;
  border-top: 3px solid var(--navy);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dk);
}

.foot-mark {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--paper);
  margin: 0 0 .5rem;
}

.foot-line { margin: 0 0 .6rem; line-height: 1.65; }
.foot-line:last-child { margin-bottom: 0; }

.lnk-light {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--navy-lt);
}
.lnk-light:hover { color: var(--navy-lt); }

.foot-nav { display: flex; flex-direction: column; gap: .35rem; }

.foot-a { color: #97A0AE; text-decoration: none; font-size: .9rem; }
.foot-a:hover { color: var(--navy-lt); }

.foot-fine {
  margin: 1.5rem 0 0;
  font-size: .84rem;
  color: #5A6472;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .bar-in { padding-top: .75rem; }
  .nav-in { gap: 1.15rem; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- metal switcher (engagement rings) ---------- */

.gallery {
  margin: 0 0 1rem;
  padding: 0;
}

.frame {
  position: relative;
  background: var(--mist);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  aspect-ratio: 1000 / 714;
  overflow: hidden;
}

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.shot.is-on { opacity: 1; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.arrow:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.arrow-prev { left: .75rem; }
.arrow-next { right: .75rem; }

.gallery-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
}

.gallery-metal {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}

.swatches { display: flex; gap: .5rem; }

.swatch {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: box-shadow .18s ease, transform .18s ease;
}
.sw-white  { background: linear-gradient(145deg, #FFFFFF, #C9CDD2); }
.sw-yellow { background: linear-gradient(145deg, #F2D07A, #C79A2E); }
.sw-rose   { background: linear-gradient(145deg, #F0C0A8, #C88264); }

.swatch:hover { transform: scale(1.1); }
.swatch.is-on {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--navy);
}

@media (max-width: 480px) {
  .arrow { width: 2.35rem; height: 2.35rem; font-size: 1.35rem; }
  .arrow-prev { left: .4rem; }
  .arrow-next { right: .4rem; }
}

/* ---------- page hero ----------
   Near-black ground with a drawn step-cut facet field. An emerald cut is a
   step cut: concentric cut-corner outlines with facets running to the corners.
   Nothing here is a photograph, and nothing pretends to be one. */

.phero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.6rem, 6vw, 4rem);
  isolation: isolate;
}

.phero-big {
  padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

/* navy depth behind the facets */
.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(23, 49, 92, .85) 0%, rgba(23, 49, 92, 0) 62%),
    radial-gradient(90% 70% at 8% 96%, rgba(23, 49, 92, .45) 0%, rgba(23, 49, 92, 0) 60%);
  z-index: -2;
}

.phero-art {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: clamp(22rem, 46vw, 40rem);
  aspect-ratio: 600 / 560;
  color: var(--navy-lt);
  opacity: .3;
  z-index: -1;
  pointer-events: none;
}

.facets { width: 100%; height: 100%; display: block; }

.phero-in { position: relative; max-width: 1080px; }

.phero .h-page,
.phero .h-display { color: var(--paper); }

.lede-light { color: #C4CAD3; }

.phero .actions { margin-bottom: 0; }

@media (max-width: 860px) {
  .phero-art {
    right: -22%;
    width: 30rem;
    opacity: .18;
  }
}

/* ---------- trust strip ---------- */

.trust {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.trust-in {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.trust-i {
  display: flex;
  align-items: baseline;
  gap: .55rem;
}

.trust-k {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1;
  color: var(--navy);
}

.trust-v {
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--steel);
}

@media (max-width: 560px) {
  .trust-in { gap: .7rem 2rem; }
  .trust-k { font-size: 1.1rem; }
  .trust-v { font-size: .78rem; letter-spacing: .05em; }
}
