/* ==========================================================================
   Tarar Mela Shilpi Shongho - public site styles
   Layout utilities come from tailwind.min.css (the same build the old site used).
   Everything colour-related lives here and reads the --c-* variables, which are
   generated from Admin > Colours & Theme (see theme_css() in includes/helpers.php).
   ========================================================================== */

/* Fallback values (the admin panel overrides these in an inline <style>) */
:root {
  --c-primary: #78350f;
  --c-primary-rgb: 120, 53, 15;
  --c-on-primary: #ffffff;
  --c-accent: #c79b44;
  --c-accent-rgb: 199, 155, 68;
  --c-bg: #f5f1e5;
  --c-card: #ffffff;
  --c-text: #000000;
  --c-heading: #111827;
  --c-footer: #a56727;
  --c-footer-dark: #281a0f;
  --c-footer-text: #ffffff;
  --c-hero-text: #000000;
  --c-hero-hl: #ffffff;
  --c-hero-hl2: #dddddd;
}

@font-face {
  font-family: "MyFont";
  src: url("../fonts/LiShamimNoor.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body,
html {
  background: var(--c-bg);
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: "Tiro Bangla", serif;
  color: var(--c-text);
}
* {
  font-weight: 400;
  font-style: normal;
}
img {
  max-width: 100%;
}
.tiro-bangla-regular {
  font-family: "MyFont", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sr-only-tm {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- colours */
.tm-heading { color: var(--c-heading); }
.tm-muted { color: var(--c-text); opacity: 0.7; }
.tm-card { background-color: var(--c-card); }

/* ------------------------------------------------------------- navigation */
.tm-nav { background: var(--c-bg); }
.tm-link { color: var(--c-primary); }
.tm-link:hover { background-color: var(--c-primary); color: var(--c-on-primary); }
.tm-btn-outline {
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.tm-btn-outline:hover { background-color: var(--c-primary); color: var(--c-on-primary); }
.tm-burger { color: var(--c-primary); }
.tm-burger:hover { background: rgba(var(--c-primary-rgb), 0.1); }
.tm-burger:focus { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.tm-mobile-menu {
  background: var(--c-bg);
  border-top: 1px solid rgba(var(--c-primary-rgb), 0.2);
}
.tm-mlink { color: var(--c-primary); }
.tm-mbtn { background: var(--c-primary); color: var(--c-on-primary); }
.tm-mbtn:hover { filter: brightness(0.9); }

/* ----------------------------------------------------------- custom cursor */
.tm-cursor-ring,
.tm-cursor-dot {
  display: none;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-radius: 9999px;
}
.tm-cursor-ring {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--c-primary);
  background: rgba(var(--c-primary-rgb), 0.2);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s;
}
.tm-cursor-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--c-primary);
}
.tm-cursor-ring.active { width: 50px; height: 50px; }
.tm-cursor-dot.active { opacity: 0; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .tm-cursor-ring,
  .tm-cursor-dot { display: block; }
}

/* ------------------------------------------------------------ hero heading */
.tm-hero-h1 { color: var(--c-hero-text); }
.tm-hero-line2 {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(to right, var(--c-hero-hl), var(--c-hero-hl2), var(--c-hero-hl));
}
.tm-hero-line3 { color: var(--c-hero-text); }
.tm-zoom-in { animation: tmZoomIn 0.5s ease-out both; }
@keyframes tmZoomIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-zoom-in { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- section titles */
.animated-title {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  color: var(--c-heading);
}
.animated-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  height: 4px;
  width: 0;
  background-color: var(--c-accent);
  transform: translateX(-50%);
  animation: underlineFlow 2.5s ease-in-out infinite;
}
@keyframes underlineFlow {
  0% { width: 0; left: 50%; transform: translateX(-50%); }
  25% { width: 50%; left: 50%; transform: translateX(0); }
  50% { width: 50%; left: 0; transform: translateX(0); }
  75% { width: 50%; left: 0; }
  100% { width: 0; left: 50%; transform: translateX(50%); }
}

/* ------------------------------------------------------------- about image */
.zoom-image { cursor: zoom-in; }
.tm-frame-border { border-color: var(--c-card); }

/* ---------------------------------------------------------- artist slider */
.tm-artists-wrap {
  /* starts at the page container's left edge and bleeds off to the right edge of the screen */
  margin-left: max(1rem, calc((100% - 80rem) / 2));
  overflow: hidden;
  padding: 1.25rem 0;
  user-select: none;
  touch-action: pan-y;
}
.tm-artists-track {
  display: flex;
  will-change: transform;
  cursor: grab;
}
.tm-artists-track.dragging { cursor: grabbing; }
.tm-artists-track.animating { transition: transform 0.5s ease-out; }
.tm-artist-slide { flex: 0 0 auto; }
.tm-artist-card { cursor: pointer; }
.tm-artist-photo {
  display: block;
  margin: 0 auto;
  height: 100px;
  width: 100px;
  object-fit: cover;
  border: 1px solid #000;
  border-radius: 9999px;
  -webkit-user-drag: none;
}
@media (min-width: 1024px) {
  .tm-artist-photo { height: 160px; width: 160px; }
}

/* ----------------------------------------------------------- gallery slider */
.slider-item {
  flex-shrink: 0;
  height: 400px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease-out;
  margin-right: 16px;
  padding: 10px;
  background-color: #fff;
}
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-out;
  align-items: center;
}
.slider-viewport {
  overflow: hidden;
  width: 100%;
}
.slider-item {
  width: 80vw;
  max-width: 600px;
  height: auto;
}
.slider-item:not(.active-slide) {
  opacity: 0.7;
  transform: scale(0.9);
}
.active-slide {
  opacity: 1;
  transform: scale(1);
}
.custom-nav-btn {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #555;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  color: #555;
  background-color: transparent;
  outline: none;
}
.custom-nav-btn:hover { background-color: rgba(0, 0, 0, 0.08); }
.custom-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
@media (min-width: 768px) {
  .slider-wrapper { height: 500px; }
  .slider-item {
    width: calc((100% - (var(--main-slide-width) + 2 * var(--gap))) / 2);
    max-width: none;
    height: auto;
    margin-right: var(--gap);
  }
  .slider-item.active-slide {
    width: var(--main-slide-width);
    height: auto;
  }
  .slider-viewport { padding-left: 0; padding-right: 0; margin: 0; }
}

/* ------------------------------------------------------------ testimonials */
.testimonial-card {
  position: relative;
  overflow: hidden;
  z-index: 10;
  transition: all 0.3s ease-in-out;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.quote-icon {
  position: absolute;
  top: 10px;
  left: 0.5rem;
  line-height: 1;
  font-size: 8rem;
  user-select: none;
  z-index: 0;
  color: rgba(var(--c-accent-rgb), 0.35);
}
.quote-text {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  padding-top: 40px;
}
.author-line { line-height: 1.25; }

/* ------------------------------------------------------------------ events */
.tm-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .tm-events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tm-events-grid { grid-template-columns: repeat(3, 1fr); } }
.tm-event {
  background: var(--c-card);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.tm-event img { width: 100%; height: 14rem; object-fit: cover; cursor: zoom-in; }
.tm-event-body { padding: 1.25rem 1.5rem 1.5rem; }
.tm-event-date {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-on-primary);
  border-radius: 9999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.tm-event h3 { font-size: 1.25rem; color: var(--c-heading); margin-bottom: 0.35rem; }
.tm-event p { font-size: 0.95rem; line-height: 1.6; }
.tm-event-meta { opacity: 0.75; font-size: 0.9rem; }

/* ----------------------------------------------------------------- contact */
.tm-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) { .tm-contact-grid.has-form { grid-template-columns: 5fr 7fr; } }
.tm-contact-list { display: grid; gap: 1rem; }
.tm-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--c-card);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  color: var(--c-text);
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s;
}
a.tm-contact-card:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.tm-contact-icon {
  flex: 0 0 auto;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 9999px;
  background: var(--c-primary);
  color: var(--c-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-contact-icon .tm-icon { width: 1.15rem; height: 1.15rem; }
.tm-contact-label { font-size: 0.8rem; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.04em; }
.tm-contact-value { font-size: 1.05rem; word-break: break-word; }
.tm-contact-note { font-size: 0.85rem; opacity: 0.7; }

.tm-form {
  background: var(--c-card);
  border-radius: 0.9rem;
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.tm-form h3 { font-size: 1.4rem; color: var(--c-heading); margin-bottom: 1rem; }
.tm-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .tm-form-row.two { grid-template-columns: 1fr 1fr; } }
.tm-field { display: block; margin-bottom: 1rem; }
.tm-field > span { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; opacity: 0.8; }
.tm-field input,
.tm-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  color: #111;
  font: inherit;
}
.tm-field input:focus,
.tm-field textarea:focus {
  outline: 2px solid rgba(var(--c-primary-rgb), 0.45);
  border-color: var(--c-primary);
}
.tm-submit {
  background: var(--c-primary);
  color: var(--c-on-primary);
  border: 0;
  border-radius: 0.6rem;
  padding: 0.8rem 1.6rem;
  font: inherit;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.tm-submit:hover { filter: brightness(0.92); transform: translateY(-1px); }
.tm-submit[disabled] { opacity: 0.6; cursor: wait; }
.tm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tm-alert { border-radius: 0.5rem; padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 0.95rem; }
.tm-alert.ok { background: #e7f6ea; color: #14532d; border: 1px solid #b7e1c1; }
.tm-alert.err { background: #fdeaea; color: #7f1d1d; border: 1px solid #f3bcbc; }
.tm-map { margin-top: 2rem; border-radius: 0.9rem; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); background: #ddd; }
.tm-map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ------------------------------------------------------------------ footer */
.tm-footer { background: var(--c-footer); color: var(--c-footer-text); }
.tm-footer-text { color: var(--c-footer-text); }
.tm-footer h4 { border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: var(--c-footer-text); }
.tm-footer-link { color: var(--c-footer-text); transition: color 0.5s ease-in-out, opacity 0.5s; }
.tm-footer-link:hover { color: var(--c-footer-dark); }
.tm-footer-bar {
  background: var(--c-footer-dark);
  color: var(--c-footer-text);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.tm-footer-bar span { opacity: 0.7; }
.tm-social {
  background: var(--c-footer-dark);
  color: var(--c-footer-text);
  opacity: 0.95;
}
.tm-social:hover { background: var(--c-footer-text); color: var(--c-footer-dark); }
.tm-social .tm-icon { width: 1rem; height: 1rem; }
.tm-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ----------------------------------------------------------------- popups */
.tm-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tm-modal.open { display: flex; }
.tm-modal-box {
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s;
}
.tm-modal.show .tm-modal-box { transform: scale(1); opacity: 1; }

.tm-artist-box {
  position: relative;
  background: var(--c-card);
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.tm-modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  border-radius: 9999px;
  color: #9ca3af;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 0;
}
.tm-modal-x:hover { background: rgba(0, 0, 0, 0.05); }
.tm-modal-x svg { width: 1.25rem; height: 1.25rem; }
.tm-pop-name { font-size: 1.875rem; text-align: center; color: var(--c-heading); font-weight: 800; }
.tm-pop-role {
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin: 0.4rem 0 0.75rem;
  color: var(--c-primary);
}
.tm-pop-sep { width: 4rem; height: 4px; border-radius: 9999px; background: var(--c-accent); margin: 0 auto 1.5rem; }
.tm-pop-desc { text-align: center; line-height: 1.7; padding: 0 0.5rem; margin-bottom: 1.5rem; white-space: pre-line; color: var(--c-text); }
.tm-pop-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background: var(--c-primary);
  color: var(--c-on-primary);
  border: 0;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  letter-spacing: 0.025em;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: filter 0.2s, transform 0.2s;
}
.tm-pop-btn:hover { filter: brightness(0.9); transform: translateY(-2px); }

.tm-img-box { position: relative; max-width: 92vw; max-height: 92vh; }
.tm-img-box img { display: block; max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 0.5rem; }
.tm-img-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  width: 2rem;
  height: 2rem;
  background: #fff;
  color: #000;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  line-height: 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.js-zoom { cursor: zoom-in; }

/* ------------------------------------------------- extra utilities
   (tiny additions the original Tailwind build did not contain) */
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 1rem; }
.max-w-6xl { max-width: 72rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 1rem; }
.pb-16 { padding-bottom: 4rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
@media (min-width: 1024px) {
  .lg\:mt-10 { margin-top: 2.5rem; }
}
