/* ============================================================
   Everhart — everhartjewelry.com
   Warm heritage palette: cream, ivory, gold, blush, dusty rose.
   Mobile-first. No cool tones, no stark white, no black.
   ============================================================ */

:root {
  --cream: #FBF6EC;
  --ivory: #F3EADA;
  --paper: #FEFBF3;
  --blush: #F4DFD7;
  --blush-deep: #ECCFC4;
  --rose: #C08074;
  --rose-deep: #A5685D;
  --gold: #B08D57;
  --gold-deep: #8C6D3F;
  --ink: #45392B;
  --ink-soft: #7C6B54;
  --line: #E4D8C2;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Mulish", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --pad: 20px;
  --radius: 6px;
  --shadow: 0 10px 34px rgba(140, 109, 63, 0.13);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 38em; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

section { padding: 64px 0; }
@media (min-width: 800px) { section { padding: 96px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 3px;
  border: 1px solid var(--gold-deep);
  background: var(--gold-deep);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn.ghost { background: transparent; color: var(--gold-deep); }
.btn.ghost:hover { background: var(--gold-deep); color: var(--paper); }
.btn.wide { width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.text-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--rose-deep); border-color: var(--rose-deep); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 9px var(--pad);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.3em; /* optically balance the tracking */
}
.logo span { color: var(--gold-deep); }

.main-nav { display: none; }
.main-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px;
  color: var(--ink);
  display: inline-flex;
  border-radius: 4px;
}
.icon-btn:hover { color: var(--gold-deep); }
.icon-btn svg { width: 22px; height: 22px; }

.cart-count {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--rose-deep);
  color: var(--paper);
  border-radius: 999px;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  margin-left: -8px;
  margin-top: -12px;
  display: none;
}
.cart-count.show { display: inline-block; }

.nav-toggle { display: inline-flex; }

@media (min-width: 900px) {
  .main-nav { display: flex; align-items: center; }
  .nav-toggle { display: none; }
  .site-header .bar { height: 76px; }
}

/* Mobile menu */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 10px var(--pad) 22px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero { padding: 0; background: var(--blush); }
.hero-inner { display: grid; grid-template-rows: auto 1fr; min-height: calc(100vh - 92px); min-height: calc(100svh - 92px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.hero-copy { padding: 44px var(--pad) 56px; background: var(--cream); }
.hero-copy h1 { max-width: 11em; }
.hero-copy .lede { margin: 1.1rem 0 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1.45fr; grid-template-rows: none; align-items: stretch; min-height: calc(100vh - 104px); min-height: calc(100svh - 104px); }
  .hero-copy { order: 1; display: flex; flex-direction: column; justify-content: center; padding: 36px 52px; }
  .hero-media { order: 2; }
  .hero-media img { min-height: 560px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-strip ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  text-align: center;
}
.trust-strip li strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trust-strip li span { font-size: 0.8rem; color: var(--ink-soft); }
@media (min-width: 800px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Product cards / grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 14px;
}
@media (min-width: 800px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }

.product-card { position: relative; }
.product-card .frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory);
  margin-bottom: 14px;
  position: relative;
}
.product-card .frame img { transition: transform 0.5s ease, opacity 0.4s ease; width: 100%; }
.product-card:hover .frame img { transform: scale(1.035); }
.product-card .frame .alt {
  position: absolute; inset: 0; opacity: 0;
}
.product-card:hover .frame .alt { opacity: 1; }
.product-card h3 { font-size: 1.22rem; }
.product-card .colorway { font-family: var(--sans); font-style: italic; font-size: 1rem; color: var(--rose-deep); margin: 2px 0 4px; }
.product-card .price { font-size: 0.95rem; color: var(--ink-soft); }
.product-card > a::after { content: ""; position: absolute; inset: 0; }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--paper);
  color: var(--rose-deep);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--blush-deep);
}

/* ---------- Filters (shop) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  padding: 18px 0 34px;
}
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-group .label {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
  margin-right: 4px;
}
.chip {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--paper); }

.shop-empty { display: none; padding: 40px 0; color: var(--ink-soft); font-style: italic; }
.shop-empty.show { display: block; }

/* ---------- Editorial split sections ---------- */
.split { display: grid; gap: 34px; align-items: center; }
.split .media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.flip .media { order: 2; }
}

.band-blush { background: var(--blush); }
.band-ivory { background: var(--ivory); }

/* ---------- Product detail page ---------- */
.pdp { padding: 36px 0 80px; }
.pdp-grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }

.pdp-gallery { display: grid; gap: 14px; align-content: start; }
.pdp-gallery img { border-radius: var(--radius); background: var(--ivory); width: 100%; }

.pdp-info { position: sticky; top: 100px; }
.pdp-info .eyebrow { margin-bottom: 0.4rem; }
.pdp-info h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.pdp-price { font-size: 1.25rem; margin: 10px 0 4px; }
.pdp-cert { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.04em; margin-bottom: 22px; }

