/* Appily Twenty — Atelier Charter company info (ac-) */

.page-ac-charter {
  --ac-wine: #2d1b2e;
  --ac-wine-soft: #4a3048;
  --ac-blush: #e8c4c4;
  --ac-blush-deep: #c99595;
  --ac-mint: #7eb8a4;
  --ac-mint-dark: #5a9688;
  --ac-cream: #faf6f1;
  --ac-paper: #fffefb;
  --ac-wood: #c9b8a4;
  --ac-ink: #1a1418;
  --ac-muted: #6b5f66;
  --ac-line: rgba(26, 20, 24, 0.1);
  --ac-shadow: 0 20px 48px rgba(45, 27, 46, 0.09);
  --ac-serif: 'Instrument Serif', Georgia, serif;
  --ac-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ac-mono: 'Consolas', 'Courier New', monospace;
  background: var(--ac-cream);
  font-family: var(--ac-sans);
}

.page-ac-charter .page-main { padding-top: 0; }

/* ── Hero ── */
.ac-hero {
  position: relative;
  padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 4vw, 48px);
  background:
    radial-gradient(ellipse 65% 50% at 80% 20%, rgba(126, 184, 164, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 75%, rgba(232, 196, 196, 0.3), transparent 50%),
    linear-gradient(168deg, var(--ac-paper) 0%, var(--ac-cream) 100%);
  border-bottom: 1px solid var(--ac-line);
  overflow: hidden;
}

.ac-hero-arch {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(90%, 720px);
  height: 120px;
  margin-left: min(-45%, -360px);
  border: 2px solid rgba(126, 184, 164, 0.25);
  border-bottom: 0;
  border-radius: 360px 360px 0 0;
  pointer-events: none;
  opacity: 0.5;
}

.ac-hero-glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 48%, rgba(126, 184, 164, 0.06) 49%, rgba(126, 184, 164, 0.06) 51%, transparent 52%);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
}

.ac-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.ac-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ac-mint-dark);
}

.ac-hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--ac-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.06;
  color: var(--ac-ink);
  letter-spacing: -0.03em;
}

.ac-hero-copy h1 em {
  font-style: italic;
  color: var(--ac-wine);
}

.ac-lede {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ac-muted);
  max-width: 44ch;
}

.ac-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-stats li {
  text-align: center;
  min-width: 72px;
}

.ac-stats strong {
  display: block;
  font-family: var(--ac-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ac-wine);
  line-height: 1;
}

.ac-stats span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-muted);
}

/* Medallion */
.ac-medallion {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ac-medallion-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c44569, var(--ac-wine) 55%, #1a0f1c);
  box-shadow: 0 12px 32px rgba(45, 27, 46, 0.3);
}

.ac-medallion-bloom {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.ac-medallion-name {
  position: relative;
  z-index: 1;
  font-family: var(--ac-serif);
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
  max-width: 120px;
}

.ac-medallion-hsn {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-family: var(--ac-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Charter layout ── */
.ac-charter {
  padding: clamp(32px, 4vw, 48px) 0 clamp(56px, 7vw, 80px);
}

.ac-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

/* Trail nav */
.ac-trail {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px;
  background: var(--ac-paper);
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  box-shadow: var(--ac-shadow);
}

.ac-trail-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac-mint-dark);
  text-align: center;
}

.ac-trail-path {
  position: absolute;
  left: 28px;
  top: 48px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--ac-mint), var(--ac-blush-deep));
  opacity: 0.4;
  pointer-events: none;
}

.ac-stake {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--ac-muted);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.ac-stake:hover,
.ac-stake.is-active {
  background: rgba(126, 184, 164, 0.12);
  color: var(--ac-wine);
}

.ac-stake-post {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ac-wood);
  border: 2px solid var(--ac-blush-deep);
  flex-shrink: 0;
  z-index: 1;
}

.ac-stake.is-active .ac-stake-post {
  background: var(--ac-mint);
  border-color: var(--ac-mint-dark);
  box-shadow: 0 0 0 4px rgba(126, 184, 164, 0.25);
}

.ac-stake-num {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--ac-blush-deep);
  border-radius: 50%;
  flex-shrink: 0;
}

.ac-stake.is-active .ac-stake-num {
  background: var(--ac-wine);
}

.ac-stake-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Plaques */
.ac-plaques {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
}

.ac-plaque {
  background: var(--ac-paper);
  border: 1px solid var(--ac-line);
  border-radius: 4px 16px 16px 4px;
  padding: 28px 28px 32px;
  box-shadow: var(--ac-shadow);
  scroll-margin-top: 100px;
}

