/* ============================================================
   Miracle Charms Holding Limited
   Shrine-paper theme / temple votive charm counter motif
   All fills are solid hex. No rgba, no opacity decimals,
   no gradients on text, no translucent color functions.
   ============================================================ */

:root {
  --shrine-paper: #F4EFE2;
  --seal-ink: #33231F;
  --seal-cinnabar: #8E3A32;
  --incense-umbra: #40322A;
  --tray-lacquer: #E5D9C4;
  --straw-braid: #D9C9A4;
  --brass-fitting: #9C7A3C;
  --tassel-wine: #7E2F38;
  --leaf-paper: #F3E4DE;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #F4EFE2;
  color: #33231F;
  line-height: 1.68;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
  color: #33231F;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: #8E3A32;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrapline {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION: PLAQUE-RAIL HEADER
   slim deep incense-umbra beam, plain text links, cord ticks,
   seal-cinnabar rule along bottom edge
   ============================================================ */
.plaquerail {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #40322A;
  border-bottom: 3px solid #8E3A32;
}

.plaquerail-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.plaquerail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F4EFE2;
  font-weight: 700;
}

.plaquerail-sealmark {
  width: 14px;
  height: 14px;
  background-color: #8E3A32;
  border: 1px solid #D9C9A4;
  display: inline-block;
  flex: none;
}

.plaquerail-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plaquerail-links li {
  display: flex;
  align-items: center;
}

.plaquerail-cordtick {
  width: 9px;
  height: 3px;
  background-color: #D9C9A4;
  display: inline-block;
  margin-right: 9px;
}

.plaquerail-link {
  color: #F4EFE2;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  display: inline-block;
}

.plaquerail-link:hover {
  color: #D9C9A4;
  text-decoration: underline;
}

.plaquerail-link.is-current {
  color: #D9C9A4;
  text-decoration: underline;
}

.plaquerail-toggle {
  display: none;
  background-color: #8E3A32;
  color: #F4EFE2;
  border: 1px solid #D9C9A4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  cursor: pointer;
}

.plaquerail-toggle:hover {
  background-color: #7E2F38;
}

@media (max-width: 860px) {
  .plaquerail-inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .plaquerail-toggle {
    display: inline-block;
  }
  .plaquerail-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid #D9C9A4;
  }
  .plaquerail-links.is-open {
    display: flex;
  }
  .plaquerail-links li {
    border-bottom: 1px solid #5a4a3f;
  }
  .plaquerail-link {
    display: block;
    width: 100%;
    padding: 13px 12px;
  }
}

/* ============================================================
   HERO: CHARM COUNTER HERO  (stacked scene)
   ============================================================ */
.charmcounter {
  padding: 64px 0 0 0;
  background-color: #F4EFE2;
}

.charmcounter-headline {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.charmcounter-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E3A32;
  font-weight: 700;
  margin-bottom: 14px;
}

.charmcounter-title {
  font-size: 3rem;
  max-width: 900px;
  margin-bottom: 0.28em;
}

.charmcounter-display {
  display: block;
  font-size: 4.6rem;
  color: #8E3A32;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin-top: 0.08em;
}

.charmcounter-lead {
  max-width: 760px;
  font-size: 1.1rem;
  margin-top: 18px;
}

.charmcounter-inline-cta {
  color: #8E3A32;
  font-weight: 700;
  border-bottom: 2px solid #9C7A3C;
  padding-bottom: 1px;
}

.charmcounter-inline-cta:hover {
  text-decoration: none;
  border-bottom-color: #8E3A32;
}

/* full-width counter band */
.charmband {
  margin-top: 46px;
  background-color: #40322A;
  border-top: 3px solid #8E3A32;
  border-bottom: 3px solid #8E3A32;
  padding: 54px 0 0 0;
}

.charmband-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* two hanging brush-calligraphy plaques at different heights */
.charm-plaques {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding-left: 18px;
  margin-bottom: 26px;
  min-height: 118px;
}

.charm-plaque {
  position: relative;
  background-color: #E5D9C4;
  border: 2px solid #D9C9A4;
  color: #33231F;
  padding: 10px 18px 12px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.charm-plaque-a {
  margin-top: 0;
}

.charm-plaque-b {
  margin-top: 34px;
}

.charm-plaque::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 3px;
  height: 30px;
  background-color: #D9C9A4;
  margin-left: -1px;
}

/* the three trays */
.charm-trays {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding-bottom: 30px;
}

.charm-tray {
  background-color: #E5D9C4;
  border: 2px solid #D9C9A4;
  border-bottom: 6px solid #8E3A32;
  padding: 16px 16px 20px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  min-height: 118px;
}

