/* ══════════════════════════════════════════════════════════════════════
   LONGEVITY PROGRAMS PAGE STYLES
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --ll-forest: #242C16;
  --ll-forest-end: #3A4525;
  --ll-tan: #e9dfd6;
  --ll-sage: #c8d49d;
  --ll-gold: #F2CE59;
  --ll-cream: #f5f0ea;
  --ll-background: #fbf8f4;
}

.lp-page {
  background: var(--ll-background);
  color: var(--ll-forest);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.lp-section {
  padding: 40px 24px;
  overflow-x: visible;
}

.lp-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.lp-desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .lp-desktop-only {
    display: inline;
  }
}

/* ─────────────── TYPOGRAPHY ─────────────── */
.lp-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  line-height: 1.5;
}

.lp-headline {
  font-family: "KareliaWeb", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.lp-headline-lg {
  font-size: clamp(36px, 8vw, 52px);
}

.lp-headline-md {
  font-size: clamp(28px, 5vw, 40px);
}

.lp-body {
  font-size: 14px;
  line-height: 1.6;
}

/* ─────────────── PROGRAM CARDS SECTION ─────────────── */
.lp-programs-header {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .lp-programs-header {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
}

.lp-programs-intro {
  opacity: 0.85;
}

/* ─────────────── PROGRAM CARD ─────────────── */
.lp-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(36, 44, 22, 0.1);
  padding: 24px;
  background: #fff;
  margin-bottom: 24px;
}

.lp-card--featured {
  background: linear-gradient(135deg, #242C16 0%, #3A4525 100%);
  border-color: transparent;
  color: #fff;
}

.lp-card__glow {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,194,147,0.28), transparent 70%);
  pointer-events: none;
}

.lp-card__inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .lp-card {
    padding: 32px;
  }
  .lp-card__inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 0.72fr);
    gap: 40px;
    align-items: stretch;
  }
}

.lp-card__content {
  display: flex;
  flex-direction: column;
}

.lp-card__category {
  color: rgba(36, 44, 22, 0.6);
  margin-bottom: 8px;
}

.lp-card--featured .lp-card__category {
  color: var(--ll-sage);
}

.lp-card__title {
  margin: 0;
}

.lp-card--featured .lp-card__title {
  color: #fff;
}

.lp-card__summary {
  margin-top: 16px;
  max-width: 640px;
  opacity: 0.8;
}

/* Highlights */
.lp-card__highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
  justify-content: start;
}

.lp-card__highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* On desktop: first two highlights side by side, rest stacked */
@media (min-width: 768px) {
  .lp-card__highlights {
    grid-template-columns: repeat(2, auto);
    gap: 12px 32px;
    margin-top: 20px;
  }

  /* Third and beyond span full width (stack vertically) */
  .lp-card__highlight:nth-child(n+3) {
    grid-column: 1;
  }
}

.lp-card__highlight svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--ll-forest);
  stroke-width: 3;
}

.lp-card--featured .lp-card__highlight {
  opacity: 0.85;
}

.lp-card--featured .lp-card__highlight svg {
  stroke: var(--ll-sage);
}

/* Card Actions */
.lp-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .lp-card__actions {
    margin-top: 28px;
  }
}

@media (min-width: 1024px) {
  .lp-card__actions {
    margin-top: auto;
    padding-top: 32px;
  }
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  font-family: inherit;
}

.lp-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.lp-btn--outline {
  background: rgba(233, 223, 214, 0.5);
  border: 1px solid rgba(36, 44, 22, 0.2);
  color: var(--ll-forest);
}

.lp-btn--outline:hover {
  background: rgba(233, 223, 214, 0.8);
}

.lp-card--featured .lp-btn--outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.lp-card--featured .lp-btn--outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lp-btn--solid {
  background: var(--ll-forest);
  color: #fff;
}

.lp-btn--solid:hover {
  background: var(--ll-forest-end);
}

.lp-btn--solid:hover svg {
  transform: translateX(2px);
}

.lp-card--featured .lp-btn--solid {
  background: #fff;
  color: var(--ll-forest);
}

.lp-card--featured .lp-btn--solid:hover {
  background: var(--ll-sage);
}

/* Card Image */
.lp-card__image-wrap {
  display: none;
  position: relative;
  min-height: 330px;
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .lp-card__image-wrap {
    display: block;
  }
}

