/* =========================================================
   FORESTINSIGHTS / MONITORING SHARED PAGE STYLES
   ========================================================= */

/* =========================================================
   HERO TECH VISUALS - FORESTINSIGHTS GRID
   ========================================================= */

.hero-tech-forest {
  animation: forestParallax 18s ease-in-out infinite alternate;
}

.hero-tech-forest .forest-grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(120,217,139,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,217,139,0.08) 1px, transparent 1px);

  background-size: 90px 90px;

  mask-image:
    radial-gradient(circle at center, black 40%, transparent 90%);

  opacity: 0.4;

  animation: forestPan 24s linear infinite;
}

.hero-tech-forest .forest-grid::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 70% 40%, rgba(120,217,139,0.22), transparent 16rem),
    radial-gradient(circle at 84% 62%, rgba(120,217,139,0.12), transparent 14rem);
}

@keyframes forestParallax {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

@keyframes forestPan {
  from {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-14px);
  }

  to {
    transform: translateX(0);
  }
}

/* =========================================================
   HERO TECH VISUALS - MONITORING HEX GRID
   ========================================================= */

.hero-tech-monitoring .hex-grid {
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(circle at 72% 24%, rgba(120,217,139,0.20), transparent 20rem),
    radial-gradient(circle at 84% 68%, rgba(120,217,139,0.14), transparent 18rem),
    url("data:image/svg+xml,%3Csvg width='160' height='138' viewBox='0 0 160 138' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(120,217,139,0.12)' stroke-width='1'%3E%3Cpath d='M40 2l40 23v46L40 94 0 71V25z'/%3E%3Cpath d='M120 48l40 23v46l-40 23-40-23V71z'/%3E%3C/g%3E%3C/svg%3E");

  background-size:
    cover,
    cover,
    240px;

  background-position:
    center,
    center,
    center;

  opacity: 0.58;

  animation:
    monitoringFloat 22s ease-in-out infinite alternate,
    monitoringDrift 40s linear infinite;
}

@keyframes monitoringDrift {
  from {
    background-position:
      center,
      center,
      0 0;
  }

  to {
    background-position:
      center,
      center,
      -80px -40px;
  }
}

@keyframes monitoringFloat {
  from {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  to {
    transform: translateY(0);
  }
}

/* =========================================================
   HERO CONTENT / ACTIONS
   ========================================================= */

.about-hero-section {
  padding-top: 3.5rem;
  min-height: 420px;
  padding-bottom: 2rem;
  display: grid;
  align-items: start;
}

.about-hero-title span {
  background: linear-gradient(
    180deg,
    #8cf29d 0%,
    #6fdb82 45%,
    #57c96f 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.forestinsights-kicker {
  margin: 0 0 0.9rem;

  color: #f4fbf6;

  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.35;

  letter-spacing: -0.02em;
}

.forestinsights-hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}

.forestinsights-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 180px;
  padding: 0.95rem 1.4rem;

  border-radius: 999px;
  border: 1px solid transparent;

  font-weight: 700;
  font-size: 0.95rem;

  text-decoration: none;
  cursor: pointer;

  transition:
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.forestinsights-btn:hover {
  transform: translateY(-2px);
}

.forestinsights-btn-primary {
  background: #78d98b;
  color: #07110b;
  box-shadow: 0 10px 30px rgba(120,217,139,0.28);
}

.forestinsights-btn-primary:hover {
  background: #8ae49b;
}

.forestinsights-btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #edf6ef;

  border-color: rgba(120,217,139,0.28);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.forestinsights-btn-secondary:hover {
  border-color: rgba(120,217,139,0.5);
  background: rgba(120,217,139,0.08);
}

.forestinsights-play-icon {
  margin-left: 0.35rem;
  opacity: 0.9;

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.forestinsights-btn-secondary:hover .forestinsights-play-icon {
  transform: translateX(2px);
  opacity: 1;
}

.forestinsights-hero-note {
  margin-top: 0.75rem;

  color: rgba(244,251,246,0.68);

  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .forestinsights-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .forestinsights-btn {
    width: 100%;
  }
}

/* =========================================================
   HERO / CARD TRANSITION TIGHTENING
   ========================================================= */

.about-section.light {
  position: relative;
  z-index: 3;
  padding: 2.5rem clamp(1.5rem, 5vw, 4.5rem);
}

body:not(.forestinsights-faq-page) .about-section.light {
  margin-top: -8rem;
}

/* =========================================================
   FORESTINSIGHTS / MONITORING INTRO CARD
   ========================================================= */

.forestinsights-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;

  margin-bottom: 1.8rem;
}

.forestinsights-card-copy {
  display: flex;
  flex-direction: column;
}

.forestinsights-card-title {
  margin: 0 0 0.65rem;

  font-size: 1.35rem !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.forestinsights-card-intro {
  margin: 0;

  color: rgba(244,251,246,0.82);
  line-height: 1.6;
}

.forestinsights-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 3.6rem;
  height: 3.6rem;

  border-radius: 999px;

  background:
    radial-gradient(
      circle at center,
      rgba(120,217,139,0.22),
      rgba(120,217,139,0.08)
    );

  color: #78d98b;

  flex-shrink: 0;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 30px rgba(120,217,139,0.12);
}

.forestinsights-leaf-icon,
.monitoring-globe-icon,
.monitoring-target-icon {
  width: 2rem;
  height: 2rem;
}

.forestinsights-side-title {
  margin: 0 0 1.4rem;

  color: #78d98b;

  font-size: 1.35rem !important;
  font-weight: 700;

  letter-spacing: 0.01em;

  opacity: 0.95;
}

/* =========================================================
   MONITORING CARD FEATURE ICONS
   ========================================================= */

.monitoring-card-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  margin-top: 2rem;
}

