/* =========================================================
   SILVER — Sterling silver jewellery for women
   Stylesheet — shared across all pages
   Fonts: Fraunces (display) + Lora (body)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #15161c;
  --ink-soft: #1e2029;
  --bone: #f1e8e2;
  --bone-soft: #f8f2ee;
  --rosewood: #9c6b70;
  --rosewood-dark: #7c4f54;
  --wine: #4a1f2b;
  --stone: #cbbfb4;
  --stone-soft: #ded4cb;
  --charcoal: #2a2724;
  --charcoal-soft: #5c554e;
  --white: #ffffff;

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Lora', 'Iowan Old Style', serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-s: 2px;
  --radius-m: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 500; }

p { max-width: 62ch; color: var(--charcoal-soft); }
p.lede { font-size: 1.15rem; color: var(--charcoal); }

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

section { padding: clamp(56px, 9vw, 120px) 0; }

a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible {
  outline: 2px solid var(--rosewood);
  outline-offset: 3px;
}

/* ---------- Eyebrow-free section heads ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--stone);
  padding-bottom: 28px;
}
.section-head p { margin-top: 10px; }
.section-head .head-link { white-space: nowrap; padding-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 34px;
  border: 1px solid currentColor;
  border-radius: var(--radius-s);
  transition: background var(--ease) .35s, color var(--ease) .35s, border-color var(--ease) .35s;
}
.btn-dark { background: var(--ink); color: var(--bone-soft); border-color: var(--ink); }
.btn-dark:hover { background: var(--wine); border-color: var(--wine); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone-soft); }
.btn-outline.on-dark { color: var(--bone-soft); border-color: var(--stone-soft); }
.btn-outline.on-dark:hover { background: var(--bone-soft); color: var(--ink); border-color: var(--bone-soft); }

.text-link {
  position: relative;
  padding-bottom: 3px;
  font-size: 0.95rem;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.text-link:hover::after { transform: scaleX(1); }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bone-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--bone-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.98rem;
  color: var(--stone-soft);
  transition: color .3s var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--bone-soft); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--rosewood);
}
.nav-cta {
  border: 1px solid var(--stone-soft);
  padding: 9px 20px;
  border-radius: var(--radius-s);
  color: var(--bone-soft) !important;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav-cta:hover { background: var(--rosewood); border-color: var(--rosewood); }

#nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 210;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--bone-soft);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--ink-soft);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px var(--gutter);
    transition: right .45s var(--ease);
    z-index: 200;
  }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(21,22,28,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
    z-index: 190;
  }
  #nav-toggle:checked ~ .nav-links { right: 0; }
  #nav-toggle:checked ~ .nav-backdrop { opacity: 1; pointer-events: auto; }
  #nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  #nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* =========================================================
   HOME — HERO
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 86vh;
  background: var(--bone);
}
.hero-visual { overflow: hidden; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 64px var(--gutter);
  position: relative;
  z-index: 3;
}
.hero-copy h1 { animation: riseIn 1.1s var(--ease) both; }
.hero-copy p.lede { animation: riseIn 1.1s var(--ease) .15s both; max-width: 42ch; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; animation: riseIn 1.1s var(--ease) .3s both; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroCycle 21s infinite;
}
.hero-bg img:nth-child(1) { animation-delay: 0s; }
.hero-bg img:nth-child(2) { animation-delay: 7s; }
.hero-bg img:nth-child(3) { animation-delay: 14s; }
@keyframes heroCycle {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,22,28,0) 55%, rgba(21,22,28,.45) 100%);
}

/* Medallion — signature 3D spin moment */
.medallion {
  position: absolute;
  left: calc(50% - 70px);
  bottom: 64px;
  width: 220px;
  height: 220px;
  z-index: 4;
  perspective: 1400px;
}
.medallion-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 7px solid var(--bone-soft);
  box-shadow: 0 30px 50px -18px rgba(21,22,28,.55);
  animation: spin3d 16s linear infinite;
  transform-style: preserve-3d;
}
.medallion-ring img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin3d {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { height: 60vh; order: -1; }
  .hero-copy { padding: 64px var(--gutter) 64px; }
  .medallion { width: 130px; height: 130px; left: 50%; top: 60vh; bottom: auto; transform: translate(-50%, -50%); }
}

