/* ============================================================
   LUNARAE HEALING — Print Materials CSS
   ============================================================ */

:root {
  --cream:      #F9F5EE;
  --ivory:      #FAF7F2;
  --sand:       #EDE6D8;
  --gold:       #C9A96E;
  --gold-light: #DEC089;
  --brown:      #7A6649;
  --dark:       #1C1814;
  --dark-soft:  #2E2720;
  --text:       #3A3128;
  --text-mid:   #5C5044;
  --text-light: #8C7E70;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-caps:  'Josefin Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #E8E0D4;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCREEN UI
============================================================ */
.screen-ui {
  background: var(--dark);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.screen-ui__header {
  display: flex;
  align-items: center;
  gap: 40px;
}

.screen-ui__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

.screen-ui__logo img { width: 32px; height: 32px; }

.screen-ui__logo span {
  display: block;
  font-family: var(--font-caps);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--cream);
}

.screen-ui__logo small {
  display: block;
  font-family: var(--font-caps);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.screen-ui__back {
  font-family: var(--font-caps);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249,245,238,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.screen-ui__back:hover { color: var(--gold); }

.screen-ui__tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  font-family: var(--font-caps);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(201,169,110,0.3);
  color: rgba(249,245,238,0.5);
  background: transparent;
  transition: all 0.25s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.screen-ui__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.print-btn {
  font-family: var(--font-caps);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.print-btn:hover { background: var(--brown); transform: translateY(-1px); }

.print-tip {
  font-size: 10px;
  color: rgba(249,245,238,0.3);
  text-align: right;
  line-height: 1.5;
}
.print-tip strong { color: var(--gold); font-weight: 400; }

/* ============================================================
   TAB CONTENT
============================================================ */
.tab-content { display: none; padding: 40px; }
.tab-content.active { display: block; }

/* ============================================================
   PAGE BASE
============================================================ */
.page {
  background: var(--ivory);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  margin: 0 auto 40px;
  position: relative;
  overflow: hidden;
}

/* A5 = 148mm × 210mm at 96dpi ≈ 559px × 794px */
.a5-page {
  width: 559px;
  min-height: 794px;
}

/* ============================================================
   HANDOUT FRONT
============================================================ */
.handout-front {
  background: var(--dark);
}

.handout-front__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.handout-deco {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.handout-front__content {
  position: relative;
  z-index: 2;
  padding: 48px 48px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Logo row */
.hf-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hf-logo__mark { width: 40px; height: 40px; }

.hf-logo__main {
  display: block;
  font-family: var(--font-caps);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--cream);
}

.hf-logo__sub {
  display: block;
  font-family: var(--font-caps);
  font-size: 8px;
  font-weight: 200;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Headline */
.hf-headline {
  margin-bottom: 32px;
}

.hf-headline h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hf-headline h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hf-location {
  font-family: var(--font-caps);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(249,245,238,0.45);
}

/* Divider */
.hf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hf-divider span:not(.hf-divider__dot) {
  flex: 1;
  height: 1px;
  background: rgba(201,169,110,0.25);
}

.hf-divider__dot {
  color: var(--gold);
  font-size: 12px;
  opacity: 0.7;
}

/* Modalities list */
.hf-modalities {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
  flex: 1;
}

.hf-modality {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.hf-modality__num {
  font-family: var(--font-caps);
  font-size: 9px;
  font-weight: 200;
  letter-spacing: 0.2em;
  color: var(--gold);
  min-width: 20px;
  padding-top: 3px;
}

.hf-modality strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 3px;
}

.hf-modality p {
  font-size: 0.8rem;
  color: rgba(249,245,238,0.5);
  line-height: 1.5;
}

/* Quote */
.hf-quote {
  border-left: 2px solid rgba(201,169,110,0.4);
  padding-left: 20px;
  margin-top: auto;
}

.hf-quote p {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(249,245,238,0.55);
  line-height: 1.6;
}

/* ============================================================
   HANDOUT BACK
============================================================ */
.handout-back {
  background: var(--ivory);
}

.handout-back__content {
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.hb-label {
  font-family: var(--font-caps);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hb-section { margin-bottom: 24px; }

.hb-divider {
  height: 1px;
  background: var(--sand);
  margin-bottom: 24px;
}

/* Services */
.hb-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hb-service {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: var(--white, #fff);
  border: 1px solid var(--sand);
  border-radius: 6px;
}

.hb-service__name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark);
}

.hb-service__detail {
  font-family: var(--font-caps);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Founders */
.hb-founders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hb-founder {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hb-founder__initial {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--brown));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: #fff;
  flex-shrink: 0;
}

.hb-founder strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 3px;
}

.hb-founder p {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* Bottom: contact + QR */
.hb-bottom {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: auto;
}

.hb-contact { flex: 1; }

.hb-contact__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.hb-contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text);
}

.hb-contact__icon {
  color: var(--gold);
  font-size: 12px;
  min-width: 14px;
}

.hb-tagline {
  font-family: var(--font-caps);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.5;
}

.hb-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}

.hb-qr .qr-container canvas,
.hb-qr .qr-container img {
  width: 80px !important;
  height: 80px !important;
}

.hb-qr p {
  font-family: var(--font-caps);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

.hb-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--sand);
}

.hb-footer__logo { width: 24px; height: 24px; opacity: 0.5; }

.hb-footer span {
  font-family: var(--font-caps);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================================
   HEALING CARDS
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.card-pair {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card base — business card size 85mm × 55mm ≈ 322px × 208px */
.heal-card {
  width: 100%;
  aspect-ratio: 85/55;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

/* FRONT */
.heal-card--front {
  background: var(--dark);
}

.heal-card__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.08) 0%, transparent 60%);
}

/* Theme colour accents */
.heal-card--front[data-theme="moon"]   .heal-card__bg { background: radial-gradient(ellipse at 75% 25%, rgba(180,140,80,0.12) 0%, transparent 60%); }
.heal-card--front[data-theme="wave"]   .heal-card__bg { background: radial-gradient(ellipse at 50% 80%, rgba(100,160,200,0.06) 0%, transparent 60%); }
.heal-card--front[data-theme="bowl"]   .heal-card__bg { background: radial-gradient(ellipse at 80% 50%, rgba(201,169,110,0.1) 0%, transparent 60%); }
.heal-card--front[data-theme="breath"] .heal-card__bg { background: radial-gradient(circle at 50% 50%, rgba(201,169,110,0.07) 0%, transparent 65%); }
.heal-card--front[data-theme="root"]   .heal-card__bg { background: radial-gradient(ellipse at 30% 70%, rgba(122,100,73,0.15) 0%, transparent 60%); }
.heal-card--front[data-theme="star"]   .heal-card__bg { background: radial-gradient(ellipse at 60% 30%, rgba(222,192,137,0.1) 0%, transparent 60%); }

.heal-card__content {
  position: relative;
  z-index: 2;
  padding: 14px 16px 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.heal-card__symbol {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.heal-card__symbol svg { width: 100%; height: 100%; }

.heal-card__title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.heal-card__word {
  font-family: var(--font-caps);
  font-size: 7px;
  font-weight: 200;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.heal-card__msg {
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-style: italic;
  color: rgba(249,245,238,0.55);
  line-height: 1.55;
  flex: 1;
}

.heal-card__footer {
  font-family: var(--font-caps);
  font-size: 6px;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.4);
  text-align: right;
  position: absolute;
  bottom: 10px;
  right: 14px;
}

/* BACK */
.heal-card--back {
  background: linear-gradient(145deg, #1C1814 0%, #2A2118 100%);
  border: 1px solid rgba(201,169,110,0.2);
}

.heal-card__back-content {
  position: relative;
  z-index: 2;
  padding: 12px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}

.heal-card__back-logo {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}

.heal-card__back-brand-main {
  font-family: var(--font-caps);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--cream);
}

.heal-card__back-brand-sub {
  font-family: var(--font-caps);
  font-size: 6px;
  font-weight: 200;
  letter-spacing: 0.4em;
  color: var(--gold);
}

.heal-card__back-divider {
  width: 40px;
  height: 1px;
  background: rgba(201,169,110,0.3);
  margin: 4px auto;
}

.heal-card__back-tagline {
  font-family: var(--font-caps);
  font-size: 6px;
  letter-spacing: 0.12em;
  color: rgba(249,245,238,0.3);
  line-height: 1.7;
  text-transform: uppercase;
}

.heal-card__back-qr {
  margin: 4px 0 2px;
}

.heal-card__back-qr canvas,
.heal-card__back-qr img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 3px;
}

.heal-card__back-url {
  font-family: var(--font-caps);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.heal-card__back-contact {
  font-family: var(--font-caps);
  font-size: 5.5px;
  letter-spacing: 0.1em;
  color: rgba(249,245,238,0.3);
  line-height: 1.5;
}

/* QR container override */
.qr-container { display: inline-block; }

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
  .no-print { display: none !important; }

  body { background: white; }

  .tab-content { display: block !important; padding: 0; }
  #tab-cards { display: none !important; }

  .page {
    box-shadow: none;
    page-break-after: always;
    margin: 0;
    width: 148mm;
    min-height: 210mm;
  }

  .a5-page {
    width: 148mm;
    min-height: 210mm;
  }

  /* Cards print sheet */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 85mm);
    gap: 8mm;
    padding: 10mm;
  }

  .heal-card {
    width: 85mm;
    height: 55mm;
    page-break-inside: avoid;
  }

  .card-pair {
    page-break-inside: avoid;
  }
}

@page {
  margin: 0;
  size: A5;
}