.swatches { margin: 0 0 24px; }
.swatches .label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 10px; }
.swatch {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s;
}
.swatch .dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); }
.swatch[data-color="white"] .dot { background: #FDFBF4; }
.swatch[data-color="rose"] .dot { background: #F0C7BE; }
.swatch.active { border-color: var(--gold-deep); color: var(--ink); box-shadow: 0 0 0 1px var(--gold-deep); }

.pdp-specs { list-style: none; margin: 26px 0; border-top: 1px solid var(--line); }
.pdp-specs li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.pdp-specs li span:first-child { color: var(--ink-soft); }
.pdp-specs li span:last-child { text-align: right; }

.pdp-story {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  margin: 26px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.pdp-story strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }

/* ---------- Accordions (details/summary) ---------- */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.2rem;
  color: var(--gold-deep);
  flex: none;
  transition: transform 0.25s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .a-body { padding: 0 2px 20px; color: var(--ink-soft); font-size: 0.94rem; max-width: 46em; }

/* ---------- Quote / values ---------- */
.quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  max-width: 22em;
  margin: 0 auto;
  color: var(--ink);
}
.quote-source { margin-top: 18px; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }

.values-grid { display: grid; gap: 30px; margin-top: 44px; }
@media (min-width: 800px) { .values-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.values-grid h3 { margin-bottom: 10px; }
.values-grid p { color: var(--ink-soft); font-size: 0.95rem; }
.values-grid .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 12px;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.18);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); }
.form-success {
  display: none;
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.95rem;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--blush); }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; margin: 26px auto 0; }
.newsletter input {
  flex: 1 1 240px;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--blush-deep);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.newsletter input:focus { outline: none; border-color: var(--rose-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); border-top: 1px solid var(--line); padding: 54px 0 30px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer-grid h4 { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 0.9rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 12px; max-width: 26em; }
.footer-legal {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.footer-legal a { color: var(--ink-soft); border-bottom: 1px solid transparent; }
.footer-legal a:hover { border-color: var(--gold); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(69, 57, 43, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 90;
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open .cart-drawer { transform: translateX(0); }
body.cart-open { overflow: hidden; }

.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { letter-spacing: 0.06em; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 22px; }
.cart-empty-msg { padding: 30px 0; color: var(--ink-soft); font-style: italic; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 74px; height: 92px; object-fit: cover; border-radius: 4px; background: var(--ivory); flex: none; }
.cart-item .ci-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.cart-item .ci-meta { font-size: 0.78rem; color: var(--ink-soft); margin: 2px 0 8px; }
.cart-item .ci-row { display: flex; justify-content: space-between; align-items: center; }
.cart-item .ci-price { font-size: 0.9rem; }
.ci-remove {
  background: none; border: none; cursor: pointer;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rose-deep); text-decoration: underline;
}
.ci-body { flex: 1; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px 110px; background: var(--ivory); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.cart-note { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Page hero (interior pages) ---------- */
.page-head { padding-top: 56px; padding-bottom: 30px; }
.page-head .lede { margin-top: 14px; }

/* ---------- FAQ page ---------- */
.faq-section h2 { font-size: 1.5rem; margin: 40px 0 8px; }
.faq-section h2:first-of-type { margin-top: 0; }

/* ---------- Utility ---------- */
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 34px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

::selection { background: var(--blush-deep); color: var(--ink); }


#rose-collection { scroll-margin-top: 0; }

@media (min-width: 900px) {
  #commission { scroll-margin-top: clamp(0px, calc(50vh - 380px), 40px); }
}

@media (max-width: 799px) {
  .product-grid .product-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .product-grid .product-card:last-child:nth-child(odd) .frame { height: calc((100vw - 54px) * 0.625); }
  .product-grid .product-card:last-child:nth-child(odd) .frame img { height: 100%; object-fit: cover; }
}

/* ---------- Contact aside cards ---------- */
.contact-aside { display: grid; gap: 22px; }
.aside-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px 30px;
}
.aside-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.aside-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }

/* ---------- Collection group labels (shop) ---------- */
.product-grid .group-label {
  grid-column: 1 / -1;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-top: 40px;
}
.product-grid .group-label:first-of-type { margin-top: 0; }
@media (max-width: 799px) {
  .product-grid .product-card:nth-child(4n) { grid-column: 1 / -1; }
  .product-grid .product-card:nth-child(4n) .frame { height: calc((100vw - 54px) * 0.625); }
  .product-grid .product-card:nth-child(4n) .frame img { height: 100%; object-fit: cover; }
}

/* ---------- Contact form rows / pills ---------- */
@media (min-width: 700px) {
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
}
.phone-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }

/* ---------- Contact split with media ---------- */
.contact-split { display: grid; gap: 40px; }
.contact-media img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .contact-split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: stretch; }
  .contact-media { height: 100%; }
  .contact-media img { height: 100%; object-fit: cover; }
}
