/* ==========================================================================
   XYZ.com — stylesheet
   Fresh design system (not a retint) — warm cream/ivory + antique gold + bronze.
   ========================================================================== */

:root {
  --bg: #faf6ec;
  --bg-alt: #f3e9d3;
  --surface: #ffffff;
  --gold: #a8792f;
  --gold-deep: #8a611f;
  --gold-light: #d1a24e;
  --bronze: #4a3324;
  --bronze-deep: #33210f;
  --charcoal: #241a10;
  --text-muted: #6b5c45;
  --border: #e3d3ab;
  --success: #2f7a4d;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(74, 51, 36, 0.12);
  --shadow-sm: 0 4px 14px rgba(74, 51, 36, 0.08);
  --max-width: 1180px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--bronze-deep);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.7rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

section { padding: 72px 0; }

.bg-alt { background: var(--bg-alt); }

.section-heading {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading p { margin-top: 10px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #2c1c07;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

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

.btn-outline:hover { background: var(--bronze); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---- Header (two-tier, deliberately different from single-row navbars elsewhere) ---- */

.utility-bar {
  background: var(--bronze-deep);
  color: #e9dcc2;
  font-size: 0.8rem;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
}

.utility-bar a { color: #e9dcc2; }
.utility-bar a:hover { color: var(--gold-light); }

.utility-links { display: flex; gap: 20px; }
.utility-links span { opacity: 0.7; margin-right: 4px; }

.site-header {
  background: var(--bronze);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbf3e0;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.logo span { color: var(--gold-light); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: #e9dcc2;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fbf3e0;
  border-radius: 2px;
}

/* ---- Hero (asymmetric split + medallion cluster) ---- */

.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 76px 0 64px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(168, 121, 47, 0.12);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 { margin-bottom: 18px; }

.hero p.lead { font-size: 1.08rem; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--bronze-deep);
}

.hero-stats div span { font-size: 0.82rem; color: var(--text-muted); }

/* medallion cluster — CSS-only coin illustration, no photography */

.medallion-cluster {
  position: relative;
  height: 380px;
}

.medallion {
  position: absolute;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.35) 0deg 2deg, transparent 2deg 6deg),
    radial-gradient(circle at 32% 28%, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 78%, #6e4c17 100%);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(255,255,255,0.18), inset 0 0 0 8px rgba(74,51,36,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.medallion::after {
  content: attr(data-mark);
  font-family: var(--font-serif);
  font-weight: 700;
  color: rgba(74, 51, 36, 0.55);
  text-align: center;
  line-height: 1.1;
  font-size: 0.85rem;
}

.medallion.m1 { width: 240px; height: 240px; top: 10px; right: 40px; }
.medallion.m1::after { font-size: 1.6rem; }
.medallion.m2 { width: 170px; height: 170px; top: 190px; right: 220px; opacity: 0.94; }
.medallion.m3 { width: 120px; height: 120px; top: 0; right: 300px; opacity: 0.9; }

/* ---- Categories / feature grids (shared card patterns) ---- */

.categories-grid,
.features-grid,
.benefits-grid,
.steps-grid {
  display: grid;
  gap: 24px;
}

.categories-grid { grid-template-columns: repeat(4, 1fr); }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.benefits-grid { grid-template-columns: repeat(4, 1fr); }
.steps-grid { grid-template-columns: repeat(4, 1fr); }

.category-card,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.category-card:hover,
.feature-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }

.category-icon,
.feature-icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }

.category-card h3,
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }

.category-card p,
.feature-card p { font-size: 0.9rem; }

.benefit-item, .step-item {
  text-align: center;
  padding: 10px;
}

.benefit-icon, .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168,121,47,0.14);
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.benefit-item strong, .step-item h3 { display: block; margin-bottom: 6px; color: var(--bronze-deep); font-family: var(--font-serif); }
.benefit-item p, .step-item p { font-size: 0.9rem; }

/* ---- Price context / disclaimer callout ---- */

.price-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 780px;
  margin: 0 auto;
}

.price-note h3 { margin-bottom: 8px; }
.price-note p { font-size: 0.95rem; }
.price-note p + p { margin-top: 10px; }

/* ---- Products page: sidebar filter + grid layout ---- */

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.catalog-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.catalog-sidebar h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-btn:hover { background: var(--bg-alt); }

.filter-btn.active {
  background: rgba(168,121,47,0.14);
  color: var(--gold-deep);
  font-weight: 700;
}

