/* =============================================
   KAULA TREE - REDESIGN
   Inspired by Bethel.com aesthetic
   Brand Colors: #715442, #f8f3ec, #364a29,
                 #acad61, #000000, #ffffff
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #f8f3ec;
  --cream-dark: #efe8dd;
  --forest: #364a29;
  --forest-light: #3f5730;
  --forest-dark: #2a3b1f;
  --brown: #715442;
  --brown-light: #8a6b57;
  --olive: #acad61;
  --olive-light: #bfc07a;
  --black: #000000;
  --white: #ffffff;
  --text-dark: #000000;
  --text-body: #333333;
  --text-muted: #715442;
  --text-muted-light: #a89080;
  --border-light: #e5ddd2;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--forest);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(248, 243, 236, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: var(--olive);
  border-radius: 2px;
}

/* --- Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(54, 74, 41, 0.97);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(248, 243, 236, 0.08);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo img {
  width: 40px;
  height: 40px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--cream);
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--olive);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--olive);
  color: var(--cream) !important;
  padding: 10px 24px;
  border-radius: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease-out);
}

.btn-nav::after {
  display: none;
}

.btn-nav:hover {
  background: var(--olive-light);
  transform: translateY(-1px);
}

.btn-nav .arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn-nav:hover .arrow {
  transform: translateX(4px);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .nav-links { gap: 20px; }
  .btn-nav { padding: 10px 18px; }
  .nav-link { font-size: 13px; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--forest);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

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

.mobile-link {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--cream);
  letter-spacing: 4px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s var(--ease-out);
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.btn-mobile {
  font-size: 18px !important;
  font-family: var(--font-body) !important;
  font-weight: 600;
  letter-spacing: 1px !important;
  background: var(--olive);
  color: var(--forest-dark) !important;
  padding: 16px 40px;
  margin-top: 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn .arrow {
  transition: transform 0.3s var(--ease-out);
  font-size: 18px;
}

.btn:hover .arrow {
  transform: translateX(5px);
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(54, 74, 41, 0.25);
}

.btn-primary.light {
  background: var(--cream);
  color: var(--forest);
}

.btn-primary.light:hover {
  background: var(--cream-dark);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-outline.light {
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline.light:hover {
  background: var(--cream);
  color: var(--forest);
}

.btn-large {
  padding: 18px 42px;
  font-size: 16px;
}

.btn-small {
  padding: 10px 22px;
  font-size: 13px;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-cream {
  background: var(--cream);
}

.section-dark {
  background: var(--forest);
  color: var(--cream);
}

.section-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.6s var(--ease-out);
}

.section-tag.is-visible::before {
  width: 32px;
}

.section-tag.light {
  color: var(--olive);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

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

.section-title.large {
  font-size: clamp(48px, 6vw, 80px);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

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

.hero-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(100px, 18vw, 240px);
  line-height: 0.9;
  letter-spacing: 10px;
  margin-bottom: 48px;
  display: inline-block;
  text-align: left;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: -16px;
  margin-bottom: 44px;
  opacity: 0;
  color: rgba(248, 243, 236, 0.85);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-cta .btn-primary {
  background: var(--cream);
  color: var(--forest);
}

.hero-cta .btn-primary:hover {
  background: var(--cream-dark);
}

.hero-cta .btn-outline {
  color: var(--cream);
  border-color: rgba(248, 243, 236, 0.4);
}

.hero-cta .btn-outline:hover {
  background: rgba(248, 243, 236, 0.1);
  border-color: var(--cream);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-chevron {
  color: var(--olive);
  animation: chevronBounce 2.5s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.8; }
}


/* --- Mission --- */
.mission-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-text {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--forest);
}

.mission-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--brown);
  max-width: 600px;
  margin: 0 auto;
}

/* --- About --- */
#about {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Video in About Section */
.about-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.video-trigger:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  color: var(--cream);
  transition: all 0.4s ease;
  z-index: 2;
}

.video-play-btn svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
  animation: playPulse 2.5s ease-in-out infinite;
}