.monitoring-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  padding: 0 1rem;

  border-left: 1px solid rgba(255,255,255,0.08);
}

.monitoring-feature-item:first-child {
  border-left: none;
}

.monitoring-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 3.25rem;
  height: 3.25rem;

  margin-bottom: 1rem;

  border-radius: 999px;

  background:
    radial-gradient(
      circle at center,
      rgba(120,217,139,0.22),
      rgba(120,217,139,0.08)
    );

  color: #78d98b;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 30px rgba(120,217,139,0.12);
}

.monitoring-card-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.monitoring-feature-item p {
  margin: 0;

  color: rgba(237,246,239,0.84);

  font-size: 0.92rem;
  line-height: 1.5;
}

/* =========================================================
   MODALS - CONTACT + VIDEO
   ========================================================= */

.hidden,
.forestinsights-video-modal.hidden,
.rnc-contact-overlay.hidden {
  display: none !important;
}

.forestinsights-video-modal,
.rnc-contact-overlay {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(8px);
}

.forestinsights-video-modal {
  z-index: 99999;
}

.rnc-contact-overlay {
  z-index: 99998;
  padding: 1.5rem;
  background: rgba(0,0,0,0.72);
}

.forestinsights-video-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
}

.forestinsights-video-panel {
  position: relative;
  width: min(1100px, 92vw);
  z-index: 2;
}

.forestinsights-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;

  border-radius: 24px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

/* .forestinsights-video-wrap iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
} */

.forestinsights-video-player {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border: 0;
  background: #000;
}

.forestinsights-video-close,
.rnc-contact-close {
  position: absolute;
  top: -52px;
  right: 0;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 999px;

  background: rgba(255,255,255,0.1);
  color: #fff;

  font-size: 1.5rem;
  cursor: pointer;
}

.forestinsights-video-close:hover,
.rnc-contact-close:hover {
  background: rgba(255,255,255,0.2);
}


/* =========================================================
   SHARED DARK CARDS - FAQ / TERMS / CONTACT
   ========================================================= */

.faq-flip-face,
.faq-question-card,
.faq-answer-card,
.terms-card,
.contact-card {
  background:
    linear-gradient(
      180deg,
      rgba(18,24,22,0.9),
      rgba(10,14,13,0.94)
    );

  border: 1px solid rgba(120,217,139,0.16);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.03);

  color: #edf6ef;
}

/* =========================================================
   FAQ PAGE - LAYOUT FIXES
   ========================================================= */

body.forestinsights-faq-page .about-section.light {
  margin-top: 0;
}

