/* Figbloom Vision overrides. Loaded after Webflow's stylesheet on every page,
   so edit here and the change applies site-wide. */
:root {
  /* Figbloom's own palette and type, as figbloom.org declares them
     (2026-10-31), so this site matches the company site. */
  --fb-ink: #14180f;
  --fb-ink-2: #4a5145;
  --fb-ink-3: #5b6157;
  --fb-muted: #8a9182;
  --fb-line: #e3e2dc;
  --fb-bg: #fafaf8;
  --fb-green: #2c5322;
  --fb-green-deep: #213f19;
  --fb-orange: #ff9400;
  --fb-dark: #101408;

  --figbloom-orange: var(--fb-orange);
  --figbloom-orange-hover: #e08300;

  /* The template's own tokens, pointed at Figbloom's. */
  --font-family--body: "Outfit", sans-serif;
  --color--dark-primary: var(--fb-ink);
  --color--dark-secondary: #1b2016;
  --color--dark-tertiary: #2a3024;
  --color--body: var(--fb-ink-3);
  --color--muted: var(--fb-muted);
  --color--light: var(--fb-bg);

  /* Remap the template's red palette to Figbloom orange. Every red accent
     (labels, current nav link, borders, interaction colors) reads these. */
  --color--red-primary: var(--figbloom-orange);
  --color--red-bright: var(--figbloom-orange);
  --color--red-on-dark: var(--figbloom-orange);
  --color--dark-red: var(--figbloom-orange-hover);
}

/* Hover: anything interactive switches the red palette to the hover orange,
   so Webflow's hover animations land on #b8540f too. */
a:hover,
button:hover,
.w-dropdown:hover,
.faq-item:hover,
.testimonials-previous-button:hover,
.testimonials-next-button:hover {
  --color--red-primary: var(--figbloom-orange-hover);
  --color--red-bright: var(--figbloom-orange-hover);
  --color--red-on-dark: var(--figbloom-orange-hover);
}

/* Text links (nav, dropdown, footer, legal, inline) turn hover orange */
a:not(.button):not(.w-inline-block):hover,
.nav-link:hover,
.nav-link.w--current:hover,
.dropdown-link:hover,
.nav-dropdown-toggle:hover,
.contact-details-email-link:hover,
.arrow-link:hover,
.service-card:hover .service-card-title,
.insights-card:hover .insights-card-title,
.case-studies-card-standard:hover .case-studies-card-title,
.case-studies-card-reverse:hover .case-studies-card-title {
  color: var(--figbloom-orange-hover) !important;
}

/* Hover backgrounds that used the template red */
.testimonials-previous-button:hover,
.testimonials-next-button:hover,
.pagination-button:hover {
  background-color: var(--figbloom-orange-hover) !important;
  border-color: var(--figbloom-orange-hover) !important;
}

/* All buttons: Figbloom orange with ink text and square corners, as on
   figbloom.org (white on this orange would be about 2:1; ink is 9:1).
   !important beats the inline styles Webflow's interactions set on hover. */
.button.is-primary,
.button.is-white,
.button.is-outline,
.submit-button,
.w-button {
  background-color: var(--figbloom-orange) !important;
  background-image: none !important;
  border-color: var(--figbloom-orange) !important;
  border-radius: 2px !important;
  color: var(--fb-ink) !important;
  transition: background-color .3s ease, border-color .3s ease;
}

.button.is-primary *,
.button.is-white *,
.button.is-outline * {
  color: var(--fb-ink) !important;
}

.button.is-primary:hover,
.button.is-white:hover,
.button.is-outline:hover,
.submit-button:hover,
.w-button:hover {
  background-color: var(--figbloom-orange-hover) !important;
  border-color: var(--figbloom-orange-hover) !important;
  color: var(--fb-ink) !important;
}

/* Hover layer that Webflow fades in over primary buttons */
.button-overlay {
  background-color: var(--figbloom-orange-hover) !important;
}

/* Home "About" section: video replaces the photo. The box keeps its size and
   Webflow's scroll-to-enlarge animation; the video just fills it like the photo did. */
.about-bg-image {
  background-image: none !important;
  overflow: hidden;
}

.about-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}

/* Team cards: photo + name panel, with the member's quote underneath */
.team-member {
  display: flex;
  flex-direction: column;
}

.team-image {
  display: block;
  width: 100%;
  aspect-ratio: 621 / 666;
  object-fit: cover;
}

.team-member-quote {
  margin: 20px 4px 0;
  padding-left: 16px;
  border-left: 2px solid var(--figbloom-orange);
  color: #c8c8c8;
  font-size: 1rem;
  line-height: 1.6;
}

/* Services section: green background */
.services-section.bg-dark {
  background-color: var(--fb-green) !important;
}

