/* ============================================================
   Ritual concept case studies — project-specific styles
   Layered on top of style.css

   Ritual is a real DTC subscription vitamin & supplement brand.
   These case studies are unsolicited concept / spec projects —
   not affiliated with, commissioned by, or endorsed by Ritual.
   This palette is an ORIGINAL design "inspired by" the calm,
   clinical-but-warm sage + cream aesthetic common to modern
   subscription wellness brands — it does not reproduce Ritual's
   actual logo, brand assets, or visual identity.
   ============================================================ */

:root {
  --rt-sage: #7C9473;
  --rt-sage-light: #E7EEE3;
  --rt-sage-dark: #4F6249;
  --rt-gold: #C9A66B;
  --rt-gold-light: #F3EAD8;
  --rt-gold-dark: #8A6A35;
  --rt-mint: #A9C2A0;
  --rt-clay: #C97B5C;
}

.rt-page {
  background: var(--bg);
}

/* ------------------------------------------------------------
   Brand badge shown above case study titles
   ------------------------------------------------------------ */
.rt-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rt-sage-dark);
  background: var(--rt-sage-light);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.rt-brandmark .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rt-gold);
  display: inline-block;
}

/* ------------------------------------------------------------
   Concept / disclosure notice
   ------------------------------------------------------------ */
.rt-disclaimer {
  background: var(--rt-gold-light);
  border: 1px solid var(--rt-gold);
  border-radius: var(--radius);
  padding: 16px 22px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
  max-width: none;
}

.rt-disclaimer strong {
  color: var(--ink);
}

/* ------------------------------------------------------------
   2-column case study hero layout
   ------------------------------------------------------------ */
.case-hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
  padding-top: 16px;
}

.case-hero-aside {
  position: sticky;
  top: 80px;
}

.case-hero-aside .case-meta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.case-hero-aside .case-meta .meta-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.case-hero-aside .case-meta .meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-hero-aside .case-meta .meta-item:first-child {
  padding-top: 0;
}

@media (max-width: 860px) {
  .case-hero-grid {
    grid-template-columns: 1fr;
  }
  .case-hero-aside {
    position: static;
  }
}

/* ------------------------------------------------------------
   Tag variants
   ------------------------------------------------------------ */
.tag.rt-sage {
  background: var(--rt-sage-light);
  color: var(--rt-sage-dark);
}

.tag.rt-gold {
  background: var(--rt-gold-light);
  color: var(--rt-gold-dark);
}

/* ------------------------------------------------------------
   Pillar / strategy cards
   ------------------------------------------------------------ */
.rt-pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  height: 100%;
}

.rt-pillar-card .rt-pillar-num {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--rt-gold);
  display: block;
  margin-bottom: 10px;
}

.rt-pillar-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.rt-pillar-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Visual mockup frames — ad / email / dashboard mockups
   ------------------------------------------------------------ */
.rt-visual-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.rt-visual-frame .rt-frame-top {
  background: var(--rt-sage);
  color: #FFFFFF;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.rt-visual-frame .rt-frame-top .rt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rt-gold);
}

.rt-visual-frame .rt-frame-body {
  padding: 26px;
}

.rt-visual-frame .rt-frame-body h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.rt-visual-frame .rt-frame-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

.rt-visual-frame .rt-frame-body .rt-stat-row {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.rt-visual-frame .rt-frame-body .rt-stat-row .rt-stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--accent);
}

.rt-visual-frame .rt-frame-body .rt-stat-row .rt-stat span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

/* ------------------------------------------------------------
   Mock ad / email creative preview
   ------------------------------------------------------------ */
.rt-creative {
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.rt-creative-media {
  background: linear-gradient(135deg, var(--rt-sage-light), var(--rt-gold-light));
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--rt-sage-dark);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 12px;
}

.rt-creative-caption {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--white);
}

.rt-creative-caption strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
  font-size: 0.92rem;
}

/* ------------------------------------------------------------
   Funnel / flow steps
   ------------------------------------------------------------ */
.rt-flow {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 6px;
}

.rt-flow .rt-flow-item {
  position: relative;
  padding: 0 0 32px 28px;
}

.rt-flow .rt-flow-item:last-child {
  padding-bottom: 0;
}

.rt-flow .rt-flow-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.rt-flow .rt-flow-item .rt-flow-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rt-sage-dark);
  margin-bottom: 6px;
}

.rt-flow .rt-flow-item h3 {
  margin-bottom: 6px;
}

.rt-flow .rt-flow-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Dashboard chart cards
   ------------------------------------------------------------ */
.rt-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.rt-chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.rt-chart-card.full {
  grid-column: 1 / -1;
}

.rt-chart-note {
  grid-column: 1 / -1;
  margin: -10px 0 0;
  font-size: 0.92rem;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

.rt-chart-note strong {
  color: var(--ink);
}

@media (max-width: 860px) {
  .rt-charts {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Summary stat blocks (used for "Key findings" style overviews)
   ------------------------------------------------------------ */
.rt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 32px 0;
}

.rt-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.rt-stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--rt-sage-dark);
  margin-bottom: 4px;
}

.rt-stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

@media (max-width: 860px) {
  .rt-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .rt-stats {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Subscriber segment / persona cards
   ------------------------------------------------------------ */
.rt-personas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.rt-persona {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--rt-sage);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.rt-persona.gold { border-top-color: var(--rt-gold); }
.rt-persona.mint { border-top-color: var(--rt-mint); }
.rt-persona.clay { border-top-color: var(--rt-clay); }

.rt-persona h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.rt-persona .rt-persona-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.rt-persona-stat {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.rt-persona-stat span:first-child {
  color: var(--text-light);
}

.rt-persona-stat strong {
  color: var(--ink);
}

.rt-persona-action {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.rt-persona-action strong {
  color: var(--rt-sage-dark);
  display: block;
  margin-bottom: 4px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .rt-personas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .rt-personas {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Homepage project-card visuals for Ritual case studies
   ------------------------------------------------------------ */
.project-card .project-visual.rt-visual {
  background: linear-gradient(145deg, #3D5440 0%, #7C9473 50%, #A5B89D 100%);
}

.project-card .project-visual.rt-visual::before {
  background: radial-gradient(circle, rgba(201,166,107,0.5) 0%, transparent 68%);
}

.project-card .project-visual .rt-mark {
  font-family: -apple-system, 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.22em;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  width: auto;
  height: auto;
  display: inline-block;
  padding: 9px 14px;
  text-align: left;
  line-height: 1.75;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