.ac-plaque-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--ac-blush-deep);
}

.ac-plaque-tag {
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-mint-dark);
  background: rgba(126, 184, 164, 0.15);
  border-radius: 999px;
}

.ac-plaque-head h2 {
  margin: 0;
  flex: 1;
  font-family: var(--ac-serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ac-ink);
}

.ac-plaque-ref {
  font-family: var(--ac-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ac-muted);
}

.ac-plaque-lede {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ac-muted);
}

.ac-plaque-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ac-tile {
  padding: 16px 18px;
  background: var(--ac-cream);
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  border-left: 3px solid var(--ac-mint);
}

.ac-tile-primary {
  grid-column: 1 / -1;
  border-left-color: var(--ac-wine);
  background: rgba(232, 196, 196, 0.15);
}

.ac-tile-wide {
  grid-column: 1 / -1;
}

.ac-tile-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-muted);
}

.ac-tile-value {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ac-ink);
  line-height: 1.45;
}

.ac-mono {
  font-family: var(--ac-mono);
  font-size: 0.85rem !important;
  letter-spacing: 0.04em;
}

/* Bloom bed grid */
.ac-bed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ac-bed {
  position: relative;
  padding: 16px 14px 14px;
  background: var(--ac-cream);
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.ac-bed:hover {
  transform: translateY(-3px);
}

.ac-bed-code {
  display: block;
  font-family: var(--ac-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ac-muted);
  margin-bottom: 4px;
}

.ac-bed-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ac-ink);
  line-height: 1.25;
}

.ac-bed-leaf {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 0 50%;
  opacity: 0.35;
}

.ac-tone-rose .ac-bed-leaf { background: #c44569; }
.ac-tone-peony .ac-bed-leaf { background: #d4a0a8; }
.ac-tone-lily .ac-bed-leaf { background: #e8c4c4; }
.ac-tone-tulip .ac-bed-leaf { background: #e85a7a; }
.ac-tone-orchid .ac-bed-leaf { background: #9b7bb8; }
.ac-tone-wild .ac-bed-leaf { background: #7eb8a4; }
.ac-tone-exotic .ac-bed-leaf { background: #4a3048; }

.ac-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ac-wine);
  background: rgba(232, 196, 196, 0.25);
  border-radius: 999px;
}

.ac-perks li span {
  font-size: 0.7rem;
  color: var(--ac-mint-dark);
}

/* Kiosk contact */
.ac-kiosk {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--ac-cream);
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  text-align: center;
}

.ac-kiosk-roof {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80%;
  height: 24px;
  margin-left: -40%;
  background: var(--ac-mint-dark);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  opacity: 0.35;
}

.ac-kiosk-rows {
  margin: 0 0 22px;
  padding: 0;
  text-align: left;
}

.ac-kiosk-rows div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--ac-line);
}

.ac-kiosk-rows dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ac-muted);
}

.ac-kiosk-rows dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ac-ink);
}

.ac-kiosk-rows a {
  color: var(--ac-wine);
}

.ac-kiosk-rows a:hover {
  color: var(--ac-mint-dark);
}

/* Policy stepping stones */
.ac-stepping {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ac-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 18px 20px;
  background: var(--ac-cream);
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ac-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow);
  border-color: var(--ac-mint);
}

.ac-step-stone {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--ac-wine);
  border-radius: 50%;
  margin-bottom: 6px;
}

.ac-step strong {
  font-size: 0.92rem;
  color: var(--ac-ink);
}

.ac-step span:last-child {
  font-size: 0.78rem;
  color: var(--ac-muted);
}

/* Buttons */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.2s;
}

.ac-btn-primary {
  background: var(--ac-wine);
  color: #fff;
}

.ac-btn-primary:hover {
  background: var(--ac-wine-soft);
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .ac-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ac-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .ac-stats {
    justify-content: center;
  }

  .ac-medallion {
    margin: 0 auto;
  }

  .ac-layout {
    grid-template-columns: 1fr;
  }

  .ac-trail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .ac-trail-path {
    display: none;
  }

  .ac-stake-post {
    display: none;
  }

  .ac-stake {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
    padding: 10px;
  }

  .ac-plaque-grid {
    grid-template-columns: 1fr;
  }

  .ac-tile-primary,
  .ac-tile-wide {
    grid-column: auto;
  }

  .ac-stepping {
    grid-template-columns: 1fr;
  }

  .ac-kiosk-rows div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .ac-plaque {
    padding: 22px 18px 26px;
  }

  .ac-bed-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-bed,
  .ac-step {
    transition: none;
  }
}
