/* ==========================================================
   mara cara — one page site
   Light, raw theme. Section background colors come from the
   CMS and are set inline on each <section>.
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1c1a17;
  --ink-soft: #55524d;
  --paper: #f7f5f2;
  --line: rgba(28, 26, 23, 0.15);
  --radius: 14px;
}

html, body {
  height: 100%;
  overflow: hidden; /* scrolling happens inside .snap-container */
}

body {
  font-family: var(--font-global);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Snap scrolling ---------- */

.snap-container {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.section {
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
  overflow: hidden;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 2rem;
}

/* ---------- Side dots ---------- */

.dots {
  position: fixed;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 50;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(28, 26, 23, 0.25);
  transition: background 0.25s, transform 0.25s;
  position: relative;
}

.dot.active {
  background: var(--ink);
  transform: scale(1.35);
}

.dot-tip {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.dot:hover .dot-tip { opacity: 1; }

/* ---------- 1. Landing ---------- */

.section-landing { padding: 0; }

.landing-carousel {
  position: absolute;
  inset: 0;
}

.landing-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s ease;
}

.landing-carousel .carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.landing-carousel .carousel-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.autograph-overlay {
  position: absolute;
  left: clamp(0.75rem, 4vw, 3rem);
  top: clamp(0.75rem, 4vw, 3rem);
  width: clamp(110px, 22vw, 260px);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25));
}

.platform-bar {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 8vh, 4rem);
  transform: translateX(-50%);
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.5rem);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: rgba(247, 245, 242, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.platform-icon {
  display: inline-flex;
  color: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.platform-icon svg {
  width: clamp(22px, 5vw, 28px);
  height: clamp(22px, 5vw, 28px);
  fill: currentColor;
}

.platform-icon:hover { transform: scale(1.15); opacity: 0.8; }

/* ---------- 2. Events ---------- */

.events-widget {
  width: min(680px, 100%);
  flex: 0 1 auto;
  max-height: 60dvh;
  overflow-y: auto;
}

/* ---------- Card carousels (Music & Video) ---------- */

.card-carousel {
  position: relative;
  width: var(--fx-card-width, 90%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.25rem;
  width: 100%;
  padding: 0.5rem 0.25rem;
  scrollbar-width: none;
}

.card-track::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.car-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.car-btn:hover { background: #fff; }

/* Music card */

.music-card-img {
  width: clamp(120px, 30vw, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.music-card-body h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 0.9rem;
}

.music-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.music-card-links .platform-icon svg {
  width: 22px;
  height: 22px;
}

/* Video card */

.video-card { align-items: stretch; }

.video-card-text {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.video-card-text h3 { font-size: clamp(1.05rem, 3vw, 1.4rem); }

.video-card-text p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.video-card-embed {
  flex: 1 1 60%;
  min-width: 0;
}

.video-card-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
  display: block;
}

/* ---------- 5. Contact ---------- */

.contact-form {
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.botcheck {
  position: absolute;
  left: -9999px;
}

.submit-btn {
  font: inherit;
  font-weight: 600;
  padding: 0.8rem;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover { opacity: 0.85; }
.submit-btn:disabled { opacity: 0.5; cursor: wait; }

.form-status { min-height: 1.2em; font-size: 0.9rem; text-align: center; }
.form-status.ok { color: #1c7a3c; }
.form-status.err { color: #b3261e; }

/* ---------- 6. FAQ + footer ---------- */

.section-faq {
  justify-content: space-between;
  padding-bottom: 0;
}

.faq-inner {
  width: min(640px, 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.faq-list {
  overflow-y: auto;
  min-height: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--ink-soft);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer {
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .dots { right: 0.45rem; gap: 0.75rem; }
  .dot { width: 8px; height: 8px; }

  .card { flex-direction: column; text-align: center; }
  .music-card-links { justify-content: center; }
  .video-card-text { text-align: left; }

  .car-btn { display: none; } /* swipe instead */
  .card-carousel { gap: 0; }
}

/* ==========================================================
   Configurable effects — driven by data attributes on <body>
   set from the CMS (Appearance & effects).
   ========================================================== */

/* ---------- Landing transition: crossfade / ken burns ---------- */

[data-landing="fade"] .landing-carousel .carousel-track,
[data-landing="kenburns"] .landing-carousel .carousel-track {
  position: relative;
  transition: none;
}

[data-landing="fade"] .landing-carousel .carousel-slide,
[data-landing="kenburns"] .landing-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

[data-landing="fade"] .landing-carousel .carousel-slide.active,
[data-landing="kenburns"] .landing-carousel .carousel-slide.active {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  [data-landing="kenburns"] .landing-carousel .carousel-slide.active img {
    animation: kenburns 9s ease-out forwards;
  }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(var(--fx-zoom, 1.08)); }
}

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal="on"] .reveal {
    opacity: 0;
    transform: translateY(var(--fx-reveal-dist, 26px));
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  [data-reveal="on"] .section.in-view .reveal {
    opacity: 1;
    transform: none;
  }

  /* second element in a section arrives slightly after the title */
  [data-reveal="on"] .section.in-view .reveal:nth-child(2),
  [data-reveal="on"] .section.in-view .card-carousel.reveal,
  [data-reveal="on"] .section.in-view .contact-form.reveal,
  [data-reveal="on"] .section.in-view .faq-list.reveal,
  [data-reveal="on"] .section.in-view .events-widget.reveal {
    transition-delay: 0.15s;
  }
}

/* ---------- Card animation (Music & Video, shared setting) ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-cards="fade-up"] .card,
  [data-cards="stagger"] .card {
    opacity: 0;
    transform: translateY(var(--fx-reveal-dist, 26px));
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  [data-cards="fade-up"] .section.in-view .card,
  [data-cards="stagger"] .section.in-view .card {
    opacity: 1;
    transform: none;
  }

  [data-cards="stagger"] .section.in-view .card {
    transition-delay: calc(0.15s + var(--i, 0) * var(--fx-stagger, 120ms));
  }
}

/* ---------- Custom cursor: dot with trailing ring ---------- */

.cursor-dot, .cursor-ring {
  display: none;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.custom-cursor,
  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor summary {
    cursor: none;
  }

  body.custom-cursor input,
  body.custom-cursor textarea {
    cursor: text; /* keep the text caret for form fields */
  }

  body.custom-cursor .cursor-dot,
  body.custom-cursor .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 100;
  }

  body.custom-cursor .cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--ink);
    transform: translate(-50%, -50%);
  }

  body.custom-cursor .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--ink);
    opacity: 0.55;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, opacity 0.25s;
  }

  body.custom-cursor .cursor-ring.is-hover {
    width: 52px;
    height: 52px;
    opacity: 0.9;
  }
}


@media (prefers-reduced-motion: reduce) {
  .snap-container, .card-track { scroll-behavior: auto; }
  .landing-carousel .carousel-track { transition: none; }
}
