/* ============================================
   Brain Recovery Map — Shared Article Styles
   assets/css/article.css
   ============================================ */

:root {
  --green:       #4a8c63;
  --green-dark:  #2d6b3a;
  --green-deep:  #1a3d21;
  --teal:        #2a9d9d;
  --aqua:        #a8d8d0;
  --aqua-light:  #e8f6f4;
  --cream:       #f5f0e8;
  --warm-white:  #faf8f4;
  --charcoal:    #2d2d2d;
  --mid-grey:    #6b6b6b;
  --tinana:      #2d6b3a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--green-deep);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--aqua);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--aqua); }
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--green-deep);
  padding: 1.25rem 1.5rem 1.5rem;
  gap: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-cta {
  background: var(--green) !important;
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.7); border-radius: 2px;
}

/* ARTICLE HEADER */
.article-header {
  background: var(--green-deep);
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,140,99,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.article-header-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.article-breadcrumb a:hover { color: var(--aqua); }
.article-breadcrumb span { opacity: 0.4; }
.article-dim-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(45,107,58,0.3);
  color: #7dd4a0;
  margin-bottom: 1rem;
}
.article-dim-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7dd4a0;
}
.article-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.article-header h1 em { font-style: italic; color: var(--aqua); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.article-meta-item svg { opacity: 0.6; }

/* ARTICLE BODY */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 3rem 2rem;
}

/* Lead */
.article-lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--green);
  padding-left: 1.25rem;
}

/* Prose */
.article-prose p {
  font-size: 1rem;
  line-height: 1.9;
  color: #4a5568;
  margin-bottom: 1.25rem;
}
.article-prose p:last-child { margin-bottom: 0; }
.article-prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green-deep);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.article-prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-deep);
  margin: 2rem 0 0.75rem;
}
.article-prose h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.6rem;
}
.article-prose ul, .article-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-prose li {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 0.4rem;
}
.article-prose strong { font-weight: 600; color: var(--charcoal); }
.article-prose a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(74,140,99,0.3);
  transition: border-color 0.2s;
}
.article-prose a:hover { border-color: var(--green); }

/* Article stats grid */
.article-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}
.stat-callout {
  background: var(--aqua-light);
  border: 1px solid rgba(42,157,157,0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--mid-grey);
}

/* Article divider */
.article-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--green), transparent);
  margin: 3rem 0;
  border-radius: 2px;
}

/* Section divider (legacy alias) */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--tinana), transparent);
  margin: 3rem 0;
  border-radius: 2px;
}

/* Ally's experience card */
.ally-experience {
  background: var(--cream);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
}
.ally-experience-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ally-experience-label::before {
  content: '';
  display: block;
  width: 16px; height: 2px;
  background: var(--green);
}
.ally-experience p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4a5568;
  margin-bottom: 1rem;
}
.ally-experience p:last-child { margin-bottom: 0; }
.ally-experience ul,
.ally-experience ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.ally-experience li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 0.35rem;
}

/* Personal section (legacy alias — same styles) */
.personal-section {
  background: var(--cream);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
}
.personal-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.personal-section-label::before {
  content: '';
  display: block;
  width: 16px; height: 2px;
  background: var(--green);
}
.personal-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.personal-section p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4a5568;
  margin-bottom: 1rem;
}
.personal-section p:last-child { margin-bottom: 0; }
.personal-section ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.personal-section li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 0.35rem;
}

/* Dimension tag colour overrides */
/* Hinengaro teal */
.article-dim-tag[style*="2a9d9d"] {
  background: rgba(42,157,157,0.15);
  color: #2a9d9d;
}
.article-dim-tag[style*="2a9d9d"] .article-dim-tag-dot { background: #2a9d9d; }

/* Wairua teal-grey */
.article-dim-tag[style*="5a9090"] {
  background: rgba(90,144,144,0.15);
  color: #5a9090;
}
.article-dim-tag[style*="5a9090"] .article-dim-tag-dot { background: #5a9090; }

/* Whenua green */
.article-dim-tag[style*="4a8c63"] {
  background: rgba(74,140,99,0.15);
  color: #4a8c63;
}
.article-dim-tag[style*="4a8c63"] .article-dim-tag-dot { background: #4a8c63; }

/* Whanau purple */
.article-dim-tag[style*="7a6a9a"] {
  background: rgba(122,106,154,0.15);
  color: #7a6a9a;
}
.article-dim-tag[style*="7a6a9a"] .article-dim-tag-dot { background: #7a6a9a; }

/* Article exercise block */
.article-exercise {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.article-exercise p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #4a5568;
  margin-bottom: 1rem;
}
.article-exercise p:last-child { margin-bottom: 0; }

/* Animation / placeholder block */
.article-placeholder {
  border: 2px dashed var(--aqua);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: var(--aqua-light);
  margin: 2rem 0;
}

/* Further reading */
.further-reading { margin: 2.5rem 0; }
.further-reading h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(45,107,58,0.1);
}
.reading-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(45,107,58,0.06);
  align-items: flex-start;
}
.reading-item:last-child { border-bottom: none; }
.reading-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tinana);
  flex-shrink: 0;
  margin-top: 0.45rem;
}
.reading-item-text { flex: 1; }
.reading-item-title { font-size: 0.88rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.2rem; }
.reading-item-desc { font-size: 0.8rem; color: var(--mid-grey); line-height: 1.5; margin-bottom: 0.3rem; }
.reading-item a { font-size: 0.78rem; color: var(--green); text-decoration: none; }
.reading-item a:hover { opacity: 0.7; }

/* Tool CTA */
.tool-cta {
  background: var(--green-deep);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.tool-cta::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,140,99,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.tool-cta-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.3rem;
}
.tool-cta-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 400px;
}
.tool-cta-btn {
  flex-shrink: 0;
  background: var(--green);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.tool-cta-btn:hover { background: var(--green-dark); }

/* Article nav */
.article-nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 3rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.article-nav a {
  font-size: 0.82rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.article-nav a:hover { opacity: 0.7; }
.article-nav-back { display: flex; align-items: center; gap: 0.4rem; }

/* Footer */
footer { background: var(--charcoal); padding: 2.5rem 3rem; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--aqua);
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--aqua); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .article-header { padding: 7rem 1.25rem 3rem; }
  .article-body,
  .article-nav { padding-left: 1.25rem; padding-right: 1.25rem; }
  .article-stats { grid-template-columns: 1fr; }
  .tool-cta { flex-direction: column; text-align: center; }
  .ally-experience { padding: 1.5rem; }
  footer { padding: 2rem 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; gap: 1rem; justify-content: center; }
}
