/* ============================================================
   Walt's Jewelers — styles.css
   Palette: white ground, black text, gold accents.
   Mobile-first, responsive. No frameworks.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --gold:        #c9a227;
  --gold-soft:   #e7d49a;
  --gold-deep:   #a8861f;
  --ink:         #111111;
  --ink-soft:    #4a4a4a;
  --mist:        #f6f5f2;
  --line:        #e4e1da;
  --muted:       #6b6b6b;
  --white:       #ffffff;

  --font-serif:  "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans:   "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure:     66ch;
  --gap:         clamp(1rem, 3vw, 2rem);
  --radius:      4px;
  --shadow:      0 10px 30px rgba(0, 0, 0, .08);
  --maxw:        1120px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { color: var(--ink-soft); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
}
.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: .5px;
}
.brand-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: .66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- Nav ---- */
.primary-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav-link { color: inherit; text-decoration: none; }
.primary-nav a {
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  padding: .35rem 0;
  position: relative;
  transition: color .2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .25s ease;
}
.primary-nav a:hover::after,
.primary-nav a.active::after { right: 0; }
.primary-nav a.active { color: var(--gold-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .4rem;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: .8rem 1.8rem;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-deep); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---- Hero ---- */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  font-size: .78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 16ch; margin-bottom: 1.2rem; }
.hero p { max-width: var(--measure); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- Section ---- */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--mist { background: var(--mist); }
/* Tighter vertical rhythm for hero/short sections. */
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow {
  display: block;
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .7rem;
}
.section-head h2 { margin-bottom: .8rem; }
.section-head p { max-width: var(--measure); }

/* Standalone eyebrow (used outside a section head). */
.eyebrow {
  display: block;
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .7rem;
}

/* ---- Cards ---- */
.grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.7rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.section--mist .card { background: var(--white); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  color: var(--gold-deep);
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; }

/* ---- Feature split ---- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.split-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ink), #2a2a2a);
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 1px;
}
.split-body > .eyebrow { margin-bottom: .7rem; }

/* ---- Address / contact block ---- */
.address { font-style: normal; line-height: 1.9; }
.address strong { color: var(--ink); }
.address a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 600;
}
.address a:hover { color: var(--gold); }

/* ---- Width helpers ---- */
.maxw-ch { max-width: 24ch; }
.maxw-48 { max-width: 48rem; }

/* ---- Margin helpers ---- */
.mt { margin-top: 1rem; }
.mt-lg { margin-top: 1.2rem; }

/* ---- Screen-reader only ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Stats ---- */
.stats {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold-deep);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .4rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #cfcfcf;
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
.footer-col .brand-name { color: var(--white); }
.footer-tag { font-size: .9rem; margin-top: .5rem; color: #b8b8b8; }
.footer-heading {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.footer-address { font-style: normal; font-size: .92rem; line-height: 1.8; }
.footer-address a { color: var(--gold-soft); text-decoration: none; }
.footer-address a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #cfcfcf; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid #2a2a2a;
  padding: 1.4rem 0;
  font-size: .82rem;
  color: #9a9a9a;
}

/* ============================================================
   Responsive — desktop
   ============================================================ */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.05fr .95fr; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

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

/* ---- Responsive — mobile nav ---- */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .3s ease;
  }
  .primary-nav.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a:last-child { border-bottom: 0; }
}

/* ---- Motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Font sampler page ---- */
.font-form { max-width: 48rem; }
.font-input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.font-list { margin-top: 1.5rem; }
.font-sample {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}
.font-sample:nth-child(even) { background: var(--mist); }
.font-meta {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: .6rem;
}
.font-face-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.font-ext {
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted, var(--ink-soft));
  background: var(--line);
  padding: .1rem .45rem;
  border-radius: var(--radius);
}

/* Sitemap category headers */
.sitemap-cat { font-size: 1.15rem; margin-bottom: .8rem; }

/* Hours of Operation list — full width within its container */
.footer-links.maxw-ch { max-width: none; }
