/* ─────────────────────────────────────────────────────────────────
   Indsu Home — custom styles
   Tailwind handles the bulk; this owns the bespoke pieces:
   animations, decorative ornaments, marquee, scrollbars, form polish.
   ───────────────────────────────────────────────────────────────── */

/* ──────────── Animations ──────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spin-slow-rev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes float-anim {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.marquee-track  { animation: marquee 50s linear infinite; }
.spin-slow      { animation: spin-slow 60s linear infinite; }
.spin-slow-rev  { animation: spin-slow-rev 60s linear infinite; }
.float-anim     { animation: float-anim 4s ease-in-out infinite; }

/* ──────────── Soft chromatic background wash ──────────── */
.grain-bg {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(139, 111, 71, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200, 168, 120, 0.06) 0%, transparent 50%);
}

/* ──────────── Scrollbar styling ──────────── */
.hide-scrollbar { scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ──────────── Reusable section eyebrow ──────────── */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: #8B6F47;
}

/* ──────────── Nav links ──────────── */
.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #3E2723;
  transition: color 300ms;
}
.nav-link:hover,
.nav-link.active { color: #8B6F47; }

.nav-link-mobile {
  display: block;
  text-align: left;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #3E2723;
  border-bottom: 1px solid rgba(200, 168, 120, 0.2);
}
.nav-link-mobile.active { color: #8B6F47; }

/* ──────────── Form inputs ──────────── */
.form-input {
  width: 100%;
  background: #FAF7F2;
  border: 1px solid rgba(200, 168, 120, 0.4);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #3E2723;
  transition: border-color 300ms;
}
.form-input::placeholder { color: rgba(62, 39, 35, 0.4); }
.form-input:focus { outline: none; border-color: #8B6F47; }

/* ──────────── Testimonial buttons ──────────── */
.testimonial-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid #8B6F47;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3E2723;
  background: transparent;
  cursor: pointer;
  transition: all 300ms;
}
.testimonial-btn:hover {
  background: #3E2723;
  color: #FAF7F2;
  border-color: #3E2723;
}

/* ──────────── Lightbox controls ──────────── */
.lightbox-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(250, 247, 242, 0.1);
  color: #FAF7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 300ms;
  z-index: 10;
}
.lightbox-btn:hover { background: rgba(250, 247, 242, 0.2); }

/* ──────────── Social icons (footer) ──────────── */
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FAF7F2;
  transition: all 300ms;
}
.social-icon:hover {
  background: #C8A878;
  border-color: #C8A878;
  color: #3E2723;
}

/* ──────────── Logo ──────────── */
.logo-mark { display: inline-flex; align-items: flex-end; user-select: none; }

/* ──────────── Decorative ornament: Mandala ────────────
   8-petal sun-disc rendered via CSS mask so `--color` recolors it. */