@keyframes playPulse {
  0%, 100% { filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3)); }
  50% { filter: drop-shadow(0 2px 24px rgba(172, 173, 97, 0.4)); }
}

.video-trigger:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  color: var(--olive);
}

.video-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.4s ease;
}

.video-trigger:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 1000px;
  aspect-ratio: 16/9;
  z-index: 1;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: none;
  color: var(--cream);
  border: 1px solid rgba(248, 243, 236, 0.3);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  background: rgba(248, 243, 236, 0.1);
  border-color: var(--cream);
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(248, 243, 236, 0.7);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    aspect-ratio: 16/10;
  }
  .about-video {
    aspect-ratio: 16/10;
  }
}

/* --- Stats --- */
.stats-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 160px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 48px;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--forest);
  overflow: hidden;
}

.stat-number.text-special {
  font-size: 36px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-light);
}

@media (max-width: 900px) {
  .stats-grid {
    gap: 30px;
  }
  .stat-divider {
    display: none;
  }
  .stat-item {
    min-width: 140px;
  }
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  transition: transform 0.5s var(--ease-out);
  perspective: 800px;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 20px;
  outline: 1px solid rgba(172, 173, 97, 0.4);
  outline-offset: 10px;
  transition: outline-offset 0.5s var(--ease-out), outline-color 0.5s ease;
}

.team-card:hover .team-image-wrap {
  outline-color: var(--olive);
  outline-offset: 0px;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 1s var(--ease-out), filter 0.6s ease;
}

.team-card:hover .team-image {
  transform: scale(1.1);
  filter: brightness(0.75);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(54, 74, 41, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 32px 24px;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  color: rgba(248, 243, 236, 0.8);
  transform: translateY(10px);
  transition: transform 0.5s var(--ease-out) 0.1s, opacity 0.5s ease 0.1s;
  opacity: 0;
}

.team-card:hover .team-tagline {
  transform: translateY(0);
  opacity: 1;
}

.team-overlay .btn {
  background: var(--cream);
  color: var(--forest);
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out) 0.15s;
  opacity: 0;
}

.team-card:hover .team-overlay .btn {
  transform: translateY(0);
  opacity: 1;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 3px;
  margin-bottom: 4px;
  color: var(--cream);
  transition: color 0.3s ease;
}

.team-card:hover .team-name {
  color: var(--olive);
}

.team-role {
  font-size: 14px;
  color: rgba(248, 243, 236, 0.5);
  font-weight: 400;
  transition: color 0.3s ease;
}

.team-card:hover .team-role {
  color: var(--cream);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* --- Trips --- */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trip-card {
  background: var(--forest-dark);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}

.trip-card:hover {
  transform: translateY(-8px);
}

.trip-image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.trip-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.trip-card:hover .trip-image-wrap img {
  transform: scale(1.08);
}

.trip-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--olive);
  color: var(--forest-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
}

.trip-content {
  padding: 28px;
}

.trip-title {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--cream);
}

.trip-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(248, 243, 236, 0.6);
  margin-bottom: 20px;
}

.trip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.5px;
}

.trip-link .arrow {
  transition: transform 0.3s var(--ease-out);
}

.trip-link:hover .arrow {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .trips-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .trips-grid { grid-template-columns: 1fr; max-width: 500px; }
}

/* --- Parallax Quote --- */
.parallax-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(54, 74, 41, 0.7);
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 40px 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}


.parallax-quote {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 60px);
  color: var(--cream);
  line-height: 1.2;
  letter-spacing: 1px;
  margin-bottom: 32px;
  font-style: normal;
}

.parallax-quote .verse-highlight {
  color: var(--cream);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.parallax-section:hover .verse-highlight {
  color: var(--olive-light);
  text-shadow: 0 0 20px rgba(172, 173, 97, 0.4);
}

@media (max-width: 768px) {
  .parallax-quote .verse-highlight {
    color: var(--olive-light);
    text-shadow: 0 0 20px rgba(172, 173, 97, 0.4);
  }
}

.parallax-cite {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--forest-dark);
  font-style: normal;
  display: inline-block;
  background: var(--olive-light);
  padding: 8px 24px;
  border-radius: 2px;
}