/* =========================================================
   VALUE PROPS
   ========================================================= */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.value-item {
  padding: 8px var(--gutter);
  border-left: 1px solid var(--stone);
}
.value-item:first-child { border-left: none; padding-left: 0; }
.value-item svg { width: 30px; height: 30px; stroke: var(--rosewood); margin-bottom: 18px; }
.value-item h3 { margin-bottom: 10px; }
.value-item p { font-size: 0.96rem; }

@media (max-width: 780px) {
  .values { grid-template-columns: 1fr; gap: 36px; }
  .value-item { border-left: none; padding-left: 0; border-top: 1px solid var(--stone); padding-top: 32px; }
  .value-item:first-child { border-top: none; padding-top: 0; }
}

/* =========================================================
   CATEGORY GRID (asymmetric)
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: var(--bone-soft);
}
.category-card:nth-child(1) { grid-row: span 2; min-height: 100%; }
.category-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.category-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,22,28,0) 40%, rgba(21,22,28,.72) 100%);
  z-index: 1;
}
.category-card:hover img { transform: scale(1.07); }
.category-card-copy {
  position: relative;
  z-index: 2;
  padding: 30px;
}
.category-card-copy h3 { color: var(--bone-soft); font-size: 1.6rem; margin-bottom: 6px; }
.category-card-copy span { font-size: 0.9rem; color: var(--stone-soft); }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card:nth-child(1) { grid-row: auto; }
  .category-card { min-height: 320px; }
}

/* =========================================================
   PRODUCT CARDS + CAROUSEL (3D tilt on hover)
   ========================================================= */
.product-card {
  display: block;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  transform-style: preserve-3d;
}
.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  aspect-ratio: 4 / 5;
  background: var(--bone-soft);
}
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.product-card:hover img { transform: scale(1.08); }
.product-card:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-5deg) translateY(-6px);
  box-shadow: 0 34px 44px -26px rgba(21,22,28,.4);
}
.product-card .view-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  font-size: 0.82rem;
  color: var(--bone-soft);
  background: rgba(21,22,28,.55);
  padding: 7px 14px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.product-card:hover .view-tag { opacity: 1; transform: translateY(0); }
.product-info { padding: 16px 2px 0; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-info .price { color: var(--rosewood-dark); font-size: 0.95rem; }
.product-info .sub { font-size: 0.85rem; color: var(--charcoal-soft); }

.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}
.carousel::-webkit-scrollbar { height: 5px; }
.carousel::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 10px; }
.carousel .slide {
  flex: 0 0 clamp(220px, 26vw, 280px);
  scroll-snap-align: start;
  scroll-margin-left: 4px;
}
.carousel-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 30px;
}
.carousel-nav a {
  width: 44px; height: 44px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.carousel-nav a:hover { background: var(--ink); border-color: var(--ink); color: var(--bone-soft); }
.carousel-nav svg { width: 16px; height: 16px; }

/* =========================================================
   PRODUCT GRID (category listing pages)
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 26px;
}
.product-grid .product-card:first-child { grid-column: span 2; grid-row: span 2; }
.product-grid .product-card:first-child .img-wrap { aspect-ratio: 1 / 1.05; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .product-grid .product-card:first-child { grid-column: span 2; grid-row: auto; }
  .product-grid .product-card:first-child .img-wrap { aspect-ratio: 4/5; }
}

/* ---------- Category hero banner ---------- */
.cat-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: var(--bone-soft);
  overflow: hidden;
}
.cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21,22,28,.78) 0%, rgba(21,22,28,.1) 60%);
}
.cat-hero-copy { position: relative; z-index: 2; padding: 60px var(--gutter) 46px; max-width: var(--container); margin: 0 auto; width: 100%; }
.cat-hero-copy .crumb { font-size: 0.85rem; color: var(--stone-soft); margin-bottom: 14px; display: block; }
.cat-hero-copy h1 { color: var(--bone-soft); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.cat-hero-copy p { color: var(--stone-soft); margin-top: 12px; }

/* ---------- Sort / filter bar (visual) ---------- */
.listing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--stone);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.listing-count { font-size: 0.92rem; color: var(--charcoal-soft); }
.listing-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 0.85rem;
  padding: 8px 16px;
  border: 1px solid var(--stone);
  border-radius: 20px;
  color: var(--charcoal-soft);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover, .chip.active { border-color: var(--ink); color: var(--ink); }