.lp-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 44, 22, 0.2), transparent);
}

/* ─────────────── EXPANDABLE DETAILS ─────────────── */
.lp-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.lp-details.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 20px;
}

.lp-details__inner {
  overflow: hidden;
}

.lp-details__grid {
  columns: 1;
  gap: 40px;
}

@media (min-width: 640px) {
  .lp-details__grid {
    columns: 2;
  }
}

.lp-details__group {
  break-inside: avoid;
  margin-bottom: 24px;
}

.lp-details__group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(36, 44, 22, 0.6);
  margin-bottom: 12px;
}

.lp-card--featured .lp-details__group-label {
  color: var(--ll-sage);
}

.lp-details__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-details__item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(36, 44, 22, 0.85);
  margin-bottom: 8px;
}

.lp-card--featured .lp-details__item {
  color: rgba(255, 255, 255, 0.85);
}

.lp-details__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--ll-forest);
  stroke-width: 2.5;
}

.lp-card--featured .lp-details__item svg {
  stroke: var(--ll-sage);
}

/* Chevron rotation */
.lp-btn--toggle .lp-chevron {
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}

.lp-btn--toggle[aria-expanded="true"] .lp-chevron {
  transform: rotate(0deg);
}

/* ══════════════════════════════════════════════════════════════════════
   COMPARISON TABLE SECTION
   ══════════════════════════════════════════════════════════════════════ */

.lp-compare {
  background: rgba(233, 223, 214, 0.4);
}

.lp-compare__header {
  margin-bottom: 32px;
}

.lp-compare__headline {
  margin-top: 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Tier Selector */
.lp-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .lp-tiers {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.lp-tier {
  position: relative;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(36, 44, 22, 0.1);
  padding: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: flex;
  flex-direction: column;
}

.lp-tier:hover {
  border-color: rgba(36, 44, 22, 0.3);
}

.lp-tier.is-active {
  background: var(--ll-forest);
  border-color: var(--ll-forest);
  color: #fff;
  box-shadow: 0 0 0 2px var(--ll-forest);
}

.lp-tier__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: rgba(36, 44, 22, 0.6);
  display: block;
}

.lp-tier.is-active .lp-tier__tag {
  color: var(--ll-gold);
}

.lp-tier__name {
  font-family: "KareliaWeb", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.1;
  display: block;
}

.lp-tier__score {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 44, 22, 0.1);
  font-size: 12px;
  line-height: 1.4;
  display: block;
}

.lp-tier.is-active .lp-tier__score {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.lp-tier__score-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(36, 44, 22, 0.6);
  margin-bottom: 2px;
  display: block;
}

.lp-tier.is-active .lp-tier__score-label {
  color: var(--ll-gold);
}

.lp-tier__arrow {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  stroke: rgba(36, 44, 22, 0.5);
  transition: transform 0.15s ease;
}

.lp-tier.is-active .lp-tier__arrow {
  stroke: var(--ll-gold);
  transform: translateX(2px);
}

/* Legend */
.lp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  font-size: 12px;
  color: rgba(36, 44, 22, 0.7);
}

.lp-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-legend__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(242, 206, 89, 0.2);
  border: 1px solid rgba(242, 206, 89, 0.3);
  color: var(--ll-forest);
  font-weight: 600;
}

.lp-legend__badge img {
  width: 14px;
  height: 14px;
}

.lp-legend__item svg {
  width: 14px;
  height: 14px;
}

/* Table Container */
.lp-table-wrap {
  margin-top: 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(36, 44, 22, 0.1);
  overflow: hidden;
  position: relative;
}

.lp-table-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--ll-sage);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--ll-forest);
  transition: opacity 0.3s ease;
}

.lp-table-hint.is-hidden {
  opacity: 0;
}

@media (min-width: 1024px) {
  .lp-table-hint {
    display: none;
  }
}