/* --- Teachings --- */
.teachings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.teaching-card {
  background: var(--white);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease-out);
}

.teaching-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(113, 84, 66, 0.1);
}

.teaching-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--forest);
}

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

.teaching-title {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--forest);
}

.teaching-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--brown);
  margin-bottom: 24px;
}

.teaching-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--forest);
}

.teaching-link .arrow {
  transition: transform 0.3s var(--ease-out);
}

.teaching-link:hover .arrow {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .teachings-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

/* --- Media Grid (homepage) --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.media-card {
  background: var(--white);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.4s var(--ease-out);
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(113, 84, 66, 0.1);
}

.media-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--forest);
}

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

@media (max-width: 600px) {
  .media-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* --- App Section --- */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.app-features {
  list-style: none;
  margin-bottom: 32px;
}

.app-features li {
  font-size: 16px;
  color: rgba(248, 243, 236, 0.7);
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
}

.app-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--olive);
  border-radius: 50%;
  transform: translateY(-50%);
}

.app-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(248, 243, 236, 0.2);
  color: var(--cream);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s var(--ease-out);
}

.app-store-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.app-store-btn:hover {
  background: rgba(248, 243, 236, 0.06);
  border-color: rgba(248, 243, 236, 0.35);
}

/* App Section on Light Background */
.app-section-light .app-features li {
  color: var(--brown) !important;
}

.app-section-light .app-store-btn {
  border-color: var(--border-light) !important;
  color: var(--forest) !important;
}

.app-section-light .app-store-btn:hover {
  background: rgba(54, 74, 41, 0.06) !important;
  border-color: var(--forest) !important;
}

.app-section-light .qr-label {
  color: var(--forest) !important;
}

.section-dark .form-input {
  background: var(--cream);
  border-color: var(--border-light);
  color: var(--text-dark);
}

.section-dark .form-input::placeholder {
  color: var(--text-muted-light);
}

/* QR Code Card */
.qr-card {
  position: absolute;
  bottom: -40px;
  right: -45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: rotate(0deg);
  z-index: 3;
  cursor: default;
}

.qr-image-wrap {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(248, 243, 236, 0.4);
}

/* Phone Mockup */
.app-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  background: #1a1a1a;
  border: 3px solid #2a2a2a;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: phoneBounce 3s ease-in-out infinite;
}

@keyframes phoneBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 1206/2472;
}

.phone-screen-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -5.7%;
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .app-mockup {
    order: -1;
  }
  .qr-card {
    right: -25px;
    bottom: -10px;
  }
}

/* --- Support Section --- */
.support-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.support-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--brown);
  margin-bottom: 40px;
}

.support-give-btn {
  font-size: 18px;
  padding: 18px 60px;
  letter-spacing: 1px;
  flex-wrap: wrap;
}

/* --- Newsletter --- */
.newsletter-section {
  padding: 80px 0;
}

.newsletter-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.newsletter-content {
  flex: 1;
  max-width: 450px;
}

.newsletter-text {
  font-size: 15px;
  color: var(--brown);
  margin-top: -16px;
}