.ornament-mandala {
  display: inline-block;
  width: var(--size, 80px);
  height: var(--size, 80px);
  background-color: var(--color, currentColor);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='0.8'><circle cx='50' cy='50' r='48'/><circle cx='50' cy='50' r='38' opacity='0.7'/><circle cx='50' cy='50' r='22' opacity='0.7'/><circle cx='50' cy='50' r='4' fill='black' stroke='none'/><line x1='98' y1='50' x2='88' y2='50'/><line x1='2' y1='50' x2='12' y2='50'/><line x1='50' y1='2' x2='50' y2='12'/><line x1='50' y1='88' x2='50' y2='98'/><line x1='83.9' y1='16.1' x2='76.9' y2='23.1'/><line x1='16.1' y1='16.1' x2='23.1' y2='23.1'/><line x1='83.9' y1='83.9' x2='76.9' y2='76.9'/><line x1='16.1' y1='83.9' x2='23.1' y2='76.9'/><circle cx='71' cy='29' r='2' fill='black' stroke='none'/><circle cx='29' cy='29' r='2' fill='black' stroke='none'/><circle cx='71' cy='71' r='2' fill='black' stroke='none'/><circle cx='29' cy='71' r='2' fill='black' stroke='none'/><circle cx='80' cy='50' r='2' fill='black' stroke='none'/><circle cx='20' cy='50' r='2' fill='black' stroke='none'/><circle cx='50' cy='80' r='2' fill='black' stroke='none'/><circle cx='50' cy='20' r='2' fill='black' stroke='none'/><circle cx='63' cy='50' r='1.5' fill='black' stroke='none'/><circle cx='37' cy='50' r='1.5' fill='black' stroke='none'/><circle cx='50' cy='63' r='1.5' fill='black' stroke='none'/><circle cx='50' cy='37' r='1.5' fill='black' stroke='none'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='0.8'><circle cx='50' cy='50' r='48'/><circle cx='50' cy='50' r='38' opacity='0.7'/><circle cx='50' cy='50' r='22' opacity='0.7'/><circle cx='50' cy='50' r='4' fill='black' stroke='none'/><line x1='98' y1='50' x2='88' y2='50'/><line x1='2' y1='50' x2='12' y2='50'/><line x1='50' y1='2' x2='50' y2='12'/><line x1='50' y1='88' x2='50' y2='98'/><line x1='83.9' y1='16.1' x2='76.9' y2='23.1'/><line x1='16.1' y1='16.1' x2='23.1' y2='23.1'/><line x1='83.9' y1='83.9' x2='76.9' y2='76.9'/><line x1='16.1' y1='83.9' x2='23.1' y2='76.9'/><circle cx='71' cy='29' r='2' fill='black' stroke='none'/><circle cx='29' cy='29' r='2' fill='black' stroke='none'/><circle cx='71' cy='71' r='2' fill='black' stroke='none'/><circle cx='29' cy='71' r='2' fill='black' stroke='none'/><circle cx='80' cy='50' r='2' fill='black' stroke='none'/><circle cx='20' cy='50' r='2' fill='black' stroke='none'/><circle cx='50' cy='80' r='2' fill='black' stroke='none'/><circle cx='50' cy='20' r='2' fill='black' stroke='none'/><circle cx='63' cy='50' r='1.5' fill='black' stroke='none'/><circle cx='37' cy='50' r='1.5' fill='black' stroke='none'/><circle cx='50' cy='63' r='1.5' fill='black' stroke='none'/><circle cx='50' cy='37' r='1.5' fill='black' stroke='none'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* ──────────── Decorative ornament: Divider ────────────
   Two horizontal rules (::before, ::after) with a fleuron span between.
   The fleuron is a real <span class="ornament-divider-mark"> injected by JS. */
.ornament-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--color, currentColor);
}
.ornament-divider::before,
.ornament-divider::after {
  content: "";
  height: 1px;
  width: 4rem;
  background: currentColor;
  opacity: 0.4;
  flex: 0 0 auto;
}
@media (min-width: 768px) {
  .ornament-divider::before,
  .ornament-divider::after { width: 6rem; }
}
.ornament-divider-mark {
  width: 34px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='black'><circle cx='17' cy='7' r='3.5'/><circle cx='6' cy='7' r='1.5' opacity='0.7'/><circle cx='28' cy='7' r='1.5' opacity='0.7'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='black'><circle cx='17' cy='7' r='3.5'/><circle cx='6' cy='7' r='1.5' opacity='0.7'/><circle cx='28' cy='7' r='1.5' opacity='0.7'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

/* ──────────── Lightbox + toast: shown vs hidden ──────────── */
#lightbox.is-open { display: flex; }
#toast.is-open    { display: flex; }

/* ──────────── Page transitions ──────────── */
[data-page] { animation: fade-in 400ms ease-out; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────── Reduced-motion respect ──────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .spin-slow, .spin-slow-rev, .float-anim {
    animation: none !important;
  }
  [data-page] { animation: none; }
}
