/* =============================================
   Heritage Social — Inner Pages Shared Styles
   ============================================= */

/* ─── Page Hero ─── */
.page-hero {
  background: var(--dark-green);
  padding: calc(var(--header-height) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.175rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  line-height: 1.65;
}

.page-hero__accent {
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: clamp(200px, 35vw, 450px);
  pointer-events: none;
  opacity: 0.07;
}

.page-hero__accent svg {
  width: 100%;
  height: auto;
}

/* ─── Active nav ─── */
[aria-current="page"] {
  color: #fff !important;
}

[aria-current="page"]::after {
  width: 100% !important;
}

/* ─── Numbered steps / process ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: process-step;
}

.process-card {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  counter-increment: process-step;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark-green);
  color: var(--yellow);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.process-card:hover .process-card__number {
  transform: scale(1.1) rotate(-5deg);
  background: var(--yellow);
  color: var(--dark-green);
}

.process-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 8px;
}

.process-card p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ─── Feature row (icon + text side by side) ─── */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 320px;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-row__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 60px);
  position: relative;
  overflow: hidden;
}

.feature-row:nth-child(1) .feature-row__visual { background: var(--mint-light); }
.feature-row:nth-child(2) .feature-row__visual { background: var(--yellow); }
.feature-row:nth-child(3) .feature-row__visual { background: var(--dark-green); }
.feature-row:nth-child(4) .feature-row__visual { background: var(--mint-light); }

.feature-row__icon {
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  color: var(--dark-green);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-row:nth-child(3) .feature-row__icon { color: #fff; }

.feature-row:hover .feature-row__icon {
  transform: scale(1.1) rotate(3deg);
}

.feature-row__icon svg {
  width: 100%;
  height: 100%;
}

.feature-row__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}

.feature-row__title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 12px;
}

.feature-row__content p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 12px;
}

.feature-row__content p:last-child {
  margin-bottom: 0;
}

/* ─── Card grid (generic) ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__placeholder-icon {
  width: 56px;
  height: 56px;
  color: var(--mint);
  opacity: 0.5;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.card:hover .card__placeholder-icon {
  transform: scale(1.15);
  opacity: 0.8;
}

.card__placeholder-icon svg {
  width: 100%;
  height: 100%;
}

.card__body {
  padding: clamp(20px, 2.5vw, 28px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__tag {
  display: inline-block;
  background: var(--mint-bg);
  color: var(--dark-green);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  width: fit-content;
  transition: background 0.2s ease;
}

.card:hover .card__tag {
  background: var(--yellow);
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card__body p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-green);
  transition: color 0.2s ease, gap 0.2s ease;
}

.card__link:hover {
  color: var(--yellow);
  gap: 10px;
}

/* ─── Stats bar ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: clamp(28px, 3vw, 48px);
  text-align: center;
  transition: transform 0.3s ease;
}

.stat:nth-child(1) { background: var(--dark-green); color: #fff; }
.stat:nth-child(2) { background: var(--yellow); color: var(--dark-green); }
.stat:nth-child(3) { background: var(--mint-light); color: var(--dark-green); }
.stat:nth-child(4) { background: var(--dark-green); color: #fff; }

.stat:hover {
  transform: scale(1.03);
  z-index: 1;
}

.stat__number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  transition: transform 0.3s ease;
}

.stat:hover .stat__number {
  transform: scale(1.08);
}

.stat__label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.75;
}

/* ─── Video embed (featured) ─── */
.video-card__embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Video grid ─── */
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 46, 53, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .video-card__play {
  opacity: 1;
}

.video-card__play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card:hover .video-card__play-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-card__play-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
  fill: var(--dark-green);
}

.video-card__duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ─── Team grid ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.team-member {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
  align-items: flex-start;
}

.team-member__avatar {
  width: clamp(100px, 12vw, 140px);
  height: clamp(100px, 12vw, 140px);
  border-radius: 50%;
  background: var(--mint-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--border-light);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-member:hover .team-member__avatar {
  border-color: var(--yellow);
  transform: scale(1.05);
}

.team-member__avatar-icon {
  width: 48px;
  height: 48px;
  color: var(--mint);
  opacity: 0.5;
}

.team-member__avatar-icon svg {
  width: 100%;
  height: 100%;
}

.team-member__info {
  flex: 1;
}

.team-member__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 4px;
}

.team-member__role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 12px;
  display: inline-block;
  background: var(--dark-green);
  padding: 3px 12px;
  border-radius: 20px;
}

.team-member__bio {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--border-light);
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline__item:hover .timeline__dot {
  transform: scale(1.3);
  background: var(--dark-green);
}

.timeline__year {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.timeline__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 6px;
}

.timeline__item p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ─── Values grid ─── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.value-tile {
  padding: clamp(32px, 4vw, 52px);
  text-align: center;
  transition: transform 0.3s ease;
}

.value-tile:nth-child(1) { background: var(--dark-green); color: #fff; }
.value-tile:nth-child(2) { background: var(--yellow); color: var(--dark-green); }
.value-tile:nth-child(3) { background: var(--mint-light); color: var(--dark-green); }

.value-tile:hover { transform: scale(1.02); z-index: 1; }

.value-tile__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-tile:hover .value-tile__icon {
  transform: rotate(10deg) scale(1.15);
}

.value-tile__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-tile__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-tile p {
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.85;
}

/* ─── CTA banner ─── */
.cta-banner {
  background: var(--dark-green);
  padding: clamp(48px, 6vw, 80px) 0;
  text-align: center;
}

.cta-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.cta-banner .btn--primary:hover {
  box-shadow: 0 4px 20px rgba(255, 195, 53, 0.3);
}

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

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-row:nth-child(even) {
    direction: ltr;
  }

  .feature-row__visual {
    padding: clamp(32px, 6vw, 48px);
    min-height: 200px;
  }

  .card-grid,
  .process-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