/* White reads well on this green (5.35:1) */
.services-section .section-heading,
.services-section .service-card-action-text {
  color: #fff !important;
}

/* Brand orange label; semi-bold because orange on green is low contrast (2.15:1) */
.services-section .section-eyebrow {
  color: var(--figbloom-orange) !important;
  font-weight: 600;
}

/* Team sections (Team page, About Us preview, team sliders) and footer
   share the services green */
.team-section.bg-dark,
.testimonials-section.bg-dark,
.footer-section {
  background-color: var(--fb-green) !important;
}

.team-section .section-eyebrow,
.testimonials-section .section-eyebrow {
  font-weight: 600;
}

/* Contact page "Contact details" section: green, cards stay dark */
.contact-details-section.bg-dark {
  background-color: var(--fb-green) !important;
}

.contact-details-section .section-eyebrow {
  color: var(--figbloom-orange) !important;
  font-weight: 600;
}

.contact-details-lines {
  margin-top: 40px;
}

.contact-details-lines .contact-details-email-link {
  margin-top: 0;
  align-items: flex-start;
}

.contact-details-lines .contact-details-email-link + .contact-details-email-link {
  margin-top: 12px;
}

.contact-details-email-icon {
  flex: none;
  margin-top: 3px;
}

/* Footer contact block under the newsletter form */
.footer-contact {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-title {
  color: #fff;
  font-size: var(--_typography---font-size--text-size-large);
  font-weight: var(--font-weight--medium);
  margin-bottom: 6px;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color--light);
  text-decoration: none;
  line-height: 1.5;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: .2em;
  color: var(--figbloom-orange);
}

/* Lighter text so it stays readable on green */
.team-member-quote {
  color: #eceef0 !important;
}

.footer-credit-link {
  color: #fff !important;
}

.footer-credit-link {
  color: #fff !important;
}

