/* ============================================================
   CLIRA — Redesign mockup design system
   "Attainable luxury" — ivory / ink / bronze, editorial type
   ============================================================ */

:root {
  /* Palette */
  --ivory:   #F2EFE9;   /* page background — warm gallery white */
  --paper:   #FAF8F4;   /* raised surfaces */
  --ink:     #1B1813;   /* warm near-black */
  --ink-soft:#3A352D;
  --stone:   #79715F;   /* muted text */
  --bronze:  #96683F;   /* single accent — warm bronze */
  --bronze-soft: #B08A63;
  --line:    rgba(27, 24, 19, 0.16);
  --line-soft: rgba(27, 24, 19, 0.08);

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 64px;
  --bar-h: 36px;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

em, .it { font-family: var(--serif); font-style: italic; font-weight: 340; }

a { color: inherit; }

::selection { background: var(--bronze); color: var(--ivory); }

/* ---------- Utilities ---------- */

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

.eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--bronze); }
.eyebrow.bare::before { display: none; }

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section + .section { padding-top: 0; }

.h-display { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
.h-section { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 18px 0 12px; }
.lede { color: var(--stone); font-size: clamp(0.95rem, 1.4vw, 1.1rem); max-width: 56ch; }

.hairline { border: 0; border-top: 1px solid var(--line); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.img-reveal { overflow: hidden; }
.img-reveal img {
  transform: scale(1.12);
  transition: transform 1.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.img-reveal.in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .img-reveal img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media img { animation: none !important; }
  .marquee-track { animation: none !important; }
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 38px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  overflow: hidden;
  z-index: 1;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.btn:hover { color: var(--ivory); }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn.solid { background: var(--ink); color: var(--ivory); }
.btn.solid::after { background: var(--bronze); transform-origin: right; }
.btn.solid:hover { border-color: var(--bronze); }

.btn.ghost-light { border-color: rgba(250, 248, 244, 0.85); color: #FAF8F4; }
.btn.ghost-light::after { background: #FAF8F4; }
.btn.ghost-light:hover { color: var(--ink); }

.btn.wide { width: 100%; }

.text-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s, border-color 0.3s;
}
.text-link:hover { color: var(--bronze); border-color: var(--bronze); }

/* ---------- Announcement bar ---------- */

.announce {
  height: var(--bar-h);
  background: var(--ink);
  color: rgba(250, 248, 244, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  position: relative;
  z-index: 1200;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: var(--bar-h);
  left: 0; right: 0;
  height: var(--header-h);
  z-index: 1100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), top 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.site-header.on-hero { color: #FAF8F4; }
.site-header.scrolled {
  top: 0;
  background: rgba(242, 239, 233, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  color: var(--ink);
}

.nav-left { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav-left a, .nav-right a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav-left a::after, .nav-right a.bag-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-left a:hover::after, .nav-right a.bag-link:hover::after { transform: scaleX(1); transform-origin: left; }

.wordmark {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 1.45rem;
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* optically recenter */
  text-transform: uppercase;
  text-decoration: none;
}

.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 26px; }
.bag-count { color: var(--bronze-soft); }

/* Burger */
.burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 1300;
  color: inherit;
}
.burger span {
  display: block; width: 24px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.3s;
}
.burger.open span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 1250;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transition: opacity 0.5s var(--ease-out); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}
.mobile-menu a:hover { color: var(--bronze); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu .menu-foot {
  position: absolute;
  bottom: 36px; left: var(--gutter);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  padding-right: 56px;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee span::after { content: '✦'; font-size: 0.7rem; color: var(--bronze); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product cards ---------- */

.product-card { text-decoration: none; display: block; }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #E5E0D6;
}
.card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease-out), transform 1.1s var(--ease-out);
}
.card-media .alt { opacity: 0; }
.product-card:hover .card-media img { transform: scale(1.045); }
.product-card:hover .card-media .alt { opacity: 1; }
.product-card:hover .card-media .main { opacity: 0; }
.card-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(27, 24, 19, 0.72);
  backdrop-filter: blur(6px);
  padding: 7px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.product-card:hover .card-tag { opacity: 1; transform: none; }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 16px; }
.card-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 420; }
.card-price { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--stone); }

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

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field input, .field select {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 2px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus, .field select:focus { border-bottom-color: var(--ink); }
.field input.error, .field select.error { border-bottom-color: #B3502D; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; cursor: pointer; }
.select-wrap::after {
  content: '↓';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--stone);
  pointer-events: none;
}

/* ---------- Accordion ---------- */

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 20px;
}
.acc-head h3 { font-size: 1.18rem; font-weight: 420; transition: color 0.3s; }
.acc-item:hover .acc-head h3 { color: var(--bronze); }
.acc-icon {
  position: relative;
  width: 14px; height: 14px;
  flex: 0 0 auto;
}
.acc-icon::before, .acc-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform 0.45s var(--ease-out), background 0.3s;
}
.acc-icon::before { left: 0; top: 6.5px; width: 14px; height: 1px; }
.acc-icon::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.acc-item.open .acc-icon::after { transform: scaleY(0); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out);
}
.acc-body-inner { padding: 0 0 26px; color: var(--stone); max-width: 64ch; }
.acc-body-inner p + p { margin-top: 10px; }
.acc-body-inner ul { padding-left: 18px; }

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

