/* Delora Studio — landing page (hero + chapters). Tokens from app.css + theme.css. */

@font-face {
  font-family: "Italiana";
  src: url("/fonts/Italiana-Regular.ttf") format("truetype");
  font-display: swap;
}

/* ---------- hero ---------- */
/* A dark panel in both themes: the colours come from the brand, so they follow /admin/appearance. */
.hx { padding: 0 clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px); background: var(--bg); }
.hx-panel {
  --hx-bg: color-mix(in srgb, rgb(var(--fill-rgb)) 30%, #120e0a);
  --hx-sand: color-mix(in srgb, rgb(var(--accent-rgb)) 74%, #fff);
  --hx-text: #f7f1e8;
  --hx-pad: clamp(28px, 5vw, 76px);
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: 1fr auto; gap: 32px;
  min-height: clamp(580px, calc(100svh - var(--header-h) - 26px), 880px); padding: var(--hx-pad);
  border-radius: clamp(20px, 2.6vw, 36px); background: var(--hx-bg); color: var(--hx-text);
}

.hx-photo {
  position: absolute; z-index: -2; inset-block: 0; inset-inline-end: 0; width: 58%; margin: 0;
  -webkit-mask-image: linear-gradient(to right, #000 52%, transparent 96%); mask-image: linear-gradient(to right, #000 52%, transparent 96%);
}
.hx-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, var(--hx-bg)); }
.hx-photo img { width: 100%; height: 112%; margin-top: -6%; object-fit: cover; object-position: center 14%; filter: saturate(0.72) sepia(0.14); will-change: transform; }

.hx-word {
  position: absolute; z-index: -1; left: clamp(18px, 3vw, 48px); bottom: clamp(4px, 1vw, 16px); overflow: clip; direction: ltr; display: flex;
  font-family: "Italiana", serif; font-size: clamp(5.5rem, 15vw, 15rem); line-height: 1.02; color: var(--hx-sand); opacity: 0.88;
  user-select: none; pointer-events: none; white-space: nowrap;
}
.hx-word span { display: inline-block; }

.hx-copy { align-self: center; width: min(560px, 48%); }
.hx-tag { margin: 0 0 22px; font-family: "Italiana", serif; font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: 0.06em; color: var(--hx-sand); text-align: end; }
.hx-copy h1 { margin: 0 0 22px; font-size: clamp(2.9rem, 5.7vw, 5.4rem); line-height: 1.14; font-weight: 200; letter-spacing: -0.02em; color: inherit; }
.hx-copy h1 .ln { display: block; overflow: hidden; padding-block: 0.08em 0.24em; margin-bottom: -0.16em; }
.hx-copy h1 .ln > span { display: block; }
.hx-strong { font-weight: 600; color: var(--hx-sand); }
.hx-lead { margin: 0 0 32px; max-width: 42ch; color: rgb(247 241 232 / 0.78); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.9; }

.hx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hx-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 999px; background: var(--hx-sand); color: var(--hx-bg); font-weight: 700; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.hx-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.7); }
.hx-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--hx-text); font-weight: 600; border-bottom: 1px solid rgb(247 241 232 / 0.3); transition: border-color 0.25s; }
.hx-link:hover { border-color: var(--hx-sand); }
.hx-link .i { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.hx-link:hover .i { transform: translateX(-4px); }
.hx-panel :focus-visible { outline-color: var(--hx-sand); }

.hx-facts { list-style: none; display: flex; width: min(560px, 48%); margin: 0; padding: 22px 0 0; border-top: 1px solid rgb(247 241 232 / 0.18); }
.hx-facts li { flex: 1; display: grid; gap: 2px; padding-inline-end: 16px; }
.hx-facts li + li { padding-inline-start: 18px; border-inline-start: 1px solid rgb(247 241 232 / 0.18); }
.hx-facts b { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; color: var(--hx-sand); }
.hx-facts span { font-size: 0.82rem; color: rgb(247 241 232 / 0.72); }

/* Phone: the photo takes the top of the panel and the words sit below it, never on the face. */
@media (max-width: 860px) {
  .hx-panel { --hx-pad: 22px; min-height: 0; grid-template-rows: 268px auto auto; gap: 18px; padding-top: 0; }
  .hx-photo { inset: 0 0 auto; width: 100%; height: 380px; -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 96%); mask-image: linear-gradient(180deg, #000 52%, transparent 96%); }
  .hx-photo::after { display: none; }
  .hx-photo img { object-position: center 6%; }
  .hx-word { display: none; }
  .hx-copy { grid-row: 2; width: auto; }
  .hx-tag { margin-bottom: 6px; text-align: start; direction: rtl; }
  .hx-copy h1 { font-size: clamp(2.5rem, 11.5vw, 3.6rem); margin-bottom: 12px; }
  .hx-lead { margin-bottom: 20px; font-size: 0.98rem; line-height: 1.8; }
  .hx-cta { flex-wrap: nowrap; gap: 16px; }
  .hx-btn { flex: 1; justify-content: center; min-height: 50px; padding: 0 16px; white-space: nowrap; }
  .hx-link { flex: none; }
  .hx-facts { grid-row: 3; width: auto; padding-top: 14px; }
  .hx-facts li { padding-inline-end: 8px; }
  .hx-facts li + li { padding-inline-start: 10px; }
  .hx-facts span { font-size: 0.75rem; }
}
@media (min-width: 620px) and (max-width: 860px) {
  .hx-panel { grid-template-rows: 340px auto auto; }
  .hx-photo { height: 520px; }
}

/* ---------- ribbon ---------- */
.ribbon { overflow: hidden; background: var(--fill); color: var(--on-fill); padding-block: 13px; direction: ltr; }
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ribbon 34s linear infinite; font-size: 1.02rem; font-weight: 500; }
.ribbon i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.why-side { position: sticky; top: calc(var(--header-h) + 40px); }
.why-side h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); font-weight: 400; line-height: 1.3; margin: 8px 0 24px; text-wrap: balance; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: auto 1fr; gap: 26px; padding-block: 34px; border-top: 1px solid var(--border-strong); }
.why-list li:last-child { border-bottom: 1px solid var(--border-strong); }
.why-n { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 200; color: var(--cyan); line-height: 1; }
.why-list h3 { margin: 0 0 8px; font-size: 1.3rem; }
.why-list p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .why-grid { grid-template-columns: minmax(0, 1fr); } .why-side { position: static; } }

