/* =========================================================
   JM MAISON — Design tokens
   Palette: ivory blush background, dusty rose, antique gold,
   deep espresso ink. Signature motif: a thin gold "clasp"
   divider (a line that opens into a small rotated diamond)
   echoing a jewelry chain clasp — used consistently as the
   section break instead of a generic <hr>.
   ========================================================= */

:root {
  --bg: #FBF4EF;
  --bg-alt: #F4E7DD;
  --blush: #E7C0B4;
  --blush-deep: #C98D7E;
  --gold: #AD8A4E;
  --gold-light: #D8BD8B;
  --gold-dark: #8A6C38;
  --ink: #2B221C;
  --ink-soft: #6B5A50;
  --cream: #FFFDFB;

  --display: 'Cormorant Garamond', serif;
  --body: 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-style: italic; font-weight: 500; }
h3 { font-size: 1.35rem; }

p { color: var(--ink-soft); font-size: 1rem; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(173, 138, 78, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
}

.logo {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo span { color: var(--gold); font-style: italic; }
.logo-badge {
  width: 64px; height: 64px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 2px;
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-dark); }

.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.55rem 1.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--cream); }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 34, 28, 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.sidebar-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  max-width: 82vw;
  height: 100%;
  background: var(--cream);
  z-index: 91;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  padding: 2rem 1.8rem;
  overflow-y: auto;
}
.sidebar-drawer.open { transform: translateX(0); }

.sidebar-drawer .sidebar-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.sidebar-drawer .eyebrow { display: block; margin-bottom: 1rem; }
.sidebar-drawer ul { list-style: none; }
.sidebar-drawer ul li a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(173, 138, 78, 0.18);
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.sidebar-drawer ul li a:hover { color: var(--gold-dark); padding-left: 6px; }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
}
.cart-icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.cart-badge {
  position: absolute;
  top: -9px; right: -11px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-dark);
  color: var(--cream);
  font-size: 0.65rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
}

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-gallery {
  overflow: hidden;
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--bg-alt), var(--blush) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery svg { width: 42%; }

.product-info .tag { margin-bottom: 0.8rem; }
.product-info h1 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 0.6rem; }
.product-info .price { font-size: 1.7rem; margin: 0.6rem 0 1.4rem; }
.product-info p.desc { margin-bottom: 1.8rem; font-size: 1rem; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(173, 138, 78, 0.35);
}
.qty-control button {
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.qty-control span { width: 34px; text-align: center; font-size: 0.95rem; }

.specs-table { width: 100%; margin-top: 0.6rem; border-top: 1px solid rgba(173,138,78,0.2); }
.specs-table tr { border-bottom: 1px solid rgba(173,138,78,0.2); }
.specs-table td { padding: 0.7rem 0; font-size: 0.9rem; }
.specs-table td:first-child { color: var(--ink-soft); width: 40%; }
.specs-table td:last-child { color: var(--ink); }

/* ---------- Cart page ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(173,138,78,0.3);
}
.cart-table td {
  padding: 1.2rem 0.5rem 1.2rem 0;
  border-bottom: 1px solid rgba(173,138,78,0.15);
  vertical-align: middle;
}
.cart-item-info { display: flex; align-items: center; gap: 1rem; }
.cart-item-thumb {
  overflow: hidden;
  width: 64px; height: 64px;
  background: linear-gradient(160deg, var(--bg-alt), var(--blush) 130%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-item-thumb svg { width: 55%; }
.cart-item-name { font-family: var(--display); font-size: 1.1rem; }
.cart-remove { font-size: 0.75rem; color: var(--blush-deep); text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; border: none; background: none; }

.cart-summary {
  background: var(--bg-alt);
  padding: 2rem;
  max-width: 380px;
  margin-left: auto;
  margin-top: 2.5rem;
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-size: 0.95rem; }
.cart-summary-row.total { font-family: var(--display); font-size: 1.3rem; border-top: 1px solid rgba(173,138,78,0.3); padding-top: 1rem; margin-top: 1rem; }

.cart-empty { text-align: center; padding: 4rem 1rem; }

/* ---------- Recommended products ---------- */
.recommended { margin-top: 5rem; }

/* ---------- Signature clasp divider ---------- */
.clasp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto;
  width: 100%;
  max-width: 340px;
  padding: 2.4rem 0;
}
.clasp-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.clasp-divider .line.right { background: linear-gradient(90deg, var(--gold-light), transparent); }
.clasp-divider .diamond {
  width: 8px; height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 7rem 6vw 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-frame {
  max-width: 720px;
  margin: 0 auto;
}
.hero .eyebrow { display: block; margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 em { color: var(--gold-dark); font-style: italic; }
.hero p.lead {
  max-width: 480px;
  margin: 0 auto 2.2rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--ink);
  margin-left: 0.9rem;
}
.btn-outline:hover { background: var(--gold); color: var(--cream); }

/* Decorative arc behind hero — evokes a necklace curve */
.hero-arc {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  border: 1px solid rgba(173, 138, 78, 0.25);
  pointer-events: none;
}
.hero-arc.two {
  width: 700px; height: 700px;
  top: -80px;
  border-color: rgba(201, 141, 126, 0.22);
}

/* ---------- Section shell ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.section-head .eyebrow { display: block; margin-bottom: 0.8rem; }
.section-head p { margin-top: 0.9rem; }

/* ---------- Grid / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
}

.card {
  background: var(--cream);
  border: 1px solid rgba(173, 138, 78, 0.16);
  padding: 2rem 1.7rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -22px rgba(43, 34, 28, 0.35);
}

/* Piece visual placeholder — a delicate gold ring/pendant motif drawn in CSS/SVG so pages don't depend on product photos yet */
.piece-visual {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--bg-alt), var(--blush) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
}
.piece-visual svg { width: 46%; }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold-light);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.8rem;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 0.5rem;
}
.price-old {
  font-family: var(--body);
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 400;
}
.price-save {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blush-deep);
  background: rgba(201, 141, 126, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
  padding-bottom: 2px;
}