/* Floating scroll-to-top button */
.scroll-top-btn {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 54px !important;
  height: 54px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: var(--fb-green) !important;
  background: var(--fb-green) !important;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(12px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.25s ease !important;
  padding: 0 !important;
}

.scroll-top-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.scroll-top-btn:hover {
  background-color: var(--fb-green-deep) !important;
  background: var(--fb-green-deep) !important;
}

.scroll-top-btn svg,
.scroll-top-btn svg path {
  width: 22px !important;
  height: 22px !important;
  stroke: var(--figbloom-orange) !important;
  stroke-width: 2.5 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* The hover orange disappears on green (1.1:1), so links there go white and underlined */
.footer-section a:not(.button):not(.w-inline-block):hover,
.team-section a:not(.button):not(.w-inline-block):hover,
.testimonials-section a:not(.button):not(.w-inline-block):hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Footer scrolls with the page instead of staying pinned underneath it */
.footer-section {
  position: relative !important;
  bottom: auto !important;
}

/* Home page team slider: team photos share one shape */
.testimonials-image {
  display: block;
  width: 100%;
  aspect-ratio: 678 / 713;
  object-fit: cover;
}

/* "See threats before they become incidents" steps: square camera photos */
.intelligence-image.one,
.intelligence-item-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.intelligence-image.two,
.intelligence-image.three,
.intelligence-image.four {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The white highlight slides down by its own height per step, so every step
   must be exactly that tall. Sized to fit the longest description. */
@media screen and (min-width: 992px) {
  .intelligence-item,
  .intelligence-item-overlay {
    height: 190px;
  }
}

@media screen and (min-width: 1200px) {
  .intelligence-item,
  .intelligence-item-overlay {
    height: 160px;
  }
}

/* Pages dropdown: the template reserved 7 rows for 13 links; size to the links we have */
.dropdown-list-wrap {
  grid-template-rows: none !important;
}

/* Logo + wordmark (navbar and footer) */
.navbar-brand,
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* The Figbloom Vision logo (images/figbloom-vision-logo-white.svg, generated
   from the web app's FigbloomLogo component). It carries its own "VISION". */
.figbloom-logo {
  width: auto;
  height: 44px;
}

.footer-logo-link .figbloom-logo {
  height: 52px;
}

@media screen and (max-width: 479px) {
  .figbloom-logo { height: 38px; }
  /* No room beside the logo; Contact Us is still in the menu under Pages. */
  .navbar-right .button { display: none; }
}

/* Detection cards with a CCTV image in place of the icon */
.service-card.has-image {
  padding: 0 0 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0e1a14;
}

.service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* slight zoom trims the dark fisheye corners some CCTV frames have */
  transform: scale(1.07);
  transition: transform .6s ease;
}

.service-card.has-image:hover .service-card-image {
  transform: scale(1.12);
}

/* Generated images carry timestamp overlays in their corners; zoom a bit more to crop them off */
.service-card-image.is-trimmed {
  transform: scale(1.14);
}

.service-card.has-image:hover .service-card-image.is-trimmed {
  transform: scale(1.19);
}

.service-card.has-image .service-card-content {
  margin: 30px 40px 0;
}

.services-collection-wrapper,
.services-collection-list,
.services-collection-item {
  height: 100%;
}

/* Six cards: the "View All" block fills the last two columns on desktop */
@media screen and (min-width: 992px) {
  .services-grid .service-card-action {
    grid-column: span 2;
  }
}

@media screen and (max-width: 991px) {
  .service-card.has-image { padding: 0 0 30px; }
  .service-card.has-image .service-card-content { margin: 24px 28px 0; }
}

@media screen and (max-width: 767px) {
  .service-card.has-image { padding: 0 0 24px; }
  .service-card.has-image .service-card-content { margin: 18px 20px 0; }
}

/* Cards without a photo show their icon on a panel the same size as the images */
.service-card-image-wrap.is-icon {
  background: radial-gradient(circle at 50% 45%, #3a6a2d 0%, #1b3414 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-panel-icon {
  width: 30%;
  max-width: 110px;
  height: auto;
  transition: transform .6s ease;
}

.service-card.has-image:hover .service-card-panel-icon {
  transform: scale(1.08);
}

/* Solutions: CCTV camera photo on the right, faded into white behind the heading and cards */
.solutions-section .solutions-bg {
  left: auto;
  width: 60%;
  object-position: 32% 46%;
}

.solutions-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, rgba(255, 255, 255, .6) 48%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

@media screen and (max-width: 991px) {
  .solutions-section .solutions-bg {
    width: 100%;
    object-position: 32% 46%;
  }

  .solutions-section::after {
    background: rgba(255, 255, 255, .82);
  }
}

/* "See threats" steps on tablets and phones: text left, image right for every step,
   and a white highlight (moved by steps-mobile.js) that follows the step in view */
.intelligence-mobile-highlight {
  display: none;
}

@media screen and (max-width: 991px) {
  .intelligence-list {
    position: relative;
  }

  .intelligence-item {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 20px;
    align-items: center;
  }

  /* The template pins the first steps' text to span two columns by element id */
  .intelligence-item .intelligence-item-content {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
  }

  .intelligence-item .intelligence-item-visual {
    grid-column: 2 / 3;
    grid-row: 1;
    margin-left: 0;
    opacity: .55;
    transform: scale(.92);
    transition: opacity .5s ease, transform .5s ease;
  }

  .intelligence-item .intelligence-item-title,
  .intelligence-item .intelligence-item-description {
    transition: opacity .5s ease;
    opacity: .6;
  }

  .intelligence-item.is-active .intelligence-item-visual {
    opacity: 1;
    transform: scale(1);
  }

  .intelligence-item.is-active .intelligence-item-title,
  .intelligence-item.is-active .intelligence-item-description {
    opacity: 1;
  }

  .intelligence-mobile-highlight {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), height .5s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
  }
}

@media screen and (max-width: 479px) {
  .intelligence-item {
    grid-column-gap: 14px;
  }
}

/* Team page on phones: one card at a time in a swipeable slider (team-slider.js adds the controls) */
.team-slider-controls {
  display: none;
}

@media screen and (max-width: 767px) {
  .team-section .team-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .team-section .team-grid::-webkit-scrollbar {
    display: none;
  }

  .team-section .team-grid > .team-member {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .team-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
  }

  .team-slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 0 3px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .team-slider-arrow:active {
    background: var(--figbloom-orange);
    border-color: var(--figbloom-orange);
  }

  .team-slider-dots {
    display: flex;
    gap: 8px;
  }

  .team-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
  }

  .team-slider-dot.is-active {
    width: 22px;
    border-radius: 4px;
    background: var(--figbloom-orange);
  }
}

/* Home "Our Story" on tablets and phones: the template stretches the video behind the
   white card, where it can't be seen. Show it instead as a framed live camera feed
   above the story, with the card overlapping its lower edge. */
@media screen and (max-width: 991px) {
  .about-track {
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
    border-top-width: 0;
  }

  .about-track .about-bg-image {
    position: relative !important;
    order: -1;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin: 0 20px !important;
    border-radius: 14px;
    transform: none !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  }

  /* Live feed badge, matching the command center's camera labels */
  .about-track .about-bg-image::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 22px;
    z-index: 2;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e5484d;
    animation: aboutLiveBlink 1.6s infinite;
  }

  .about-track .about-bg-image::after {
    content: "LIVE \00B7  CAM 01";
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 4px 10px 4px 24px;
    border-radius: 4px;
    background: rgba(12, 16, 13, .75);
    color: #fff;
    font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .08em;
    line-height: 1.4;
  }

  .about-track > .container {
    position: relative;
    z-index: 1;
    margin-top: -56px;
  }

  .about-track .about-story-card {
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
  }
}

@media screen and (max-width: 767px) {
  .about-track .about-bg-image {
    aspect-ratio: 4 / 3;
    margin: 0 12px !important;
    border-radius: 10px;
  }

  .about-track > .container {
    margin-top: -40px;
  }
}

@keyframes aboutLiveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* Navbar between the mobile menu (991px and below) and wide screens: the
   eight items overrun the logo at the template's 40px spacing. Tighten it,
   and below 1200px drop the menu's Get Started button (Contact Us is still
   under Pages). */