.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.62);
  padding: clamp(60px, 8vw, 110px) 0 0;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 70px;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  margin-bottom: 22px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-grid a:hover { color: #FAF8F4; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; line-height: 1.8; }
.footer-brand .wordmark { color: #FAF8F4; display: inline-block; margin-bottom: 18px; font-size: 1.3rem; }

.news-form { display: flex; border-bottom: 1px solid rgba(250, 248, 244, 0.3); margin-top: 6px; }
.news-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #FAF8F4;
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 12px 0;
}
.news-form input::placeholder { color: rgba(250, 248, 244, 0.4); }
.news-form button {
  background: none; border: 0;
  color: var(--bronze-soft);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.news-form button:hover { transform: translateX(6px); color: #FAF8F4; }

.footer-mega {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(4.5rem, 17vw, 16rem);
  line-height: 0.78;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(250, 248, 244, 0.07);
  user-select: none;
  margin-bottom: -0.06em;
}
.footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.1);
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #FAF8F4; }

/* ---------- Page hero (interior pages) ---------- */

.page-head { padding: calc(var(--bar-h) + var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 72px); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 30px;
  z-index: 1500;
  transition: transform 0.55s var(--ease-out);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .nav-left { display: none; }
  .burger { display: flex; }
  .wordmark { font-size: 1.15rem; justify-self: center; }
  .nav-right .hide-mobile { display: none; }
  .announce { font-size: 0.58rem; letter-spacing: 0.2em; padding: 0 12px; text-align: center; }
}

/* ---------- Mobile usability ---------- */
@media (max-width: 900px) {
  /* 16px inputs prevent iOS Safari from zooming the page on focus */
  .field input, .field select { font-size: 16px; padding: 13px 2px 12px; }
  .news-form input { font-size: 16px; padding: 12px 0; }
  .news-form button { padding: 8px 14px; font-size: 1.35rem; }

  /* comfortable tap targets (44px+) */
  .btn { min-height: 50px; }
  .row-actions { gap: 28px; }
  .row-actions a, .row-actions button { padding: 10px 0 8px; }
  .collection-bar .filters a { padding: 12px 4px; }
  .bag-link { padding: 12px 0; }

  /* touch feedback instead of hover effects */
  .btn:active { transform: scale(0.97); }
  .product-card:active .card-media img.main { transform: scale(1.02); }

  /* toast must clear the sticky CTA and chat launcher */
  .toast {
    bottom: calc(100px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px);
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.12em;
  }
}