/* ---------- Filters (Shop) ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-pill {
  padding: 0.5rem 1.3rem;
  border: 1px solid rgba(173, 138, 78, 0.35);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
}
.filter-pill.active, .filter-pill:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 4.5rem;
  text-align: center;
  flex-wrap: wrap;
}
.stat h3 { font-size: 2.1rem; color: var(--gold-dark); }
.stat span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.quote-mark { font-family: var(--display); font-size: 3rem; color: var(--gold-light); line-height: 1; }
.stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.8rem; font-size: 0.9rem; }
.reviewer { margin-top: 1.2rem; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink); font-weight: 500; }
.reviewer span { display: block; color: var(--ink-soft); font-weight: 300; font-size: 0.78rem; margin-top: 2px; }

/* ---------- Two-column feature (About) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(165deg, var(--blush) 0%, var(--bg-alt) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-visual svg { width: 55%; opacity: 0.9; }

.value-list { list-style: none; margin-top: 1.6rem; }
.value-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(173, 138, 78, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.value-list li .v-label { color: var(--ink); font-weight: 400; }
.value-list li .v-num { font-family: var(--display); color: var(--gold); font-style: italic; }

/* ---------- Form (Contact) ---------- */
.form-shell {
  background: var(--cream);
  border: 1px solid rgba(173, 138, 78, 0.18);
  padding: 3rem;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { margin-bottom: 1.4rem; }
.form-row label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.form-row input, .form-row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(173, 138, 78, 0.4);
  background: transparent;
  padding: 0.6rem 0.1rem;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); }
.form-row textarea { resize: vertical; min-height: 110px; }

.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-item .eyebrow { display: block; margin-bottom: 0.4rem; }
.contact-item p { font-size: 1rem; color: var(--ink); }

/* ---------- Blog ---------- */
.blog-card .piece-visual { aspect-ratio: 16/10; }
.blog-meta { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 4rem 6vw 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-grid h4 {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-logo { font-family: var(--display); font-size: 1.5rem; color: var(--cream); margin-bottom: 0.9rem; }
.footer-grid p, .footer-grid a { color: rgba(251, 244, 239, 0.65); font-size: 0.88rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(251, 244, 239, 0.14);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(251, 244, 239, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Responsive ---------- */
.card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 0.9rem; flex-wrap: wrap; gap: 0.6rem; }
.add-cart-btn {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s ease;
}
.add-cart-btn:hover { background: var(--ink); color: var(--cream); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-summary { max-width: 100%; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { gap: 2.4rem; }
  .form-shell { padding: 2rem 1.4rem; }
  .btn-outline { margin-left: 0; margin-top: 0.8rem; }
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h3 { margin: 2.2rem 0 0.9rem; font-size: 1.3rem; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-soft); margin-bottom: 0.9rem; line-height: 1.75; }
.legal-content ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-content li { color: var(--ink-soft); margin-bottom: 0.5rem; line-height: 1.7; }
.legal-updated { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 2.5rem; display: block; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
