/* ===== Sutra — Home Page Design =====
   Aesthetic: modern Indian artisanal — neutral, editorial, warm.
*/

:root {
  --bg: #fbf7f1;
  --bg-2: #f3ede3;
  --paper: #ffffff;
  --ink: #1f1a17;
  --ink-2: #4a3f38;
  --muted: #8a7e74;
  --line: #e7dfd3;
  --accent: #8a3324;      /* deep terracotta / maroon */
  --accent-2: #c97a4a;    /* warm clay */
  --gold: #b89469;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1280px;
  --pad: clamp(1rem, 3vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(.4,.0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
h4 { font-size: 1rem; font-weight: 500; }

em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 500;
}
.eyebrow-light { color: rgba(255,255,255,.85); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .9rem 2rem;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid currentColor;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.btn-light { color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-dark { color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--bg); }

/* ===== Announcement marquee ===== */
.announcement {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.marquee {
  overflow: hidden;
  padding: .65rem 0;
}
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.marquee-track span:nth-child(even) {
  color: var(--accent-2);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251,247,241,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(31,26,23,.06);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.primary-nav ul {
  display: flex;
  gap: 2rem;
}
.primary-nav a {
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.primary-nav a:hover { color: var(--accent); }
.primary-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease), left .25s var(--ease);
}
.primary-nav a:hover::after { width: 100%; left: 0; }

.brand {
  text-align: center;
  line-height: 1;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: block;
  color: var(--ink);
}
.brand-tag {
  display: block;
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--bg-2); color: var(--accent); }

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: #fff;
  font-size: .58rem;
  font-weight: 500;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle { display: none; }
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
}

/* ===== Hero slider ===== */
.hero {
  position: relative;
  height: clamp(520px, 78vh, 780px);
  overflow: hidden;
  background: var(--ink);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.1) 100%);
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-slide.is-active .hero-content {
  transform: translateY(0);
  opacity: 1;
}
.hero-content {
  position: relative;
  max-width: 620px;
  color: #fff;
  margin-left: clamp(1rem, 5vw, 5rem);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 1s var(--ease) .25s, opacity 1s var(--ease) .25s;
}
.hero-content .eyebrow { color: rgba(255,255,255,.85); }
.hero-content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.hero-content h1 em {
  color: #f3d6b5;
  font-style: italic;
  font-weight: 400;
}
.hero-content .lede {
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 0 2rem;
  color: rgba(255,255,255,.92);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease);
}
.hero-nav:hover { background: rgba(255,255,255,.25); }
.hero-nav.prev { left: 1.5rem; }
.hero-nav.next { right: 1.5rem; }

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 5;
}
.hero-dots button {
  width: 26px;
  height: 2px;
  background: rgba(255,255,255,.35);
  transition: background .2s var(--ease);
}
.hero-dots button.is-active { background: #fff; }

/* ===== Generic section ===== */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head.with-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
}
.view-all {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.view-all:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Category tiles ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.cat-card {
  display: block;
  text-align: center;
  transition: transform .3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-2);
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-card h3 { margin-bottom: .35rem; }
.cat-link {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat-card:hover .cat-link { color: var(--accent); }

/* ===== Story strip ===== */
.story-strip {
  background: var(--bg-2);
  padding: clamp(3rem, 7vw, 7rem) var(--pad);
}
.story-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.story-text h2 { margin-bottom: 1.5rem; }
.story-text p {
  color: var(--ink-2);
  margin-bottom: 2rem;
  max-width: 460px;
  font-size: 1.02rem;
}
.story-images {
  position: relative;
  height: 520px;
}
.story-img-a, .story-img-b {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.story-img-a {
  width: 65%;
  height: 75%;
  top: 0;
  left: 0;
}
.story-img-b {
  width: 55%;
  height: 60%;
  bottom: 0;
  right: 0;
  border: 8px solid var(--bg-2);
}

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.product { text-align: left; }
.product-img {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-2);
  margin-bottom: 1rem;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.product:hover .product-img img { transform: scale(1.04); }
.product h4 { margin-bottom: .25rem; font-family: var(--serif); font-size: 1.1rem; }
.product .meta {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 .35rem;
}
.product .price {
  font-size: .92rem;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

/* ===== Editorial split ===== */
.editorial {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 520px;
}
.editorial-img {
  background-size: cover;
  background-position: center;
}
.editorial-content {
  background: var(--accent);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial-content .eyebrow { color: rgba(255,255,255,.7); }
.editorial-content h2 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.editorial-content h2 em { color: #f3d6b5; }
.editorial-content p {
  max-width: 440px;
  margin: 0 0 2rem;
  color: rgba(255,255,255,.9);
  font-size: 1.02rem;
}
.editorial-content .btn-dark {
  color: #fff;
  border-color: #fff;
}
.editorial-content .btn-dark:hover {
  background: #fff;
  color: var(--accent);
}

/* ===== Craft tiles ===== */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.craft-card {
  text-align: left;
}
.craft-card img {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  margin-bottom: 1.25rem;
}
.craft-card h3 { margin-bottom: .5rem; }
.craft-card p {
  color: var(--ink-2);
  font-size: .95rem;
  margin: 0;
}

/* ===== Journal ===== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.journal-card img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  margin-bottom: 1.25rem;
}
.journal-card .tag {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .5rem;
  font-weight: 500;
}
.journal-card h3 {
  margin-bottom: .5rem;
}
.journal-card h3 a { transition: color .2s var(--ease); }
.journal-card h3 a:hover { color: var(--accent); }
.journal-card p {
  color: var(--ink-2);
  font-size: .92rem;
  margin: 0;
}

/* ===== Newsletter ===== */
.newsletter {
  background-size: cover;
  background-position: center;
  padding: clamp(3rem, 8vw, 7rem) var(--pad);
  position: relative;
  text-align: center;
  color: #fff;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,26,23,.4), rgba(31,26,23,.65));
}
.newsletter-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.newsletter p {
  color: rgba(255,255,255,.9);
  margin: 0 0 2rem;
  font-size: 1rem;
}
.newsletter-form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1 1 280px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .9rem;
  outline: none;
  transition: border .2s var(--ease), background .2s var(--ease);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.7); }
.newsletter-form input:focus {
  border-color: #fff;
  background: rgba(255,255,255,.15);
}
.nf-msg {
  flex: 0 0 100%;
  margin-top: 1rem;
  font-size: .85rem;
  color: #f3d6b5;
}

/* ===== Trust bar ===== */
.trust-bar {
  background: var(--bg-2);
  padding: 2rem var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-2);
}
.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}
.trust-item strong {
  display: block;
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: .15rem;
}
.trust-item span {
  font-size: .8rem;
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #d8cfc4;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 1.5rem;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .92rem;
  max-width: 320px;
  margin: 0 0 1.5rem;
  color: #b3a99e;
}
.socials {
  display: flex;
  gap: .75rem;
}
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
  color: #d8cfc4;
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.site-footer ul li {
  margin-bottom: .65rem;
  font-size: .9rem;
}
.site-footer ul li a {
  color: #b3a99e;
  transition: color .2s var(--ease);
}
.site-footer ul li a:hover { color: #fff; }
.site-footer ul.contact li { color: #b3a99e; }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: #8a7e74;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom ul {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom ul a:hover { color: #fff; }

/* ===== Responsive ===== */
/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Mobile nav drop-down */
@media (max-width: 960px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid, .journal-grid { grid-template-columns: 1fr; }
  .story-grid, .editorial { grid-template-columns: 1fr; }
  .story-images { height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .primary-nav.is-open { max-height: 400px; }
  .primary-nav ul { flex-direction: column; padding: 1rem var(--pad); gap: 0; }
  .primary-nav ul li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav ul li:last-child { border: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; }
  .header-inner { grid-template-columns: auto 1fr auto; position: relative; }
  .header-actions .icon-btn[aria-label="Wishlist"] { display: none; }
  .hero-nav { display: none; }
  .section-head.with-link { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 560px) {
  .cat-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trust-bar { grid-template-columns: 1fr; }
  .hero-content { margin-left: 0; }
  .brand-mark { font-size: 1.6rem; }
  .brand-tag { font-size: .55rem; }
}
