/* ==========================================================================
   Joana Torres · Tarot & Simbolismo
   Palette derived from the Facebook cover: night purple, plum, gold, ivy green.
   ========================================================================== */

:root {
  --night: #1e1430;
  --night-deep: #150d24;
  --plum: #2e1f47;
  --plum-light: #3a2557;
  --lavender: #c3aee6;
  --lavender-soft: #9f86c9;
  --gold: #d9b46a;
  --gold-light: #ecd29a;
  --ivy: #9cb98a;
  --parchment: #f3ece0;
  --text-muted: #d6cce6;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Cormorant Garamond", "Garamond", Georgia, serif;

  --radius: 1rem;
  --radius-lg: 1.5rem;
  --border-gold: 1px solid rgb(217 180 106 / 0.55);
  --shadow: 0 1.25rem 2.5rem -1.25rem rgb(5 2 12 / 0.75);
  --header-h: 4rem;
  --focus: 3px solid var(--gold-light);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgb(107 63 160 / 0.28), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 35%, rgb(107 63 160 / 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 20% 85%, rgb(125 154 106 / 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Twinkling star field (decorative) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgb(236 210 154 / 0.8), transparent 60%),
    radial-gradient(1px 1px at 30% 70%, rgb(243 236 224 / 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 15%, rgb(195 174 230 / 0.8), transparent 60%),
    radial-gradient(1px 1px at 75% 55%, rgb(243 236 224 / 0.6), transparent 60%),
    radial-gradient(2px 2px at 88% 82%, rgb(236 210 154 / 0.7), transparent 60%),
    radial-gradient(1px 1px at 42% 92%, rgb(195 174 230 / 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 65% 38%, rgb(243 236 224 / 0.5), transparent 60%),
    radial-gradient(1px 1px at 20% 48%, rgb(236 210 154 / 0.6), transparent 60%);
  background-size: 420px 420px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a {
  color: var(--gold-light);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--parchment); }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--night); }

.sprite { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2rem, 50rem); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 0.5rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--night); }

main:focus { outline: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(21 13 36 / 0.92);
  border-bottom: var(--border-gold);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 72rem);
  min-height: var(--header-h);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.brand__icon { width: 1.4rem; height: 1.4rem; color: var(--gold); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: var(--border-gold);
  border-radius: 0.75rem;
  color: var(--gold-light);
  cursor: pointer;
}
.nav-toggle__icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle__icon--close,
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

/* Mobile menu: hidden by default only when JS can open it */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem 1rem 1.5rem;
  background: var(--night-deep);
  border-bottom: var(--border-gold);
  box-shadow: var(--shadow);
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

/* Without JS the toggle is useless: show the menu inline instead */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { position: static; padding: 0.5rem 0; box-shadow: none; border: 0; background: none; }
html:not(.js) .site-header__inner { flex-wrap: wrap; }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.25rem 0.75rem;
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 0.5rem;
}
.site-nav__list a:hover { color: var(--gold-light); background: rgb(58 37 87 / 0.6); }

.lang-switch {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.25rem;
  border: var(--border-gold);
  border-radius: 999px;
}

.lang-switch__btn {
  min-width: 48px;
  min-height: 44px;
  padding: 0 0.85rem;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.lang-switch__btn:hover { color: var(--gold-light); }
.lang-switch__btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--night);
  font-weight: 600;
}

