/* =========================================================================
   HJM Solutions — design tokens
   Palette pulled from client-supplied colour reference (faceted stone /
   gem photograph): deep teal-black ground, bright teal accent, warm gold.
   Signature motif: clipped "facet" corners on cards + the hero mark,
   echoing the cut-gem shapes in that reference image.
   ========================================================================= */
:root{
  --bg-void:      #0a1416;
  --bg-surface:   #101f22;
  --bg-raised:    #16292c;
  --bg-raised-2:  #1c3236;

  --teal-bright:  #17b8ae;
  --teal-mid:     #12878e;
  --teal-deep:    #3c6a63;

  --gold:         #c9a35c;
  --gold-bright:  #e0bd78;
  --gold-deep:    #8a6a2f;
  --bronze:       #5e401c;

  --text-hi:      #eef4f3;
  --text-mid:     #adc2c0;
  --text-low:     #6f8583;

  --border-soft:  rgba(201,163,92,0.16);
  --border-teal:  rgba(23,184,174,0.22);

  --radius:       4px;
  --facet:        18px;   /* corner-clip size for the signature facet cut */

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg-void);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }

:focus-visible{
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--text-hi);
}
h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight:700; letter-spacing:-0.01em; }
h2{ font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3{ font-size: 1.15rem; }
p{ margin: 0 0 1em; color: var(--text-mid); }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--teal-bright);
  margin-bottom: 1em;
}
.eyebrow::before{
  content:"";
  width: 20px; height: 1px;
  background: var(--teal-bright);
}

