/* Hyd Gold Buyers: shared styles for index.html and privacy-policy.html */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --emerald: #0d3b33;
  --emerald-deep: #082a24;
  --gold: #e0b04a;
  --gold-hover: #ebc268;
  --gold-ink: #8a6410;
  --paper: #f7f3e6;
  --mist: #eef2ee;
  --white: #ffffff;
  --ink: #14201d;
  --muted: #465752;
  --line: #d3dcd6;
  --focus: #0d3b33;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  /* room for the fixed call bar on phones */
  padding-bottom: 5.25rem;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark {
  --focus: var(--gold);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--emerald);
  font-weight: 700;
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 1.35rem + 3.9vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 36rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  fill: currentColor;
}

.btn-gold {
  background: var(--gold);
  color: var(--emerald);
}
.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-ghost-light {
  border-color: rgba(247, 243, 230, 0.55);
  color: var(--paper);
}
.btn-ghost-light:hover {
  background: rgba(247, 243, 230, 0.1);
  border-color: var(--paper);
}

.btn-solid {
  background: var(--emerald);
  color: var(--white);
}
.btn-solid:hover {
  background: var(--emerald-deep);
}

.btn-outline {
  border-color: var(--emerald);
  color: var(--emerald);
}
.btn-outline:hover {
  background: var(--mist);
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  border-radius: 0.6rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.when-wide {
  display: none;
}

/* ---------- header ---------- */

.site-header {
  background: var(--emerald);
  color: var(--paper);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: block;
  line-height: 0;
}
.brand img {
  height: 2.35rem;
  width: auto;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  margin: 0 auto 0 2.5rem;
  padding: 0;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
}
.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

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

.hero {
  background: var(--emerald);
  color: var(--paper);
  padding-block: 1.75rem 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero .lead {
  margin-bottom: 1.5rem;
}

.hero-note {
  margin: 1.5rem 0 0;
  padding-left: 0.85rem;
  border-left: 3px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
}

.scale {
  width: min(100%, 26rem);
  margin-inline: auto;
}

.scale .beam,
.scale .pan {
  transform-box: view-box;
}
.scale .beam {
  transform-origin: 220px 110px;
  animation: beam-settle 2.6s ease-in-out 0.4s both;
}
.scale .pan {
  transform-origin: 0 0;
  animation: pan-settle 2.6s ease-in-out 0.4s both;
}

@keyframes beam-settle {
  0% { transform: rotate(-8deg); }
  28% { transform: rotate(4.5deg); }
  52% { transform: rotate(-2.2deg); }
  74% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
@keyframes pan-settle {
  0% { transform: rotate(8deg); }
  28% { transform: rotate(-4.5deg); }
  52% { transform: rotate(2.2deg); }
  74% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.section-mist {
  background: var(--mist);
}
.section-dark {
  background: var(--emerald);
  color: var(--paper);
}
.section-deep {
  background: var(--emerald-deep);
  color: var(--paper);
}

.split {
  display: grid;
  gap: 2rem;
}

.section-intro p {
  max-width: 30rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* what we buy */

.buy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.buy-list li {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.buy-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.buy-list h3 {
  margin-bottom: 0.35rem;
}
.buy-list p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.purity-note {
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}

.purity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.purity li {
  padding: 0.35rem 0.8rem;
  border: 1.5px solid var(--emerald);
  border-radius: 0.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.purity b {
  margin-right: 0.45rem;
  color: var(--gold-ink);
}

/* steps */

.steps {
  display: grid;
  gap: 1.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 3px solid var(--emerald);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-ink);
}
.steps h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

/* buyers, not lenders */

.statement h2 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.06;
  color: var(--white);
}
.statement p {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.15rem;
}

/* branches */

.areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.areas li {
  padding: 0.7rem 0 0.7rem 0.9rem;
  border-left: 3px solid var(--gold);
  font-weight: 650;
}

.group-line {
  margin-top: 2rem;
  color: var(--muted);
}
.group-line a {
  color: var(--emerald);
  font-weight: 650;
}

/* faq */

.faq {
  margin: 0;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1.12rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.4rem;
  border-right: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq details p {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  color: var(--muted);
}

/* closing call to action */

.cta-band p {
  max-width: 32rem;
  margin: 1rem 0 1.75rem;
  font-size: 1.15rem;
}
.cta-band h2 {
  color: var(--white);
  max-width: 20ch;
}

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

.site-footer {
  background: var(--emerald-deep);
  color: var(--paper);
  padding-block: 2.5rem 2rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
.footer-brand img {
  height: 3.2rem;
  width: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  font-weight: 600;
  text-underline-offset: 0.25em;
}
.footer-small {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- fixed call bar (phones) ---------- */

.call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(8, 42, 36, 0.12);
}

/* ---------- privacy policy page ---------- */

.doc-hero {
  background: var(--mist);
  padding-block: clamp(2.25rem, 6vw, 4rem);
}
.doc-hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.2rem);
  margin-bottom: 0.75rem;
}
.doc-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.doc-grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.toc {
  display: none;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin: 0;
}
.toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.9rem;
  border-left: 3px solid var(--line);
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.97rem;
}
.toc a:hover {
  border-left-color: var(--gold);
  color: var(--emerald);
}
.toc-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.doc {
  max-width: 44rem;
}
.doc h2 {
  margin: 2.75rem 0 0.9rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  scroll-margin-top: 1.5rem;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc h3 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
}
.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.doc li {
  margin-bottom: 0.45rem;
}
.doc a {
  color: var(--emerald);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.doc-contact {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--mist);
  border-left: 4px solid var(--gold);
  border-radius: 0 0.6rem 0.6rem 0;
}
.doc-contact p {
  margin: 0 0 0.35rem;
}
.doc-contact p:last-child {
  margin-bottom: 0;
}

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  .brand img {
    height: 2.6rem;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.75rem;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 1.125rem;
    padding-bottom: 0;
  }

  .call-bar {
    display: none;
  }

  .when-wide {
    display: inline;
  }
  .when-narrow {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .hero {
    padding-block: 3rem 5rem;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
  .scale {
    margin-inline: 0 auto;
  }

  .split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .doc-grid {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }
  .toc {
    display: block;
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scale .beam,
  .scale .pan {
    animation: none;
  }
  .btn,
  .faq summary::after {
    transition: none;
  }
}