@media (min-width: 60em) {
  .nav-toggle,
  html:not(.js) .nav-toggle { display: none; }

  .site-nav,
  .js .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav__list { flex-direction: row; gap: 0.25rem; }
  .site-nav__list a { font-size: 0.9rem; }
  .lang-switch { margin-top: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

/* Solid gold base under the gradient, so hover never fades through transparent */
.btn--primary {
  background-color: var(--gold-light);
  background-image: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--night);
}
.btn--primary:hover { color: var(--night); background-image: none; }

.btn--ghost {
  background: rgb(30 20 48 / 0.6);
  color: var(--gold-light);
}
.btn--ghost:hover { background: var(--plum-light); color: var(--parchment); }

/* ---------- Divider ---------- */
.divider {
  width: min(15rem, 70%);
  height: 1.5rem;
  margin: 0.25rem auto 1.75rem;
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero { text-align: center; }

/* Stage: the illustration fills it and the name/intro sit on top.
   Height follows the image's own proportions (100vw × 765/2056 ≈ 37.2vw), so it's never stretched,
   with a minimum so the text always fits (phones crop the image's sides instead)
   and a maximum so the buttons stay in view on wide but short windows. */
.hero__stage {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(27rem, 37.2vw, 85vh);
  border-bottom: var(--border-gold);
  overflow: hidden;
  isolation: isolate;
}

.hero__banner,
.hero__banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__banner { z-index: -2; }
.hero__banner img {
  object-fit: cover;
  object-position: center 70%;
}

/* Darkens the middle of the image behind the text, and fades the bottom into the page */
.hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 62% 58% at 50% 50%, rgb(21 13 36 / 0.82), rgb(21 13 36 / 0.55) 60%, rgb(21 13 36 / 0.15) 100%),
    linear-gradient(to bottom, rgb(21 13 36 / 0.35), transparent 25%, transparent 80%, rgb(30 20 48 / 0.6));
}

/* Text block is vertically centred in the stage */
.hero__content {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 1px 2px rgb(10 6 18 / 0.9), 0 0 1.5rem rgb(10 6 18 / 0.85);
}

.hero__title {
  margin-bottom: 0.25em;
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.25rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--parchment);
  text-shadow: 0 1px 2px rgb(10 6 18 / 0.9), 0 0 2rem rgb(195 174 230 / 0.35);
}

.hero__tagline {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 0.6rem + 1.1vw, 1.3rem);
  letter-spacing: clamp(0.08em, 0.02em + 0.4vw, 0.18em);
  color: var(--gold-light);
}

.hero__location {
  font-style: italic;
  color: var(--lavender);
  margin-bottom: 1rem;
}

.hero__intro {
  max-width: 34rem;
  margin: 0 auto;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  font-style: italic;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section:nth-of-type(even) {
  background: linear-gradient(180deg, transparent, rgb(46 31 71 / 0.45) 20%, rgb(46 31 71 / 0.45) 80%, transparent);
}

.section__title {
  text-align: center;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 0.25em;
}

.section__intro {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

.section__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: center;
}

.panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(160deg, rgb(58 37 87 / 0.85), rgb(30 20 48 / 0.9));
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 0 0 6px rgb(30 20 48 / 0.6), inset 0 0 0 7px rgb(217 180 106 / 0.25);
}

.price-note {
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-style: italic;
  color: var(--gold-light);
}
/* Inline stars on both ends, glued to the first/last word so they never wrap alone */
.price-note svg {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.45em;
  /* Optical centre: between the middle of lowercase letters and of capitals */
  vertical-align: middle;
  position: relative;
  top: -0.1em;
  color: var(--gold);
}
.price-note svg:last-child { margin-right: 0; margin-left: 0.45em; }
/* Very narrow screens: the notes would wrap, so drop the decorative stars */
@media (max-width: 21.5em) {
  .price-note svg { display: none; }
}

/* Groups like "Tarot ·" never split, so lines never end/start with a stray dot */
.nowrap { white-space: nowrap; }

/* ---------- About ---------- */
.about__text p:first-child::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  color: var(--gold);
}

.about__quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid rgb(217 180 106 / 0.4);
  text-align: center;
}
.about__quote p {
  margin: 0;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  font-style: italic;
  color: var(--lavender);
}

.values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}
.values li {
  padding: 0.3rem 1rem;
  border: 1px solid rgb(156 185 138 / 0.6);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ivy);
}