.newsletter-form {
  flex: 1;
  max-width: 500px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row .form-input {
  flex: 1;
}

.form-group {
  display: flex;
  gap: 0;
}

.form-input {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder {
  color: var(--text-muted-light);
}

.form-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(172, 173, 97, 0.15);
}

.form-group .btn {
  white-space: nowrap;
  border: 1px solid var(--olive);
  border-left: none;
  background: var(--olive);
  color: var(--forest-dark);
}

.form-group .btn:hover {
  background: var(--olive-light);
}

.form-required-note {
  font-size: 12px;
  color: var(--text-muted-light);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .newsletter-grid {
    flex-direction: column;
    text-align: center;
  }
  .form-row {
    flex-direction: column;
    gap: 8px;
  }
  .form-group {
    flex-direction: column;
    gap: 12px;
  }
  .form-group .btn {
    border-left: 1px solid var(--olive);
    justify-content: center;
  }
}

/* --- Footer --- */
.footer {
  background: var(--forest-dark);
  color: var(--cream);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(172, 173, 97, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 3px;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(248, 243, 236, 0.55);
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(248, 243, 236, 0.1);
  color: rgba(248, 243, 236, 0.6);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-social-link:hover {
  background: var(--olive);
  color: var(--cream);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: var(--cream);
}

.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(248, 243, 236, 0.55);
  padding: 6px 0;
  transition: color 0.3s, transform 0.3s var(--ease-out);
}

.footer-link:hover {
  color: var(--olive);
  transform: translateX(6px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(248, 243, 236, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(248, 243, 236, 0.4);
}

.footer-location {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Utility --- */
.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline-flex;
  }
  .section {
    padding: 60px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Smooth reveal animation base */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
}

[data-animate="reveal"] {
  transform: none;
}

/* --- Hide QR code on small screens --- */
@media (max-width: 500px) {
  .qr-card {
    display: none;
  }

  .phone-frame {
    width: 240px;
  }
}

/* --- Reduce section padding on very small screens --- */
@media (max-width: 480px) {
  .section {
    padding: 48px 0;
  }
}

/* --- Mobile Bio Link (hidden on desktop, visible on mobile) --- */
.mobile-bio-link {
  display: none;
}

/* --- Team Cards Mobile Overrides --- */
@media (max-width: 768px) {
  .mobile-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--olive);
    margin-top: 6px;
  }

  .mobile-bio-link .arrow {
    font-size: 14px;
    transition: transform 0.3s var(--ease-out);
  }

  .team-card {
    perspective: none;
    will-change: auto;
  }

  .team-card:hover {
    transform: none;
  }

  .team-card:hover .team-image {
    transform: none;
    filter: none;
  }

  .team-card:hover .team-image-wrap {
    outline-offset: 6px;
    outline-color: rgba(172, 173, 97, 0.4);
  }

  .team-overlay {
    display: none;
  }

  .team-image-wrap {
    outline-offset: 6px;
    transition: none;
  }

  .team-image {
    transition: none;
  }

  .team-card:hover .team-name {
    color: var(--cream);
  }

  .team-card:hover .team-role {
    color: rgba(248, 243, 236, 0.5);
  }
}

/* --- Decorative Hover Overrides for Touch Devices --- */
/* hover: none catches touch-primary devices; pointer: coarse is a fallback for older browsers */
@media (hover: none), (pointer: coarse) {
  /* Team cards — fully static */
  .team-card {
    transition: none;
    perspective: none;
  }

  .team-image-wrap {
    outline: none;
    transition: none;
  }

  .team-image {
    transition: none;
  }

  .team-overlay {
    display: none;
  }

  .team-card:hover {
    transform: none;
  }

  .team-card:hover .team-image {
    transform: none;
    filter: none;
  }

  .team-card:hover .team-image-wrap {
    outline: none;
  }

  .team-card:hover .team-name {
    color: var(--cream);
  }

  .team-card:hover .team-role {
    color: rgba(248, 243, 236, 0.5);
  }

  /* Trip cards — static */
  .trip-card {
    transition: none;
  }

  .trip-image-wrap img {
    transition: none;
  }

  .trip-card:hover {
    transform: none;
  }

  .trip-card:hover .trip-image-wrap img {
    transform: none;
  }

  /* Teaching cards — static */
  .teaching-card {
    transition: none;
  }

  .teaching-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* About image — static */
  .about-image img {
    transition: none;
  }

  .about-image:hover img {
    transform: none;
  }

  /* Media cards — static */
  .media-card {
    transition: none;
  }

  .media-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Verse highlight — always show highlighted on touch */
  .parallax-quote .verse-highlight {
    color: var(--olive-light);
    text-shadow: 0 0 20px rgba(172, 173, 97, 0.4);
    transition: none;
  }
}

/* Cursor follower */
.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(54, 74, 41, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-follower.on-dark {
  border-color: rgba(248, 243, 236, 0.25);
}

@media (max-width: 768px) {
  .cursor-follower {
    display: none;
  }
}
