/* ===== SAGESTAGE THEME ===== */

:root {
  --ss-gold: #8b6914;
  --ss-bg: #f5f0e8;
  --ss-dark: #1a2332;
  --ss-text: #2c2c2c;
  --ss-text-muted: rgba(44, 44, 44, 0.78);
  --ss-font-display: 'Playfair Display', Georgia, serif;
  --ss-font-body: 'Cormorant Garamond', Georgia, serif;
}

/* Paper texture */
.ss-paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.ss-main {
  background: var(--ss-bg);
  position: relative;
  z-index: 2;
}

/* Navigation */
.ss-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(139, 105, 20, 0.13);
  background: var(--ss-bg);
}

.ss-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 3.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ss-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ss-logo-img {
  height: 40px;
  width: auto;
  /* Tint white logo to gold (#8b6914) */
  filter: brightness(0) saturate(100%) invert(40%) sepia(60%) saturate(600%) hue-rotate(25deg) brightness(90%);
}

.ss-logo-text {
  font-size: 1.125rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ss-gold);
  font-family: var(--ss-font-body);
}

.ss-nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9375rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--ss-font-body);
  white-space: nowrap;
}

.ss-nav-links a {
  color: var(--ss-text);
  opacity: 0.85;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.ss-nav-links a:hover,
.ss-nav-links a:focus-visible {
  opacity: 1;
}

.ss-nav-links a.active {
  opacity: 1;
  border-bottom: 2px solid var(--ss-gold);
  padding-bottom: 0.25rem;
}

/* Mobile nav toggle */
.ss-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ss-text);
  cursor: pointer;
  padding: 0.625rem;
  min-width: 44px;
  min-height: 44px;
  line-height: 0;
}

/* Mobile nav close button - hidden on desktop */
.ss-nav-close {
  display: none;
}

/* Labels */
.ss-label {
  font-size: 0.9375rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ss-gold);
  margin-bottom: 1.25rem;
  font-family: var(--ss-font-body);
}

/* Hero with concentric circles */
.ss-hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 3.75rem;
  position: relative;
}

/* Split hero layout with image */
.ss-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  padding: 0;
  text-align: left;
  align-items: stretch;
}

.ss-hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 5rem;
}

.ss-hero-split .ss-hero-content {
  max-width: 540px;
}

.ss-hero-split .ss-hero-line {
  margin: 2.5rem 0;
}

.ss-hero-split .ss-hero-btns {
  justify-content: flex-start;
}

.ss-hero-split .ss-hero-circles {
  left: 30%;
  top: 50%;
}

.ss-hero-image {
  position: relative;
  overflow: hidden;
}

.ss-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-hero-subpage {
  min-height: 50vh;
  padding: 4rem 3.75rem;
}

/* Forum page hero - cap height so wide photo isn't over-cropped */
.ss-hero-forum {
  min-height: 0;
}

.ss-hero-forum .ss-hero-text {
  padding: 3rem 4rem 3rem 5rem;
}

.ss-hero-forum .ss-hero-image {
  max-height: 580px;
}

.ss-hero-forum .ss-hero-image img {
  object-position: center 30%;
}

.ss-hero-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ss-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--ss-gold);
}

.ss-circle-1 { width: 340px; height: 340px; opacity: 0.12; }
.ss-circle-2 { width: 460px; height: 460px; opacity: 0.09; }
.ss-circle-3 { width: 580px; height: 580px; opacity: 0.06; }

.ss-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.ss-hero .ss-label {
  margin-bottom: 2.5rem;
}

.ss-hero-title {
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  font-weight: 400;
  line-height: 1.25;
  font-style: italic;
  font-family: var(--ss-font-display);
  margin: 0;
}

.ss-hero-line {
  width: 60px;
  height: 1px;
  background: var(--ss-gold);
  margin: 3rem auto;
}

.ss-hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--ss-text-muted);
  font-family: var(--ss-font-body);
  max-width: 560px;
  margin: 0 auto;
}

.ss-hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

/* Buttons */
.ss-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid rgba(139, 105, 20, 0.27);
  color: var(--ss-gold);
  font-size: 0.875rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--ss-font-body);
  cursor: pointer;
  transition: all 0.4s;
}

