/* ═══════════════════════════════════════════
   XOL LABS — Design System
   mind. body. xol.
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

:root {
  --red: #C0392B;
  --bright-red: #E74C3C;
  --dark-red: #8B1A1A;
  --black: #0A0A0A;
  --deep-black: #050505;
  --cream: #F5F0EB;
  --warm-white: #FAF8F5;
  --text-dark: #1A1A1A;
  --text-muted: #5A5A5A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--deep-black);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

a { transition: color 0.3s, opacity 0.3s; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(192, 57, 43, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.nav-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 10rem 2rem 4rem;
  background: var(--black);
  color: var(--cream);
  text-align: center;
  position: relative;
}

.page-hero::after {
  display: none;
}

.page-hero .section-label {
  color: var(--red);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.page-hero .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(245, 240, 235, 0.5);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── SECTIONS ─── */
section { padding: 6rem 2rem; }
.section-inner { max-width: 880px; margin: 0 auto; }
.section-wide { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  margin-bottom: 1.75rem;
  line-height: 1.2;
}

/* ─── PATHWAY CARDS ─── */
.pathway-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pathway-card {
  background: rgba(245, 240, 235, 0.03);
  border: 1px solid rgba(192, 57, 43, 0.12);
  border-radius: 5px;
  padding: 2.25rem 1.75rem;
  transition: border-color 0.4s, background 0.4s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.pathway-card:hover {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(245, 240, 235, 0.05);
  transform: translateY(-2px);
}

.pathway-marker {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.pathway-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.pathway-card .pathway-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(245, 240, 235, 0.35);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.pathway-card p:last-of-type {
  font-size: 0.85rem;
  color: rgba(245, 240, 235, 0.5);
  line-height: 1.8;
}

.pathway-card .card-arrow {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.6;
  transition: all 0.3s;
  font-weight: 400;
}

.pathway-card:hover .card-arrow { opacity: 1; }

/* ─── PATHWAY DETAIL PAGE ─── */
.pathway-detail { background: var(--cream); }

.pathway-detail p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1.2rem;
}

.philosophy-block {
  background: var(--warm-white);
  border-left: 3px solid var(--red);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  border-radius: 0 4px 4px 0;
}

.philosophy-block p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.philosophy-block p:last-child { margin-bottom: 0; }

.practices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.practice-item {
  background: var(--warm-white);
  padding: 1.75rem;
  border-radius: 4px;
  border: 1px solid rgba(139, 26, 26, 0.08);
}

.practice-item h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.practice-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── CODES LIST ─── */
.codes-list {
  list-style: none;
  counter-reset: codes;
}

.codes-list li {
  counter-increment: codes;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(139, 26, 26, 0.07);
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.codes-list li:first-child {
  border-top: 1px solid rgba(139, 26, 26, 0.07);
}

.codes-list li::before {
  content: counter(codes, decimal-leading-zero);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--red);
  min-width: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.codes-list li strong {
  color: var(--text-dark);
  font-weight: 500;
}

/* ─── CONNECT / CTA ─── */
.connect-section {
  background: var(--deep-black);
  color: var(--cream);
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.connect-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 57, 43, 0.3), transparent);
}

.connect-section .section-title { color: var(--cream); }

.connect-section p {
  color: rgba(245, 240, 235, 0.55);
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--red);
  color: var(--cream);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--red);
  transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.cta-button:hover::before { left: 0; }
.cta-button:hover { color: var(--cream); }

.connect-details {
  font-size: 0.88rem;
  color: rgba(245, 240, 235, 0.35);
  line-height: 2.2;
}

.connect-details a {
  color: rgba(245, 240, 235, 0.55);
  text-decoration: none;
}

.connect-details a:hover { color: var(--red); }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.about-content p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.about-content a { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(192, 57, 43, 0.3); }
.about-content a:hover { border-color: var(--red); }

.about-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.about-role {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ─── BACK LINK ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.8;
  font-weight: 500;
  transition: opacity 0.3s;
}

.back-link:hover { opacity: 1; }

/* ─── FOOTER ─── */
footer {
  background: var(--deep-black);
  border-top: 1px solid rgba(245, 240, 235, 0.04);
  padding: 2rem 2rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: rgba(245, 240, 235, 0.2);
  letter-spacing: 0.1em;
}

footer a {
  color: rgba(245, 240, 235, 0.3);
  text-decoration: none;
}

footer a:hover { color: var(--red); }

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

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.15); }
  50% { box-shadow: 0 0 60px 10px rgba(192, 57, 43, 0.06); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.fade-in-1 { animation-delay: 0.2s; }
.fade-in-2 { animation-delay: 0.4s; }
.fade-in-3 { animation-delay: 0.6s; }
.fade-in-4 { animation-delay: 0.8s; }
.fade-in-5 { animation-delay: 1.0s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0.9rem 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    padding: 1.5rem 1.75rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(192, 57, 43, 0.08);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  section { padding: 4rem 1.5rem; }
  .page-hero { padding: 9rem 1.5rem 4rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo { max-width: 240px; }
  .pathway-cards { grid-template-columns: 1fr; }
  .practices-grid { grid-template-columns: 1fr; }

  .connect-section { padding: 4rem 1.5rem; }
}
