/*
 * Essential: Simple One-Page Studio (docs/design/templates-research.md, concept 23).
 * Designed at 375px first: one 720px column under a full-bleed hero, Plus Jakarta Sans only,
 * soft tiles, one green, prices large, and the sticky "Check your date" bar one thumb away.
 * No template script; the headline's rise is CSS under html.fx. Tokens only.
 */

.tpl-essential {
  --col: 720px;
  --pad: 20px;
  --r: 18px;
  --r-s: 12px;
  --sec: clamp(72px, 10vw, 112px);
  --tint: color-mix(in oklab, var(--accent) 9%, var(--bg));
  --kit-bg: color-mix(in oklab, var(--ink) 94%, transparent);
  --kit-fg: var(--bg);
  --kit-muted: color-mix(in oklab, var(--bg) 72%, transparent);
  --kit-font: var(--body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;

  & a {
    color: inherit;
    text-decoration: none;
  }
  & :is(h1, h2, h3, p, figure, blockquote, dl, dd, ul) {
    margin: 0;
  }
  & ul {
    list-style: none;
    padding: 0;
  }
  & svg {
    flex: none;
  }
  & :focus-visible {
    outline-color: var(--accent);
  }
}

.tpl-essential :is(section, [id]) {
  scroll-margin-top: 80px;
}
.tpl-essential .es-col {
  width: min(var(--col), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}
.tpl-essential .es-sec {
  padding-top: var(--sec);
}
.tpl-essential .es-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.tpl-essential .es-h2 {
  font: 700 clamp(1.75rem, 4.4vw, 2.25rem) / 1.12 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.tpl-essential .es-head {
  margin-bottom: 24px;
}
.tpl-essential .es-head__intro {
  margin-top: 8px;
  color: var(--muted);
  max-width: 54ch;
}
.tpl-essential .es-tile {
  background: var(--surface);
  border-radius: var(--r);
}

/* ---------- buttons: big, round, pressable ---------- */
.tpl-essential .es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition:
    transform 160ms var(--ease-out),
    background-color var(--d-hover) var(--ease-soft),
    box-shadow var(--d-hover) var(--ease-soft),
    color var(--d-hover);
  & svg {
    width: 18px;
    height: 18px;
    transition: transform var(--d-hover) var(--ease-out);
  }
  &:hover,
  &:focus-visible {
    background: color-mix(in oklab, var(--accent) 86%, var(--ink));
    box-shadow: 0 6px 18px -8px color-mix(in oklab, var(--accent) 70%, transparent);
    & svg:last-child {
      transform: translateX(2px);
    }
  }
  &:active {
    transform: scale(0.97);
  }
  &[aria-disabled='true'] {
    opacity: 0.45;
    pointer-events: none;
  }
}
.tpl-essential .es-btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.tpl-essential .es-btn--lg {
  min-height: 54px;
  padding: 0 24px;
  font-size: 16px;
}
.tpl-essential .es-btn--ghost {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
  &:hover,
  &:focus-visible {
    background: var(--surface);
    border-color: color-mix(in oklab, var(--line), var(--ink) 25%);
    box-shadow: none;
  }
}
.tpl-essential .es-btn--soft {
  background: var(--tint);
  border-color: transparent;
  color: var(--accent-text);
  &:hover,
  &:focus-visible {
    background: var(--accent);
    color: var(--accent-ink);
  }
}
.tpl-essential .es-btn--invert {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--accent);
  &:hover,
  &:focus-visible {
    background: color-mix(in oklab, var(--accent-ink) 88%, var(--accent));
    box-shadow: none;
  }
}
.tpl-essential .es-btn--onaccent {
  background: transparent;
  border-color: color-mix(in oklab, var(--accent-ink) 45%, transparent);
  color: var(--accent-ink);
  &:hover,
  &:focus-visible {
    background: color-mix(in oklab, var(--accent-ink) 12%, transparent);
    box-shadow: none;
  }
}
.tpl-essential .es-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  &:hover,
  &:focus-visible {
    color: var(--accent-text);
  }
  &:active {
    opacity: 0.7;
  }
}
.tpl-essential .es-link__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  & svg {
    width: 14px;
    height: 14px;
  }
}

/* ---------- header ---------- */
.tpl-essential .es-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.tpl-essential .es-top__in {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  min-height: 64px;
}
.tpl-essential .es-mark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  margin-right: auto;
  padding-block: 8px;
}
.tpl-essential .es-nav {
  display: flex;
  gap: 4px;
  & a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition:
      background-color var(--d-hover),
      color var(--d-hover);
    &:hover,
    &:focus-visible {
      background: var(--surface);
      color: var(--ink);
    }
  }
}

.tpl-essential .es-pagehead {
  padding-top: 48px;
}
.tpl-essential .es-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-weight: 500;
  &:hover,
  &:focus-visible {
    color: var(--ink);
  }
}
.tpl-essential .es-pagehead__t {
  font: 700 clamp(2.5rem, 9vw, 3.5rem) / 1.05 var(--display);
  letter-spacing: -0.04em;
}