.ss-btn:hover {
  background: var(--ss-gold);
  color: var(--ss-bg);
}

.ss-btn-filled {
  background: var(--ss-gold);
  color: var(--ss-bg);
  border-color: var(--ss-gold);
}

.ss-btn-filled:hover {
  background: #7a5c12;
}

.ss-btn-light {
  background: var(--ss-gold);
  color: var(--ss-dark);
  border-color: var(--ss-gold);
}

/* Book/Framework Bridge - credibility through intellectual foundation */
.ss-book-bridge {
  background: rgba(26, 35, 50, 0.03);
  border-top: 1px solid rgba(139, 105, 20, 0.13);
  border-bottom: 1px solid rgba(139, 105, 20, 0.13);
}

.ss-book-bridge-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 3.75rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}

.ss-book-visual img {
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.ss-book-content .ss-section-title {
  margin-bottom: 1rem;
}

.ss-book-content .ss-section-text {
  margin-bottom: 1.25rem;
}

.ss-book-bridge-message {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ss-gold);
  font-family: var(--ss-font-display);
  margin-bottom: 2rem;
}

.ss-book-ctas {
  display: flex;
  gap: 1rem;
}

/* Section styling */
.ss-section-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 3.75rem;
}

.ss-section-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  font-family: var(--ss-font-display);
  margin-bottom: 1.5rem;
}

.ss-section-text {
  font-size: 1.1875rem;
  line-height: 2;
  color: var(--ss-text-muted);
  font-family: var(--ss-font-body);
  margin-bottom: 2.75rem;
}

/* Framework stages */
.ss-framework {
  border-top: 1px solid rgba(139, 105, 20, 0.13);
}

.ss-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.ss-pull-quote {
  border-left: 3px solid var(--ss-gold);
  margin: 2.5rem 0;
  padding: 1rem 2rem;
}

.ss-pull-quote p {
  font-family: var(--ss-font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ss-gold);
}

.ss-stage {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 4px;
  transition: all 0.4s;
}

.ss-stage-faded {
  opacity: 0.4;
}

.ss-stage-active {
  background: rgba(26, 35, 50, 0.05);
  border: 1px solid rgba(139, 105, 20, 0.2);
}

.ss-stage-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--ss-gold);
  margin: 0 auto 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ss-gold);
  font-family: var(--ss-font-display);
}

.ss-stage-name {
  font-size: 1.3125rem;
  font-weight: 400;
  margin-bottom: 0.3125rem;
  font-family: var(--ss-font-display);
}

.ss-stage-desc {
  font-size: 0.75rem;
  color: var(--ss-text-muted);
  font-family: var(--ss-font-body);
}

.ss-stage-note {
  font-size: 0.625rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.27);
  font-family: var(--ss-font-body);
  margin-top: 0.3125rem;
}

.ss-stage-active .ss-stage-note {
  color: var(--ss-gold);
}

/* Pyramid Hierarchy */
.ss-hierarchy {
  background: rgba(139, 105, 20, 0.03);
  border-top: 1px solid rgba(139, 105, 20, 0.13);
  border-bottom: 1px solid rgba(139, 105, 20, 0.13);
  padding: 4rem 0;
}

.ss-hierarchy .section-container {
  max-width: 1100px;
}

.ss-pyramid-wrapper {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  margin-top: 2.5rem;
  height: 420px;
}

.ss-pyramid-left {
  flex: 0 0 45%;
  position: relative;
}