.charm-tray-left {
  flex: 1 1 34%;
}

.charm-tray-center {
  flex: 1 1 40%;
}

.charm-tray-right {
  flex: 0 1 20%;
  position: relative;
}

/* blank wooden tablets with tiny engraving squares */
.charm-tablet {
  width: 26px;
  background-color: #F4EFE2;
  border: 1px solid #40322A;
  border-radius: 2px 2px 4px 4px;
  position: relative;
  flex: none;
}

.charm-tablet.t1 { height: 84px; }
.charm-tablet.t2 { height: 62px; }
.charm-tablet.t3 { height: 92px; }
.charm-tablet.t4 { height: 50px; }
.charm-tablet.t5 { height: 74px; }
.charm-tablet.t6 { height: 58px; }

.charm-engrave {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: #8E3A32;
  left: 50%;
  margin-left: -3px;
  top: 24%;
}

.charm-engrave.is-low {
  top: 58%;
}

/* tassels hanging from two center tablets (TASSEL-WINE, exclusive) */
.charm-tassel {
  position: absolute;
  bottom: -34px;
  left: 50%;
  margin-left: -3px;
  width: 6px;
  height: 30px;
  background-color: #7E2F38;
}

.charm-tassel::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: -4px;
  width: 14px;
  height: 10px;
  background-color: #7E2F38;
  border-radius: 0 0 6px 6px;
}

/* small brass incense burner */
.charm-burner {
  width: 46px;
  height: 30px;
  background-color: #9C7A3C;
  border-radius: 6px 6px 4px 4px;
  position: relative;
  border: 2px solid #D9C9A4;
  flex: none;
}

.charm-stick {
  position: absolute;
  bottom: 26px;
  width: 2px;
  height: 34px;
  background-color: #8E3A32;
}

.charm-stick.s1 { left: 33%; }
.charm-stick.s2 { left: 49%; }
.charm-stick.s3 { left: 65%; }

.charm-smoke {
  position: absolute;
  width: 2px;
  background-color: #D9C9A4;
}
.charm-smoke.m1 { left: 33%; bottom: 62px; height: 22px; }
.charm-smoke.m2 { left: 49%; bottom: 70px; height: 28px; }
.charm-smoke.m3 { left: 65%; bottom: 60px; height: 18px; }

/* primary CTA: full-width functional bar along band bottom */
.charmband-cta {
  display: block;
  width: 100%;
  background-color: #8E3A32;
  color: #F4EFE2;
  text-align: left;
  padding: 18px 24px;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-top: 3px solid #7E2F38;
}

.charmband-cta:hover {
  background-color: #7E2F38;
  text-decoration: none;
}

.charmband-cta-arrow {
  float: right;
  font-weight: 700;
}

@media (max-width: 780px) {
  .charmcounter-title { font-size: 2.1rem; }
  .charmcounter-display { font-size: 3rem; }
  .charm-plaques { flex-direction: column; gap: 34px; min-height: 0; }
  .charm-plaque-b { margin-top: 0; }
  .charm-trays { flex-direction: column; align-items: stretch; }
  .charm-tray-right { position: static; }
  .charm-tray { min-height: 96px; }
}

/* ============================================================
   GENERIC SECTION BLOCKS
   ============================================================ */
.section {
  padding: 66px 0;
}

.section-tray {
  background-color: #E5D9C4;
}

.section-paper {
  background-color: #F4EFE2;
}

.section-lead {
  max-width: 780px;
  font-size: 1.06rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E3A32;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ============================================================
   TABLET RUN SERVICE ROWS (.tabletrow)
   six tablets at different heights / slight tilts
   ============================================================ */
.tabletrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
}

.tablet {
  flex: 1 1 30%;
  min-width: 250px;
  background-color: #E5D9C4;
  border: 2px solid #D9C9A4;
  border-top: 5px solid #40322A;
  padding: 26px 22px 26px 22px;
  position: relative;
}

.tablet-1 { transform: translateY(0px) rotate(-0.5deg); }
.tablet-2 { transform: translateY(26px) rotate(0.7deg); }
.tablet-3 { transform: translateY(6px) rotate(-0.4deg); }
.tablet-4 { transform: translateY(34px) rotate(0.5deg); }
.tablet-5 { transform: translateY(12px) rotate(-0.6deg); }
.tablet-6 { transform: translateY(20px) rotate(0.4deg); }

.tablet-mark {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8E3A32;
  border-bottom: 2px solid #9C7A3C;
  margin-bottom: 12px;
}

.tablet h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.tablet p {
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.tablet-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #8E3A32;
}

