/* site.css: shared components for Modern Gold & Jewelry.
   Hairlines are always 1px --line-gold. Shadows are always the warm tinted pair.
   Radius is 0 everywhere except the declared arch and the wordmark ring. */

::selection { background: var(--gold-100); color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 400; font-optical-sizing: auto; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-700); padding-bottom: .12em; }

.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }

.eyebrow {
  font: 500 var(--fs-micro)/1 var(--font-body);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible { box-shadow: var(--focus); outline: none; border-radius: 0; }
.btn--solid:focus-visible { box-shadow: var(--focus), inset 0 0 0 1px rgb(201 162 77 / .35); }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-grid; justify-items: center; gap: .25rem; text-decoration: none; line-height: 1; }
.wordmark__name {
  font-family: var(--font-mark); font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem);
  letter-spacing: .16em; padding-left: .16em;
  color: var(--gold-700);
  background: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foil-sweep 2.6s var(--ease-out) .2s both;
}
.wordmark__o {
  display: inline-block; width: .74em; height: .74em;
  border: .085em solid var(--gold-500); border-radius: 50%;
  margin-inline: .03em; vertical-align: -.02em; position: relative;
}
.wordmark__o::before {
  content: ""; position: absolute; left: 50%; top: -.34em;
  width: .22em; height: .22em; transform: translateX(-50%) rotate(45deg);
  background: var(--gold-300); border: .04em solid var(--gold-600);
}
.wordmark__sub {
  font: 500 .56rem/1 var(--font-body);
  letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--ink-soft);
}
.wordmark--lg .wordmark__name { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
.wordmark--lg .wordmark__sub { font-size: .68rem; }
.wordmark:hover .wordmark__name { animation: foil-sweep 1.6s var(--ease-out) both; }
@keyframes foil-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Header ----------
   The blur lives on a pseudo-element, because backdrop-filter on .hdr itself would
   trap the fixed mobile menu inside the 76px bar. */
.hdr {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  border-bottom: 1px solid var(--line-gold);
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
@supports not (backdrop-filter: blur(1px)) { .hdr::before { background: var(--surface); } }
@media (prefers-reduced-transparency: reduce) {
  .hdr::before { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.hdr__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.hdr__nav { display: flex; align-items: center; }

.hdr__links { list-style: none; padding: 0; margin: 0; }
.hdr__links a {
  position: relative; display: inline-block; text-decoration: none;
  font: 500 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease-out);
}
.hdr__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.55rem; height: 1px;
  background: var(--gold-600); transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .6s var(--ease-out);
}
.hdr__links a:hover, .hdr__links a[aria-current="page"] { color: var(--ink); }
.hdr__links a:hover::after, .hdr__links a[aria-current="page"]::after { transform: scaleX(1); }

.hdr__toggle { display: none; width: 44px; height: 44px; place-items: center; font-size: 1.6rem; color: var(--ink); margin-right: -.5rem; }
.hdr__icon-close { display: none; }
.hdr__toggle[aria-expanded="true"] .hdr__icon-open { display: none; }
.hdr__toggle[aria-expanded="true"] .hdr__icon-close { display: block; }

@media (min-width: 1024px) {
  .hdr__menu { display: flex; align-items: center; gap: 2.5rem; }
  .hdr__links { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem); white-space: nowrap; }
  .hdr__cta { min-height: 44px; padding: .7rem 1.25rem; font-size: .74rem; }
}

@media (max-width: 1023.98px) {
  .hdr__toggle { display: grid; }
  .hdr__menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-overlay);
    background: var(--paper);
    padding: 2.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
    display: none; overflow-y: auto; overscroll-behavior: contain;
  }
  .hdr__menu[data-open="true"] { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
  .hdr__links li { max-width: none; border-bottom: 1px solid var(--line-gold); }
  .hdr__links li:first-child { border-top: 1px solid var(--line-gold); }
  .hdr__links a {
    display: block; width: 100%; padding: 1.1rem 0;
    font: 400 2rem/1.1 var(--font-display); letter-spacing: -0.01em; text-transform: none; color: var(--ink);
  }
  .hdr__links a::after { display: none; }
  .hdr__links a[aria-current="page"] { font-style: italic; color: var(--gold-700); }
  .hdr__cta { width: 100%; }
}
html.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  font: 500 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  min-height: 50px; padding: .9rem 1.6rem; border-radius: 0;
  transition: transform .2s var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn i { font-size: 1.25em; }
.btn--solid { background: var(--ink); color: #f6ecd2; box-shadow: inset 0 0 0 1px rgb(201 162 77 / .35); }
.btn--solid::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--foil); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.btn--solid:hover::after, .btn--solid:focus-visible::after { transform: scaleX(1); }
.btn--line { background: transparent; border: 1px solid var(--gold-600); color: var(--gold-700); }
.btn--line:hover { background: var(--gold-50); border-color: var(--gold-700); }

