/* ═══════════════════════════════════════════════════════════
   PIKO — Shared Stylesheet
   A gathering place at the heart of Kauai
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-light);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Variables ── */
:root {
  /* Chakra palette */
  --root:        #EF4444;
  --sacral:      #F97316;
  --solar:       #EAB308;
  --heart:       #22C55E;
  --throat:      #3B82F6;
  --third-eye:   #6366F1;
  --crown:       #8B5CF6;

  /* Backgrounds & text */
  --bg-light:    #FAF9F6;
  --bg-dark:     #0F172A;
  --bg-dark-alt: #1A1A2E;
  --text-light:  #1E1B18;
  --text-dark:   #FAF9F6;
  --text-muted:  #64748B;

  /* Spacing */
  --container:   1140px;
  --section-py:  100px;
  --section-py-m: 60px;

  /* Misc */
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.10);
  --transition:  0.3s ease;

  /* Chakra gradient */
  --chakra-gradient: linear-gradient(90deg,
    var(--root), var(--sacral), var(--solar),
    var(--heart), var(--throat), var(--third-eye), var(--crown));
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-light);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
  color: var(--text-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-muted);
}
.section-dark .lead { color: #94A3B8; }

blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 3px solid var(--heart);
  padding-left: 1.5rem;
  margin: 2rem 0;
}
.section-dark blockquote { color: #94A3B8; }

.section-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--heart);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.section-alt {
  background: #F3F1EC;
}

.text-center { text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* ── Chakra Gradient Bar ── */
.chakra-bar {
  height: 3px;
  background: var(--chakra-gradient);
  width: 100%;
  flex-shrink: 0;
}

.chakra-bar-thick {
  height: 4px;
  background: var(--chakra-gradient);
  width: 100%;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--heart); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--heart);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 249, 246, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--transition);
}
.nav-overlay a:hover { color: var(--heart); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-dark .tagline { color: #CBD5E1; }
.hero-dark h1 { color: var(--text-dark); }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  animation: float 2.5s ease-in-out infinite;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--text-muted);
  margin: 10px auto 0;
}

/* ── Placeholder Images ── */
.placeholder-img {
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-align: center;
  padding: 24px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.placeholder-img.tall { min-height: 360px; }
.placeholder-img.hero-size {
  min-height: 100vh;
  border-radius: 0;
}

.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(0.7);
  z-index: 0;
}
.placeholder-img > * { position: relative; z-index: 1; }

/* Stock image styling */
.stock-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.stock-img.hero-size {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dark);
}
.card-dark:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card h3 { margin-bottom: 12px; }

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.card-dark p { color: #94A3B8; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--heart);
  color: #fff;
}
.btn-primary:hover {
  background: #16A34A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.btn-outline {
  border: 2px solid var(--heart);
  color: var(--heart);
}
.btn-outline:hover {
  background: var(--heart);
  color: #fff;
}

.btn-dark {
  background: rgba(255,255,255,0.1);
  color: var(--text-dark);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-dark:hover {
  background: rgba(255,255,255,0.18);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Role Cards (Structure page) ── */
.role-card {
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}
.role-card:hover { transform: translateY(-4px); }

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.role-card .role-chakra {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.role-card h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.role-card .role-body {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.role-card .role-desc {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.role-card .role-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.role-card .role-space {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Bridge / Heart — visually distinct */
.role-card.role-heart {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 48px;
  background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(34,197,94,0.02));
  border: 2px solid rgba(34,197,94,0.2);
  box-shadow: 0 8px 40px rgba(34,197,94,0.08);
}
.role-card.role-heart::before { display: none; }
.role-card.role-heart h3 { font-size: 2rem; }

/* ── Circle Cards ── */
.circle-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid;
  transition: transform var(--transition);
}
.circle-card:hover { transform: translateY(-3px); }

.circle-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.circle-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.member-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.circle-card .circle-domain {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Axis Display ── */
.axis-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.axis-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.axis-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.axis-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-light);
  background: #fff;
  transition: border-color var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--heart);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.85rem;
  color: #94A3B8;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-dark); }

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: #64748B;
}

.footer-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.footer-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.footer-copy {
  font-size: 0.78rem;
  color: #475569;
  margin-top: 8px;
}

/* Chakra color bar inside footer */
.footer-chakra {
  width: 200px;
  height: 2px;
  background: var(--chakra-gradient);
  border-radius: 2px;
}

/* ── Space Section (About page structures) ── */
.space-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.space-card:hover { background: rgba(0,0,0,0.02); }

.space-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.space-card h4 { margin-bottom: 4px; }
.space-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Principles List ── */
.principles-list li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-left: 20px;
  position: relative;
}
.principles-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--heart);
  font-size: 1.5rem;
  line-height: 1;
}

/* ── Button: outline on dark background ── */
.btn-outline-dark {
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--text-dark);
}
.btn-outline-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ── Schedule Table (Involved page) ── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.schedule-table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}
.schedule-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: rgba(34,197,94,0.04); }

/* ── Contact: Form Row ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Contact: Social Links ── */
.social-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--third-eye);
  color: var(--third-eye);
}

/* ── Contact: Map Placeholder ── */
.map-placeholder {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #475569;
  border: 1px solid rgba(255,255,255,0.06);
}
.map-pin {
  font-size: 2rem;
  color: var(--throat);
  opacity: 0.7;
}
.map-placeholder p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #94A3B8;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-group > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal-group > .reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal-group > .reveal:nth-child(8) { transition-delay: 0.7s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }

  .role-card { padding: 28px 22px; }
  .role-card.role-heart { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-group { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Octahedron Embed Container ── */
.octahedron-embed {
  width: 100%;
  height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
  .octahedron-embed { height: 440px; }
}
@media (max-width: 480px) {
  .octahedron-embed { height: 360px; }
}