body.forestinsights-faq-page .faq-full-width-section {
  margin-top: 0;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

body.forestinsights-faq-page .faq-full-width-section .faq-wide-container {
  max-width: 1280px;
}

body.forestinsights-faq-page .faq-data-section {
  min-height: 1320px;
  padding-bottom: 8rem;
}

body.forestinsights-faq-page .faq-questions-section {
  padding-top: 2rem;
}

body.forestinsights-faq-page .faq-question-layout {
  align-items: start;
  margin-top: 0;
}

/* =========================================================
   DATA AVAILABILITY FLIP CARD
   ========================================================= */

.faq-flip-card {
  width: 100%;
  max-width: 1280px;
  min-height: 460px;
  margin: 0 auto;
  perspective: 1400px;
  cursor: pointer;
}

.faq-flip-inner {
  position: relative;

  width: 100%;
  min-height: 460px;

  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(.2,.8,.2,1);
}

.faq-flip-card.is-flipped .faq-flip-inner {
  transform: rotateY(180deg);
}

.faq-flip-face {
  position: absolute;
  inset: 0;

  min-height: 650px;
  padding: clamp(1.5rem, 4vw, 2.5rem);

  border-radius: 28px;
  overflow: hidden;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.faq-flip-front {
  color: #edf6ef;
  pointer-events: auto;
}

.faq-flip-back {
  transform: rotateY(180deg);
  pointer-events: none;
}

.faq-flip-card.is-flipped .faq-flip-front {
  pointer-events: none;
}

.faq-flip-card.is-flipped .faq-flip-back {
  pointer-events: auto;
}

.faq-flip-face h2 {
  margin-top: 0;

  color: #78d98b;
}

.faq-flip-face p {
  max-width: 68ch;

  color: rgba(237,246,239,0.78);
  line-height: 1.7;
}

.flip-hint {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;

  padding: 0.45rem 0.7rem;

  border-radius: 999px;

  background: rgba(120,217,139,0.12);
  color: #78d98b;

  font-size: 0.78rem;
  font-weight: 800;
}

.faq-wide-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.faq-full-width-section {
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

/* =========================================================
   DATA AVAILABILITY MAP
   ========================================================= */

.faq-map-wrap {
  position: relative;

  margin-top: 1.5rem;
}

#faqCoverageMap {
  width: 100%;
  height: 500px;
  margin-top: 1.5rem;

  overflow: hidden;

  border-radius: 20px;
  background: #dfe8e1;
}

.faq-map-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 10;

  padding: 0.75rem 0.9rem;

  border-radius: 12px;

  background: rgba(5, 8, 18, 0.92);
  color: #fff;

  font-size: 0.9rem;
  line-height: 1.6;

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.faq-map-legend-title {
  margin-bottom: 0.35rem;

  font-weight: 800;
}

.legend-dot {
  display: inline-block;

  width: 12px;
  height: 12px;
  margin-right: 0.45rem;

  border-radius: 2px;
}

.legend-dot.available {
  background: #C6E2B2;
}

.legend-dot.coming {
  background: #E0ECB3;
}

.legend-dot.basket {
  background: #CDAA66;
}

/* =========================================================
   FAQ QUESTIONS
   ========================================================= */

.faq-question-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.9fr);
  gap: 1.75rem;
  align-items: start;
}

.faq-question-card,
.faq-answer-card {
  padding: clamp(1.5rem, 3vw, 2rem);

  border-radius: 28px;
}

.faq-question-card h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;

  color: #78d98b;

  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  padding: 1rem 0;

  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);

  color: #edf6ef;

  font: inherit;
  font-weight: 750;
  text-align: left;

  cursor: pointer;

  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.faq-question:hover,
.faq-question.active {
  color: #78d98b;
}

.faq-question::after {
  content: "+";

  color: #78d98b;

  font-weight: 900;

  flex-shrink: 0;
}

.faq-question.active::after {
  content: "-";
}

.faq-answer-card {
  position: sticky;
  top: 5.5rem;

  align-self: start;
  min-height: 300px;
}

.faq-answer-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;

  color: #edf6ef;

  font-size: 1.35rem;
  line-height: 1.25;
}

.faq-answer-card p {
  max-width: 58ch;

  color: rgba(237,246,239,0.74);

  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================================
   TERMS OF USE CARD
   ========================================================= */

.terms-card {
  padding: clamp(1.5rem, 3vw, 2rem);

  border-radius: 28px;
}

.terms-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;

  margin-bottom: 1.25rem;
}

.terms-card h2 {
  margin: 0;

  color: #78d98b;

  font-size: clamp(2rem, 4vw, 3.2rem);
}

.terms-card-header p {
  margin: 0.35rem 0 0;

  color: rgba(237,246,239,0.68);
}

.terms-scroll {
  max-height: 520px;
  overflow-y: auto;

  padding: 1.25rem;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;

  background: rgba(255,255,255,0.035);
}

.terms-scroll h3 {
  margin: 1.25rem 0 0.55rem;

  color: #edf6ef;
}

.terms-scroll h3:first-child {
  margin-top: 0;
}

.terms-scroll p {
  max-width: 90ch;

  color: rgba(237,246,239,0.74);

  line-height: 1.7;
}

.terms-scroll strong {
  color: #edf6ef;
}

.terms-scroll::-webkit-scrollbar {
  width: 8px;
}

.terms-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;

  background: rgba(120,217,139,0.35);
}