.catalog-sidebar .sidebar-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.product-media {
  background: linear-gradient(160deg, var(--bg-alt), var(--bg));
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-line-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bronze);
  color: #f3e9d3;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.product-coin {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.3) 0deg 2deg, transparent 2deg 6deg),
    radial-gradient(circle at 32% 28%, var(--gold-light) 0%, var(--gold) 48%, var(--gold-deep) 82%, #6e4c17 100%);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,0.16), inset 0 0 0 7px rgba(74,51,36,0.22), 0 6px 16px rgba(74,51,36,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: rgba(74,51,36,0.6);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.15;
}

.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }

.product-body h3 { font-size: 1.02rem; }

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
}

.spec-chip {
  background: var(--bg-alt);
  color: var(--bronze-deep);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-desc { font-size: 0.88rem; flex: 1; }

.product-footer { margin-top: 10px; }

/* ---- Sell to Us page ---- */

.sell-hero {
  background: linear-gradient(135deg, var(--bronze), var(--bronze-deep));
  color: #f3e9d3;
  padding: 64px 0;
}

.sell-hero h1 { color: #fbf3e0; }
.sell-hero p { color: #e3d3ab; max-width: 640px; }

.sell-hero .hero-actions { margin-top: 24px; }

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  position: relative;
}

.process-step .step-number {
  background: var(--gold);
  color: #2c1c07;
}

.checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 640px;
  margin: 0 auto;
}

.checklist ul { margin-top: 12px; }

.checklist li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--charcoal);
  font-size: 0.95rem;
}

.checklist li:last-child { border-bottom: none; }
.checklist li .tick { color: var(--success); font-weight: 700; }

/* ---- Forms ---- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-info-card {
  background: var(--bronze);
  color: #f3e9d3;
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card h3 { color: #fbf3e0; margin-bottom: 18px; }

.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-info-item strong { display: block; color: #fbf3e0; margin-bottom: 2px; }
.contact-info-item a, .contact-info-item p { color: #e3d3ab; font-size: 0.92rem; }

.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.social-row a:hover { background: var(--gold); color: #2c1c07; }

.map-embed { margin-top: 22px; border-radius: 8px; overflow: hidden; }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bronze-deep);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--charcoal);
  transition: border-color 0.15s ease;
}

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

.form-note { font-size: 0.78rem; margin-top: 6px; color: var(--text-muted); }

.intent-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.intent-toggle label {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.intent-toggle input { display: none; }

.intent-toggle input:checked + span {
  color: var(--gold-deep);
}

.intent-toggle label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(168,121,47,0.1);
  color: var(--gold-deep);
}

.form-success {
  display: none;
  background: rgba(47,122,77,0.12);
  color: var(--success);
  border: 1px solid rgba(47,122,77,0.3);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-success.visible { display: block; }

/* ---- Legal page ---- */

.legal-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.legal-nav a {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bronze-deep);
}

.legal-nav a:hover { background: var(--bg-alt); }

.legal-section {
  max-width: 760px;
  margin: 0 auto 56px;
}

.legal-section h2 { margin-bottom: 14px; }
.legal-section h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.legal-section p { margin-bottom: 12px; }
.legal-section ul { margin: 0 0 12px 20px; list-style: disc; }
.legal-section li { color: var(--text-muted); margin-bottom: 6px; }

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

.cta-band {
  background: linear-gradient(135deg, var(--bronze), var(--bronze-deep));
  color: #f3e9d3;
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fbf3e0; margin-bottom: 6px; }
.cta-band p { color: #e3d3ab; }

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

.site-footer {
  background: var(--bronze-deep);
  color: #d8c7a2;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: #b8a681; font-size: 0.9rem; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.footer-social a:hover { background: var(--gold); color: #2c1c07; }

.footer-col h4 {
  color: #fbf3e0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col li { margin-bottom: 10px; font-size: 0.9rem; color: #b8a681; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #9c8a67;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .medallion-cluster { height: 260px; margin-top: 20px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .catalog-sidebar h4 { width: 100%; }
  .filter-btn { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .utility-bar { display: none; }

  .navbar { padding: 12px 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bronze);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-cta .btn-primary { display: none; }

  .nav-toggle { display: flex; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }

  .categories-grid,
  .features-grid,
  .benefits-grid,
  .steps-grid,
  .process-track,
  .products-grid { grid-template-columns: 1fr; }

  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