@media screen and (min-width: 992px) and (max-width: 1365px) {
  .nav-menu {
    gap: 24px;
  }

  .nav-link {
    white-space: nowrap;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .nav-menu-wrapper .nav-menu-button {
    display: none;
  }
}

/* .main is a flex item of .page-wrapper, so it sizes to its widest content
   (615px on a 390px phone, 853px on the team page) and the whole page
   scrolls sideways. Pin it to the page width. */
.main {
  width: 100%;
  min-width: 0;
}

/* Tablets (480-991px): Webflow caps .w-container at 540px or 720px, so the
   logo and every section sit in a narrow centred column with wide margins.
   Use the full width, like phones and desktops do. */
@media screen and (min-width: 480px) and (max-width: 991px) {
  .w-container {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Pricing (2026-10-31): one card with the three plans side by side and a
   single quote band, instead of three cards each saying "Custom". Every
   line in the lists is something the platform does today. */
.fv-plans {
  margin-top: 56px;
  border: 1px solid var(--fb-line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 24, 15, .06);
}

.fv-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fv-plan {
  padding: 40px 36px 44px;
}

.fv-plan + .fv-plan {
  border-left: 1px solid var(--fb-line);
}

.fv-plan-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.fv-plan-title {
  margin: 0 0 8px;
  color: var(--fb-ink);
  font-size: 1.5rem;
  font-weight: 600;
}

.fv-plan-for {
  margin: 0 0 24px;
  min-height: 3.1em;
  color: var(--fb-ink-3);
  font-size: .975rem;
  line-height: 1.55;
}

.fv-plan-plus {
  margin: 0 0 14px;
  color: var(--fb-green);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fv-plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fv-plan-list li {
  position: relative;
  padding-left: 28px;
  color: var(--fb-ink-2);
  font-size: .95rem;
  line-height: 1.45;
}

.fv-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(44, 83, 34, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5322' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.fv-plans-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  background: var(--fb-green);
  color: #fff;
}

.fv-plans-quote-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 600;
}

.fv-plans-quote-body {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.55;
}

.fv-plans-quote .button {
  flex: none;
}

@media screen and (max-width: 991px) {
  .fv-plans-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fv-plan + .fv-plan {
    border-left: 0;
    border-top: 1px solid var(--fb-line);
  }

  .fv-plan-for {
    min-height: 0;
  }

  .fv-plans-quote {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 479px) {
  .fv-plans {
    margin-top: 36px;
  }

  .fv-plan,
  .fv-plans-quote {
    padding: 28px 22px;
  }
}

/* pricing.html has no section header above the card */
.page-hero-section + .pricing-section .fv-plans {
  margin-top: 0;
}

/* Touch screens (phones and tablets, 2026-10-31): the footer's links were
   18-23 px tall and the team slider's dots 8 px, too small to hit reliably.
   Padding grows the tap area; the dots keep their look (background-clip). */
@media (pointer: coarse) {
  .footer-nav-link,
  .footer-legal-link {
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .footer-contact-line {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .footer-contact {
    gap: 0;
  }

  .team-slider-dot {
    width: 32px;
    height: 32px;
    padding: 12px;
    background-clip: content-box;
  }

  .team-slider-dot.is-active {
    width: 46px;
  }

  .team-slider-dots {
    gap: 0;
  }
}

/* Phones and tablets (2026-10-31):
   - "See threats" steps: the template's text-reveal animation (GSAP SplitText)
     wraps everything inside the last step in one .gsap_split_line div, so its
     grid had a single child and the photo fell under the text. Let the
     wrapper's children sit in the grid.
   - Team quotes: the slider's arrows sit over the slide's bottom-right corner
     and covered the author's role. Leave them room under it. */
@media screen and (max-width: 991px) {
  .intelligence-item > .gsap_split_line {
    display: contents !important;
  }

  .testimonials-author-row {
    padding-bottom: 56px;
  }
}