/* Faceted "gem cut" corner — the recurring signature shape */
.facet{
  clip-path: polygon(
    var(--facet) 0%, 100% 0%, 100% calc(100% - var(--facet)),
    calc(100% - var(--facet)) 100%, 0% 100%, 0% var(--facet)
  );
}
.facet-inverse{
  clip-path: polygon(
    0% 0%, calc(100% - var(--facet)) 0%, 100% var(--facet),
    100% 100%, var(--facet) 100%, 0% calc(100% - var(--facet))
  );
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding: .85em 1.6em;
  font-family: var(--font-display);
  font-weight:600;
  font-size: .92rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-mid));
  color: #06181a;
}
.btn-primary:hover{ background: linear-gradient(135deg, #22cabf, var(--teal-bright)); }
.btn-gold{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #241a08;
}
.btn-gold:hover{ background: linear-gradient(135deg, #ecc98a, var(--gold-bright)); }
.btn-outline{
  background: transparent;
  border-color: var(--border-teal);
  color: var(--text-hi);
}
.btn-outline:hover{ border-color: var(--teal-bright); color: var(--teal-bright); }
.btn-block{ width:100%; }
.btn-sm{ padding:.55em 1.1em; font-size:.82rem; }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(10,20,22,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:.7em; }
.brand-mark{ width:38px; height:38px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-family: var(--font-display); font-weight:700; font-size:1.05rem; color:var(--text-hi); }
.brand-tagline{ font-family: var(--font-mono); font-size:.68rem; color: var(--teal-bright); letter-spacing:.04em; }

.main-nav{ display:flex; gap: 2.2em; }
.main-nav a{
  font-family: var(--font-display); font-weight:500; font-size:.92rem;
  color: var(--text-mid);
  position:relative;
  padding: 4px 0;
  transition: color .15s var(--ease);
}
.main-nav a:hover, .main-nav a.active{ color: var(--text-hi); }
.main-nav a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--gold);
}

.header-actions{ display:flex; align-items:center; gap: 1.2em; }
.cart-link{ position:relative; color: var(--text-hi); display:flex; }
.cart-count{
  position:absolute; top:-8px; right:-10px;
  background: var(--gold); color:#241a08;
  font-family: var(--font-mono); font-size:.65rem; font-weight:700;
  width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  width:26px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle span{ height:2px; background: var(--text-hi); border-radius:2px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero{
  position:relative;
  overflow:hidden;
  padding: 100px 0 90px;
  background:
    radial-gradient(circle at 82% 20%, rgba(23,184,174,0.14), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(201,163,92,0.10), transparent 40%),
    var(--bg-void);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items:center;
}
.hero h1{ margin-bottom:.4em; }
.hero h1 .accent{
  background: linear-gradient(100deg, var(--gold-bright), var(--teal-bright));
  -webkit-background-clip: text; background-clip:text; color:transparent;
}
.hero-lede{ font-size:1.08rem; max-width: 46ch; margin-bottom: 1.8em; }
.hero-ctas{ display:flex; gap:1em; flex-wrap:wrap; }
.hero-stats{
  display:flex; gap:2.4em; margin-top: 3em;
  font-family: var(--font-mono);
}
.hero-stats div strong{ display:block; font-size:1.4rem; color:var(--gold-bright); font-family:var(--font-display); }
.hero-stats div span{ font-size:.72rem; color: var(--text-low); letter-spacing:.04em; }

.hero-art{ position:relative; }

/* =========================================================================
   Feature triple (mirrors original 3-up "collection" section)
   ========================================================================= */
.section{ padding: 90px 0; }
.section-head{ max-width: 640px; margin-bottom: 3em; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card{
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 2.4em 2em;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.feature-card:hover{ transform: translateY(-6px); border-color: var(--border-teal); }
.feature-icon{
  width:56px; height:56px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 1.4em;
  background: linear-gradient(135deg, var(--bg-raised-2), var(--bg-raised));
  color: var(--gold-bright);
}
.feature-card h3{ margin-bottom:.4em; }
.feature-card p{ font-size: .94rem; margin-bottom: 1.4em; }
.feature-card .link-arrow{
  font-family: var(--font-mono); font-size:.82rem; color: var(--teal-bright);
  display:inline-flex; align-items:center; gap:.4em;
}
.feature-card .link-arrow svg{ transition: transform .18s var(--ease); }
.feature-card:hover .link-arrow svg{ transform: translateX(4px); }

/* =========================================================================
   How we work (mirrors original "About us" 3-step)
   ========================================================================= */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step{ position:relative; padding-left: 2px; }
.step-num{
  font-family: var(--font-mono); color: var(--gold);
  font-size: .85rem; margin-bottom: .8em; display:block;
}
.step h3{ margin-bottom:.5em; }
.step p{ font-size:.94rem; }

.about-split{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items:start;
}

/* =========================================================================
   Banner strip (mirrors original "100% Handmade" band)
   ========================================================================= */
.banner{
  background: linear-gradient(120deg, var(--bg-raised) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 56px 0;
}
.banner-inner{
  display:flex; align-items:center; justify-content:space-between; gap: 2em; flex-wrap:wrap;
}
.banner h2{ margin:0; }
.banner h2 .accent{ color: var(--gold-bright); }
.banner p{ margin:0; max-width: 44ch; }

/* =========================================================================
   Product grid / cards
   ========================================================================= */
.filter-row{
  display:flex; gap:.7em; flex-wrap:wrap; margin-bottom: 2.4em;
}
.filter-pill{
  font-family: var(--font-mono); font-size: .82rem;
  padding: .5em 1.1em;
  border: 1px solid var(--border-soft);
  color: var(--text-mid);
  transition: all .15s var(--ease);
}
.filter-pill:hover, .filter-pill.active{
  border-color: var(--teal-bright); color: var(--teal-bright);
}

.product-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card{
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  display:flex; flex-direction:column;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.product-card:hover{ transform: translateY(-5px); border-color: var(--border-teal); }
.product-media{
  aspect-ratio: 16/10;
  position:relative;
  display:flex; align-items:center; justify-content:center;
  background: var(--bg-void);
  overflow:hidden;
}
.product-media svg{ width:64%; height:64%; }
.product-media img{ width:64%; height:64%; object-fit:contain; }
.product-type-tag{
  position:absolute; top:14px; left:14px;
  font-family: var(--font-mono); font-size:.68rem; letter-spacing:.05em;
  padding: .35em .7em;
  background: rgba(10,20,22,0.75);
  border: 1px solid var(--border-soft);
  color: var(--gold-bright);
  text-transform: uppercase;
}
.product-body{ padding: 1.6em 1.6em 1.8em; display:flex; flex-direction:column; flex:1; }
.product-body h3{ margin-bottom:.3em; }
.product-body p{ font-size:.9rem; flex:1; }
.product-footer{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: 1em;
}
.price{ font-family: var(--font-display); font-weight:700; color: var(--gold-bright); font-size:1.1rem; }
.price-note{ font-family: var(--font-mono); font-weight:400; font-size:.72rem; color: var(--text-low); }

/* =========================================================================
   Forms (contact / checkout)
   ========================================================================= */
.form-card{
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 2.6em;
}
.field{ margin-bottom: 1.4em; }
.field label{
  display:block; font-family: var(--font-mono); font-size:.78rem;
  color: var(--text-mid); margin-bottom:.55em; letter-spacing:.03em;
}
.field input, .field textarea, .field select{
  width:100%;
  background: var(--bg-void);
  border: 1px solid var(--border-soft);
  color: var(--text-hi);
  padding: .85em 1em;
  font-family: var(--font-body);
  font-size: .95rem;
  border-radius: var(--radius);
  transition: border-color .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: var(--teal-bright); outline:none;
}
.field textarea{ min-height: 140px; resize: vertical; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.4em; }

.form-note{ font-size:.82rem; color: var(--text-low); margin-top:1em; }
.form-status{ margin-top:1em; font-size:.9rem; }
.form-status.success{ color: var(--teal-bright); }
.form-status.error{ color: #e07a5f; }

/* =========================================================================
   Cart / checkout tables
   ========================================================================= */
.cart-table{ width:100%; border-collapse: collapse; margin-bottom: 2em; }
.cart-table th{
  text-align:left; font-family: var(--font-mono); font-size:.75rem;
  color: var(--text-low); text-transform: uppercase; letter-spacing:.04em;
  padding-bottom: 1em; border-bottom: 1px solid var(--border-soft);
}
.cart-table td{
  padding: 1.2em 0; border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.cart-product{ display:flex; align-items:center; gap:1em; }
.cart-product-icon{ width:48px; height:48px; flex-shrink:0; }
.cart-qty-input{
  width:64px; background: var(--bg-void); border:1px solid var(--border-soft);
  color: var(--text-hi); padding:.5em; text-align:center; border-radius: var(--radius);
}
.cart-remove{ font-family: var(--font-mono); font-size:.8rem; color: var(--text-low); }
.cart-remove:hover{ color:#e07a5f; }
.cart-summary{
  margin-left:auto; max-width: 360px;
  border-top: 1px solid var(--border-soft); padding-top: 1.4em;
}
.cart-summary-row{ display:flex; justify-content:space-between; margin-bottom:.7em; font-size:.95rem; }
.cart-summary-row.total{ font-family: var(--font-display); font-weight:700; font-size:1.2rem; color: var(--gold-bright); }

.empty-state{
  text-align:center; padding: 5em 2em;
  border: 1px dashed var(--border-soft);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer{
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  padding-top: 64px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4em;
  padding-bottom: 48px;
}
.footer-mark{ width:34px; height:34px; margin-bottom: .8em; }
.footer-name{ font-family: var(--font-display); font-weight:700; color: var(--text-hi); }
.footer-blurb{ font-size:.88rem; }
.footer-col h3{
  font-family: var(--font-mono); font-size:.75rem; letter-spacing:.06em;
  text-transform: uppercase; color: var(--gold); margin-bottom:1em;
}
.footer-col p{ font-size:.9rem; margin-bottom:.6em; }
.footer-col a:hover{ color: var(--teal-bright); }
.footer-bottom{
  border-top: 1px solid var(--border-soft);
  padding: 22px 0; font-size:.8rem; color: var(--text-low);
}

/* =========================================================================
   Misc pages (legal / privacy / about)
   ========================================================================= */
.prose{ max-width: 720px; }
.prose h2{ margin-top: 1.6em; }
.page-hero{ padding: 70px 0 40px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width: 320px; margin:0 auto; }
  .feature-grid, .steps, .product-grid{ grid-template-columns: repeat(2,1fr); }
  .about-split{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .field-row{ grid-template-columns: 1fr; }
}

@media (max-width: 680px){
  .main-nav{
    position:absolute; top:76px; left:0; right:0;
    background: rgba(10,20,22,0.98);
    flex-direction:column; gap:0;
    border-bottom: 1px solid var(--border-soft);
    max-height:0; overflow:hidden;
    transition: max-height .25s var(--ease);
  }
  .main-nav.open{ max-height: 320px; }
  .main-nav a{ padding: 1em 24px; border-bottom: 1px solid var(--border-soft); }
  .nav-toggle{ display:flex; }
  .feature-grid, .steps, .product-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .banner-inner{ flex-direction:column; align-items:flex-start; }
  .hero{ padding: 70px 0 60px; }
  .hero-stats{ flex-wrap:wrap; row-gap: 1.4em; column-gap: 1.6em; }
  .brand-tagline{ display:none; }
}
