/* Sansar — reusable sections & product components */

.section { padding: clamp(80px, 10vw, 150px) 0; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(36px, 4vw, 60px); }
.section-head .eyebrow { margin-bottom: 18px; display: block; }
.bg-stone { background: var(--stone); }
.bg-cream2 { background: var(--cream-2); }
.bg-bordeaux { background: var(--bordeaux); color: var(--cream); }
.bg-ink { background: var(--ink); color: var(--cream); }

/* Hero */
.hero {
  position: relative; min-height: calc(100svh - 38px); margin-top: calc(var(--header-h) * -1);
  display: flex; align-items: flex-end; overflow: hidden; color: var(--cream); background: var(--bordeaux-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: hero-zoom 2.6s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 21, 23, .45) 0%, rgba(29, 21, 23, 0) 26%, rgba(29, 21, 23, .1) 55%, rgba(29, 21, 23, .78) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 7vh, 90px); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero h1 { font-size: clamp(58px, 10.5vw, 176px); line-height: .86; letter-spacing: -.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero h1 em { font-style: italic; color: #f1c9b4; }
.hero-side { max-width: 360px; opacity: 0; animation: fade-up 1.2s .6s var(--ease) forwards; }
.hero-side p { font-size: 16px; line-height: 1.6; margin-bottom: 26px; color: rgba(244, 238, 228, .9); }
.hero-side .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--sand); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; opacity: 0; animation: fade-up 1s .2s var(--ease) forwards; }
.hero .eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); width: 1px; height: 54px; background: rgba(244, 238, 228, .3); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--cream); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* Marquee words */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--cream); padding: 26px 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker span { font-family: var(--f-display); font-size: clamp(30px, 4vw, 56px); line-height: 1; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: ""; width: 26px; height: 36px; background: url(../img/brand/monogram-bordeaux.png) center / contain no-repeat; opacity: .8; }
.ticker span:nth-child(even) { font-style: italic; color: var(--velvet); }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; }
.cat-tile { position: relative; overflow: hidden; display: block; border-radius: var(--radius); background: var(--stone); color: var(--cream); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 21, 23, .62) 0%, rgba(29, 21, 23, 0) 45%); transition: opacity .6s; }
.cat-tile .cap { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.cat-tile h3 { font-size: clamp(28px, 2.6vw, 42px); line-height: .95; }
.cat-tile .cnt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.cat-tile .go { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid rgba(244, 238, 228, .6); display: grid; place-items: center; transition: all .5s var(--ease); }
.cat-tile .go svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.cat-tile:hover .go { background: var(--cream); color: var(--bordeaux); }
.cat-tile:hover .go svg { transform: rotate(-45deg); }
.cats .t1 { grid-column: span 5; aspect-ratio: 4/5.2; }
.cats .t2 { grid-column: span 4; aspect-ratio: 4/5.2; margin-top: 80px; }
.cats .t3 { grid-column: span 3; aspect-ratio: 3/4.4; }
.cats .t4 { grid-column: span 4; aspect-ratio: 4/4.3; }
.cats .t5 { grid-column: span 4; aspect-ratio: 4/4.3; margin-top: 70px; }
.cats .t6 { grid-column: span 4; aspect-ratio: 4/4.3; }

/* Product card */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 20px; }
.products.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--stone); border-radius: var(--radius); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.04); }
.card-tags { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card-fav {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 253, 249, .85); color: var(--bordeaux);
  opacity: 0; transform: translateY(-6px); transition: all .4s var(--ease);
}
.card-fav svg { width: 17px; height: 17px; }
.card-fav.on { opacity: 1; transform: none; }
.card-fav.on svg { fill: var(--velvet); stroke: var(--velvet); }
.card:hover .card-fav { opacity: 1; transform: none; }
.card-quick {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px;
  min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--cream); color: var(--bordeaux); border-radius: var(--radius);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  opacity: 0; transform: translateY(12px); transition: all .5s var(--ease);
}
.card-quick:hover { background: var(--bordeaux); color: var(--cream); }
.card:hover .card-quick { opacity: 1; transform: none; }
.card-body { padding-top: 16px; display: flex; justify-content: space-between; gap: 14px; }
.card-title { font-family: var(--f-display); font-size: 21px; line-height: 1.12; font-weight: 500; }
.card-sub { display: block; font-family: var(--f-sans); font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: .01em; }
.card .price { font-size: 14px; white-space: nowrap; padding-top: 3px; }
.card .price small { display: block; text-align: right; font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.card.out .card-media img { filter: grayscale(.4) opacity(.75); }
.card a.cover { position: absolute; inset: 0; z-index: 1; }

/* Horizontal product rail */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .3s; }
.rail-nav button:hover { background: var(--bordeaux); color: var(--cream); border-color: var(--bordeaux); }
.rail-nav svg { width: 18px; height: 18px; }
.rail-progress { margin-top: 30px; height: 1px; background: var(--line); position: relative; }
.rail-progress i { position: absolute; top: -1px; left: 0; height: 3px; background: var(--bordeaux); width: 25%; transition: left .2s; }