.lp-table-hint svg {
  width: 16px;
  height: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.lp-table-scroller {
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

/* On mobile, ensure scroller is scrollable */
@media (max-width: 1023px) {
  .lp-table-scroller {
    cursor: grab;
  }
  .lp-table-scroller:active {
    cursor: grabbing;
  }
}

.lp-table-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, rgba(36, 44, 22, 0.1), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.lp-table-fade.is-hidden {
  opacity: 0;
}

@media (min-width: 1024px) {
  .lp-table-fade {
    display: none;
  }
}

/* Table */
.lp-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

@media (min-width: 1024px) {
  .lp-table {
    table-layout: fixed;
  }
}

.lp-table th,
.lp-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}

.lp-table thead th {
  background: var(--ll-forest);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  white-space: nowrap;
}

.lp-table thead th:first-child {
  min-width: 260px;
}

.lp-table thead th:not(:first-child) {
  min-width: 100px;
  text-align: center;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .lp-table thead th:first-child {
    width: 42%;
  }
  .lp-table thead th:not(:first-child) {
    width: 14.5%;
  }
}

/* Ensure body cells match header widths */
.lp-table tbody td:first-child {
  min-width: 260px;
}

.lp-table tbody td:not(:first-child) {
  min-width: 100px;
  text-align: center;
}

@media (min-width: 1024px) {
  .lp-table tbody td:first-child {
    width: 42%;
  }
  .lp-table tbody td:not(:first-child) {
    width: 14.5%;
  }
}

.lp-table thead th.is-highlighted {
  background: rgba(210, 225, 160, 0.5);
  color: var(--ll-forest);
}

/* Group Header */
.lp-table__group-header td {
  background: rgba(233, 223, 214, 0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--ll-forest);
  padding: 12px 20px;
}

/* Data Rows */
.lp-table tbody tr {
  border-top: 1px solid rgba(36, 44, 22, 0.08);
}

.lp-table tbody tr:nth-child(even) {
  background: rgba(36, 44, 22, 0.015);
}

.lp-table__row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ll-forest);
}

.lp-table__row-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(36, 44, 22, 0.6);
  line-height: 1.4;
  max-width: 400px;
}

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

.lp-table__cell.is-highlighted {
  background: rgba(210, 225, 160, 0.5);
}

.lp-table__cell--value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ll-forest);
}

.lp-table__cell--check svg {
  width: 16px;
  height: 16px;
  stroke: var(--ll-forest);
  stroke-width: 2.5;
  display: inline-block;
}

.lp-table__cell--dash svg {
  width: 16px;
  height: 16px;
  stroke: rgba(36, 44, 22, 0.3);
  stroke-width: 2;
  display: inline-block;
}

.lp-table__cell--heart img {
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* CTA */
.lp-compare__cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .lp-compare__cta {
    justify-content: center;
  }
}

.lp-btn--cta {
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ══════════════════════════════════════════════════════════════════════
   DESTINATION SECTION
   ══════════════════════════════════════════════════════════════════════ */

.lp-destination {
  background: linear-gradient(135deg, #242C16 0%, #3A4525 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.lp-destination__headline {
  max-width: 800px;
  margin: 0 auto;
}

.lp-destination__subhead {
  margin-top: 40px;
  font-family: "KareliaWeb", Georgia, serif;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.4;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.lp-destination__body {
  margin-top: 24px;
  font-family: "KareliaWeb", Georgia, serif;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.4;
  opacity: 0.9;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.lp-destination__cta {
  margin-top: 48px;
}

.lp-btn--outline-white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 16px 48px;
  font-size: 14px;
}

.lp-btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.lp-btn--solid-white {
  background: #fff;
  border: 1px solid #fff;
  color: var(--ll-forest);
  padding: 16px 48px;
  font-size: 14px;
}

.lp-btn--solid-white:hover {
  background: #E9DFD6;
  border-color: #E9DFD6;
}


/* ─────────────── TESTIMONIAL SECTION ─────────────── */
.lp-testimonial {
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.lp-testimonial__image {
  flex: 0 0 auto;
  height: 320px;
  overflow: hidden;
}

.lp-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lp-testimonial__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  background: linear-gradient(to bottom, #4a4a3a 0%, #343823 100%);
  text-align: center;
}

.lp-testimonial__quote {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  color: #E9DFD6;
  max-width: 720px;
  margin: 0 0 24px 0;
}

.lp-testimonial__cite {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  color: #E9DFD6;
}

@media (min-width: 768px) {
  .lp-testimonial__image {
    height: 400px;
  }

  .lp-testimonial__content {
    padding: 64px 48px;
  }

  .lp-testimonial__quote {
    font-size: 22px;
  }

  .lp-testimonial__cite {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .lp-testimonial__image {
    height: 480px;
  }

  .lp-testimonial__content {
    padding: 80px 64px;
  }

  .lp-testimonial__quote {
    font-size: 24px;
  }
}
