/* ==========================================================================
   Yashoda Arts – Frontend design system
   Loaded AFTER legacy style.css. All new components are prefixed .ya-
   ========================================================================== */

:root {
  /* palette – soft, warm, soothing */
  --ya-bg: #fbf8f3;
  --ya-surface: #ffffff;
  --ya-sand: #f3ece1;
  --ya-sand-2: #e9dfd0;
  --ya-ink: #2e2a27;
  --ya-muted: #7d7269;
  --ya-line: #e8dfd2;
  --ya-primary: #b07a63;       /* dusty clay */
  --ya-primary-dark: #8f5f4b;
  --ya-primary-soft: #f3e4dc;
  --ya-sage: #7c9a8b;
  --ya-sage-soft: #e5eee9;
  --ya-gold: #c9a66b;

  --ya-font-head: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --ya-font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --ya-radius: 18px;
  --ya-radius-sm: 12px;
  --ya-shadow-sm: 0 2px 10px rgba(70, 50, 35, .06);
  --ya-shadow: 0 14px 40px rgba(70, 50, 35, .10);
  --ya-ease: cubic-bezier(.22, .61, .36, 1);
  --ya-header-h: 76px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ya-bg);
  color: var(--ya-ink);
  font-family: var(--ya-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body a { color: inherit; }
::selection { background: var(--ya-primary-soft); color: var(--ya-ink); }

/* ---------- typography helpers ---------- */
.ya-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ya-primary); font-weight: 600;
}
.ya-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.ya-title {
  font-family: var(--ya-font-head); font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; color: var(--ya-ink);
  margin: .6rem 0 0;
}
.ya-lead { color: var(--ya-muted); max-width: 56ch; }
.ya-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.ya-section--sand { background: var(--ya-sand); }
.ya-section-head { margin-bottom: 2.6rem; }
.ya-section-head.is-center { text-align: center; }
.ya-section-head.is-center .ya-lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.ya-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em; text-decoration: none;
  transition: transform .35s var(--ya-ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
  cursor: pointer;
}
.ya-btn i { transition: transform .35s var(--ya-ease); font-size: .8em; }
.ya-btn:hover i { transform: translateX(4px); }
.ya-btn--primary { background: var(--ya-primary); color: #fff !important; box-shadow: 0 8px 22px rgba(176, 122, 99, .35); }
.ya-btn--primary:hover { background: var(--ya-primary-dark); transform: translateY(-2px); }
.ya-btn--ghost { background: transparent; color: var(--ya-ink) !important; border-color: var(--ya-sand-2); }
.ya-btn--ghost:hover { background: var(--ya-surface); border-color: var(--ya-primary); transform: translateY(-2px); }
.ya-btn--light { background: rgba(255,255,255,.92); color: var(--ya-ink) !important; }
.ya-btn--light:hover { background: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.ya-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(251, 248, 243, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.ya-header.is-scrolled { border-color: var(--ya-line); box-shadow: var(--ya-shadow-sm); background: rgba(251, 248, 243, .94); }
.ya-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--ya-header-h); }
.ya-logo img { height: 52px; width: auto; display: block; }
.ya-nav { display: none; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.ya-nav a {
  position: relative; display: block; padding: .5rem 1rem;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--ya-ink); text-decoration: none; transition: color .25s;
}
.ya-nav a::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 1px;
  background: var(--ya-primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ya-ease);
}
.ya-nav a:hover, .ya-nav a.is-active { color: var(--ya-primary); }
.ya-nav a:hover::after, .ya-nav a.is-active::after { transform: scaleX(1); }
.ya-actions { display: flex; align-items: center; gap: .35rem; }
.ya-icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  height: 44px; min-width: 44px; padding: 0 .8rem; justify-content: center;
  border-radius: 999px; color: var(--ya-ink); text-decoration: none; font-size: .85rem; font-weight: 500;
  background: transparent; border: 0; transition: background .25s, color .25s;
}
.ya-icon-btn:hover { background: var(--ya-sand); color: var(--ya-primary); }
.ya-icon-btn i { font-size: 1.05rem; }
.ya-icon-btn .ya-label { display: none; }
.ya-badge {
  position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--ya-primary); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 19px; text-align: center;
}
.ya-burger { display: inline-flex; }
@media (min-width: 992px) {
  .ya-nav { display: flex; }
  .ya-burger { display: none; }
  .ya-icon-btn .ya-label { display: inline; }
}
/* offcanvas */
.ya-offcanvas { background: var(--ya-bg); max-width: 88vw; }
.ya-offcanvas .offcanvas-header { border-bottom: 1px solid var(--ya-line); }
.ya-mnav { list-style: none; margin: 0; padding: 1rem 0; }
.ya-mnav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem .25rem; border-bottom: 1px solid var(--ya-line);
  font-family: var(--ya-font-head); font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--ya-ink);
}
.ya-mnav a:hover { color: var(--ya-primary); }