/* ---------- hero: full-bleed photo, then a card that overlaps it ---------- */
.tpl-essential .es-hero__img {
  max-height: 78vh;
  width: 100%;
}
.tpl-essential .es-hero__card {
  position: relative;
  margin-top: -64px;
  padding: 28px 28px 8px;
  background: var(--bg);
  border-radius: var(--r) var(--r) 0 0;
}
.tpl-essential .es-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  & i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
  }
}
.tpl-essential .es-h1 {
  margin-top: 16px;
  font: 700 clamp(2.5rem, 7vw, 4rem) / 1.04 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow: clip;
  padding-bottom: 0.08em;
}
.tpl-essential .es-h1__in {
  display: block;
}
/* The one motion: the headline rises out of its mask, 0.8s, once, CSS only. */
html.fx .tpl-essential .es-h1__in {
  animation: es-rise 800ms var(--ease-out) 80ms both;
}
@keyframes es-rise {
  from {
    transform: translate3d(0, 105%, 0);
  }
}
.tpl-essential .es-hero__sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  max-width: 48ch;
}
.tpl-essential .es-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 24px;
}
.tpl-essential .es-chips {
  display: flex;
  gap: 8px;
  margin: 28px calc(-1 * var(--pad)) 0;
  padding: 0 var(--pad) 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--pad);
  &::-webkit-scrollbar {
    display: none;
  }
  & a {
    flex: none;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    transition:
      background-color var(--d-hover),
      border-color var(--d-hover);
    &:hover,
    &:focus-visible {
      background: var(--surface);
      border-color: color-mix(in oklab, var(--line), var(--ink) 20%);
    }
    &:active {
      transform: scale(0.97);
    }
  }
}

/* ---------- intro ---------- */
.tpl-essential .es-intro__s {
  font: 600 clamp(1.35rem, 3.4vw, 1.75rem) / 1.35 var(--display);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.tpl-essential .es-intro__b {
  margin-top: 14px;
  color: var(--muted);
}
.tpl-essential .es-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  & .es-tile {
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
  }
  & dd {
    font: 700 clamp(1.6rem, 5vw, 2rem) / 1.1 var(--display);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
  }
  & dt {
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.35;
  }
}