/* only two tablets carry tiny decorations of DIFFERENT kinds */
.tablet-decor-tassel {
  position: absolute;
  top: -2px;
  right: 22px;
  width: 6px;
  height: 34px;
  background-color: #7E2F38;
}

.tablet-decor-tassel::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: -4px;
  width: 14px;
  height: 9px;
  background-color: #7E2F38;
  border-radius: 0 0 6px 6px;
}

.tablet-decor-corner {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 16px;
  height: 16px;
  background-color: #9C7A3C;
  border: 2px solid #D9C9A4;
}

@media (max-width: 980px) {
  .tablet-1, .tablet-2, .tablet-3,
  .tablet-4, .tablet-5, .tablet-6 {
    transform: translateY(0);
  }
}

/* ============================================================
   PROSE / FEATURE BLOCKS
   ============================================================ */
.proseblock {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.proseblock-main {
  flex: 1 1 60%;
  min-width: 300px;
}

.proseblock-aside {
  flex: 1 1 30%;
  min-width: 260px;
  background-color: #E5D9C4;
  border: 2px solid #D9C9A4;
  border-left: 6px solid #8E3A32;
  padding: 26px 24px;
}

.proseblock-aside h3 {
  font-size: 1.12rem;
}

.asidelist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.asidelist li {
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid #D9C9A4;
  position: relative;
  font-size: 0.96rem;
}

.asidelist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  background-color: #8E3A32;
}

.asidelist li:last-child {
  border-bottom: none;
}

/* ============================================================
   ACCENT STRIP: burner strip (editorial prose only, no counters)
   ============================================================ */
.burnerstrip {
  background-color: #40322A;
  padding: 34px 0;
}

.burnerstrip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.burnerstrip-burner {
  position: relative;
  width: 54px;
  height: 34px;
  background-color: #9C7A3C;
  border: 2px solid #D9C9A4;
  border-radius: 6px 6px 4px 4px;
  flex: none;
}

.burnerstrip-stick {
  position: absolute;
  bottom: 30px;
  width: 2px;
  height: 30px;
  background-color: #8E3A32;
}
.burnerstrip-stick.s1 { left: 30%; }
.burnerstrip-stick.s2 { left: 48%; }
.burnerstrip-stick.s3 { left: 66%; }

.burnerstrip-smoke {
  position: absolute;
  width: 2px;
  background-color: #D9C9A4;
}
.burnerstrip-smoke.m1 { left: 30%; bottom: 60px; height: 18px; }
.burnerstrip-smoke.m2 { left: 48%; bottom: 66px; height: 24px; }
.burnerstrip-smoke.m3 { left: 66%; bottom: 58px; height: 16px; }

.burnerstrip-text {
  color: #F4EFE2;
  font-size: 1rem;
  margin: 0;
}

/* ============================================================
   VOTIVE STAND FOOTER (.votivefoot)
   ============================================================ */
.votivefoot {
  background-color: #40322A;
  color: #F4EFE2;
}

.votivefoot-court {
  max-width: 1160px;
  margin: 0 auto;
  padding: 58px 24px 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: flex-start;
}

.votivefoot-stand {
  flex: 1 1 32%;
  min-width: 250px;
}

.votivefoot-platform {
  width: 120px;
  height: 10px;
  background-color: #9C7A3C;
  border: 2px solid #D9C9A4;
  margin-top: 40px;
}

.votivefoot-posts {
  display: flex;
  gap: 62px;
  padding-left: 10px;
}

.votivefoot-post {
  width: 6px;
  height: 34px;
  background-color: #9C7A3C;
}

.votivefoot-hangtablet {
  position: relative;
  width: 26px;
  height: 46px;
  background-color: #F4EFE2;
  border: 1px solid #D9C9A4;
  margin: -46px auto 10px auto;
}

.votivefoot-hangtablet::after {
  content: "";
  position: absolute;
  bottom: -26px;
  left: 50%;
  margin-left: -3px;
  width: 6px;
  height: 24px;
  background-color: #7E2F38;
}

.votivefoot-brand {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 10px;
}

.votivefoot-blurb {
  font-size: 0.94rem;
  color: #E5D9C4;
  margin: 0;
}