/* ==========================================================================
   Hero
   ========================================================================== */
.ya-hero { position: relative; overflow: hidden; background: var(--ya-sand); }
.ya-hero .carousel, .ya-hero .carousel-inner, .ya-hero .carousel-item { height: clamp(520px, 82vh, 780px); }
.ya-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 9s ease-out; }
.ya-hero .carousel-item.active .ya-hero__slide { transform: scale(1); }
.ya-hero__shade { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(38, 28, 22, .62) 0%, rgba(38, 28, 22, .28) 48%, rgba(38, 28, 22, 0) 78%); }
.ya-hero--empty { background: linear-gradient(135deg, var(--ya-primary-soft), var(--ya-sage-soft)); }
.ya-hero__content { position: absolute; inset: 0; display: flex; align-items: center; z-index: 3; pointer-events: none; }
.ya-hero__content .container { pointer-events: none; }
.ya-hero__content a { pointer-events: auto; }
.ya-hero__box { max-width: 620px; color: #fff; }
.ya-hero--empty .ya-hero__box { color: var(--ya-ink); }
.ya-hero__box .ya-eyebrow { color: #f2d9c9; }
.ya-hero--empty .ya-hero__box .ya-eyebrow { color: var(--ya-primary); }
.ya-hero__box h1 {
  font-family: var(--ya-font-head); font-weight: 600; font-size: clamp(2.5rem, 6.4vw, 4.8rem);
  line-height: 1.04; margin: 1rem 0 1.1rem; color: inherit;
}
.ya-hero__box p { font-size: 1.05rem; opacity: .9; max-width: 46ch; margin-bottom: 1.8rem; }
.ya-hero__btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.ya-hero .carousel-indicators { z-index: 4; margin-bottom: 1.6rem; }
.ya-hero .carousel-indicators [data-bs-target] { width: 34px; height: 3px; border: 0; border-radius: 2px; background: #fff; opacity: .5; }
.ya-hero .carousel-indicators .active { opacity: 1; }
.ya-hero .carousel-control-prev, .ya-hero .carousel-control-next { z-index: 4; width: 8%; }
@media (max-width: 767px) { .ya-hero .carousel-control-prev, .ya-hero .carousel-control-next { display: none; } }

/* ==========================================================================
   Story / split blocks
   ========================================================================== */
.ya-split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .ya-split { grid-template-columns: 5fr 6fr; }
  .ya-split--reverse { grid-template-columns: 6fr 5fr; }
  .ya-split--reverse .ya-split__media { order: 2; }
}
.ya-frame { position: relative; }
.ya-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--ya-primary);
  border-radius: var(--ya-radius); opacity: .45; z-index: 0;
}
.ya-frame img { position: relative; z-index: 1; width: 100%; height: auto; display: block; border-radius: var(--ya-radius); box-shadow: var(--ya-shadow); object-fit: cover; }
.ya-split--reverse .ya-frame::before { inset: 22px 22px -22px -22px; }
/* rich text coming from the admin editor */
.ya-rich { color: var(--ya-muted); }
.ya-rich h1, .ya-rich h2, .ya-rich h3, .ya-rich h4, .ya-rich h5, .ya-rich h6 {
  font-family: var(--ya-font-head); color: var(--ya-ink); font-weight: 600; line-height: 1.15; margin: 0 0 1rem;
}
.ya-rich h1, .ya-rich h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.ya-rich h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ya-rich p { margin-bottom: 1.1rem; }
.ya-rich a { color: var(--ya-primary); }
.ya-rich ul, .ya-rich ol { padding-left: 1.2rem; }
.ya-rich img { max-width: 100%; height: auto; border-radius: var(--ya-radius-sm); }

/* ==========================================================================
   Product cards
   ========================================================================== */
