/* ============================================
   TASHEKARI — Editorial Luxury Design System
   ============================================ */

:root {
  --cream: #F9F7F2;
  --cream-dim: #F1EEE5;
  --charcoal: #1A1918;
  --charcoal-soft: #2B2926;
  --gold: #C5A059;
  --gold-dim: #A98849;
  --line: rgba(26, 25, 24, 0.12);
  --line-on-dark: rgba(249, 247, 242, 0.18);

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

  --container: 1240px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body, h1, h2, h3, h4, p, figure {
  margin: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
ul { list-style: none; margin: 0; padding: 0; }

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

:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
}

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

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 400;
}

p { max-width: 62ch; }

.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}
.wordmark--small { font-size: 1.3rem; }

/* ---------- Layout shell ---------- */
.site-header__inner,
.site-footer__inner,
.section-head,
.collection,
.enquire {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; }

/* ---------- Agency Bar ---------- */
.agency-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.55rem 2.5rem;
  text-align: center;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.agency-bar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  position: absolute;
  width: 100%;
}
.agency-bar a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 1px;
}
.agency-bar__close {
  position: absolute;
  right: 1rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--line-on-dark);
  padding: 0.2rem;
}
.agency-bar__close:hover { color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 242, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.primary-nav {
  display: flex;
  gap: 2.4rem;
  font-size: 0.92rem;
  font-weight: 400;
}
.primary-nav a {
  position: relative;
  padding-bottom: 2px;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.primary-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--charcoal);
  opacity: 0.85;
  transition: opacity 0.25s;
}
.icon-link:hover { opacity: 1; }

.cart-badge {
  position: absolute;
  top: -7px; right: -9px;
  background: var(--gold);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 500;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.nav-toggle {
  display: none;
  width: 26px;
  height: 18px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--charcoal);
}
.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__kicker {
  font-size: 0.82rem;
  color: var(--gold-dim);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}
.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 1.6rem;
  animation: rise 0.9s var(--ease) both;
}
.hero__lede {
  font-size: 1.08rem;
  color: var(--charcoal-soft);
  margin-bottom: 2.2rem;
  max-width: 46ch;
}

.hero__frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  padding: 1.1rem;
  position: relative;
}
.hero__frame-inner {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(155deg, rgba(197,160,89,0.16), transparent 55%),
    linear-gradient(340deg, rgba(26,25,24,0.05), transparent 60%),
    var(--cream-dim);
  position: relative;
}
.hero__frame-inner::before,
.hero__frame-inner::after {
  content: '';
  position: absolute;
  border: 1px solid var(--gold);
}
.hero__frame-inner::before {
  width: 46%; height: 62%;
  top: 14%; left: 10%;
  border-radius: 2px;
}
.hero__frame-inner::after {
  width: 30%; height: 30%;
  bottom: 12%; right: 12%;
  border-radius: 50%;
  border-color: var(--charcoal);
  opacity: 0.35;
}

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

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.9rem 0;
  background: var(--cream-dim);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: scroll 28s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  white-space: nowrap;
}
.marquee__track span::after {
  content: '—';
  margin-left: 3.5rem;
  color: var(--gold);
  font-style: normal;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section head ---------- */
.section-head {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.section-head p {
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  text-align: right;
}

/* ---------- Collection grid ---------- */
.collection { padding-bottom: clamp(3rem, 8vw, 6rem); }
.product-grid {
  padding-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Atelier ---------- */
.atelier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
.atelier__image {
  background:
    linear-gradient(160deg, rgba(197,160,89,0.22), transparent 60%),
    var(--charcoal);
}
.atelier__content {
  background: var(--charcoal);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 6rem);
  gap: 1.4rem;
}
.atelier__content h2 { color: var(--cream); }
.atelier__content p { color: rgba(249, 247, 242, 0.72); }
.atelier__content .hero__kicker { color: var(--gold); }

/* ---------- Enquire ---------- */
.enquire {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.enquire p { max-width: 50ch; color: var(--charcoal-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-dim);
}
.site-footer__inner {
  padding-block: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}
.site-footer a { border-bottom: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__frame { order: -1; max-width: 320px; margin-inline: auto; }
  .atelier { grid-template-columns: 1fr; }
  .atelier__image { min-height: 260px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head p { text-align: left; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .site-header__inner { height: 70px; }
}
