/* ==========================================================================
   Jav's & Co Jewelry, shared stylesheet
   Palette: near-black background, warm gold accents, off-white text.
   Mobile-first. No frameworks.
   ========================================================================== */

:root {
  --bg: #0e0e10;
  --bg-raised: #141417;
  --bg-card: #17171b;
  --bg-input: #1b1b20;
  --gold: #d4af37;            /* 9.2:1 contrast on --bg (AAA) */
  --gold-bright: #e6c964;
  --gold-line: rgba(212, 175, 55, 0.28);
  --gold-faint: rgba(212, 175, 55, 0.10);
  --text: #ede9df;
  --text-muted: #b5b0a4;      /* 9:1 contrast on --bg */
  --error: #eaa9a4;
  --success: #b9d8a8;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 68rem;
}

/* Base ------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

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

ul {
  padding-left: 1.25rem;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 3.5rem;
}

.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--gold-line);
  max-width: 6rem;
  margin: 1.5rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  border: 1px solid var(--gold);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: #0e0e10;
}

.btn-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #0e0e10;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold-faint);
  color: var(--gold-bright);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

/* Text logo lockup, swap for an <img> later without touching layout */
.logo {
  display: inline-block;
  text-align: left;
  line-height: 1.1;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.logo-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--gold-line);
  padding: 0.75rem 1.25rem 1.25rem;
}

.nav-menu.is-open {
  display: block;
}

.nav-menu li {
  border-bottom: 1px solid var(--gold-faint);
}

.nav-menu li:last-child {
  border-bottom: 0;
  padding-top: 0.9rem;
}

.nav-menu a {
  display: block;
  padding: 0.8rem 0.25rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--gold);
  text-decoration: none;
}

.nav-menu .btn-call {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  color: #0e0e10;
}

@media (min-width: 56rem) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .nav-menu li,
  .nav-menu li:last-child {
    border: 0;
    padding: 0;
  }

  .nav-menu a {
    padding: 0.25rem 0;
  }
}

/* Hero ---------------------------------------------------------------------- */

.hero {
  padding-block: 4.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--gold-faint);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212, 175, 55, 0.07), transparent),
    var(--bg);
}

.hero .btn-row {
  justify-content: center;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-inline: auto;
}

/* Image placeholder frames --------------------------------------------------
   Every img sits inside a gold-bordered frame. If the file is missing (this
   PoC ships no photos), js/main.js hides the broken img and the frame shows a
   styled label instead, drop real photos into images/ and nothing changes. */

.img-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  background: linear-gradient(160deg, #1b1b20 0%, #101013 100%);
}

.img-frame::before {
  content: "\2726"; /* ✦ */
  color: var(--gold);
  font-size: 1.4rem;
  opacity: 0.85;
}

.img-frame::after {
  content: attr(data-label);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding-inline: 1rem;
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame img.img-missing {
  display: none;
}

.img-frame-wide {
  aspect-ratio: 16 / 9;
}

.hero-image {
  max-width: 52rem;
  margin: 2.5rem auto 0;
}

.img-frame-43 {
  aspect-ratio: 4 / 3;
  max-width: 44rem;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 52rem;
  height: auto;
  margin: 2.5rem auto 0;
}

/* Cards ---------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--gold);
}

.card h3 {
  color: var(--gold);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

@media (min-width: 44rem) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Trust strip ----------------------------------------------------------------- */

.trust-strip {
  display: grid;
  gap: 0;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  background: var(--bg-card);
}

.trust-item {
  padding: 1.4rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--gold-faint);
}

.trust-item:last-child {
  border-bottom: 0;
}

.trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.trust-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 44rem) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-item {
    border-bottom: 0;
    border-right: 1px solid var(--gold-faint);
  }

  .trust-item:last-child {
    border-right: 0;
  }
}

/* Gallery ----------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 44rem) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service detail lists ------------------------------------------------------------ */

.service-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 44rem) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.75rem;
  border-bottom: 1px solid var(--gold-faint);
  color: var(--text);
}

.check-list li::before {
  content: "\2726";
  position: absolute;
  left: 0.15rem;
  color: var(--gold);
  font-size: 0.85rem;
}

/* Numbered steps -------------------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  padding: 1.5rem 1.4rem;
}

.steps li::before {
  content: "Step " counter(step);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.steps li strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.steps li span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 44rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FAQ ---------------------------------------------------------------------------------- */

.faq {
  margin-top: 1.5rem;
  border-top: 1px solid var(--gold-line);
}

.faq details {
  border-bottom: 1px solid var(--gold-line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--gold);
}

.faq .faq-answer {
  padding: 0 0.25rem 1.25rem;
  color: var(--text-muted);
  max-width: 46rem;
}

/* Contact block / NAP ---------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-details p {
  margin-bottom: 0.6rem;
}

.contact-details .contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.4rem;
}

.hours-table {
  width: 100%;
  max-width: 22rem;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--gold-faint);
  font-size: 0.95rem;
  font-weight: 400;
}

.hours-table td {
  color: var(--text-muted);
}

.map-frame {
  aspect-ratio: 4 / 3;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field .field-error {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--error);
}

.form-field.has-error .field-error {
  display: block;
}

/* Honeypot, hidden from humans, tempting to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  border: 1px solid var(--success);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  border: 1px solid var(--error);
  color: var(--error);
}

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

.cta-band {
  text-align: center;
  padding-block: 3.5rem;
  background: var(--bg-raised);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.cta-band .btn-row {
  justify-content: center;
}

/* Footer ------------------------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--gold-line);
  padding-block: 3rem 1.5rem;
  background: var(--bg);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 44rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-grid h2 {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: var(--text-muted);
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-grid p {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-about {
  color: var(--text-muted);
  max-width: 20rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-faint);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-disclaimer {
  max-width: 46rem;
  margin: 0.75rem auto 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Legal pages --------------------------------------------------------------------------------------- */

.legal-content {
  max-width: 46rem;
  padding-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-updated {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* Breadcrumbs --------------------------------------------------------------------------------------- */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--gold-line);
}

/* Reduced motion ------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