.votivefoot-links {
  flex: 1 1 50%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.votivefoot-col {
  flex: 1 1 40%;
  min-width: 190px;
}

.votivefoot-colhead {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #D9C9A4;
  margin-bottom: 14px;
  font-weight: 700;
}

.votivefoot-sealsquare {
  width: 11px;
  height: 11px;
  background-color: #8E3A32;
  border: 1px solid #D9C9A4;
  display: inline-block;
  flex: none;
}

.votivefoot-linklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.votivefoot-linklist li {
  margin-bottom: 9px;
}

.votivefoot-linklist a {
  color: #F4EFE2;
  font-size: 0.96rem;
}

.votivefoot-linklist a:hover {
  color: #D9C9A4;
  text-decoration: underline;
}

.votivefoot-plaintext {
  color: #E5D9C4;
  font-size: 0.94rem;
  margin: 0 0 9px 0;
}

.votivefoot-strip {
  background-color: #8E3A32;
  border-top: 3px solid #7E2F38;
}

.votivefoot-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  color: #F4EFE2;
  font-size: 0.9rem;
}

.votivefoot-glyph {
  width: 12px;
  height: 12px;
  background-color: #F4EFE2;
  border: 1px solid #D9C9A4;
  display: inline-block;
  margin-right: 7px;
}

/* ============================================================
   SCROLL REVEAL (default visible without JS)
   ============================================================ */
.reveal {
  transition: transform 700ms ease, filter 700ms ease;
}

.reveal.is-hidden {
  transform: translateY(28px);
  filter: saturate(0.4);
}

.reveal.is-shown {
  transform: translateY(0);
  filter: saturate(1);
}

/* noscript fallback: visible even if JS is off */
.no-js-note {
  display: none;
}

/* ============================================================
   ACCORDION (used on contact / services)
   ============================================================ */
.accordion {
  border-top: 2px solid #D9C9A4;
  margin-top: 26px;
}

.accordion-item {
  border-bottom: 2px solid #D9C9A4;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background-color: #E5D9C4;
  color: #33231F;
  border: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  font-weight: 700;
  padding: 18px 22px;
  cursor: pointer;
  position: relative;
}

.accordion-trigger:hover {
  background-color: #D9C9A4;
}

.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 22px;
  color: #8E3A32;
  font-size: 1.3rem;
}

.accordion-trigger.is-open::after {
  content: "-";
}

.accordion-panel {
  background-color: #F4EFE2;
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, padding 320ms ease;
}

.accordion-panel.is-open {
  padding: 18px 22px 22px 22px;
  max-height: 480px;
}

.accordion-panel p {
  margin: 0;
  font-size: 0.98rem;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steprun {
  margin-top: 30px;
}

.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 2px solid #D9C9A4;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex: none;
  width: 46px;
  height: 46px;
  background-color: #8E3A32;
  color: #F4EFE2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid #D9C9A4;
}

.step-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.98rem;
  margin: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contactgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 30px;
}

.contactform-wrap {
  flex: 1 1 56%;
  min-width: 300px;
}

.contactinfo {
  flex: 1 1 34%;
  min-width: 270px;
  background-color: #E5D9C4;
  border: 2px solid #D9C9A4;
  border-top: 6px solid #8E3A32;
  padding: 28px 26px;
}

.contactinfo h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contactinfo p {
  font-size: 0.96rem;
}

.fieldrow {
  margin-bottom: 18px;
}

.fieldrow label {
  display: block;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8E3A32;
  font-weight: 700;
  margin-bottom: 6px;
}

.fieldrow input,
.fieldrow textarea {
  width: 100%;
  background-color: #F4EFE2;
  border: 2px solid #40322A;
  color: #33231F;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  padding: 11px 13px;
}

.fieldrow textarea {
  min-height: 150px;
  resize: vertical;
}

.fieldrow input:focus,
.fieldrow textarea:focus {
  border-color: #8E3A32;
  outline: 2px solid #9C7A3C;
}

.formsubmit {
  background-color: #8E3A32;
  color: #F4EFE2;
  border: 2px solid #7E2F38;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  cursor: pointer;
}

.formsubmit:hover {
  background-color: #7E2F38;
}

.formnote {
  font-size: 0.88rem;
  color: #33231F;
  margin-top: 14px;
}

.formstatus {
  font-size: 0.94rem;
  font-weight: 700;
  color: #8E3A32;
  margin-top: 12px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faqlist {
  margin-top: 24px;
}

/* ============================================================
   SMALL UTILITIES
   ============================================================ */
.markline {
  border-bottom: 2px solid #9C7A3C;
  display: inline-block;
}

.center { text-align: center; }

.sectionhead {
  max-width: 800px;
  margin-bottom: 8px;
}

.sectionhead h2 {
  font-size: 2rem;
}

@media (max-width: 780px) {
  .section { padding: 48px 0; }
  .sectionhead h2 { font-size: 1.6rem; }
  .charmcounter-title { font-size: 1.8rem; }
}