/* ---------- work cards ---------- */
.tpl-essential .es-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tpl-essential .es-card {
  display: grid;
  align-content: start;
}
.tpl-essential .es-card__img {
  border-radius: var(--r);
  & img {
    transition: transform 600ms var(--ease-out);
  }
  &:hover img {
    transform: scale(1.03);
  }
}
.tpl-essential .es-card__body {
  padding: 12px 4px 0;
}
.tpl-essential .es-card__t {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.tpl-essential .es-card__meta {
  font-size: 14px;
  color: var(--muted);
}
.tpl-essential .es-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.tpl-essential .es-chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

/* ---------- films: stacked posters ---------- */
.tpl-essential .es-films {
  display: grid;
  gap: 24px;
}
.tpl-essential .es-film {
  display: grid;
  gap: 2px;
  &:hover .es-film__play,
  &:focus-visible .es-film__play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--accent);
    color: var(--accent-ink);
  }
  &:active .es-film__play {
    transform: translate(-50%, -50%) scale(0.96);
  }
}
.tpl-essential .es-film__img {
  border-radius: var(--r);
  margin-bottom: 10px;
}
.tpl-essential .es-film__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  color: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--ink) 50%, transparent);
  transition:
    transform 200ms var(--ease-out),
    background-color var(--d-hover),
    color var(--d-hover);
  & svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
  }
}
.tpl-essential .es-film__dur {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tpl-essential .es-film__t {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.tpl-essential .es-film__s {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- gallery: three-column squares ---------- */
.tpl-essential .es-squares {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-radius: var(--r);
  overflow: hidden;
  & a.pm-media:hover img {
    opacity: 0.86;
  }
  & a.pm-media:focus-visible {
    outline-offset: -3px;
  }
}

/* ---------- packages: stacked cards, ৳ price first ---------- */
.tpl-essential .es-pk {
  display: grid;
  gap: 14px;
}
.tpl-essential .es-pk__card {
  display: grid;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  &.is-badge {
    border: 2px solid var(--accent);
    padding: 21px;
    box-shadow: 0 18px 40px -28px color-mix(in oklab, var(--accent) 80%, transparent);
  }
}
.tpl-essential .es-pk__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  & .es-eyebrow {
    margin-bottom: 2px;
    color: var(--muted);
    font-weight: 500;
  }
}
.tpl-essential .es-pk__t {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tpl-essential .es-pk__badge {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}
.tpl-essential .es-pk__price {
  margin-top: 14px;
  font: 800 clamp(2.25rem, 8vw, 2.75rem) / 1 var(--display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.tpl-essential .es-pk__cov {
  margin-top: 8px;
  font-weight: 600;
  font-size: 15px;
}
.tpl-essential .es-pk__team {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.tpl-essential .es-pk__list {
  display: grid;
  gap: 8px;
  margin: 18px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  & li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  & svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent-text);
    margin-top: 2px;
  }
}
.tpl-essential .es-pk__cta {
  width: 100%;
  justify-content: space-between;
}
.tpl-essential .es-pk__note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-s);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- testimonials: two ---------- */
.tpl-essential .es-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tpl-essential .es-q {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  & blockquote {
    font-size: 16px;
    line-height: 1.55;
    flex: 1;
  }
  & figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
  }
}
.tpl-essential .es-q__mark {
  font: 800 2.6rem/0.6 var(--display);
  color: var(--accent-text);
  height: 0.5em;
}
.tpl-essential .es-q__av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.tpl-essential .es-q__n {
  display: block;
  font-weight: 700;
}
.tpl-essential .es-q__e {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- about ---------- */
.tpl-essential .es-about__img {
  border-radius: var(--r);
  margin-bottom: 24px;
}
.tpl-essential .es-about__b {
  margin-top: 12px;
  color: var(--muted);
}
.tpl-essential .es-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  margin-top: 24px;
  & li {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}
.tpl-essential .es-team__ph {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
}
.tpl-essential .es-team__n {
  display: block;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.tpl-essential .es-team__r {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- booking: inline, on the accent ---------- */
.tpl-essential .es-book {
  padding: clamp(28px, 6vw, 48px);
  border-radius: calc(var(--r) + 6px);
  background: var(--accent);
  color: var(--accent-ink);
  & .es-acts {
    margin-top: 28px;
  }
}
.tpl-essential .es-book__h {
  font: 700 clamp(1.9rem, 5.4vw, 2.6rem) / 1.08 var(--display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.tpl-essential .es-book__b {
  margin-top: 12px;
  max-width: 52ch;
  opacity: 0.9;
}

/* ---------- contact rows: tap to call, WhatsApp, map ---------- */
.tpl-essential .es-rows {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  & li + li {
    border-top: 1px solid var(--line);
  }
}
.tpl-essential .es-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  transition: background-color var(--d-hover);
}
a.es-row:hover,
a.es-row:focus-visible {
  background: var(--surface);
}
a.es-row:active {
  background: color-mix(in oklab, var(--surface), var(--ink) 6%);
}
.tpl-essential .es-row:focus-visible {
  outline-offset: -3px;
}
.tpl-essential .es-row__ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent-text);
  flex: none;
  & svg {
    width: 20px;
    height: 20px;
  }
}
.tpl-essential .es-row__txt {
  display: grid;
  min-width: 0;
  flex: 1;
}
.tpl-essential .es-row__l {
  font-size: 13px;
  color: var(--muted);
}
.tpl-essential .es-row__v {
  font-weight: 600;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.tpl-essential .es-row__go {
  color: var(--muted);
  & svg {
    width: 18px;
    height: 18px;
  }
}

/* ---------- footer ---------- */
.tpl-essential .es-foot {
  margin-top: var(--sec);
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.tpl-essential .es-foot__name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.tpl-essential .es-foot__tag {
  color: var(--muted);
  font-size: 14px;
}
.tpl-essential .es-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  & a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    &:hover,
    &:focus-visible {
      color: var(--accent-text);
    }
  }
}
.tpl-essential .es-foot__small {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.tpl-essential .es-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  & i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
  }
}

/* ---------- the sticky bar: a floating dock, one thumb away ---------- */
@media (max-width: 767px) {
  .tpl-essential .es-bar {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 8px;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 16px 40px -18px color-mix(in oklab, var(--ink) 55%, transparent);
  }
  .tpl-essential .es-bar.is-away {
    transform: translate3d(0, calc(100% + 24px), 0);
  }
  .tpl-essential .pm-sticky-bar__cta {
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    &:active {
      transform: scale(0.98);
    }
  }
  .tpl-essential .pm-sticky-bar__wa {
    width: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--tint);
    border-color: transparent;
    color: var(--accent-text);
  }
  .tpl-essential .es-top .es-btn--sm,
  .tpl-essential .es-nav {
    display: none;
  }
  .tpl-essential .es-hero__img {
    aspect-ratio: 4 / 5 !important;
    max-height: 72vh;
  }
  .tpl-essential .es-hero__card {
    width: 100%;
    margin-top: -28px;
    padding: 24px var(--pad) 0;
  }
  .tpl-essential .es-acts .es-btn--lg {
    flex: 1 1 100%;
  }
  .tpl-essential .es-acts .es-btn--lg:first-child {
    justify-content: space-between;
  }
  .tpl-essential .es-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .tpl-essential .es-quotes {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-essential .es-team {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-essential .es-foot {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpl-essential .es-btn:active,
  .tpl-essential .es-chips a:active {
    transform: none;
  }
  .tpl-essential .es-card__img:hover img {
    transform: none;
  }
}

.sp.tpl-essential {
  --sp-r: 12px;
  --sp-r-lg: 18px;
}