/* Split / editorial blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.split.wide-left { grid-template-columns: 1.25fr 1fr; }
.split-media { position: relative; }
.split-media .main { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.split-media .main img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float {
  position: absolute; width: 42%; aspect-ratio: 3/4; right: -8%; bottom: -10%;
  overflow: hidden; border: 10px solid var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
}
.split-media .float img { width: 100%; height: 100%; object-fit: cover; }
.split-text .eyebrow { display: block; margin-bottom: 22px; }
.split-text h2 { margin-bottom: 28px; }
.split-text p + p { margin-top: 16px; }
.split-text .btns { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.signature { font-family: var(--f-display); font-style: italic; font-size: 30px; color: var(--bordeaux); margin-top: 28px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 60px; }
.stat { padding: 30px 20px 0 0; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1; color: var(--bordeaux); }
.stat span { font-size: 13px; color: var(--muted); }

/* Full-bleed parallax banner */
.banner { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; color: var(--cream); }
.banner-bg { position: absolute; inset: -12% 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(29, 21, 23, .55), rgba(29, 21, 23, .15) 70%); }
.banner .container { position: relative; z-index: 1; }
.banner h2 { max-width: 760px; margin: 20px 0 30px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 40px 34px 44px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .num { font-family: var(--f-display); font-style: italic; font-size: 64px; line-height: 1; color: var(--velvet); }
.step h3 { font-size: 30px; margin: 20px 0 12px; }
.step p { color: var(--ink-2); font-size: 14.5px; }

/* Instagram grid */
.insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.insta a { position: relative; aspect-ratio: 1; overflow: hidden; display: block; }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.insta a::after { content: ""; position: absolute; inset: 0; background: rgba(84, 31, 47, .5); opacity: 0; transition: opacity .4s; }
.insta a svg { position: absolute; z-index: 1; left: 50%; top: 50%; width: 28px; height: 28px; color: #fff; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: all .4s var(--ease); }
.insta a:hover img { transform: scale(1.08); }
.insta a:hover::after { opacity: 1; }
.insta a:hover svg { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 38px 34px; border: 1px solid rgba(244, 238, 228, .18); border-radius: var(--radius); }
.quote .stars { color: var(--gold); letter-spacing: 4px; font-size: 14px; }
.quote p { font-family: var(--f-display); font-size: 25px; line-height: 1.25; margin: 18px 0 24px; }
.quote footer { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(50px, 7vw, 100px) 0 clamp(30px, 4vw, 50px); }
.page-hero .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.page-hero .crumbs a:hover { color: var(--bordeaux); }
.page-hero h1 { font-size: clamp(50px, 8vw, 128px); line-height: .9; letter-spacing: -.03em; }
.page-hero h1 em { font-style: italic; color: var(--velvet); }
.page-hero .lead { max-width: 620px; margin-top: 24px; }
.page-hero.image { position: relative; color: var(--cream); padding: 0; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; margin-top: calc(var(--header-h) * -1); background: var(--bordeaux-deep); }
.page-hero.image .bg { position: absolute; inset: -10% 0; }
.page-hero.image .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 21, 23, .8), rgba(29, 21, 23, .05) 55%, rgba(29, 21, 23, .4)); }
.page-hero.image > .container { position: relative; z-index: 1; padding-bottom: 56px; padding-top: 140px; }
.page-hero.image .crumbs, .page-hero.image .lead { color: rgba(244, 238, 228, .85); }
.page-hero.image h1 em { color: #f1c9b4; }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; width: 14px; height: 14px; flex: none; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc .acc-body { padding: 0 0 26px; color: var(--ink-2); font-size: 14.5px; }
.acc.faq summary { font-family: var(--f-display); font-size: clamp(21px, 2vw, 26px); letter-spacing: 0; text-transform: none; font-weight: 500; }

/* Rich text */
.rte p { margin-bottom: 14px; }
.rte ul { margin: 0 0 18px; }
.rte ul li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.rte ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.rte strong { font-weight: 500; color: var(--ink); }
.rte h2 { font-size: clamp(28px, 3vw, 40px); margin: 46px 0 16px; }
.rte h3 { font-size: 26px; margin: 30px 0 12px; }
.rte a { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 40px) / 3); }
  .cats .t1, .cats .t2 { grid-column: span 6; margin-top: 0; }
  .cats .t3 { grid-column: span 12; aspect-ratio: 16/9; }
  .cats .t4, .cats .t5, .cats .t6 { grid-column: span 4; margin-top: 0; }
  .insta { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .products, .products.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 34px 12px; }
  .rail { grid-auto-columns: 62%; gap: 12px; }
  .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); }
  .split-media .float { right: 4%; bottom: -8%; width: 40%; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cats .t4, .cats .t5, .cats .t6 { grid-column: span 12; aspect-ratio: 16/11; }
  .cats .t1, .cats .t2 { grid-column: span 12; aspect-ratio: 4/4.4; }
  .cats { gap: 10px; }
}
@media (max-width: 560px) {
  .card-title { font-size: 18px; }
  .card-body { flex-direction: column; gap: 6px; }
  .card .price small { text-align: left; }
  .card-quick { display: none; }
  .card-fav { opacity: 1; transform: none; width: 34px; height: 34px; }
  .rail { grid-auto-columns: 72%; }
  .hero h1 { font-size: clamp(54px, 17vw, 90px); }
  .insta { grid-template-columns: repeat(2, 1fr); }
}