.ya-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .ya-grid { grid-template-columns: repeat(3, 1fr); gap: 1.8rem; } }
@media (min-width: 1200px) { .ya-grid { grid-template-columns: repeat(4, 1fr); } }
.ya-card {
  position: relative; background: var(--ya-surface); border-radius: var(--ya-radius); overflow: hidden;
  border: 1px solid var(--ya-line); box-shadow: var(--ya-shadow-sm);
  transition: transform .5s var(--ya-ease), box-shadow .5s var(--ya-ease);
}
.ya-card:hover { transform: translateY(-6px); box-shadow: var(--ya-shadow); }
.ya-card__media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ya-sand); }
.ya-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ya-ease); }
.ya-card:hover .ya-card__media img { transform: scale(1.07); }
.ya-card__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1rem 1rem;
  background: linear-gradient(to top, rgba(40, 28, 20, .55), transparent);
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ya-ease);
  display: flex; justify-content: center;
}
.ya-card:hover .ya-card__overlay, .ya-card:focus-within .ya-card__overlay { opacity: 1; transform: none; }
@media (hover: none) { .ya-card__overlay { display: none; } }
.ya-card__body { padding: 1.1rem 1.2rem 1.35rem; text-align: center; }
.ya-card__title {
  font-family: var(--ya-font-head); font-size: 1.28rem; font-weight: 600; line-height: 1.25; margin: 0;
}
.ya-card__title a { text-decoration: none; color: var(--ya-ink); }
.ya-card__title a:hover { color: var(--ya-primary); }
.ya-empty { text-align: center; color: var(--ya-muted); padding: 2.5rem 1rem; border: 1px dashed var(--ya-sand-2); border-radius: var(--ya-radius); }

/* spotlight */
.ya-spot { display: grid; grid-template-columns: 1fr; background: var(--ya-surface); border-radius: calc(var(--ya-radius) + 8px); overflow: hidden; box-shadow: var(--ya-shadow); border: 1px solid var(--ya-line); }
@media (min-width: 992px) { .ya-spot { grid-template-columns: 1fr 1fr; } }
.ya-spot__media { min-height: 340px; background: var(--ya-sand); }
.ya-spot__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ya-spot__body { padding: clamp(2rem, 5vw, 4.2rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ya-spot__body .ya-rich p { margin-bottom: 1.6rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.ya-quotes { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; scrollbar-width: thin; scrollbar-color: var(--ya-sand-2) transparent; }
.ya-quote {
  flex: 0 0 min(88%, 400px); scroll-snap-align: start; background: var(--ya-surface);
  border: 1px solid var(--ya-line); border-radius: var(--ya-radius); padding: 2rem 1.8rem; box-shadow: var(--ya-shadow-sm);
  position: relative;
}
.ya-quote::before { content: "\201C"; position: absolute; top: .4rem; right: 1.4rem; font-family: var(--ya-font-head); font-size: 5.5rem; line-height: 1; color: var(--ya-primary-soft); }
.ya-quote__text { color: var(--ya-muted); position: relative; }
.ya-quote__who { display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; }
.ya-quote__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ya-primary-soft); }
.ya-quote__who strong { font-family: var(--ya-font-head); font-size: 1.15rem; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ya-footer { background: #2b2420; color: #d9cfc4; padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.ya-footer a { text-decoration: none; color: #d9cfc4; transition: color .25s; }
.ya-footer a:hover { color: #f0cdb9; }
.ya-footer__logo img { height: 56px; width: auto; filter: brightness(0) invert(1) opacity(.92); }
.ya-footer h5 { font-family: var(--ya-font-head); font-size: 1.35rem; color: #fff; font-weight: 600; margin-bottom: 1.1rem; }
.ya-footer ul { list-style: none; padding: 0; margin: 0; }
.ya-footer li { margin-bottom: .6rem; }
.ya-footer__about { max-width: 38ch; color: #bfb3a6; }
.ya-contact-list li { display: flex; gap: .8rem; align-items: flex-start; color: #bfb3a6; }
.ya-contact-list i { color: var(--ya-gold); margin-top: .35rem; width: 1rem; text-align: center; }
.ya-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.ya-social a {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22); transition: background .3s, transform .3s, border-color .3s;
}
.ya-social a:hover { background: var(--ya-primary); border-color: var(--ya-primary); color: #fff; transform: translateY(-3px); }
.ya-footer__bottom { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; font-size: .86rem; color: #a99d90; }
.ya-footer__bottom a { color: #d9cfc4; }
.ya-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 1020; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--ya-primary); color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s; text-decoration: none; border: 0;
}
.ya-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ya-top:hover { background: var(--ya-primary-dark); }

/* ---------- focus + motion ---------- */
.ya-btn:focus-visible, .ya-icon-btn:focus-visible, .ya-nav a:focus-visible, .ya-top:focus-visible { outline: 2px solid var(--ya-primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ya-hero__slide { transform: none; }
}
