/* =========================================================
   SMALL TOWN MAHJ — HOMEPAGE TABLETOP HERO
   A compact arrangement of physical pieces on the cobalt mat.
   Loaded after the existing home styles so this owns hero composition only.
   ========================================================= */

.tabletop-hero--arrangement {
  position: relative;
  min-height: auto;
  padding-top: clamp(2rem, 4vw, 3.2rem) !important;
  padding-bottom: clamp(4rem, 7vw, 6.4rem) !important;
  overflow: clip;
}

.hero-arrangement {
  position: relative;
  display: grid;
  width: 100%;
  max-width: none;
  min-height: clamp(560px, 72vw, 760px);
  place-items: center;
  margin: 0;
  padding-inline: clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
}

.hero-statement-tile {
  position: relative;
  z-index: 5;
  width: min(560px, 58vw);
  max-width: calc(100% - 8rem);
  margin-top: clamp(.75rem, 2vw, 1.5rem);
  border: 1.5px solid rgba(18,77,152,.72);
  border-radius: 18px 14px 20px 15px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.88), transparent 34%),
    linear-gradient(180deg, #fffdf7 0%, #f8f0e4 100%);
  box-shadow:
    0 7px 0 #ccbca4,
    0 11px 0 rgba(6,42,103,.55),
    0 25px 36px rgba(0,14,44,.26),
    inset 0 0 0 5px rgba(120,163,208,.08);
  color: #082f67;
  padding: clamp(2.6rem, 5vw, 4.7rem) clamp(2rem, 4.5vw, 4.2rem) clamp(2.4rem, 4.5vw, 4rem);
  box-sizing: border-box;
  transform: rotate(-.35deg);
}

.hero-statement-tile::before {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(18,77,152,.26);
  border-radius: 12px 9px 14px 10px;
  content: '';
  pointer-events: none;
}

.hero-statement-tile__copy {
  position: relative;
  z-index: 2;
}

.hero-statement-tile .eyebrow {
  max-width: 30rem;
  margin: 0 0 1.3rem;
  color: #174b8f;
  font-size: clamp(.68rem, 1vw, .82rem);
  line-height: 1.55;
}

.hero-statement-tile h1 {
  margin: 0;
  color: #072f68;
  font-size: clamp(4.1rem, 7vw, 7.1rem);
  line-height: .86;
  letter-spacing: -.035em;
}

.hero-statement-tile h1 span { display: block; }
.hero-statement-tile h1 span + span { margin-top: .2em; }
.hero-statement-tile h1 em { color: #1254a1; font-weight: inherit; }

.hero-statement-tile__intro {
  max-width: 29rem;
  margin: 1.65rem 0 0;
  color: #4c6380;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.hero-statement-tile__corner {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  opacity: .7;
}

.hero-statement-tile__corner::before,
.hero-statement-tile__corner::after {
  position: absolute;
  background: #174b8f;
  content: '';
}

.hero-statement-tile__corner::before { width: 26px; height: 2px; }
.hero-statement-tile__corner::after { width: 2px; height: 26px; }
.hero-statement-tile__corner--one { top: 25px; left: 25px; }
.hero-statement-tile__corner--two { right: 25px; bottom: 25px; transform: rotate(180deg); }

.hero-booking-tile {
  position: absolute;
  z-index: 7;
  right: 4.5%;
  bottom: 10%;
  display: inline-flex;
  min-width: 196px;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1.5px solid #174b8f;
  border-radius: 10px 9px 12px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,249,238,.08)),
    #fff9ee;
  box-shadow:
    0 6px 0 #c8b89e,
    0 10px 0 rgba(6,42,103,.52),
    0 17px 24px rgba(0,14,44,.23),
    inset 0 0 0 3px rgba(120,163,208,.1);
  color: #103b74;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .14em;
  padding: 0 1.35rem;
  box-sizing: border-box;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(2deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-booking-tile i {
  color: #e9a32d;
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1;
}

.hero-booking-tile:hover,
.hero-booking-tile:focus-visible {
  transform: translateY(-2px) rotate(1deg);
}

.hero-arrangement__tile {
  position: absolute;
  z-index: 3;
  display: grid;
  width: clamp(58px, 7vw, 82px);
  aspect-ratio: .73;
  place-items: center;
  border: 1.5px solid rgba(18,77,152,.78);
  border-radius: 7px 6px 9px 6px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.92), transparent 32%),
    #fffaf0;
  box-shadow:
    0 5px 0 #c7b79e,
    0 11px 17px rgba(0,12,40,.25),
    inset 0 0 0 3px rgba(120,163,208,.09);
}