/* ---------- Card grids ---------- */
.card-grid {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .card-grid--readings,
  .card-grid--candles { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: linear-gradient(170deg, var(--plum-light), var(--plum) 60%, var(--night));
  border: var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__title {
  font-size: 1.15rem;
  color: var(--gold-light);
}

/* Tarot-card look: double gold frame and corner stars */
.tarot-card {
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
}
.tarot-card::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgb(217 180 106 / 0.3);
  border-radius: calc(var(--radius) - 0.35rem);
  pointer-events: none;
}
.tarot-card p { margin: 0; color: var(--text-muted); }

.tarot-card__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  padding: 0.6rem;
  color: var(--gold);
  border: 1px solid rgb(217 180 106 / 0.5);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(217 180 106 / 0.15), transparent 70%);
}

/* Candles */
.candle-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.candle-card__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: var(--border-gold);
}
.candle-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  text-align: center;
}
.candle-card__body p { color: var(--text-muted); }
.candle-card__intention {
  margin-bottom: 0.75rem;
  font-style: italic;
  color: var(--ivy) !important;
}
.candle-card__body p:last-child { margin-bottom: 0; }

/* Align titles and texts across cards in the same row,
   even when a title or intention wraps to two lines */
@supports (grid-template-rows: subgrid) {
  .card-grid--readings > .tarot-card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .card-grid--readings .card__title { align-self: center; }

  .card-grid--candles > .candle-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .candle-card__body {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .candle-card__body .card__title { align-self: center; }
}

/* ---------- Contact ---------- */
.contact__panel { text-align: center; }

.contact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto 2rem;
  padding: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  min-height: 4.5rem;
  padding: 1rem 1.25rem;
  text-align: left;
  text-decoration: none;
  color: var(--parchment);
  background: rgb(21 13 36 / 0.6);
  border: var(--border-gold);
  border-radius: var(--radius);
  transition: background-color 0.2s, transform 0.2s;
}
.contact-item:hover { background: var(--plum-light); color: var(--parchment); transform: translateY(-2px); }

.contact-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  padding: 0.45rem;
  color: var(--night);
  background: var(--gold);
  border-radius: 50%;
}
.contact-item__text { display: flex; flex-direction: column; min-width: 0; }
.contact-item__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.contact-item__value { overflow-wrap: break-word; }

.contact__social-title {
  margin: 2rem 0 1rem;
  font-size: 1rem;
  color: var(--lavender);
}

.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  border: var(--border-gold);
  border-radius: 999px;
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.social__link svg { width: 1.3rem; height: 1.3rem; color: var(--gold); }
.social__link:hover { background: var(--plum-light); color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 0 3rem;
  background: var(--night-deep);
  border-top: var(--border-gold);
  text-align: center;
}
.site-footer__inner p { margin: 0 0 0.35rem; }
.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
}
.site-footer__tagline { color: var(--gold-light); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.15em; }
.site-footer__legal { color: var(--text-muted); font-size: 1rem; }
.site-footer__top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
}

/* ---------- Privacy note (footer) ---------- */
.privacy {
  max-width: 40rem;
  margin: 0.25rem auto 0;
}
.privacy summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  border-radius: 0.5rem;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 0.2s;
}
.privacy[open] summary::after { transform: translateY(0.1em) rotate(-135deg); }
.privacy summary:hover { color: var(--parchment); }

.privacy__text {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: rgb(46 31 71 / 0.5);
  border: var(--border-gold);
  border-radius: var(--radius);
}
.privacy__text p { margin: 0 0 0.6em; }
.privacy__text p:last-child { margin-bottom: 0; }

/* ---------- Reveal on scroll (only with JS + motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Forced colors (Windows High Contrast) ---------- */
@media (forced-colors: active) {
  .btn,
  .card,
  .panel,
  .contact-item,
  .social__link,
  .lang-switch__btn[aria-pressed="true"] { border: 1px solid CanvasText; }
  .lang-switch__btn[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .hero__actions, .skip-link { display: none; }
  .card, .panel { box-shadow: none; background: none; }
}
