:root {
  --ink: #201f1c;
  --muted: #67635c;
  --paper: #fffaf0;
  --panel: #f8efe0;
  --line: #dfd3be;
  --emerald: #0d5f4d;
  --emerald-dark: #073d32;
  --gold: #b8872f;
  --berry: #7b2737;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(32, 31, 28, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

a { color: var(--emerald-dark); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}

.skip-link:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(32, 31, 28, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.93rem;
}

.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--berry); }

.hero {
  position: relative;
  min-height: clamp(430px, 62vh, 520px);
  display: grid;
  align-items: start;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255,250,240,0.94) 0%, rgba(255,250,240,0.82) 35%, rgba(255,250,240,0.14) 68%),
    url("/assets/fine-jewelry-store-consultation.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(255,250,240,0), var(--paper));
  z-index: -1;
}

.hero-inner {
  width: min(920px, 92vw);
  padding: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.8vw, 4.25rem);
  font-weight: 700;
}

.page-heading h1 {
  max-width: 940px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
}

.hero p,
.page-heading p {
  max-width: 720px;
  color: #3f3a33;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
button,
.link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--emerald-dark);
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary,
button {
  background: var(--emerald-dark);
  color: var(--white);
}

.button.secondary,
.link-list a {
  background: rgba(255,255,255,0.62);
  color: var(--emerald-dark);
}

.page-heading {
  padding: clamp(48px, 9vw, 104px) clamp(20px, 6vw, 76px) 36px;
  background:
    linear-gradient(135deg, rgba(13,95,77,0.13), rgba(184,135,47,0.12)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px) 0 70px;
}

.finder,
.quick-answer,
.content-section,
.source-note {
  margin: 28px 0;
}

.finder {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
  padding: clamp(20px, 4vw, 34px);
  background: var(--emerald-dark);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.finder h2,
.finder p { margin-top: 0; }

.finder p { color: rgba(255,255,255,0.82); }

.finder .eyebrow { color: #e6bd6a; }

.finder-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
}

select,
input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.finder-results {
  grid-column: 1 / -1;
  min-height: 0;
}

.result-panel {
  margin-top: 4px;
  padding: 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
}

.results-summary {
  margin: 4px 0 12px;
  color: rgba(255,255,255,0.82);
  font-weight: 800;
}

.result-grid,
.store-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.result-card,
.store-card {
  min-height: 172px;
  padding: 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-card h3,
.store-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.result-card p,
.store-card p {
  margin: 6px 0;
  color: var(--muted);
}

.result-card span {
  display: inline-flex;
  margin-top: 8px;
  color: var(--emerald-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.store-map {
  grid-column: 1 / -1;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
}

.map-canvas {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    #143d35;
  background-size: 48px 48px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: #e6bd6a;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(0,0,0,0.28);
}

.map-pin span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 210px;
  padding: 4px 7px;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.map-pin:hover span,
.map-pin:focus span {
  opacity: 1;
}

.map-attribution {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.84rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-grid div {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.quick-answer,
.content-section,
.source-note {
  padding: clamp(20px, 4vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-answer h2,
.content-section h2,
.source-note h2 {
  margin-top: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-family: Georgia, "Times New Roman", serif;
}

.quick-answer h3 {
  margin: 22px 0 8px;
  color: var(--emerald-dark);
  font-size: 1.05rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tile {
  min-height: 164px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tile h3 { margin: 0 0 10px; font-size: 1.08rem; color: var(--emerald-dark); }
.tile p { margin: 0; color: var(--muted); }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #efe1cb;
  color: var(--ink);
}

tr:last-child td { border-bottom: 0; }

.checklist li,
.quick-answer li {
  margin: 8px 0;
}

.source-note {
  background: #f5ecd9;
}

.source-note a {
  overflow-wrap: anywhere;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 76px);
  background: #201f1c;
  color: rgba(255,255,255,0.82);
}

.site-footer strong {
  display: block;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a { color: white; }

@media (max-width: 900px) {
  .nav-links { justify-content: flex-start; }
  .hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(255,250,240,0.98) 0%, rgba(255,250,240,0.9) 58%, rgba(255,250,240,0.24) 100%),
      url("/assets/fine-jewelry-store-consultation.webp") 76% center / cover no-repeat;
  }
  .hero-inner { padding-top: 44px; padding-bottom: 58px; }
  .finder,
  .site-footer { grid-template-columns: 1fr; }
  .tile-grid,
  .result-grid,
  .store-card-grid,
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav-links { gap: 8px 12px; font-size: 0.88rem; }
  .hero {
    background:
      linear-gradient(90deg, rgba(255,250,240,0.98) 0%, rgba(255,250,240,0.94) 72%, rgba(255,250,240,0.58) 100%),
      url("/assets/fine-jewelry-store-consultation.webp") 82% center / cover no-repeat;
  }
  h1 { max-width: 100%; }
  .hero-actions,
  .link-list { flex-direction: column; align-items: stretch; }
  .tile-grid,
  .result-grid,
  .store-card-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .quick-answer,
  .content-section,
  .source-note,
  .finder { padding: 18px; }
}