/* ---------- classes ---------- */
.class-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.class-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease); }
.class-card:only-child { max-width: 520px; }
.class-card:hover { transform: translateY(-5px); border-color: rgb(var(--brand-rgb) / 0.4); box-shadow: var(--shadow); }
.class-card .ico { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); }
.class-card h3 { margin: 8px 0 0; font-size: 1.3rem; }
.class-card p { margin: 0; color: var(--text-2); flex: 1; }
.class-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; padding: 0; color: var(--muted); font-size: 0.88rem; }
.class-facts li { display: inline-flex; align-items: center; gap: 6px; }
.class-facts .i { width: 16px; height: 16px; }
.class-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--cyan); font-weight: 700; }
.class-go .i { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.class-card:hover .class-go .i { transform: translateX(-5px); }

/* ---------- weekly plan ---------- */
.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; align-items: start; }
.plan-day { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.plan-day h3 { margin: 0 0 12px; font-size: 1rem; }
.plan-day ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.plan-slot { min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); display: grid; align-items: center; }
.plan-slot span { font-weight: 800; }
.plan-day small { color: var(--muted); font-size: 0.78rem; }

/* ---------- packages ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: center; }
.pack { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.pack.is-featured { padding-block: 42px; border-color: rgb(var(--brand-rgb) / 0.5); box-shadow: var(--shadow); }
.pack-flag { position: absolute; top: -13px; inset-inline-start: 24px; padding: 3px 14px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-size: 0.78rem; font-weight: 700; }
.pack h3 { margin: 0; font-size: 1.1rem; }
.pack p { margin: 0; }
.pack-num b { font-size: 3rem; font-weight: 300; line-height: 1.1; color: var(--cyan); }
.pack-valid { color: var(--muted); font-size: 0.9rem; }
.pack .btn { margin-top: 14px; }

/* ---------- coach & gallery ---------- */
.coach-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.coach-photo { margin: 0; border-radius: 999px 999px 24px 24px; overflow: hidden; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 400; margin: 6px 0 14px; }
.coach p { color: var(--text-2); white-space: pre-line; }
@media (max-width: 760px) { .coach-grid { grid-template-columns: minmax(0, 1fr); } }
.gallery { columns: 3 240px; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- mobile booking bar ---------- */
.mobile-book { display: none; }
@media (max-width: 720px) {
  .mobile-book { display: block; position: fixed; inset: auto 0 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(var(--base-rgb) / 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .is-home .site-footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
}