/* =========================================================
   CONTACT CARD / FORM
   ========================================================= */

.contact-card {
  padding: clamp(1.5rem, 3vw, 2rem);

  border-radius: 28px;
}

.contact-card h2 {
  margin: 0 0 0.75rem;

  color: #78d98b;

  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-card-header p {
  max-width: 78ch;

  color: rgba(237,246,239,0.74);

  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 1rem;

  margin-top: 1.5rem;
}

.contact-form label {
  color: #edf6ef;

  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;

  border: 1px solid rgba(120,217,139,0.18);
  border-radius: 10px;

  background: rgba(2, 8, 16, 0.58);
  color: #edf6ef;

  font: inherit;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.85rem 1.1rem;

  border: 0;
  border-radius: 10px;

  background: #f4f7fb;
  color: #06130f;

  font-weight: 900;
  cursor: pointer;
}


.rnc-contact-modal {
  position: relative;
  width: min(760px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
}

.rnc-contact-card {
  max-width: none;
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.6rem);
}

.rnc-contact-card .contact-card-header,
.rnc-contact-card .contact-form {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.rnc-contact-card .contact-form input,
.rnc-contact-card .contact-form select,
.rnc-contact-card .contact-form textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {
  .faq-question-layout {
    grid-template-columns: 1fr;
  }

  .faq-answer-card {
    position: static;
  }

  .flip-hint {
    position: static;
    display: inline-flex;

    margin-bottom: 1rem;
  }

  .faq-flip-card,
  .faq-flip-inner,
  .faq-flip-face {
    min-height: 520px;
  }

  #faqCoverageMap {
    height: 300px;
  }
}


/* =========================================================
   FORESTINSIGHTS FAQ HERO NAVIGATION
   ========================================================= */

body.forestinsights-faq-page .forestinsights-hero-actions {
  align-items: center;
  gap: 0.75rem;
}

body.forestinsights-faq-page .forestinsights-btn {
  min-width: auto;
  white-space: nowrap;
}

body.forestinsights-faq-page .forestinsights-btn-nav {
  padding-inline: 1.15rem;
}

body.forestinsights-faq-page .forestinsights-btn-nav.is-active {
  background: rgba(120,217,139,0.18);
  border-color: rgba(120,217,139,0.62);
  color: #ffffff;
}

.forestinsights-faq-section[hidden] {
  display: none !important;
}

.forestinsights-faq-section.is-active {
  display: block;
}

body.forestinsights-faq-page .about-section.light .faq-wide-container {
  display: block;
}

body.forestinsights-faq-page .faq-question-layout {
  display: grid;
}

@media (max-width: 1100px) {
  body.forestinsights-faq-page .forestinsights-hero-actions {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  body.forestinsights-faq-page .forestinsights-btn {
    width: 100%;
  }
}

/* =========================================================
   DATA AVAILABILITY CARD + COVERAGE MAP
   ========================================================= */

body.forestinsights-faq-page #data-availability {
  min-height: 1320px;
  padding-bottom: 8rem;
  overflow: visible;
}

body.forestinsights-faq-page #data-availability .faq-wide-container {
  overflow: visible;
}

body.forestinsights-faq-page #coverageFlipCard,
body.forestinsights-faq-page #coverageFlipCard .faq-flip-inner,
body.forestinsights-faq-page #coverageFlipCard .faq-flip-face {
  min-height: 1150px;
}

body.forestinsights-faq-page #coverageFlipCard .faq-flip-face {
  overflow: visible;
  padding-bottom: 4rem;
}

body.forestinsights-faq-page #coverageFlipCard .faq-map-wrap {
  min-height: 660px;
  padding-bottom: 4rem;
}

body.forestinsights-faq-page #faqCoverageMap {
  display: block;
  width: 100%;
  height: 560px;
  min-height: 560px;
}

body.forestinsights-faq-page #faqCoverageMap .mapboxgl-canvas {
  border-radius: 20px;
}

@media (max-width: 850px) {
  body.forestinsights-faq-page #data-availability {
    min-height: 900px;
    padding-bottom: 5rem;
  }

  body.forestinsights-faq-page #coverageFlipCard,
  body.forestinsights-faq-page #coverageFlipCard .faq-flip-inner,
  body.forestinsights-faq-page #coverageFlipCard .faq-flip-face {
    min-height: 760px;
  }

  body.forestinsights-faq-page #coverageFlipCard .faq-map-wrap {
    min-height: 360px;
  }

  body.forestinsights-faq-page #faqCoverageMap {
    height: 320px;
    min-height: 320px;
  }
}