/* =====================
   PILLARS
   ===================== */
.pillars { padding: 100px 0 100px; background: var(--cream); }

.pillars-header-wrap {
  padding: 0 100px;
}

.section-header { margin-bottom: 64px; }
.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--forest-light);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before { content: ''; width: 30px; height: 2px; background: var(--forest-light); }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.15;
  max-width: 950px;
}
.section-header h2 em {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.0vw, 2.5rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.15;
  max-width: 950px;
}

/* =====================
   HORIZONTAL SCROLL CAROUSEL
   ===================== */
.pillars-carousel-wrap {
  position: relative;
}

/* Fade edge hints */
.pillars-carousel-wrap::before,
.pillars-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 5;
}
.pillars-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}
.pillars-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.pillars-scroll-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 100px 40px 0;
  cursor: grab;
}
.pillars-scroll-track::-webkit-scrollbar { display: none; }
.pillars-scroll-track.grabbing { cursor: grabbing; }

/* Scroll indicator bar */
.pillars-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 100px;
  margin-top: 8px;
}
.scroll-track-bar {
  flex: 1;
  height: 2px;
  background: rgba(15,61,26,0.12);
  border-radius: 2px;
  overflow: hidden;
  max-width: 320px;
}
.scroll-track-thumb {
  height: 100%;
  background: linear-gradient(to right, var(--forest), var(--gold));
  border-radius: 2px;
  width: 25%;
  transform: translateX(0%);
  transition: transform 0.1s linear;
}
.scroll-hint-text {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-hint-text svg {
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* NAV BUTTONS */
.pillars-nav-btns {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.pillars-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(15,61,26,0.25);
  background: white;
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
  flex-shrink: 0;
}
.pillars-nav-btn:hover {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(15,61,26,0.2);
}
.pillars-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* PILLAR CARDS */
.inv-card {
  background-color: transparent;
  padding: 36px 30px;
  
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  /* Carousel sizing */
  flex: 0 0 calc(33.333% - 19px);
  min-width: 340px;
  max-width: 480px;
  scroll-snap-align: start;
  user-select: none;
}


.pillar-card {
  background: white;
  border: 1px solid rgba(15,61,26,0.1);
  border-top: 4px solid var(--forest);
  padding: 36px 30px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-top-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  /* Carousel sizing */
  flex: 0 0 calc(33.333% - 19px);
  min-width: 340px;
  max-width: 480px;
  scroll-snap-align: start;
  user-select: none;
}
.pillar-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(15,61,26,0.04), transparent);
  transition: height 0.4s ease;
}
.pillar-card:hover::before { height: 100%; }
.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15,61,26,0.13);
  border-top-color: var(--gold);
}
.pillar-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: #9e9e9e;
  line-height: 1;
  margin-bottom: 12px;
}
.pillar-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.pillar-card:hover .pillar-icon { transform: scale(1.08) rotate(3deg); }
.pillar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 16px;
  line-height: 1.3;
}
.pillar-card > p {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.72;
  margin-bottom: 20px;
}
.pillar-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.pillar-bullets li {
  font-family: 'Source Serif 4', serif;
  font-size: 0.91rem;
  color: var(--text-mid);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}
.pillar-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
  top: 3px;
  transition: transform 0.2s;
}
.pillar-card:hover .pillar-bullets li::before { transform: translateX(3px); }
.pillar-sublist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 10px 18px;
}
.pillar-sublist li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.pillar-sublist li .num {
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--forest-light);
  font-size: 0.78rem;
}
.pillar-tag {
  display: inline-block;
  background: rgba(15,61,26,0.07);
  border: 1px solid rgba(15,61,26,0.15);
  color: var(--forest);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pillar-divider {
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 18px 0;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.pillar-card:hover .pillar-divider { opacity: 0.8; }

/* 4th card accent — gold border top to distinguish */
.pillar-card.last-card{
  border-top-color: var(--gold);
  background: linear-gradient(160deg, #fff 85%, rgba(212,160,23,0.05) 100%);
}
.pillar-card.last-card:hover {
  border-top-color: var(--forest);
}
.pillar-card.last-card .pillar-tag {
  background: rgba(212,160,23,0.12);
  border-color: rgba(212,160,23,0.3);
  color: #7a5a00;
}
