/* =========================================================
   ISHTA — ishta.in
   Single-page implementation per Developer-Ready Spec v1.0
   Deep Plum + Violet on Warm Ivory
   ========================================================= */

:root {
  /* Brand colours (design tokens) */
  --plum: #381941;
  --violet: #7E2199;
  --ivory: #FEF9F1;
  --charcoal: #2F2F31;
  --capital-copper: #B2663B;
  --capital-soft-copper: #C5815A;
  --trust-berry: #91246B;
  --trust-magenta: #D6309C;
  --grey: #726c6e;
  --white: #FFFFFF;
  --border-soft: #E9E1EA;
  --lavender-surface: #F5EEF7;

  /* Typography */
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-2xl: 64px;
  --sp-3xl: 100px;

  --radius-card: 12px;
  --content-max: 1220px;
  --prose-max: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--plum);
  margin: 0 0 var(--sp-md);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 650; }
h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 600; }

p { margin: 0 0 var(--sp-md); }

.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--sp-sm);
}

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--sp-lg); }
.prose { max-width: var(--prose-max); }

section { padding: var(--sp-3xl) 0; position: relative; }
.section-tight { padding: var(--sp-2xl) 0; }

@media (max-width: 720px) {
  section { padding: var(--sp-2xl) 0; }
  .section-tight { padding: var(--sp-xl) 0; }
}

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--plum); color: var(--ivory);
  padding: 10px 18px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

a:focus-visible, button:focus-visible, label:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.text-link {
  color: var(--plum);
  font-weight: 600;
  border-bottom: 1px solid var(--violet);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.text-link:hover { color: var(--violet); }
.text-link.arrow::after { content: "\2192"; margin-left: 6px; display: inline-block; transition: transform 200ms ease; }
.text-link.arrow:hover::after { transform: translateX(3px); }

.external-tag {
  font-size: 11px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-transform: uppercase;
  margin-left: 6px;
}

/* =========================
   Header
   ========================= */
.site-header {
  background: rgba(254, 249, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 500;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: var(--sp-lg);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }

.main-nav { display: flex; align-items: center; gap: var(--sp-xl); }
.nav-links { display: flex; gap: var(--sp-lg); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}
.nav-links a:hover { color: var(--violet); border-bottom-color: var(--capital-copper); }
.nav-links a.ext { color: var(--grey); }
.nav-links a.ext:hover { color: var(--violet); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--plum); display: block; transition: transform 200ms ease, opacity 200ms ease; }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--ivory);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
}
.mobile-nav a {
  font-family: var(--font-heading); font-weight: 600; font-size: 17px;
  color: var(--plum); padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:last-child { border-bottom: none; }

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-input:checked ~ .mobile-nav { display: flex; }
.nav-toggle-input:checked ~ .container .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .container .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .container .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .site-header .container { min-height: 68px; }
  .brand img { height: 32px; }
}

/* =========================
   Hero
   ========================= */
.hero {
  overflow: hidden;
  padding: var(--sp-3xl) 0 var(--sp-2xl);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-2xl);
  align-items: center;
  position: relative;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: var(--sp-lg); }
.hero .lead { color: var(--charcoal); margin-bottom: var(--sp-md); }
.hero .closing-statement {
  margin-top: var(--sp-lg);
  padding-left: var(--sp-lg);
  border-left: 3px solid var(--violet);
  color: var(--plum);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
}
.hero .closing-statement span { display: block; color: var(--charcoal); font-family: var(--font-body); font-weight: 400; font-size: 16px; margin-top: 6px; }

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flame-bg {
  position: absolute;
  width: auto;
  pointer-events: none;
  user-select: none;
}
.flame-bg-large {
  height: 460px;
  opacity: 0.16;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
}
.flame-bg-small {
  height: 300px;
  opacity: 0.32;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%) rotate(3deg);
}
.violet-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.85;
  right: 18%;
  bottom: 14%;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 260px; }
  .flame-bg-large { height: 260px; }
  .flame-bg-small { height: 170px; }
}

/* =========================
   What is ISHTA (2-col editorial)
   ========================= */
.editorial-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-2xl);
}
.editorial-split .col-label h2 { max-width: 320px; }
.editorial-split .col-body p { color: var(--charcoal); }
.reflective-question {
  margin-top: var(--sp-lg);
  padding-left: var(--sp-lg);
  border-left: 3px solid var(--capital-copper);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--plum);
}
@media (max-width: 900px) {
  .editorial-split { grid-template-columns: 1fr; gap: var(--sp-lg); }
}

/* =========================
   Journey (4-stage sequence)
   ========================= */
.journey-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
  position: relative;
}
.journey-row::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--border-soft);
  z-index: 0;
}
.journey-step { position: relative; z-index: 1; text-align: center; padding: 0 var(--sp-sm); }
.journey-node {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--violet);
  margin: 0 auto var(--sp-md);
  position: relative;
}
.journey-step:nth-child(1) .journey-node { border-color: var(--violet); background: var(--violet); }
.journey-step:nth-child(2) .journey-node { border-color: var(--capital-soft-copper); }
.journey-step:nth-child(3) .journey-node { border-color: var(--capital-copper); background: var(--capital-copper); }
.journey-step:nth-child(4) .journey-node { border-color: var(--plum); background: var(--plum); }
.journey-step h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.journey-step p { font-size: 15px; color: var(--grey); margin: 0; max-width: 220px; margin-inline: auto; }