/* ---------- Link with arrow ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .95rem/1.3 var(--font-body); color: var(--ink);
  text-decoration: underline 1px var(--gold-600); text-underline-offset: .4em;
  transition: text-decoration-color var(--dur) var(--ease-out);
}
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow i { transition: transform .45s var(--ease-out); }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Mat ---------- */
.mat {
  background: var(--surface); padding: var(--mat-pad);
  border: 1px solid var(--line-gold); box-shadow: var(--shadow-soft);
  transition: border-color .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.mat__img { position: relative; overflow: hidden; background: var(--ivory); }
.mat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-1-1 { aspect-ratio: 1 / 1; }
.ar-5-6 { aspect-ratio: 5 / 6; }
.ar-16-10 { aspect-ratio: 16 / 10; }
.ar-16-9 { aspect-ratio: 16 / 9; }
@media (hover: hover) and (pointer: fine) {
  .mat:hover { border-color: var(--gold-600); box-shadow: var(--shadow-lift); }
  .mat:hover .mat__img img { transform: scale(1.04); }
}

/* ---------- Rule ornament ---------- */
.rule { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .9rem; width: min(22rem, 70%); margin-inline: auto; }
.rule span { display: block; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-600)); }
.rule span:last-child { background: linear-gradient(90deg, var(--gold-600), transparent); }
.rule i { display: block; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold-600); background: var(--gold-100); }

/* ---------- Arch frame ---------- */
.arch-frame { position: relative; padding: clamp(10px, 1.2vw, 16px); }
.arch-frame::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold-600); border-radius: var(--arch); pointer-events: none; }
.arch { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Gold dust ---------- */
.dust {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 88% 16%, rgb(227 204 147 / .5) 0 46px, transparent 48px),
    radial-gradient(circle at 93% 30%, rgb(201 162 77 / .35) 0 9px, transparent 10px),
    radial-gradient(circle at 8% 22%, rgb(201 162 77 / .5) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 18% 64%, rgb(201 162 77 / .4) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 12%, rgb(201 162 77 / .45) 0 2px, transparent 3px),
    radial-gradient(circle at 47% 86%, rgb(201 162 77 / .35) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 62% 8%, rgb(201 162 77 / .4) 0 1px, transparent 2px),
    radial-gradient(circle at 71% 92%, rgb(201 162 77 / .5) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 96% 70%, rgb(201 162 77 / .4) 0 1.5px, transparent 2.5px),
    radial-gradient(60% 50% at 90% 8%, rgb(232 226 214 / .7), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgb(238 232 220 / .6), transparent 70%);
}

/* ---------- Footer ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--line-gold); padding-block: clamp(4rem, 8vw, 6rem) 2rem; color: var(--ink); font-size: .95rem; }
.ftr > .rule { margin-bottom: 3rem; }
.ftr__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) and (max-width: 1023.98px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .ftr__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.ftr__brand { display: grid; justify-items: start; gap: 1.1rem; align-content: start; }
.ftr__line { color: var(--ink-soft); max-width: 30ch; }
.ftr__ar { font-family: var(--font-ar); font-size: 1.35rem; line-height: 1.4; color: var(--gold-700); margin-top: 1rem; }
.ftr__col { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.ftr__col address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }
.ftr__h { font: 500 var(--fs-micro)/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .25rem; }
.ftr__tel { font: 400 1.5rem/1.2 var(--font-display); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); transition: color var(--dur) var(--ease-out); }
.ftr__tel:hover { color: var(--gold-700); }
.ftr__links { list-style: none; padding: 0; display: grid; gap: .6rem; }
.ftr__links a { text-decoration: none; color: var(--ink-soft); transition: color var(--dur) var(--ease-out); }
.ftr__links a:hover { color: var(--ink); text-decoration: underline 1px var(--gold-600); text-underline-offset: .4em; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Mobile quick bar ---------- */
.mbar { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom)); }
  .mbar {
    display: grid; grid-template-columns: 1fr 2fr;
    position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky);
    height: calc(var(--mbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line-gold);
  }
  .mbar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    font: 500 .8rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  }
  .mbar i { font-size: 1.3em; }
  .mbar__call { color: var(--ink); background: var(--surface); border-right: 1px solid var(--line-gold); }
  .mbar__wa { background: var(--ink); color: #f6ecd2; }
  html.menu-open .mbar { display: none; }
}
@media (max-width: 359.98px) { .mbar a { font-size: .72rem; letter-spacing: .06em; } }

/* ---------- 404 ---------- */
.notfound { display: grid; align-items: center; }
.notfound .container--narrow {
  display: grid; justify-items: center; align-content: center; gap: 1.75rem; text-align: center;
  min-height: calc(100dvh - var(--nav-h) - 10rem);
}
.notfound .rule { width: min(16rem, 60%); }
.notfound .lead { margin-inline: auto; }
.notfound__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .5rem; }
@media (max-width: 479.98px) {
  .notfound__ctas { flex-direction: column; align-items: stretch; width: 100%; gap: .75rem; }
}