.listing-sort { font-size: 0.88rem; color: var(--charcoal-soft); }

/* =========================================================
   GALLERY MARQUEE
   ========================================================= */
.marquee-section { background: var(--ink); padding: 70px 0; overflow: hidden; }
.marquee-section .section-head { border-color: var(--ink-soft); color: var(--bone-soft); padding: 0 var(--gutter) 32px; max-width: var(--container); margin: 0 auto; }
.marquee-section .section-head h2 { color: var(--bone-soft); }
.marquee-section .section-head p { color: var(--stone-soft); }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee-track img {
  width: 240px; height: 300px;
  object-fit: cover;
  margin-right: 22px;
  border-radius: var(--radius-m);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =========================================================
   TESTIMONIALS (auto crossfade)
   ========================================================= */
.testimonials { text-align: center; }
.testimonial-stage {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  min-height: 220px;
}
.testimonial-slide {
  position: absolute; inset: 0;
  opacity: 0;
  animation: testiCycle 18s infinite;
}
.testimonial-slide:nth-child(1) { animation-delay: 0s; }
.testimonial-slide:nth-child(2) { animation-delay: 6s; }
.testimonial-slide:nth-child(3) { animation-delay: 12s; }
@keyframes testiCycle {
  0%   { opacity: 0; transform: translateY(10px); }
  4%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; transform: translateY(0); }
  36%  { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; }
}
.testimonial-slide blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ink);
  max-width: 56ch;
  margin: 0 auto 20px;
}
.testimonial-slide cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--rosewood-dark);
}

/* =========================================================
   NEWSLETTER BAND
   ========================================================= */
.newsletter {
  background: var(--wine);
  color: var(--bone-soft);
  padding: clamp(56px, 8vw, 90px) 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter h2 { color: var(--bone-soft); max-width: 14ch; }
.newsletter p { color: var(--stone-soft); margin-top: 10px; }
.newsletter-form {
  display: flex;
  gap: 0;
  min-width: 320px;
  flex: 1 1 380px;
  max-width: 460px;
  border-bottom: 1px solid var(--stone-soft);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--bone-soft);
  padding: 14px 4px;
  font-size: 1rem;
}
.newsletter-form input::placeholder { color: rgba(241,232,226,.55); }
.newsletter-form button {
  color: var(--bone-soft);
  font-size: 0.95rem;
  padding: 14px 6px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.newsletter-form button:hover { border-color: var(--rosewood); }

@media (max-width: 720px) {
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--stone-soft);
  padding: 46px 0 30px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-inner .wordmark { font-size: 1.2rem; }
.footer-contact {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--stone-soft);
}
.footer-credit {
  font-size: 0.8rem;
  color: rgba(203,191,180,.6);
  padding-top: 14px;
  border-top: 1px solid var(--ink-soft);
  width: 100%;
  max-width: 300px;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--gutter);
  gap: 22px;
}
.about-hero-img { position: relative; overflow: hidden; }
.about-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-img { height: 52vh; order: -1; }
}

.story-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.story-split img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-split .story-copy p { margin-bottom: 20px; }
.story-split.reverse { grid-template-columns: 1.05fr 0.95fr; }
.story-split.reverse .story-copy { order: 1; }
.story-split.reverse img { order: 2; }
@media (max-width: 900px) {
  .story-split, .story-split.reverse { grid-template-columns: 1fr; }
  .story-split img, .story-split.reverse img { order: -1; aspect-ratio: 16/10; }
}

.timeline { border-top: 1px solid var(--stone); }
.timeline-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--stone);
}
.timeline-row .year { font-family: var(--font-display); font-size: 1.5rem; color: var(--rosewood-dark); }
.timeline-row p { margin: 0; }
@media (max-width: 600px) {
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
}

.cta-banner {
  background: var(--ink);
  color: var(--bone-soft);
  text-align: center;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
}
.cta-banner h2 { color: var(--bone-soft); max-width: 20ch; margin: 0 auto 26px; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.bg-ink { background: var(--ink); color: var(--bone-soft); }
.bg-soft { background: var(--bone-soft); }