.ss-pyramid-shape {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.ss-pyramid-tier {
  flex: 1 1 100%;
  margin-bottom: 2px;
}

.ss-pyramid-tier:last-child {
  margin-bottom: 0;
}

.ss-pyramid-labels {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.ss-pyramid-label-row {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-pyramid-name {
  font-family: var(--ss-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.2;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(255, 255, 255, 0.8);
}

.ss-pyramid-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ss-pyramid-skill-row {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  border-left: 3px solid var(--tier-color, var(--ss-gold));
  margin-bottom: 2px;
}

.ss-pyramid-skill-row:last-child {
  margin-bottom: 0;
}

.ss-pyramid-skill-row p {
  font-family: var(--ss-font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ss-text);
  padding: 0.25rem 0.875rem;
}

.ss-pyramid-footnote {
  text-align: center;
  font-family: var(--ss-font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--ss-text-muted);
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .ss-pyramid-wrapper {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .ss-pyramid-left {
    flex: none;
    width: 80%;
    height: 280px;
  }

  .ss-pyramid-right {
    width: 100%;
  }

  .ss-pyramid-skill-row p {
    font-size: 0.9375rem;
  }
}

.ss-hierarchy-cta {
  margin-top: 2.5rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(139, 105, 20, 0.13);
}

.ss-hierarchy-cta p {
  font-size: 1.125rem;
  color: var(--ss-text-muted);
  font-family: var(--ss-font-body);
  margin-bottom: 1.25rem;
}

/* Sages section */
.ss-sages {
  border-top: 1px solid rgba(139, 105, 20, 0.13);
}

.ss-sages .ss-section-inner {
  max-width: 1200px;
  text-align: center;
}

.ss-sage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.ss-sage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(139, 105, 20, 0.27);
  padding-top: 1.125rem;
  transition: transform 0.3s;
  color: inherit;
  text-decoration: none;
}

.ss-sage-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.05);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  color: var(--ss-gold);
  font-style: italic;
  font-family: var(--ss-font-display);
}

.ss-sage-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 2px solid rgba(139, 105, 20, 0.2);
}

.ss-sage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-sage-name {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.1875rem;
  font-family: var(--ss-font-display);
}

.ss-sage-title {
  font-size: 0.6875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ss-gold);
  margin-bottom: 0.75rem;
  font-family: var(--ss-font-body);
}

.ss-sage-quote {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--ss-text-muted);
  line-height: 1.8;
  font-family: var(--ss-font-body);
}

/* CTA section */
.ss-cta {
  background: var(--ss-dark);
  padding: 3.5rem 3.75rem;
  text-align: center;
}

.ss-cta .ss-label {
  margin-bottom: 1.5rem;
}

.ss-cta-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ss-bg);
  max-width: 600px;
  margin: 0 auto 1.125rem;
  line-height: 1.3;
  font-family: var(--ss-font-display);
}

.ss-cta-text {
  font-size: 1.125rem;
  color: rgba(245, 240, 232, 0.6);
  font-family: var(--ss-font-body);
  max-width: 480px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

/* Footer */
.ss-footer {
  background: var(--ss-bg);
  border-top: 1px solid rgba(139, 105, 20, 0.13);
}

.ss-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 3.75rem;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ss-text-muted);
  font-family: var(--ss-font-body);
}

/* Responsive */
@media (max-width: 900px) {
  .ss-nav-inner {
    padding: 1.25rem 1.5rem;
  }

  .ss-nav-toggle {
    display: block;
  }

  .ss-nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--ss-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
    font-size: 1.375rem;
  }

  .ss-nav-links.menu-open {
    display: flex;
  }

  .ss-nav-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--ss-text);
    cursor: pointer;
    padding: 0.625rem;
    min-width: 44px;
    min-height: 44px;
    line-height: 0;
  }

  .ss-nav-links a {
    opacity: 1;
  }

  .ss-logo-text {
    font-size: 1rem;
  }

  .ss-hero {
    padding: 0 1.5rem;
    min-height: 75vh;
  }

  .ss-hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ss-hero-text {
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .ss-hero-split .ss-hero-content {
    max-width: 100%;
  }

  .ss-hero-split .ss-hero-line {
    margin: 2rem auto;
  }

  .ss-hero-split .ss-hero-btns {
    justify-content: center;
    flex-direction: column;
  }

  .ss-hero-split .ss-hero-circles {
    left: 50%;
  }

  .ss-hero-image {
    height: 300px;
    order: -1;
  }

  .ss-circle-1 { width: 200px; height: 200px; }
  .ss-circle-2 { width: 280px; height: 280px; }
  .ss-circle-3 { width: 360px; height: 360px; }

  .ss-hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .ss-book-bridge-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
    text-align: center;
  }

  .ss-book-visual {
    max-width: 200px;
    margin: 0 auto;
  }

  .ss-book-ctas {
    justify-content: center;
    flex-direction: column;
  }

  .ss-section-inner,
  .ss-cta {
    padding: 2.75rem 1.5rem;
  }

  .ss-stages {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .ss-sage-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ss-footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.25rem 1.5rem;
  }
}