.hero-arrangement__tile--east {
  top: 16%;
  left: 3.5%;
  color: #174b8f;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  transform: rotate(-10deg);
}

.hero-arrangement__tile--flower {
  top: 7%;
  right: 7%;
  color: #e26358;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  transform: rotate(8deg);
}

.hero-arrangement__tile--dots {
  bottom: 18%;
  left: 7%;
  grid-template-columns: repeat(2, 11px);
  gap: 5px;
  transform: rotate(7deg);
}

.hero-arrangement__tile--dots i {
  display: block;
  width: 11px;
  aspect-ratio: 1;
  border: 1px solid #174b8f;
  border-radius: 50%;
  background: #e26358;
}

.hero-arrangement__tile--dots i:nth-child(2n) { background: #e9a32d; }
.hero-arrangement__tile--dots i:last-child { grid-column: 1 / -1; justify-self: center; background: #6f9bc7; }

.hero-arrangement__tile--bamboo {
  right: 5%;
  bottom: 28%;
  grid-template-columns: repeat(3, 5px);
  gap: 5px;
  transform: rotate(-8deg);
}

.hero-arrangement__tile--bamboo i {
  display: block;
  width: 5px;
  height: 30px;
  border-radius: 999px;
  background: #4e7b45;
  box-shadow: inset 0 -7px #174b8f;
}

.hero-arrangement__promise {
  position: absolute;
  z-index: 2;
  left: 4%;
  bottom: 6%;
  margin: 0;
  color: rgba(255,250,240,.6);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

@media (max-width: 980px) {
  .tabletop-hero--arrangement {
    padding-top: 1.5rem !important;
    padding-bottom: 4.25rem !important;
  }

  .hero-arrangement {
    min-height: 610px;
    padding-inline: 1rem;
  }

  .hero-statement-tile {
    width: min(520px, calc(100% - 7rem));
    max-width: 100%;
  }

  .hero-booking-tile {
    right: 2%;
    bottom: 9%;
  }
}

@media (max-width: 680px) {
  .tabletop-hero--arrangement {
    padding: .75rem 0 3.2rem !important;
  }

  .hero-arrangement {
    width: 100% !important;
    max-width: none !important;
    min-height: 560px;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero-statement-tile {
    width: min(100%, 430px) !important;
    max-width: calc(100% - 32px) !important;
    margin: 0 auto !important;
    border-radius: 14px 10px 16px 11px;
    padding: 2.05rem 1.1rem 1.85rem;
    box-sizing: border-box;
    transform: none;
  }

  .hero-statement-tile::before { inset: 9px; }

  .hero-statement-tile .eyebrow {
    width: auto;
    max-width: 100%;
    margin-bottom: 1rem;
    padding-left: 0;
    font-size: .62rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hero-statement-tile h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 11.8vw, 3.75rem);
    line-height: .88;
    overflow-wrap: normal;
  }

  .hero-statement-tile h1 span + span { margin-top: .14em; }

  .hero-statement-tile__intro {
    max-width: 100%;
    margin-top: 1.2rem;
    font-size: .92rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .hero-statement-tile__corner { width: 25px; height: 25px; }
  .hero-statement-tile__corner::before { width: 20px; }
  .hero-statement-tile__corner::after { height: 20px; }
  .hero-statement-tile__corner--one { top: 17px; left: 17px; }
  .hero-statement-tile__corner--two { right: 17px; bottom: 17px; }

  .hero-arrangement__tile { width: 46px; }
  .hero-arrangement__tile--east { top: 9%; left: 4px; }
  .hero-arrangement__tile--flower { top: 8%; right: 4px; }
  .hero-arrangement__tile--dots { left: 5px; bottom: 18%; }
  .hero-arrangement__tile--bamboo { right: 5px; bottom: 23%; }

  .hero-booking-tile {
    right: 50%;
    bottom: 2px;
    min-width: 178px;
    min-height: 56px;
    padding-inline: 1.1rem;
    transform: translateX(50%);
  }

  .hero-booking-tile:hover,
  .hero-booking-tile:focus-visible {
    transform: translate(50%, -2px);
  }

  .hero-arrangement__promise { display: none; }
}

@media (max-width: 390px) {
  .hero-arrangement { min-height: 545px; }
  .hero-statement-tile {
    max-width: calc(100% - 24px) !important;
    padding-inline: .95rem;
  }
  .hero-statement-tile h1 { font-size: clamp(2.65rem, 11.6vw, 3.35rem); }
  .hero-arrangement__tile { width: 43px; }
}