@media (max-width: 780px) {

  .journey-row {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
    margin-top: var(--sp-xl);
  }

  .journey-row::before {
    left: 15px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }

  .journey-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--sp-lg);
    row-gap: 4px;

    text-align: left;
    align-items: start;
    padding: 0;
  }

  .journey-node {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .journey-step h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 3px 0 var(--sp-sm);
  }

  .journey-step p {
    grid-column: 2;
    grid-row: 2;

    margin: 0;
    max-width: 320px;
    text-align: left;
  }
}

/* =========================
   Values grid (Purpose & Responsibility)
   ========================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg) var(--sp-2xl);
  margin-top: var(--sp-xl);
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--border-soft);
}
.value-item:nth-child(1), .value-item:nth-child(2) { border-top: none; padding-top: 0; }
.value-icon {
  width: 28px; height: 28px; flex-shrink: 0; color: var(--violet); margin-top: 2px;
}
.value-icon svg { width: 100%; height: 100%; }
.value-item h3 { font-size: 16.5px; margin-bottom: 2px; }
.value-item p { font-size: 14.5px; color: var(--grey); margin: 0; }

@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; gap: 0; }
  .value-item:nth-child(2) { border-top: 1px solid var(--border-soft); padding-top: var(--sp-md); }
}

/* =========================
   Pull quote (participation)
   ========================= */
.pull-quote-section {
  background: var(--lavender-surface);
}
.pull-quote-section .container { max-width: 880px; text-align: center; }
.pull-quote-section blockquote {
  margin: 0 0 var(--sp-lg);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--plum);
  line-height: 1.4;
}
.pull-quote-section .rule-mark {
  width: 46px; height: 3px; background: var(--violet); margin: 0 auto var(--sp-lg);
}
.pull-quote-section p.support { color: var(--charcoal); max-width: 620px; margin: 0 auto; }

/* =========================
   Institutional expressions
   ========================= */
.expressions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  margin-top: var(--sp-xl);
}
.expression-panel {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--sp-xl);
  border-top: 4px solid var(--capital-copper);
}
.expression-panel.trust { border-top-color: var(--trust-berry); }
.expression-panel img { height: 46px; width: auto; margin-bottom: var(--sp-md); }
.expression-panel .positioning-line {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--capital-copper);
  margin-bottom: var(--sp-md);
}
.expression-panel.trust .positioning-line { color: var(--trust-berry); }
.expression-panel p.desc { color: var(--charcoal); }
.expression-panel .visit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--capital-copper);
  border-bottom: 1px solid var(--capital-soft-copper);
  padding-bottom: 2px;
}
.expression-panel.trust .visit-link { color: var(--trust-berry); border-color: var(--trust-magenta); }

@media (max-width: 800px) {
  .expressions-grid { grid-template-columns: 1fr; }
}

/* =========================
   ISHTA & REALSME comparison strip
   ========================= */
.comparison-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
  margin-top: var(--sp-xl);
}
.comparison-col h3 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--sp-sm); }
.comparison-col p { color: var(--charcoal); margin: 0; }
.comparison-col.link-col { display: flex; align-items: center; height: 100%; }
.comparison-divider { display: none; }

@media (max-width: 800px) {
  .comparison-strip { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .comparison-col { padding-bottom: var(--sp-lg); border-bottom: 1px solid var(--border-soft); }
  .comparison-col:last-child { border-bottom: none; }
}

/* =========================
   Closing
   ========================= */
.closing-section { text-align: center; }
.closing-section h2 { font-size: clamp(30px, 4.4vw, 44px); }
.closing-section .closing-lines {
  max-width: 480px;
  margin: var(--sp-lg) auto 0;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.9;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--plum);
  color: #E7D9EA;
  padding: var(--sp-2xl) 0 var(--sp-lg);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(254, 249, 241, 0.15);
}
.footer-brand-box {
  background: var(--ivory);
  border-radius: 10px;
  padding: 14px 18px;
  display: inline-block;
  margin-bottom: var(--sp-sm);
}
.footer-brand-box img { height: 34px; width: auto; }
.footer-tagline { color: var(--ivory); font-family: var(--font-heading); font-weight: 600; font-size: 15px; }

.footer-links { display: flex; gap: var(--sp-2xl); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-heading); color: var(--ivory); font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--sp-md);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #E7D9EA; font-size: 14.5px; transition: color 200ms ease; }
.footer-col a:hover { color: var(--capital-soft-copper); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-md);
  padding-top: var(--sp-lg); font-size: 13px; color: #B9A2BE;
}
.footer-bottom a { color: #B9A2BE; }
.footer-bottom a:hover { color: var(--ivory); }

@media (max-width: 700px) {
  .footer-top { flex-direction: column; }
  .footer-links { gap: var(--sp-xl); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
